AlchemistCoder: Harmonizing and Eliciting Code Capability by Hindsight Tuning on Multi-source Data
Not on the map. Why?
Abstract (arXiv)
Open-source Large Language Models (LLMs) and their specialized variants, particularly Code LLMs, have recently delivered impressive performance. However, previous Code LLMs are typically fine-tuned on single-source data with limited quality and diversity, which may insufficiently elicit the potential of pre-trained Code LLMs. In this paper, we present AlchemistCoder, a series of Code LLMs with enhanced code generation and generalization capabilities fine-tuned on multi-source data. To achieve this, we pioneer to unveil inherent conflicts among the various styles and qualities in multi-source code corpora and introduce data-specific prompts with hindsight relabeling, termed AlchemistPrompts, to harmonize different data sources and instruction-response pairs. Additionally, we propose incorporating the data construction process into the fine-tuning data as code comprehension tasks, including instruction evolution, data filtering, and code review. Extensive experiments demonstrate that AlchemistCoder holds a clear lead among all models of the same size (6.7B/7B) and rivals or even surpasses larger models (15B/33B/70B), showcasing the efficacy of our method in refining instruction-following capabilities and advancing the boundaries of code intelligence.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 37 of its 47 references that are in the map. First posted on arXiv 29 May 2024.
Builds on
37 of 47 references.
References · 37
- 2023GPT-4 Technical Reportcited by 18,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2018UMAP: Uniform Manifold Approximation and Projection for Dimension Reductioncited by 2,841
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,767
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
25 more
- 2022Code as Policies: Language Model Programs for Embodied Controlcited by 1,172
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
- 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,116
- 2017Hindsight Experience Replaycited by 1,096
- 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,057
- 2023Teaching Large Language Models to Self-Debugcited by 963
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
- 2022Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learnedcited by 702
- 2023An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuningcited by 622
- 2023Textbooks Are All You Needcited by 561
- 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 442
- 2023How Far Can Camels Go? Exploring the State of Instruction Tuning on Open Resourcescited by 405
- 2024InternLM2 Technical Reportcited by 391
- 2022The Stack: 3 TB of permissively licensed source codecited by 354
- 2023OpenChat: Advancing Open-source Language Models with Mixed-Quality Datacited by 250
- 2023Pretraining Language Models with Human Preferencescited by 245
- 2023Camels in a Changing Climate: Enhancing LM Adaptation with Tulu 2cited by 227
- 2023How Abilities in Large Language Models are Affected by Supervised Fine-tuning Data Compositioncited by 222
- 2023Chain of Hindsight Aligns Language Models with Feedbackcited by 147
- 2023Understanding Catastrophic Forgetting in Language Models via Implicit Inferencecited by 138
- 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 77
- 2023The Wisdom of Hindsight Makes Language Models Better Instruction Followerscited by 59
- 2024Code Needs Comments: Enhancing Code LLMs with Comment Augmentationcited by 16
- 2023SemiReward: A General Reward Model for Semi-supervised Learningcited by 14
Built on by
Citing papers per year: 2024: 1; 2025: 4; 2026: 1.
6 papers.
- 2025Ultra-FineWeb: Efficient Data Filtering and Verification for High-Quality LLM Training Datacited by 35
- 2025Data-efficient LLM Fine-tuning for Code Generationcited by 5
- 2025Trade in Minutes! Rationality-Driven Agentic System for Quantitative Financial Tradingcited by 4
- 2024A Problem-Oriented Perspective and Anchor Verification for Code Optimizationcited by 3
- 2025Cross-Modal Distillation For Widely Differing Modalitiescited by 2
- 2026Data Science and Technology Towards AGI Part I: Tiered Data Managementcited by 2
- 2026Data Science and Technology Towards AGI Part I: Tiered Data Management9 Feb 2026
- 2025Trade in Minutes! Rationality-Driven Agentic System for Quantitative Financial Trading6 Oct 2025
- 2025Cross-Modal Distillation For Widely Differing Modalities22 Jul 2025
- 2025Ultra-FineWeb: Efficient Data Filtering and Verification for High-Quality LLM Training Data8 May 2025
- 2025Data-efficient LLM Fine-tuning for Code Generation17 Apr 2025
- 2024A Problem-Oriented Perspective and Anchor Verification for Code Optimization17 Jun 2024