mlsanityData to 7 Oct 2026

Case2Code: Scalable Synthetic Data for Code Generation

arXiv 2407.12504 ↗First posted 17 Jul 2024cs.CLcited by 13

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

  1. 2022Self-Instruct: Aligning Language Models with Self-Generated Instructions20 Dec

Other references · 18

  1. 2022Training language models to follow instructions with human feedbackcited by 15,712
  2. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  3. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  4. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
  5. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
  6. 2023Math-Shepherd: Verify and Reinforce LLMs Step-by-step without Human Annotationscited by 895
  7. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
  8. 2022Large Language Models Can Self-Improvecited by 656
  9. 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 527
  10. 2023The Reversal Curse: LLMs trained on "A is B" fail to learn "B is A"cited by 399
  11. 2024InternLM2 Technical Reportcited by 391
  12. 2022The Stack: 3 TB of permissively licensed source codecited by 354
6 more
  1. 2015Towards AI-Complete Question Answering: A Set of Prerequisite Toy Taskscited by 309
  2. 2023Large Language Model as Attributed Training Data Generator: A Tale of Diversity and Biascited by 230
  3. 2024Orca-Math: Unlocking the potential of SLMs in Grade School Mathcited by 151
  4. 2016DeepCoder: Learning to Write Programscited by 145
  5. 2017RobustFill: Neural Program Learning under Noisy I/Ocited by 124
  6. 2023ExeDec: Execution Decomposition for Compositional Generalization in Neural Program Synthesiscited by 17

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 10; 2026: 1.

13 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2025Synthetic Data Generation Using Large Language Models: Advances in Text and Code
  2. 2025Increasing LLM Coding Capabilities through Diverse Synthetic Coding Tasks
  3. 2026CodeAlchemy: Synthetic Code Rewriting at Scale
  4. 2023L2CEval: Evaluating Language-to-Code Generation Capabilities of Large Language Models
  5. 2024CodeLutra: Boosting LLM Code Generation via Preference-Guided Refinement
  6. 2024DevEval: A Manually-Annotated Code Generation Benchmark Aligned with Real-World Code Repositories
  7. 2024Large Language Models as Test Case Generators: Performance Evaluation and Enhancement
  8. 2024Code Less, Align More: Efficient LLM Fine-tuning for Code Generation with Data Pruning