CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Tasks
Not on the map. Why?
Abstract (arXiv)
Over the last several decades, software has been woven into the fabric of every aspect of our society. As software development surges and code infrastructure of enterprise applications ages, it is now more critical than ever to increase software development productivity and modernize legacy applications. Advances in deep learning and machine learning algorithms have enabled numerous breakthroughs, motivating researchers to leverage AI techniques to improve software development efficiency. Thus, the fast-emerging research area of AI for Code has garnered new interest and gathered momentum. In this paper, we present a large-scale dataset CodeNet, consisting of over 14 million code samples and about 500 million lines of code in 55 different programming languages, which is aimed at teaching AI to code. In addition to its large scale, CodeNet has a rich set of high-quality annotations to benchmark and help accelerate research in AI techniques for a variety of critical coding tasks, including code similarity and classification, code translation between a large variety of programming languages, and code performance (runtime and memory) improvement techniques. Additionally, CodeNet provides sample input and output test sets for 98.5% of the code samples, which can be used as an oracle for determining code correctness and potentially guide reinforcement learning for code quality improvements. As a usability feature, we provide several pre-processing tools in CodeNet to transform source code into representations that can be readily used as inputs into machine learning models. Results of code classification and code similarity experiments using the CodeNet dataset are provided as a reference. We hope that the scale, diversity and rich, high-quality annotations of CodeNet will offer unprecedented research opportunities at the intersection of AI and Software Engineering.
Key facts. Cited by 200 papers in the map (data through 14 Oct 2026). Builds on 28 of its 49 references that are in the map. First posted on arXiv 25 May 2021.
Builds on
28 of 49 references.
References · 28
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,361
- 2018How Powerful are Graph Neural Networks?cited by 4,393
- 2019Fast Graph Representation Learning with PyTorch Geometriccited by 2,434
- 2020Open Graph Benchmark: Datasets for Machine Learning on Graphscited by 2,163
- 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,475
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2018Deeper Insights into Graph Convolutional Networks for Semi-Supervised Learningcited by 1,102
- 2021Measuring Coding Challenge Competence With APPScited by 902
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
- 2020A Metric Learning Reality Checkcited by 321
16 more
- 2017Unsupervised Machine Translation Using Monolingual Corpora Onlycited by 273
- 2019Devign: Effective Vulnerability Identification by Learning Comprehensive Program Semantics via Graph Neural Networkscited by 272
- 2020Unsupervised Translation of Programming Languagescited by 263
- 2017A Survey of Machine Learning for Big Code and Naturalnesscited by 221
- 2019Graph Matching Networks for Learning the Similarity of Graph Structured Objectscited by 205
- 2018SequenceR: Sequence-to-Sequence Learning for End-to-End Program Repaircited by 145
- 2018The Adverse Effects of Code Duplication in Machine Learning Models of Codecited by 126
- 2018An Empirical Study on Learning Bug-Fixing Patches in the Wild via Neural Machine Translationcited by 108
- 2018Mapping Language to Code in Programmatic Contextcited by 104
- 2018Tree-to-tree Neural Networks for Program Translationcited by 93
- 2021Directed Acyclic Graph Neural Networkscited by 70
- 2018Neural Code Comprehension: A Learnable Representation of Code Semanticscited by 59
- 2021D2A: A Dataset Built for AI-Based Vulnerability Detection Methods Using Differential Analysiscited by 49
- 2020A Survey on Deep Learning for Software Engineeringcited by 38
- 2020Exploring Software Naturalness through Neural Language Modelscited by 32
- 2018Aroma: Code Recommendation via Structural Code Searchcited by 29
Built on by
Citing papers per year: 2021: 5; 2022: 20; 2023: 39; 2024: 42; 2025: 54; 2026: 40.
200 papers.
Sort:
By area:
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2023A Comprehensive Overview of Large Language Modelscited by 648
- 2022The Stack: 3 TB of permissively licensed source codecited by 359
- 2023InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedbackcited by 238
- 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 183
- 2024Granite Code Models: A Family of Open Foundation Models for Code Intelligencecited by 117
- 2023Learning Performance-Improving Code Editscited by 106
- 2024Demystifying Chains, Trees, and Graphs of Thoughtscited by 63
- 2021AVATAR: A Parallel Corpus for Java-Python Program Translationcited by 59
- 2023CodeTransOcean: A Comprehensive Multilingual Benchmark for Code Translationcited by 57
- 2024CodeUltraFeedback: An LLM-as-a-Judge Dataset for Aligning Large Language Models to Coding Preferencescited by 57
38 more
- 2025SmolDocling: An ultra-compact vision-language model for end-to-end multi-modal document conversioncited by 53
- 2025Evaluating the Diversity and Quality of LLM Generated Contentcited by 51
- 2024A Performance Study of LLM-Generated Code on Leetcodecited by 49
- 2023xCodeEval: A Large Scale Multilingual Multitask Benchmark for Code Understanding, Generation, Translation and Retrievalcited by 47
- 2023Code Execution with Pre-trained Language Modelscited by 34
- 2024Prompting Techniques for Secure Code Generation: A Systematic Investigationcited by 34
- 2024Automated Proof Generation for Rust Code via Self-Evolutioncited by 33
- 2023Natural Language Generation and Understanding of Big Code for AI-Assisted Programming: A Reviewcited by 32
- 2023Large Language Models of Code Fail at Completing Code with Potential Bugscited by 29
- 2024Meta Reasoning for Large Language Modelscited by 29
- 2023Refactoring Programs Using Large Language Models with Few-Shot Examplescited by 28
- 2024Search-Based LLMs for Code Optimizationcited by 28
- 2024ECCO: Can We Improve Model-Generated Code Efficiency Without Sacrificing Functional Correctness?cited by 27
- 2024PerfCodeGen: Improving Performance of LLM Generated Code with Execution Feedbackcited by 24
- 2025EquiBench: Benchmarking Large Language Models' Reasoning about Program Semantics via Equivalence Checkingcited by 24
- 2024IRCoder: Intermediate Representations Make Language Models Robust Multilingual Code Generatorscited by 23
- 2024CodeEditorBench: Evaluating Code Editing Capability of Large Language Modelscited by 23
- 2024RepoTransBench: A Real-World Multilingual Benchmark for Repository-Level Code Translationcited by 23
- 2024FVEL: Interactive Formal Verification Environment with Large Language Models via Theorem Provingcited by 22
- 2024Rectifier: Code Translation with Corrector via LLMscited by 20
- 2025Embracing Imperfection: Simulating Students with Diverse Cognitive Levels Using LLM-based Agentscited by 19
- 2025Unified Software Engineering Agent as AI Software Engineercited by 19
- 2022ContraCLM: Contrastive Learning For Causal Language Modelcited by 18
- 2025Don't Judge Code by Its Cover: Exploring Biases in LLM Judges for Code Evaluationcited by 18
- 2022FixEval: Execution-based Evaluation of Program Fixes for Programming Problemscited by 17
- 2023CrossCodeBench: Benchmarking Cross-Task Generalization of Source Code Modelscited by 16
- 2023Exploring the Robustness of Large Language Models for Solving Programming Problemscited by 16
- 2023TpuGraphs: A Performance Prediction Dataset on Large Tensor Computational Graphscited by 16
- 2023Supersonic: Learning to Generate Source Code Optimizations in C/C++cited by 16
- 2024InterTrans: Leveraging Transitive Intermediate Translations to Enhance LLM-based Code Translationcited by 16
- 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic Systemcited by 15
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 15
- 2025CodeSense: a Real-World Benchmark and Dataset for Code Semantic Reasoningcited by 13
- 2024LLMs with Industrial Lens: Deciphering the Challenges and Prospects -- A Surveycited by 12
- 2024ProCQA: A Large-scale Community-based Programming Question Answering Dataset for Code Searchcited by 12
- 2022Static Prediction of Runtime Errors by Learning to Execute Programs with External Resource Descriptionscited by 11
- 2023RunBugRun -- An Executable Dataset for Automated Program Repaircited by 11
- 2023Creating a Dataset for High-Performance Computing Code Translation using LLMs: A Bridge Between OpenMP Fortran and C++cited by 11
50 most cited of 200 All 200 (JSON)
- 2026PC-SubMax: Efficient Prompt Compression via Regularized Submodular Maximization26 Sep 2026
- 2026Type-IV Code Clone Detection via Layer-Wise Non-Contrastive Representation Learning15 Sep 2026
- 2026Fine-Tuning Fixes Mode Collapse and Over-Dispersion in LLMs15 Sep 2026
- 2026Synthetic Semantic Supervision for Contrastive Code Representation Learning in Small Transformers: An Empirical Study3 Sep 2026
- 2026Evaluating Language Models on Cross-Language Code Functional Equivalence25 Aug 2026
- 2026Invariant Pretraining for Robust Code Representations15 Aug 2026
- 2026T-LLM Compiler: Trusted LLM-based Code Optimization and Verification Framework15 Aug 2026
- 2026Fine-Tuning Qwen3-27B for C-to-Rust Code Translation: A Three-Stage Curriculum of Pretraining, Debugging-Aware SFT, and Task-Specific SFT13 Aug 2026
- 2026Performance, Efficiency and Collapse -- Advantages and Challenges in Offline Post-training of Code LLMs6 Aug 2026
- 2026Training-Free Token-Level Steering for LLM Personalized Co-Writing6 Aug 2026
- 2026Coding Agents as Test-Suite Auditors: Finding What Official Suites Miss While Approaching What They Catch3 Aug 2026
- 2026Multi-turn RL with Structural and Performance Aware Rewards for CUDA Kernel Generation23 Jul 2026
38 more
- 2026Spaghetti Architect: A Contamination-Resistant, By-Construction-Labelled, Multi-Language Code Dataset Generator21 Jul 2026
- 2026SynH-Rank: Quality-Aware Code Search via Diverse Data Synthesis and Hierarchical Ranking Training19 Jul 2026
- 2026Code-MUE: Measuring Code LLMs' Uncertainty through Execution-based Semantic Interaction Graphs14 Jul 2026
- 2026Selective Left-Shift: Turning Test-Time Compute and Difficulty-based Curation into Training Data for Low-Resource Code Generation8 Jul 2026
- 2026Beyond the Need for Speed: Energy-Aware Code Generation via Simulation-Guided Reinforcement Learning6 Jul 2026
- 2026Diff-Based Code Corruption using LLMs for Large-Scale Bugfix Benchmarking27 Jun 2026
- 2026Recall Before Rerank: Benchmarking Deep Learning Models for Large-Scale Code-to-Code Retrieval24 Jun 2026
- 2026Is Code Better Than Language for Algorithmic Reasoning14 Jun 2026
- 2026Beyond Pass Rate: A Multilingual, Execution-Grounded Evaluation of Open Code LLMs7 Jun 2026
- 2026Efficient Post-training of LLMs for Code Generation With Offline Reinforcement Learning27 May 2026
- 2026Verifier-Guided Code Translation via Meta-Step Decoding17 May 2026
- 2026Standing on the Shoulders of Giants: Stabilized Knowledge Distillation for Cross--Language Code Clone Detection4 May 2026
- 2026Improving LLM Code Generation via Requirement-Aware Curriculum Reinforcement Learning1 May 2026
- 2026PLMGH: What Matters in PLM-GNN Hybrids for Code Classification and Vulnerability Detection28 Apr 2026
- 2026Large Language Models for Multilingual Code Intelligence: A Survey27 Apr 2026
- 2026CodePivot: Bootstrapping Multilingual Transpilation in LLMs via Reinforcement Learning without Parallel Corpora20 Apr 2026
- 2026LLMSniffer: Detecting LLM-Generated Code via GraphCodeBERT and Supervised Contrastive Learning17 Apr 2026
- 2026A Taxonomy of Programming Languages for Code Generation31 Mar 2026
- 2026Hierarchical Chain-of-Thought: Enhancing LLM Reasoning Performance and Efficiency31 Mar 2026
- 2026ConceptCoder: Improve Code Reasoning via Concept Learning24 Mar 2026
- 2026FormulaCode: Evaluating Agentic Optimization on Large Codebases16 Mar 2026
- 2026An Initial Exploration of Contrastive Prompt Tuning to Generate Energy-Efficient Code3 Mar 2026
- 2026AICD Bench: A Challenging Benchmark for AI-Generated Code Detection2 Feb 2026
- 2026Not All Code Is Equal: A Data-Centric Study of Code Complexity and LLM Reasoning29 Jan 2026
- 2026Revisiting the Role of Natural Language Code Comments in Code Translation23 Jan 2026
- 2026Beyond Accuracy: Characterizing Code Comprehension Capabilities in (Large) Language Models19 Jan 2026
- 2026Aletheia: What Makes RLVR For Code Verifiers Tick?17 Jan 2026
- 2026The New Compiler Stack: A Survey on the Synergy of LLMs and Compilers5 Jan 2026
- 2025Exploring the Security Threats of Retriever Backdoors in Retrieval-Augmented Code Generation25 Dec 2025
- 2025SoK: Understanding (New) Security Issues Across AI4Code Use Cases20 Dec 2025
- 2025BabelCoder: Agentic Code Translation with Specification Alignment7 Dec 2025
- 2025Beyond Token-level Supervision: Unlocking the Potential of Decoding-based Regression via Reinforcement Learning6 Dec 2025
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025Agentic Auto-Scheduling: An Experimental Study of LLM-Guided Loop Optimization1 Nov 2025
- 2025Estonian Native Large Language Model Benchmark24 Oct 2025
- 2025DuoLens: A Framework for Robust Detection of Machine-Generated Multilingual Text and Code21 Oct 2025
- 2025TokDrift: When LLM Speaks in Subwords but Code Speaks in Grammar16 Oct 2025
- 2025ECO: Enhanced Code Optimization via Performance-Aware Prompting for Code-LLMs12 Oct 2025
50 newest of 200 All 200 (JSON)
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2024Demystifying Chains, Trees, and Graphs of Thoughtscited by 63
- 2025Evaluating the Diversity and Quality of LLM Generated Contentcited by 51
- 2024Meta Reasoning for Large Language Modelscited by 29
- 2025EquiBench: Benchmarking Large Language Models' Reasoning about Program Semantics via Equivalence Checkingcited by 24
- 2025CodeSense: a Real-World Benchmark and Dataset for Code Semantic Reasoningcited by 13
- 2026Verifier-Guided Code Translation via Meta-Step Decodingcited by 2
- 2025Effective Reinforcement Learning for Reasoning in Language Modelscited by 1
- 2026Not All Code Is Equal: A Data-Centric Study of Code Complexity and LLM Reasoningcited by 1
- 2026Hierarchical Chain-of-Thought: Enhancing LLM Reasoning Performance and Efficiencycited by 1
- 2025Using Contrastive Learning to Improve Two-Way Reasoning in Large Language Models: The Obfuscation Task as a Case Studycited by 0
12 most cited of 16 All 16 (JSON)
- 2026Multi-turn RL with Structural and Performance Aware Rewards for CUDA Kernel Generation23 Jul 2026
- 2026Selective Left-Shift: Turning Test-Time Compute and Difficulty-based Curation into Training Data for Low-Resource Code Generation8 Jul 2026
- 2026Is Code Better Than Language for Algorithmic Reasoning14 Jun 2026
- 2026Verifier-Guided Code Translation via Meta-Step Decoding17 May 2026
- 2026Hierarchical Chain-of-Thought: Enhancing LLM Reasoning Performance and Efficiency31 Mar 2026
- 2026ConceptCoder: Improve Code Reasoning via Concept Learning24 Mar 2026
- 2026Not All Code Is Equal: A Data-Centric Study of Code Complexity and LLM Reasoning29 Jan 2026
- 2025Using Contrastive Learning to Improve Two-Way Reasoning in Large Language Models: The Obfuscation Task as a Case Study6 Sep 2025
- 2025CodeSense: a Real-World Benchmark and Dataset for Code Semantic Reasoning31 May 2025
- 2025Effective Reinforcement Learning for Reasoning in Language Models22 May 2025
- 2025Evaluating the Diversity and Quality of LLM Generated Content16 Apr 2025
- 2025EquiBench: Benchmarking Large Language Models' Reasoning about Program Semantics via Equivalence Checking18 Feb 2025
12 newest of 16 All 16 (JSON)
- 2025Embracing Imperfection: Simulating Students with Diverse Cognitive Levels Using LLM-based Agentscited by 19
- 2025Unified Software Engineering Agent as AI Software Engineercited by 19
- 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic Systemcited by 15
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 15
- 2025Enhancing LLM Performance Through Debate: An Empirical Study on Multi-Agent Debate for Coding Taskscited by 11
- 2025Software Development Life Cycle Perspective: A Survey of Benchmarks for Code Large Language Models and Agentscited by 11
- 2024Towards Hierarchical Multi-Agent Workflows for Zero-Shot Prompt Optimizationcited by 10
- 2026FormulaCode: Evaluating Agentic Optimization on Large Codebasescited by 6
- 2024ADC: Enhancing Function Calling Via Adversarial Datasets and Code Line-Level Feedbackcited by 5
- 2025Agentic Auto-Scheduling: An Experimental Study of LLM-Guided Loop Optimizationcited by 4
- 2025RepoTransAgent: Multi-Agent LLM Framework for Repository-Aware Code Translationcited by 3
- 2024REDO: Execution-Free Runtime Error Detection for COding Agentscited by 2
12 most cited of 15 All 15 (JSON)
- 2026Coding Agents as Test-Suite Auditors: Finding What Official Suites Miss While Approaching What They Catch3 Aug 2026
- 2026FormulaCode: Evaluating Agentic Optimization on Large Codebases16 Mar 2026
- 2025BabelCoder: Agentic Code Translation with Specification Alignment7 Dec 2025
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025Agentic Auto-Scheduling: An Experimental Study of LLM-Guided Loop Optimization1 Nov 2025
- 2025A Comprehensive Survey on Benchmarks and Solutions in Software Engineering of LLM-Empowered Agentic System10 Oct 2025
- 2025RepoTransAgent: Multi-Agent LLM Framework for Repository-Aware Code Translation25 Aug 2025
- 2025SLICEMATE: Accurate and Scalable Static Program Slicing via LLM-Powered Agents25 Jul 2025
- 2025Unified Software Engineering Agent as AI Software Engineer17 Jun 2025
- 2025Embracing Imperfection: Simulating Students with Diverse Cognitive Levels Using LLM-based Agents26 May 2025
- 2025Software Development Life Cycle Perspective: A Survey of Benchmarks for Code Large Language Models and Agents8 May 2025
- 2025Enhancing LLM Performance Through Debate: An Empirical Study on Multi-Agent Debate for Coding Tasks15 Mar 2025
12 newest of 15 All 15 (JSON)
- 2024Semi-Instruct: Bridging Natural-Instruct and Self-Instruct for Code Large Language Modelscited by 3
- 2026CodePivot: Bootstrapping Multilingual Transpilation in LLMs via Reinforcement Learning without Parallel Corporacited by 1
- 2026SynH-Rank: Quality-Aware Code Search via Diverse Data Synthesis and Hierarchical Ranking Trainingcited by 0
- 2026SynH-Rank: Quality-Aware Code Search via Diverse Data Synthesis and Hierarchical Ranking Training19 Jul 2026
- 2026CodePivot: Bootstrapping Multilingual Transpilation in LLMs via Reinforcement Learning without Parallel Corpora20 Apr 2026
- 2024Semi-Instruct: Bridging Natural-Instruct and Self-Instruct for Code Large Language Models1 Mar 2024
- 2026PC-SubMax: Efficient Prompt Compression via Regularized Submodular Maximization26 Sep 2026
- 2024Parse Trees Guided LLM Prompt Compression23 Sep 2024
- 2023Program Translation via Code Distillationcited by 10
- 2023Program Translation via Code Distillation17 Oct 2023
- 2023A Comprehensive Overview of Large Language Modelscited by 648
- 2022The Stack: 3 TB of permissively licensed source codecited by 359
- 2023InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedbackcited by 238
- 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 183
- 2024Granite Code Models: A Family of Open Foundation Models for Code Intelligencecited by 117
- 2023Learning Performance-Improving Code Editscited by 106
- 2021AVATAR: A Parallel Corpus for Java-Python Program Translationcited by 59
- 2023CodeTransOcean: A Comprehensive Multilingual Benchmark for Code Translationcited by 57
- 2024A Performance Study of LLM-Generated Code on Leetcodecited by 49
- 2023xCodeEval: A Large Scale Multilingual Multitask Benchmark for Code Understanding, Generation, Translation and Retrievalcited by 47
- 2023Code Execution with Pre-trained Language Modelscited by 34
- 2024Prompting Techniques for Secure Code Generation: A Systematic Investigationcited by 34
12 most cited of 153 All 153 (JSON)
- 2026Type-IV Code Clone Detection via Layer-Wise Non-Contrastive Representation Learning15 Sep 2026
- 2026Fine-Tuning Fixes Mode Collapse and Over-Dispersion in LLMs15 Sep 2026
- 2026Synthetic Semantic Supervision for Contrastive Code Representation Learning in Small Transformers: An Empirical Study3 Sep 2026
- 2026Evaluating Language Models on Cross-Language Code Functional Equivalence25 Aug 2026
- 2026Invariant Pretraining for Robust Code Representations15 Aug 2026
- 2026T-LLM Compiler: Trusted LLM-based Code Optimization and Verification Framework15 Aug 2026
- 2026Fine-Tuning Qwen3-27B for C-to-Rust Code Translation: A Three-Stage Curriculum of Pretraining, Debugging-Aware SFT, and Task-Specific SFT13 Aug 2026
- 2026Performance, Efficiency and Collapse -- Advantages and Challenges in Offline Post-training of Code LLMs6 Aug 2026
- 2026Training-Free Token-Level Steering for LLM Personalized Co-Writing6 Aug 2026
- 2026Spaghetti Architect: A Contamination-Resistant, By-Construction-Labelled, Multi-Language Code Dataset Generator21 Jul 2026
- 2026Code-MUE: Measuring Code LLMs' Uncertainty through Execution-based Semantic Interaction Graphs14 Jul 2026
- 2026Beyond the Need for Speed: Energy-Aware Code Generation via Simulation-Guided Reinforcement Learning6 Jul 2026
12 newest of 153 All 153 (JSON)