InverseCoder: Self-improving Instruction-Tuned Code LLMs with Inverse-Instruct
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
Other references · 17
- 2023GPT-4 Technical Reportcited by 18,396
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2023Qwen Technical Reportcited by 3,344
- 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,191
- 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,125
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 885
- 2023Gemini: A Family of Highly Capable Multimodal Modelscited by 872
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
- 2023Eureka: Human-Level Reward Design via Coding Large Language Modelscited by 571
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
5 more
- 2023Magicoder: Empowering Code Generation with OSS-Instructcited by 256
- 2024WorldCoder, a Model-Based LLM Agent: Building World Models by Writing Code and Interacting with the Environmentcited by 107
- 2023WaveCoder: Widespread And Versatile Enhancement For Code Large Language Models By Instruction Tuningcited by 42
- 2023LLMs for Science: Usage for Code Generation and Data Analysiscited by 34
- 2024Autonomous Data Selection with Zero-shot Generative Classifiers for Mathematical Textscited by 27
Built on by
Citing papers per year: 2025: 7; 2026: 1.
8 papers.
- 2025OpenCodeReasoning-II: A Simple Test Time Scaling Approach via Self-Critiquecited by 25
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 15
- 2025Co-PatcheR: Collaborative Software Patching with Component(s)-specific Small Reasoning Modelscited by 12
- 2025textttDroid: A Resource Suite for AI-Generated Code Detectioncited by 9
- 2025RefineCoder: Iterative Improving of Large Language Models via Adaptive Critique Refinement for Code Generationcited by 8
- 2025Towards Formal Verification of LLM-Generated Code from Natural Language Promptscited by 8
- 2025Success is in the Details: Evaluate and Enhance Details Sensitivity of Code LLMs through Counterfactualscited by 1
- 2026Tev: Scaling Long-Horizon Agentic Environments with Dense Progress Rewardscited by 0
- 2026Tev: Scaling Long-Horizon Agentic Environments with Dense Progress Rewards13 Oct 2026
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025Towards Formal Verification of LLM-Generated Code from Natural Language Prompts17 Jul 2025
- 2025textttDroid: A Resource Suite for AI-Generated Code Detection11 Jul 2025
- 2025OpenCodeReasoning-II: A Simple Test Time Scaling Approach via Self-Critique11 Jul 2025
- 2025Co-PatcheR: Collaborative Software Patching with Component(s)-specific Small Reasoning Models25 May 2025
- 2025Success is in the Details: Evaluate and Enhance Details Sensitivity of Code LLMs through Counterfactuals20 May 2025
- 2025RefineCoder: Iterative Improving of Large Language Models via Adaptive Critique Refinement for Code Generation13 Feb 2025
Similar, not cited
Close in wording, no citation either way
- 2024CodecLM: Aligning Language Models with Tailored Synthetic Data
- 2025CodeBoost: Boosting Code LLMs by Squeezing Knowledge from Code Snippets with RL
- 2025Rewriting Pre-Training Data Boosts LLM Performance in Math and Code
- 2025Seed-Coder: Let the Code Model Curate Data for Itself
- 2024Enhancing and Assessing Instruction-Following with Fine-Grained Instruction Variants
- 2024Semi-Instruct: Bridging Natural-Instruct and Self-Instruct for Code Large Language Models
- 2023Reflection-Tuning: Data Recycling Improves LLM Instruction-Tuning
- 2024CodeLutra: Boosting LLM Code Generation via Preference-Guided Refinement