Case2Code: Scalable Synthetic Data for Code Generation
On the map: Synthetic data and self-improvement for LLMs → Code and instruction data synthesis
Abstract (arXiv)
Large Language Models (LLMs) have shown outstanding breakthroughs in code generation. Recent work improves code LLMs by training on synthetic data generated by some powerful LLMs, which can be challenging to scale due to the dependence on a teacher model and high generation costs. In this paper, we focus on synthesizing code data at scale and propose a Case2Code task by exploiting the expressiveness and correctness of programs. Case2Code is an inductive inference task that aims to infer underlying code implementations by observing input-output examples or program behaviors, By incorporating LLMs to generate program inputs, and executing the program with these inputs to obtain the program outputs, we can synthesize diverse and high-quality Case2Code data at scale for training and evaluating code LLMs. Experimental results show that case-to-code induction is challenging for current representative LLMs if they are untrained. Models trained with Case2Code improve performance not only on distribution case-to-code induction but also on various coding-generation tasks, demonstrating the great potential of large-scale synthetic data and inductive learning.
Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). Placed in Code and instruction data synthesis, one of 13 directions in Synthetic data and self-improvement for LLMs. Builds on 19 of its 30 references that are in the map. First posted on arXiv 17 Jul 2024.
Builds on
19 of 30 references.
Closest ancestors · 1
Same direction, newest first
Other references · 18
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2023Math-Shepherd: Verify and Reinforce LLMs Step-by-step without Human Annotationscited by 895
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
- 2022Large Language Models Can Self-Improvecited by 656
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 527
- 2023The Reversal Curse: LLMs trained on "A is B" fail to learn "B is A"cited by 399
- 2024InternLM2 Technical Reportcited by 391
- 2022The Stack: 3 TB of permissively licensed source codecited by 354
6 more
- 2015Towards AI-Complete Question Answering: A Set of Prerequisite Toy Taskscited by 309
- 2023Large Language Model as Attributed Training Data Generator: A Tale of Diversity and Biascited by 230
- 2024Orca-Math: Unlocking the potential of SLMs in Grade School Mathcited by 151
- 2016DeepCoder: Learning to Write Programscited by 145
- 2017RobustFill: Neural Program Learning under Noisy I/Ocited by 124
- 2023ExeDec: Execution Decomposition for Compositional Generalization in Neural Program Synthesiscited by 17
Built on by
Citing papers per year: 2024: 2; 2025: 10; 2026: 1.
13 papers.
Sort:
By area:
- 2024MIRAGE: Evaluating and Explaining Inductive Reasoning Process in Language Modelscited by 17
- 2025WebLeaper: Empowering Efficiency and Efficacy in WebAgent via Enabling Info-Rich Seekingcited by 17
- 2025MIR-Bench: Can Your LLM Recognize Complicated Patterns via Many-Shot In-Context Reasoning?cited by 7
- 2025CodeEvo: Interaction-Driven Synthesis of Code-centric Data through Hybrid and Iterative Feedbackcited by 4
- 2025UPDESH: Synthesizing Grounded Instruction Tuning Data for 13 Indic Languagescited by 4
- 2024NILE: Internal Consistency Alignment in Large Language Modelscited by 2
- 2025SNaRe: Domain-aware Data Generation for Low-Resource Event Detectioncited by 2
- 2025PBEBench: A Multi-Step Programming by Examples Reasoning Benchmark inspired by Historical Linguisticscited by 2
- 2025Code Review Without Borders: Evaluating Synthetic vs. Real Data for Review Recommendationcited by 1
- 2025Verification Limits Code LLM Trainingcited by 1
- 2025EvoSyn: Generalizable Evolutionary Data Synthesis for Verifiable Learningcited by 1
- 2025Knowledge-Graph-Driven Data Synthesis for Low-Resource Software Development: A HarmonyOS Case Studycited by 1
- 2026ReaComp: Compiling LLM Reasoning into Symbolic Solvers for Efficient Program Synthesis6 May 2026
- 2025Knowledge-Graph-Driven Data Synthesis for Low-Resource Software Development: A HarmonyOS Case Study29 Nov 2025
- 2025WebLeaper: Empowering Efficiency and Efficacy in WebAgent via Enabling Info-Rich Seeking28 Oct 2025
- 2025EvoSyn: Generalizable Evolutionary Data Synthesis for Verifiable Learning20 Oct 2025
- 2025UPDESH: Synthesizing Grounded Instruction Tuning Data for 13 Indic Languages25 Sep 2025
- 2025Verification Limits Code LLM Training25 Sep 2025
- 2025Code Review Without Borders: Evaluating Synthetic vs. Real Data for Review Recommendation5 Sep 2025
- 2025CodeEvo: Interaction-Driven Synthesis of Code-centric Data through Hybrid and Iterative Feedback25 Jul 2025
- 2025PBEBench: A Multi-Step Programming by Examples Reasoning Benchmark inspired by Historical Linguistics29 May 2025
- 2025SNaRe: Domain-aware Data Generation for Low-Resource Event Detection24 Feb 2025
- 2025MIR-Bench: Can Your LLM Recognize Complicated Patterns via Many-Shot In-Context Reasoning?14 Feb 2025
- 2024NILE: Internal Consistency Alignment in Large Language Models21 Dec 2024
1 more
- 2024MIRAGE: Evaluating and Explaining Inductive Reasoning Process in Language Modelscited by 17
- 2025MIR-Bench: Can Your LLM Recognize Complicated Patterns via Many-Shot In-Context Reasoning?cited by 7
- 2025PBEBench: A Multi-Step Programming by Examples Reasoning Benchmark inspired by Historical Linguisticscited by 2
- 2026ReaComp: Compiling LLM Reasoning into Symbolic Solvers for Efficient Program Synthesiscited by 1
- 2026ReaComp: Compiling LLM Reasoning into Symbolic Solvers for Efficient Program Synthesis6 May 2026
- 2025PBEBench: A Multi-Step Programming by Examples Reasoning Benchmark inspired by Historical Linguistics29 May 2025
- 2025MIR-Bench: Can Your LLM Recognize Complicated Patterns via Many-Shot In-Context Reasoning?14 Feb 2025
- 2024MIRAGE: Evaluating and Explaining Inductive Reasoning Process in Language Models12 Oct 2024
- 2025WebLeaper: Empowering Efficiency and Efficacy in WebAgent via Enabling Info-Rich Seekingcited by 17
- 2025CodeEvo: Interaction-Driven Synthesis of Code-centric Data through Hybrid and Iterative Feedbackcited by 4
- 2025UPDESH: Synthesizing Grounded Instruction Tuning Data for 13 Indic Languagescited by 4
- 2024NILE: Internal Consistency Alignment in Large Language Modelscited by 2
- 2025SNaRe: Domain-aware Data Generation for Low-Resource Event Detectioncited by 2
- 2025Code Review Without Borders: Evaluating Synthetic vs. Real Data for Review Recommendationcited by 1
- 2025Verification Limits Code LLM Trainingcited by 1
- 2025WebLeaper: Empowering Efficiency and Efficacy in WebAgent via Enabling Info-Rich Seeking28 Oct 2025
- 2025UPDESH: Synthesizing Grounded Instruction Tuning Data for 13 Indic Languages25 Sep 2025
- 2025Verification Limits Code LLM Training25 Sep 2025
- 2025Code Review Without Borders: Evaluating Synthetic vs. Real Data for Review Recommendation5 Sep 2025
- 2025CodeEvo: Interaction-Driven Synthesis of Code-centric Data through Hybrid and Iterative Feedback25 Jul 2025
- 2025SNaRe: Domain-aware Data Generation for Low-Resource Event Detection24 Feb 2025
- 2024NILE: Internal Consistency Alignment in Large Language Models21 Dec 2024
Similar, not cited
Close in wording, no citation either way
- 2025Synthetic Data Generation Using Large Language Models: Advances in Text and Code
- 2025Increasing LLM Coding Capabilities through Diverse Synthetic Coding Tasks
- 2026CodeAlchemy: Synthetic Code Rewriting at Scale
- 2023L2CEval: Evaluating Language-to-Code Generation Capabilities of Large Language Models
- 2024CodeLutra: Boosting LLM Code Generation via Preference-Guided Refinement
- 2024DevEval: A Manually-Annotated Code Generation Benchmark Aligned with Real-World Code Repositories
- 2024Large Language Models as Test Case Generators: Performance Evaluation and Enhancement
- 2024Code Less, Align More: Efficient LLM Fine-tuning for Code Generation with Data Pruning