Codex Hacks HackerRank: Memorization Issues and a Framework for Code Synthesis Evaluation
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
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 906
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
- 2021Unified Pre-training for Program Understanding and Generationcited by 366
- 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 221
- 2022Synchromesh: Reliable code generation from pre-trained language modelscited by 156
8 more
- 2018The Adverse Effects of Code Duplication in Machine Learning Models of Codecited by 126
- 2016Neuro-Symbolic Program Synthesiscited by 84
- 2021What do pre-trained code models know about code?cited by 36
- 2021Automatic Program Repair with OpenAI's Codex: Evaluating QuixBugscited by 25
- 2020SourceFinder: Finding Malware Source-Code from Publicly Available Repositoriescited by 15
- 2021Solving Linear Algebra by Program Synthesiscited by 14
- 2022Pop Quiz! Can a Large Language Model Help With Reverse Engineering?cited by 14
- 2021Solving Probability and Statistics Problems by Program Synthesiscited by 9
Built on by
Citing papers per year: 2023: 12; 2024: 0; 2025: 2.
14 papers.
Sort:
By area:
- 2023Large Language Models and Simple, Stupid Bugscited by 45
- 2023Data Contamination Through the Lens of Timecited by 40
- 2023Thrilled by Your Progress! Large Language Models (GPT-4) No Longer Struggle to Pass Assessments in Higher Education Programming Coursescited by 39
- 2023Large Language Models (GPT) Struggle to Answer Multiple-Choice Questions about Codecited by 32
- 2023Can GPT-4 Support Analysis of Textual Data in Tasks Requiring Highly Specialized Domain Expertise?cited by 31
- 2023Traces of Memorisation in Large Language Models for Codecited by 29
- 2023Exploring the Robustness of Large Language Models for Solving Programming Problemscited by 16
- 2023Chatbots As Fluent Polyglots: Revisiting Breakthrough Code Snippetscited by 3
- 2023Evaluating GPT's Programming Capability through CodeWars' Katascited by 2
- 2023INSPECT: Intrinsic and Systematic Probing Evaluation for Code Transformerscited by 2
- 2023Can Generative Pre-trained Transformers (GPT) Pass Assessments in Higher Education Programming Courses?cited by 0
- 2023Breaking the Silence: the Threats of Using LLMs in Software Engineeringcited by 0
- 2025How Do Semantically Equivalent Code Transformations Impact Membership Inference on LLMs for Code?17 Dec 2025
- 2025RETROcode: Leveraging a Code Database for Improved Natural Language to Code Generation8 Apr 2025
- 2023Traces of Memorisation in Large Language Models for Code18 Dec 2023
- 2023Breaking the Silence: the Threats of Using LLMs in Software Engineering13 Dec 2023
- 2023INSPECT: Intrinsic and Systematic Probing Evaluation for Code Transformers8 Dec 2023
- 2023Data Contamination Through the Lens of Time16 Oct 2023
- 2023Exploring the Robustness of Large Language Models for Solving Programming Problems26 Jun 2023
- 2023Can GPT-4 Support Analysis of Textual Data in Tasks Requiring Highly Specialized Domain Expertise?24 Jun 2023
- 2023Thrilled by Your Progress! Large Language Models (GPT-4) No Longer Struggle to Pass Assessments in Higher Education Programming Courses15 Jun 2023
- 2023Evaluating GPT's Programming Capability through CodeWars' Katas31 May 2023
- 2023Large Language Models and Simple, Stupid Bugs20 Mar 2023
- 2023Can Generative Pre-trained Transformers (GPT) Pass Assessments in Higher Education Programming Courses?16 Mar 2023
- 2023Large Language Models and Simple, Stupid Bugscited by 45
- 2023Data Contamination Through the Lens of Timecited by 40
- 2023Thrilled by Your Progress! Large Language Models (GPT-4) No Longer Struggle to Pass Assessments in Higher Education Programming Coursescited by 39
- 2023Large Language Models (GPT) Struggle to Answer Multiple-Choice Questions about Codecited by 32
- 2023Can GPT-4 Support Analysis of Textual Data in Tasks Requiring Highly Specialized Domain Expertise?cited by 31
- 2023Exploring the Robustness of Large Language Models for Solving Programming Problemscited by 16
- 2023Chatbots As Fluent Polyglots: Revisiting Breakthrough Code Snippetscited by 3
- 2023Evaluating GPT's Programming Capability through CodeWars' Katascited by 2
- 2023INSPECT: Intrinsic and Systematic Probing Evaluation for Code Transformerscited by 2
- 2023Can Generative Pre-trained Transformers (GPT) Pass Assessments in Higher Education Programming Courses?cited by 0
- 2023Breaking the Silence: the Threats of Using LLMs in Software Engineeringcited by 0
- 2025RETROcode: Leveraging a Code Database for Improved Natural Language to Code Generationcited by 0
- 2025RETROcode: Leveraging a Code Database for Improved Natural Language to Code Generation8 Apr 2025
- 2023Breaking the Silence: the Threats of Using LLMs in Software Engineering13 Dec 2023
- 2023INSPECT: Intrinsic and Systematic Probing Evaluation for Code Transformers8 Dec 2023
- 2023Data Contamination Through the Lens of Time16 Oct 2023
- 2023Exploring the Robustness of Large Language Models for Solving Programming Problems26 Jun 2023
- 2023Can GPT-4 Support Analysis of Textual Data in Tasks Requiring Highly Specialized Domain Expertise?24 Jun 2023
- 2023Thrilled by Your Progress! Large Language Models (GPT-4) No Longer Struggle to Pass Assessments in Higher Education Programming Courses15 Jun 2023
- 2023Evaluating GPT's Programming Capability through CodeWars' Katas31 May 2023
- 2023Large Language Models and Simple, Stupid Bugs20 Mar 2023
- 2023Can Generative Pre-trained Transformers (GPT) Pass Assessments in Higher Education Programming Courses?16 Mar 2023
- 2023Large Language Models (GPT) Struggle to Answer Multiple-Choice Questions about Code9 Mar 2023
- 2023Chatbots As Fluent Polyglots: Revisiting Breakthrough Code Snippets5 Jan 2023