mlsanityData to 14 Oct 2026

Codex Hacks HackerRank: Memorization Issues and a Framework for Code Synthesis Evaluation

arXiv 2212.02684 ↗First posted 6 Dec 2022cs.SE cs.LGcited by 14

Not on the map. Why?

Abstract (arXiv)

The Codex model has demonstrated extraordinary competence in synthesizing code from natural language problem descriptions. However, in order to reveal unknown failure modes and hidden biases, such large-scale models must be systematically subjected to multiple and diverse evaluation studies. In this work, we evaluate the code synthesis capabilities of the Codex model based on a set of 115 Python problem statements from a popular competitive programming portal: HackerRank. Our evaluation shows that Codex is indeed proficient in Python, solving 96% of the problems in a zero-shot setting, and 100% of the problems in a few-shot setting. However, Codex exhibits clear signs of generating memorized code based on our evaluation. This is alarming, especially since the adoption and use of such models could directly impact how code is written and produced in the foreseeable future. With this in mind, we further discuss and highlight some of the prominent risks associated with large-scale models of source code. Finally, we propose a framework for code-synthesis evaluation using variations of problem statements based on mutations.

Key facts. Cited by 14 papers in the map (data through 14 Oct 2026). Builds on 20 of its 37 references that are in the map. First posted on arXiv 6 Dec 2022.

Builds on

20 of 37 references.

References · 20

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020Language Models are Few-Shot Learnerscited by 32,419
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  5. 2021Program Synthesis with Large Language Modelscited by 3,637
  6. 2022Competition-Level Code Generation with AlphaCodecited by 1,462
  7. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  8. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
  9. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
  10. 2021Unified Pre-training for Program Understanding and Generationcited by 366
  11. 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 221
  12. 2022Synchromesh: Reliable code generation from pre-trained language modelscited by 156
8 more
  1. 2018The Adverse Effects of Code Duplication in Machine Learning Models of Codecited by 126
  2. 2016Neuro-Symbolic Program Synthesiscited by 84
  3. 2021What do pre-trained code models know about code?cited by 36
  4. 2021Automatic Program Repair with OpenAI's Codex: Evaluating QuixBugscited by 25
  5. 2020SourceFinder: Finding Malware Source-Code from Publicly Available Repositoriescited by 15
  6. 2021Solving Linear Algebra by Program Synthesiscited by 14
  7. 2022Pop Quiz! Can a Large Language Model Help With Reverse Engineering?cited by 14
  8. 2021Solving Probability and Statistics Problems by Program Synthesiscited by 9

Built on by

Cited by year

Citing papers per year: 2023: 12; 2024: 0; 2025: 2.

14 papers.

Sort:

By area: