3
views
0
recommends
+1 Recommend
0 collections
    0
    shares
      • Record: found
      • Abstract: found
      • Article: found
      Is Open Access

      Evaluating Large Language Models Trained on Code

      journal-article
      , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
      arXiv
      Machine Learning (cs.LG), FOS: Computer and information sciences

      Read this article at

      Bookmark
          There is no author summary for this article yet. Authors can add summaries to their articles on ScienceOpen to make them more accessible to a non-specialist audience.

          Abstract

          We introduce Codex, a GPT language model fine-tuned on publicly available code from GitHub, and study its Python code-writing capabilities. A distinct production version of Codex powers GitHub Copilot. On HumanEval, a new evaluation set we release to measure functional correctness for synthesizing programs from docstrings, our model solves 28.8% of the problems, while GPT-3 solves 0% and GPT-J solves 11.4%. Furthermore, we find that repeated sampling from the model is a surprisingly effective strategy for producing working solutions to difficult prompts. Using this method, we solve 70.2% of our problems with 100 samples per problem. Careful investigation of our model reveals its limitations, including difficulty with docstrings describing long chains of operations and with binding operations to variables. Finally, we discuss the potential broader impacts of deploying powerful code generation technologies, covering safety, security, and economics.

          Abstract

          corrected typos, added references, added authors, added acknowledgements

          Related collections

          Author and article information

          Journal
          arXiv
          2021
          07 July 2021
          08 July 2021
          14 July 2021
          15 July 2021
          July 2021
          Article
          10.48550/ARXIV.2107.03374
          8fabfb84-f43a-477e-93c7-26abc508a4a9

          arXiv.org perpetual, non-exclusive license

          History

          Machine Learning (cs.LG),FOS: Computer and information sciences

          Comments

          Comment on this article