mlsanityData to 14 Oct 2026

InverseCoder: Self-improving Instruction-Tuned Code LLMs with Inverse-Instruct

arXiv 2407.05700 ↗First posted 8 Jul 2024cs.CL cs.AI cs.SEcited by 8

On the map: Synthetic data and self-improvement for LLMs → Code and instruction data synthesis

Abstract (arXiv)

Recent advancements in open-source code large language models (LLMs) have been driven by fine-tuning on the data generated from powerful closed-source LLMs, which are expensive to obtain. This paper explores whether it is possible to use a fine-tuned open-source model to generate additional data to augment its instruction-tuning dataset. We make two observations: (1) A code snippet can serve as the response to different instructions. (2) Instruction-tuned code LLMs perform better at translating code into instructions than the reverse. Based on these observations, we propose Inverse-Instruct, a data augmentation technique that uses a fine-tuned LLM to generate additional instructions of code responses from its own training dataset. The additional instruction-response pairs are added to the original dataset, and a stronger code LLM can be obtained by fine-tuning on the augmented dataset. We empirically validate Inverse-Instruct on a range of open-source code models (e.g. CodeLlama-Python and DeepSeek-Coder) and benchmarks (e.g., HumanEval(+), MBPP(+), DS-1000 and MultiPL-E), showing it consistently improves the base models.

Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Placed in Code and instruction data synthesis, one of 13 directions in Synthetic data and self-improvement for LLMs. Builds on 18 of its 50 references that are in the map. First posted on arXiv 8 Jul 2024.

Builds on

18 of 50 references.

Closest ancestors · 1

Same direction, newest first

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

Other references · 17

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  3. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
  4. 2021Program Synthesis with Large Language Modelscited by 3,637
  5. 2023Qwen Technical Reportcited by 3,344
  6. 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,191
  7. 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,125
  8. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
  9. 2023Gemini: A Family of Highly Capable Multimodal Modelscited by 872
  10. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
  11. 2023Eureka: Human-Level Reward Design via Coding Large Language Modelscited by 571
  12. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
5 more
  1. 2023Magicoder: Empowering Code Generation with OSS-Instructcited by 256
  2. 2024WorldCoder, a Model-Based LLM Agent: Building World Models by Writing Code and Interacting with the Environmentcited by 107
  3. 2023WaveCoder: Widespread And Versatile Enhancement For Code Large Language Models By Instruction Tuningcited by 42
  4. 2023LLMs for Science: Usage for Code Generation and Data Analysiscited by 34
  5. 2024Autonomous Data Selection with Zero-shot Generative Classifiers for Mathematical Textscited by 27

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 7; 2026: 1.

8 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024CodecLM: Aligning Language Models with Tailored Synthetic Data
  2. 2025CodeBoost: Boosting Code LLMs by Squeezing Knowledge from Code Snippets with RL
  3. 2025Rewriting Pre-Training Data Boosts LLM Performance in Math and Code
  4. 2025Seed-Coder: Let the Code Model Curate Data for Itself
  5. 2024Enhancing and Assessing Instruction-Following with Fine-Grained Instruction Variants
  6. 2024Semi-Instruct: Bridging Natural-Instruct and Self-Instruct for Code Large Language Models
  7. 2023Reflection-Tuning: Data Recycling Improves LLM Instruction-Tuning
  8. 2024CodeLutra: Boosting LLM Code Generation via Preference-Guided Refinement