Language Models Can Teach Themselves to Program Better
Not on the map. Why?
Cited by 20 in Synthetic data and self-improvement for LLMs, but placed by its own abstract, which didn’t fit.
Abstract (arXiv)
Recent Language Models (LMs) achieve breakthrough performance in code generation when trained on human-authored problems, even solving some competitive-programming problems. Self-play has proven useful in games such as Go, and thus it is natural to ask whether LMs can generate their own instructive programming problems to improve their performance. We show that it is possible for an LM to synthesize programming problems and solutions, which are filtered for correctness by a Python interpreter. The LM's performance is then seen to improve when it is fine-tuned on its own synthetic problems and verified solutions; thus the model 'improves itself' using the Python interpreter. Problems are specified formally as programming puzzles [Schuster et al., 2021], a code-based problem format where solutions can easily be verified for correctness by execution. In experiments on publicly-available LMs, test accuracy more than doubles. This work demonstrates the potential for code LMs, with an interpreter, to generate instructive problems and improve their own performance.
Key facts. Cited by 78 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 29 Jul 2022.
Builds on
28 of 49 references.
References · 28
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2015Distilling the Knowledge in a Neural Networkcited by 10,324
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2022Training Compute-Optimal Large Language Modelscited by 3,019
- 2018UMAP: Uniform Manifold Approximation and Projection for Dimension Reductioncited by 2,898
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2017Decoupled Weight Decay Regularizationcited by 1,831
- 2020Knowledge Distillation: A Surveycited by 1,603
16 more
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2021Measuring Coding Challenge Competence With APPScited by 902
- 2020Generative Language Modeling for Automated Theorem Provingcited by 388
- 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 358
- 2021Symbolic Knowledge Distillation: from General Language Models to Commonsense Modelscited by 270
- 2022Generating Training Data with Language Models: Towards Zero-Shot Language Understandingcited by 199
- 2021Generating Datasets with Pretrained Language Modelscited by 193
- 2016DeepCoder: Learning to Write Programscited by 149
- 2022Automatic Generation of Programming Exercises and Code Explanations using Large Language Modelscited by 126
- 2019Write, Execute, Assess: Program Synthesis with a REPLcited by 93
- 2021Leveraging Automated Unit Tests for Unsupervised Code Translationcited by 82
- 2021LIME: Learning Inductive Bias for Primitives of Mathematical Reasoningcited by 46
- 2021Programming Puzzlescited by 25
- 2019Synthetic Datasets for Neural Program Synthesiscited by 15
- 2018NAPS: Natural Program Synthesis Datasetcited by 14
- 2020Learning to Prove from Synthetic Theoremscited by 13
Built on by
Citing papers per year: 2022: 3; 2023: 16; 2024: 33; 2025: 19; 2026: 7.
78 papers.
Sort:
By area:
- 2024Agent Workflow Memorycited by 383
- 2024Quiet-STaR: Language Models Can Teach Themselves to Think Before Speakingcited by 301
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 300
- 2025SWE-smith: Scaling Data for Software Engineering Agentscited by 285
- 2024Two Tales of Persona in LLMs: A Survey of Role-Playing and Personalizationcited by 208
- 2022Will we run out of data? Limits of LLM scaling based on human-generated datacited by 195
- 2023Self-Taught Optimizer (STOP): Recursively Self-Improving Code Generationcited by 148
- 2024LLM-SR: Scientific Equation Discovery via Programming with Large Language Modelscited by 133
- 2024Meta-Prompting: Enhancing Language Models with Task-Agnostic Scaffoldingcited by 117
- 2023Learning Performance-Improving Code Editscited by 106
- 2024Best Practices and Lessons Learned on Synthetic Datacited by 106
- 2022Execution-Based Evaluation for Open-Domain Code Generationcited by 91
38 more
- 2024Buffer of Thoughts: Thought-Augmented Reasoning with Large Language Modelscited by 91
- 2023Phenomenal Yet Puzzling: Testing Inductive Reasoning Capabilities of Language Models with Hypothesis Refinementcited by 89
- 2024If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agentscited by 79
- 2025STP: Self-play LLM Theorem Provers with Iterative Conjecturing and Provingcited by 79
- 2024LLM2LLM: Boosting LLMs with Novel Iterative Data Enhancementcited by 70
- 2024SelfCodeAlign: Self-Alignment for Code Generationcited by 62
- 2025Synthetic Data Generation Using Large Language Models: Advances in Text and Codecited by 61
- 2023LILO: Learning Interpretable Libraries by Compressing and Documenting Codecited by 49
- 2024Puzzle Solving using Reasoning of Large Language Models: A Surveycited by 45
- 2024Beyond Model Collapse: Scaling Up with Synthesized Data Requires Verificationcited by 45
- 2024Learning Formal Mathematics From Intrinsic Motivationcited by 45
- 2023SelfEvolve: A Code Evolution Framework via Large Language Modelscited by 43
- 2025AlphaAgent: LLM-Driven Alpha Mining with Regularized Exploration to Counteract Alpha Decaycited by 42
- 2024A Survey on Data Synthesis and Augmentation for Large Language Modelscited by 41
- 2025Large Language Models for Planning: A Comprehensive and Systematic Surveycited by 40
- 2025LLM-FE: Automated Feature Engineering for Tabular Data with LLMs as Evolutionary Optimizerscited by 38
- 2024QuantAgent: Seeking Holy Grail in Trading by Self-Improving Large Language Modelcited by 30
- 2023AI capabilities can be significantly improved without expensive retrainingcited by 28
- 2023LLM-Assisted Code Cleaning For Training Accurate Code Generatorscited by 27
- 2024DARG: Dynamic Evaluation of Large Language Models via Adaptive Reasoning Graphcited by 26
- 2023LeTI: Learning to Generate from Textual Interactionscited by 25
- 2024CodeIt: Self-Improving Language Models with Prioritized Hindsight Replaycited by 23
- 2023Language models are weak learnerscited by 22
- 2022I2D2: Inductive Knowledge Distillation with NeuroLogic and Self-Imitationcited by 21
- 2024Bootstrapping Language-Guided Navigation Learning with Self-Refining Data Flywheelcited by 20
- 2023Incremental Learning of Humanoid Robot Behavior from Natural Interaction and Large Language Modelscited by 19
- 2024SPARQL Generation: an analysis on fine-tuning OpenLLaMA for Question Answering over a Life Science Knowledge Graphcited by 19
- 2025Beyond Prompt Content: Enhancing LLM Performance via Content-Format Integrated Prompt Optimizationcited by 16
- 2024Mitigating Tail Narrowing in LLM Self-Improvement via Socratic-Guided Samplingcited by 13
- 2025Propose, Solve, Verify: Self-Play Through Formal Verificationcited by 13
- 2023Generating Data for Symbolic Language with Large Language Modelscited by 12
- 2024Self-Training Large Language Models for Improved Visual Program Synthesis With Visual Reinforcementcited by 12
- 2024Data for Mathematical Copilots: Better Ways of Presenting Proofs for Machine Learningcited by 11
- 2024PLUM: Improving Code LMs with Execution-Guided On-Policy Preference Learning Driven By Synthetic Test Casescited by 8
- 2025Why Less is More (Sometimes): A Theory of Data Curationcited by 8
- 2024Fictitious Synthetic Data Can Improve LLM Factuality via Prerequisite Learningcited by 7
- 2023ACES: Generating Diverse Programming Puzzles with with Autotelic Generative Modelscited by 6
- 2024SELU: Self-Learning Embodied MLLMs in Unknown Environmentscited by 6
50 most cited of 78 All 78 (JSON)
- 2026Small but Mighty: Test Suites as Improvement Signals for Self-Evolving Agents11 Oct 2026
- 2026Variance-Optimal State Resampling for Reinforcement Learning with Verifiable Rewards11 Oct 2026
- 2026SpecForge: Recursive Self-Improvement for Coding Agents via Behavioral Specifications11 Oct 2026
- 2026Learning to Optimize through Solver-Grounded Self-Play28 Sep 2026
- 2026DecompRL: Solving Harder Problems by Learning Modular Code Generation2 Jul 2026
- 2026Q-Bridge: Code Translation for Quantum Machine Learning via LLMs29 Mar 2026
- 2026Feynman: Knowledge-Infused Diagramming Agent for Scalable Visual Designs13 Mar 2026
- 2025Propose, Solve, Verify: Self-Play Through Formal Verification20 Dec 2025
- 2025Why Less is More (Sometimes): A Theory of Data Curation5 Nov 2025
- 2025FELA: A Multi-Agent Evolutionary System for Feature Engineering of Industrial Event Log Data29 Oct 2025
- 2025Escaping Model Collapse via Synthetic Data Verification: Near-term Improvements and Long-term Convergence18 Oct 2025
- 2025Combining Large Language Models and Gradient-Free Optimization for Automatic Control Policy Synthesis1 Oct 2025
38 more
- 2025AR2: Adversarial Reinforcement Learning for Abstract Reasoning in Large Language Models27 Aug 2025
- 2025Dr. Boot: Bootstrapping Program Synthesis Language Models to Perform Repairing20 Jul 2025
- 2025Large Language Models for Planning: A Comprehensive and Systematic Survey26 May 2025
- 2025Self-Reasoning Language Models: Unfold Hidden Reasoning Chains with Few Reasoning Catalyst20 May 2025
- 2025Enhancing Code Generation via Bidirectional Comment-Level Mutual Grounding12 May 2025
- 2025SWE-smith: Scaling Data for Software Engineering Agents30 Apr 2025
- 2025LLM-FE: Automated Feature Engineering for Tabular Data with LLMs as Evolutionary Optimizers18 Mar 2025
- 2025Synthetic Data Generation Using Large Language Models: Advances in Text and Code18 Mar 2025
- 2025Large Scale Multi-Task Bayesian Optimization with Large Language Models11 Mar 2025
- 2025AlphaAgent: LLM-Driven Alpha Mining with Regularized Exploration to Counteract Alpha Decay24 Feb 2025
- 2025Boost, Disentangle, and Customize: A Robust System2-to-System1 Pipeline for Code Generation18 Feb 2025
- 2025Beyond Prompt Content: Enhancing LLM Performance via Content-Format Integrated Prompt Optimization6 Feb 2025
- 2025STP: Self-play LLM Theorem Provers with Iterative Conjecturing and Proving31 Jan 2025
- 2025MoColl: Agent-Based Specific and General Model Collaboration for Image Captioning3 Jan 2025
- 2024Data for Mathematical Copilots: Better Ways of Presenting Proofs for Machine Learning19 Dec 2024
- 2024Bootstrapping Language-Guided Navigation Learning with Self-Refining Data Flywheel11 Dec 2024
- 2024Mitigating Tail Narrowing in LLM Self-Improvement via Socratic-Guided Sampling1 Nov 2024
- 2024SelfCodeAlign: Self-Alignment for Code Generation31 Oct 2024
- 2024Fictitious Synthetic Data Can Improve LLM Factuality via Prerequisite Learning25 Oct 2024
- 2024SoftSRV: Learn to Generate Targeted Synthetic Data21 Oct 2024
- 2024Mastering the Craft of Data Synthesis for CodeLLMs16 Oct 2024
- 2024A Survey on Data Synthesis and Augmentation for Large Language Models16 Oct 2024
- 2024Synthesizing Interpretable Control Policies through Large Language Model Guided Search7 Oct 2024
- 2024SELU: Self-Learning Embodied MLLMs in Unknown Environments4 Oct 2024
- 2024Agent Workflow Memory11 Sep 2024
- 2024Learning Program Behavioral Models from Synthesized Input-Output Pairs11 Jul 2024
- 2024Learning Formal Mathematics From Intrinsic Motivation30 Jun 2024
- 2024Improving Arithmetic Reasoning Ability of Large Language Models through Relation Tuples, Verification and Dynamic Feedback25 Jun 2024
- 2024DARG: Dynamic Evaluation of Large Language Models via Adaptive Reasoning Graph25 Jun 2024
- 2024Beyond Model Collapse: Scaling Up with Synthesized Data Requires Verification11 Jun 2024
- 2024PLUM: Improving Code LMs with Execution-Guided On-Policy Preference Learning Driven By Synthetic Test Cases11 Jun 2024
- 2024Buffer of Thoughts: Thought-Augmented Reasoning with Large Language Models6 Jun 2024
- 2024Two Tales of Persona in LLMs: A Survey of Role-Playing and Personalization3 Jun 2024
- 2024A Survey Study on the State of the Art of Programming Exercise Generation using Large Language Models30 May 2024
- 2024LLM-SR: Scientific Equation Discovery via Programming with Large Language Models29 Apr 2024
- 2024Best Practices and Lessons Learned on Synthetic Data11 Apr 2024
- 2024Self-Training Large Language Models for Improved Visual Program Synthesis With Visual Reinforcement6 Apr 2024
- 2024LLM2LLM: Boosting LLMs with Novel Iterative Data Enhancement22 Mar 2024
50 newest of 78 All 78 (JSON)
- 2023Self-Taught Optimizer (STOP): Recursively Self-Improving Code Generationcited by 148
- 2024Best Practices and Lessons Learned on Synthetic Datacited by 106
- 2025Synthetic Data Generation Using Large Language Models: Advances in Text and Codecited by 61
- 2024Beyond Model Collapse: Scaling Up with Synthesized Data Requires Verificationcited by 45
- 2024A Survey on Data Synthesis and Augmentation for Large Language Modelscited by 41
- 2024QuantAgent: Seeking Holy Grail in Trading by Self-Improving Large Language Modelcited by 30
- 2024Mitigating Tail Narrowing in LLM Self-Improvement via Socratic-Guided Samplingcited by 13
- 2025Propose, Solve, Verify: Self-Play Through Formal Verificationcited by 13
- 2024Fictitious Synthetic Data Can Improve LLM Factuality via Prerequisite Learningcited by 7
- 2025Escaping Model Collapse via Synthetic Data Verification: Near-term Improvements and Long-term Convergencecited by 6
- 2024SoftSRV: Learn to Generate Targeted Synthetic Datacited by 3
- 2024Mastering the Craft of Data Synthesis for CodeLLMscited by 3
12 most cited of 15 All 15 (JSON)
- 2026Learning to Optimize through Solver-Grounded Self-Play28 Sep 2026
- 2025Propose, Solve, Verify: Self-Play Through Formal Verification20 Dec 2025
- 2025Escaping Model Collapse via Synthetic Data Verification: Near-term Improvements and Long-term Convergence18 Oct 2025
- 2025Dr. Boot: Bootstrapping Program Synthesis Language Models to Perform Repairing20 Jul 2025
- 2025Synthetic Data Generation Using Large Language Models: Advances in Text and Code18 Mar 2025
- 2024Mitigating Tail Narrowing in LLM Self-Improvement via Socratic-Guided Sampling1 Nov 2024
- 2024Fictitious Synthetic Data Can Improve LLM Factuality via Prerequisite Learning25 Oct 2024
- 2024SoftSRV: Learn to Generate Targeted Synthetic Data21 Oct 2024
- 2024Mastering the Craft of Data Synthesis for CodeLLMs16 Oct 2024
- 2024A Survey on Data Synthesis and Augmentation for Large Language Models16 Oct 2024
- 2024Beyond Model Collapse: Scaling Up with Synthesized Data Requires Verification11 Jun 2024
- 2024Best Practices and Lessons Learned on Synthetic Data11 Apr 2024
12 newest of 15 All 15 (JSON)
- 2024Quiet-STaR: Language Models Can Teach Themselves to Think Before Speakingcited by 301
- 2024Buffer of Thoughts: Thought-Augmented Reasoning with Large Language Modelscited by 91
- 2023Phenomenal Yet Puzzling: Testing Inductive Reasoning Capabilities of Language Models with Hypothesis Refinementcited by 89
- 2025STP: Self-play LLM Theorem Provers with Iterative Conjecturing and Provingcited by 79
- 2024Puzzle Solving using Reasoning of Large Language Models: A Surveycited by 45
- 2025Large Language Models for Planning: A Comprehensive and Systematic Surveycited by 40
- 2024DARG: Dynamic Evaluation of Large Language Models via Adaptive Reasoning Graphcited by 26
- 2024CodeIt: Self-Improving Language Models with Prioritized Hindsight Replaycited by 23
- 2024Self-Training Large Language Models for Improved Visual Program Synthesis With Visual Reinforcementcited by 12
- 2025Self-Reasoning Language Models: Unfold Hidden Reasoning Chains with Few Reasoning Catalystcited by 6
- 2024Improving Arithmetic Reasoning Ability of Large Language Models through Relation Tuples, Verification and Dynamic Feedbackcited by 4
- 2025Boost, Disentangle, and Customize: A Robust System2-to-System1 Pipeline for Code Generationcited by 2
12 most cited of 14 All 14 (JSON)
- 2026Variance-Optimal State Resampling for Reinforcement Learning with Verifiable Rewards11 Oct 2026
- 2025AR2: Adversarial Reinforcement Learning for Abstract Reasoning in Large Language Models27 Aug 2025
- 2025Large Language Models for Planning: A Comprehensive and Systematic Survey26 May 2025
- 2025Self-Reasoning Language Models: Unfold Hidden Reasoning Chains with Few Reasoning Catalyst20 May 2025
- 2025Boost, Disentangle, and Customize: A Robust System2-to-System1 Pipeline for Code Generation18 Feb 2025
- 2025STP: Self-play LLM Theorem Provers with Iterative Conjecturing and Proving31 Jan 2025
- 2024Improving Arithmetic Reasoning Ability of Large Language Models through Relation Tuples, Verification and Dynamic Feedback25 Jun 2024
- 2024DARG: Dynamic Evaluation of Large Language Models via Adaptive Reasoning Graph25 Jun 2024
- 2024Buffer of Thoughts: Thought-Augmented Reasoning with Large Language Models6 Jun 2024
- 2024Self-Training Large Language Models for Improved Visual Program Synthesis With Visual Reinforcement6 Apr 2024
- 2024Quiet-STaR: Language Models Can Teach Themselves to Think Before Speaking14 Mar 2024
- 2024Puzzle Solving using Reasoning of Large Language Models: A Survey17 Feb 2024
12 newest of 14 All 14 (JSON)
- 2024Agent Workflow Memorycited by 383
- 2025SWE-smith: Scaling Data for Software Engineering Agentscited by 285
- 2024If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agentscited by 79
- 2025MoColl: Agent-Based Specific and General Model Collaboration for Image Captioningcited by 2
- 2025FELA: A Multi-Agent Evolutionary System for Feature Engineering of Industrial Event Log Datacited by 2
- 2026Feynman: Knowledge-Infused Diagramming Agent for Scalable Visual Designscited by 1
- 2026SpecForge: Recursive Self-Improvement for Coding Agents via Behavioral Specificationscited by 0
- 2026Small but Mighty: Test Suites as Improvement Signals for Self-Evolving Agentscited by 0
- 2026Small but Mighty: Test Suites as Improvement Signals for Self-Evolving Agents11 Oct 2026
- 2026SpecForge: Recursive Self-Improvement for Coding Agents via Behavioral Specifications11 Oct 2026
- 2026Feynman: Knowledge-Infused Diagramming Agent for Scalable Visual Designs13 Mar 2026
- 2025FELA: A Multi-Agent Evolutionary System for Feature Engineering of Industrial Event Log Data29 Oct 2025
- 2025SWE-smith: Scaling Data for Software Engineering Agents30 Apr 2025
- 2025MoColl: Agent-Based Specific and General Model Collaboration for Image Captioning3 Jan 2025
- 2024Agent Workflow Memory11 Sep 2024
- 2024If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agents1 Jan 2024
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 300
- 2024Two Tales of Persona in LLMs: A Survey of Role-Playing and Personalizationcited by 208
- 2022Will we run out of data? Limits of LLM scaling based on human-generated datacited by 195
- 2024LLM-SR: Scientific Equation Discovery via Programming with Large Language Modelscited by 133
- 2024Meta-Prompting: Enhancing Language Models with Task-Agnostic Scaffoldingcited by 117
- 2023Learning Performance-Improving Code Editscited by 106
- 2022Execution-Based Evaluation for Open-Domain Code Generationcited by 91
- 2024LLM2LLM: Boosting LLMs with Novel Iterative Data Enhancementcited by 70
- 2024SelfCodeAlign: Self-Alignment for Code Generationcited by 62
- 2023LILO: Learning Interpretable Libraries by Compressing and Documenting Codecited by 49
- 2024Learning Formal Mathematics From Intrinsic Motivationcited by 45
- 2023SelfEvolve: A Code Evolution Framework via Large Language Modelscited by 43
12 most cited of 38 All 38 (JSON)
- 2026DecompRL: Solving Harder Problems by Learning Modular Code Generation2 Jul 2026
- 2026Q-Bridge: Code Translation for Quantum Machine Learning via LLMs29 Mar 2026
- 2025Why Less is More (Sometimes): A Theory of Data Curation5 Nov 2025
- 2025Combining Large Language Models and Gradient-Free Optimization for Automatic Control Policy Synthesis1 Oct 2025
- 2025Enhancing Code Generation via Bidirectional Comment-Level Mutual Grounding12 May 2025
- 2025LLM-FE: Automated Feature Engineering for Tabular Data with LLMs as Evolutionary Optimizers18 Mar 2025
- 2025Large Scale Multi-Task Bayesian Optimization with Large Language Models11 Mar 2025
- 2025AlphaAgent: LLM-Driven Alpha Mining with Regularized Exploration to Counteract Alpha Decay24 Feb 2025
- 2025Beyond Prompt Content: Enhancing LLM Performance via Content-Format Integrated Prompt Optimization6 Feb 2025
- 2024Data for Mathematical Copilots: Better Ways of Presenting Proofs for Machine Learning19 Dec 2024
- 2024Bootstrapping Language-Guided Navigation Learning with Self-Refining Data Flywheel11 Dec 2024
- 2024SelfCodeAlign: Self-Alignment for Code Generation31 Oct 2024
12 newest of 38 All 38 (JSON)