mlsanityData to 7 Oct 2026

Unveiling the Impact of Coding Data Instruction Fine-Tuning on Large Language Models Reasoning

arXiv 2405.20535 ↗First posted 30 May 2024cs.AI cs.CLcited by 31

On the map: LLM reasoning → Reasoning benchmarks and evaluation

Abstract (arXiv)

Instruction Fine-Tuning (IFT) significantly enhances the zero-shot capabilities of pretrained Large Language Models (LLMs). While coding data is known to boost LLM reasoning abilities during pretraining, its role in activating internal reasoning capacities during IFT remains understudied. This paper investigates a key question: How does coding data impact LLMs' reasoning capacities during IFT stage? To explore this, we thoroughly examine the impact of coding data across different coding data proportions, model families, sizes, and reasoning domains, from various perspectives. Specifically, we create three IFT datasets with increasing coding data proportions, fine-tune six LLM backbones across different families and scales on these datasets, evaluate the tuned models' performance across twelve tasks in three reasoning domains, and analyze the outcomes from three broad-to-granular perspectives: overall, domain-level, and task-specific. Our holistic analysis provides valuable insights into each perspective. First, coding data tuning enhances the overall reasoning capabilities of LLMs across different model families and scales. Moreover, while the impact of coding data varies by domain, it shows consistent trends within each domain across different model families and scales. Additionally, coding data generally provides comparable task-specific benefits across model families, with optimal proportions in IFT datasets being task-dependent.

Key facts. Cited by 31 papers in the map (data through 7 Oct 2026). Placed in Reasoning benchmarks and evaluation, one of 17 directions in LLM reasoning. Builds on 34 of its 50 references that are in the map. First posted on arXiv 30 May 2024.

Builds on

34 of 50 references.

Closest ancestors · 5

Same direction, newest first

  1. 2023Phenomenal Yet Puzzling: Testing Inductive Reasoning Capabilities of Language Models with Hypothesis Refinement12 Oct
  2. 2023At Which Training Stage Does Code Data Help LLMs Reasoning?28 Sep
  3. 2023LLaMA: Open and Efficient Foundation Language Models27 Feb
  4. 2022Language Models of Code are Few-Shot Commonsense Learners13 Oct
  5. 2022Explanations from Large Language Models Make Small Reasoners Better13 Oct

Other references · 29

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2023GPT-4 Technical Reportcited by 18,132
  3. 2022Training language models to follow instructions with human feedbackcited by 15,712
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  5. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  6. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
  7. 2023Qwen Technical Reportcited by 3,273
  8. 2023Mistral 7Bcited by 3,065
  9. 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
  10. 2022Emergent Abilities of Large Language Modelscited by 2,483
  11. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
  12. 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,116
17 more
  1. 2024Gemma: Open Models Based on Gemini Research and Technologycited by 889
  2. 2021Are NLP Models really able to Solve Simple Math Word Problems?cited by 861
  3. 2023The Flan Collection: Designing Data and Methods for Effective Instruction Tuningcited by 734
  4. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
  5. 2023Instruction Tuning with GPT-4cited by 676
  6. 2023WizardMath: Empowering Mathematical Reasoning for Large Language Models via Reinforced Evol-Instructcited by 618
  7. 2023MAmmoTH: Building Math Generalist Models through Hybrid Instruction Tuningcited by 483
  8. 2015Towards AI-Complete Question Answering: A Set of Prerequisite Toy Taskscited by 309
  9. 2024A Survey on Data Selection for Language Modelscited by 230
  10. 2023Exploring the Limits of ChatGPT for Query or Aspect-based Text Summarizationcited by 122
  11. 2022Holistic Evaluation of Language Modelscited by 115
  12. 2023AlpaCare:Instruction-tuned Large Language Models for Medical Applicationcited by 88
  13. 2024A Survey on Large Language Models for Critical Societal Domains: Finance, Healthcare, and Lawcited by 72
  14. 2022Code4Struct: Code Generation for Few-Shot Event Structure Predictioncited by 70
  15. 2023Evaluating Instruction-Tuned Large Language Models on Code Comprehension and Generationcited by 49
  16. 2023AlpaGasus: Training A Better Alpaca with Fewer Datacited by 19
  17. 2023Enhancing Small Medical Learners with Privacy-preserving Contextual Promptingcited by 11

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 10; 2025: 14; 2026: 7.

31 papers.

Sort:

By area:

  1. 2024Small Language Models: Survey, Measurements, and Insightscited by 109
  2. 2024To Code, or Not To Code? Exploring Impact of Code in Pre-trainingcited by 47
  3. 2025Code to Think, Think to Code: A Survey on Code-Enhanced Reasoning and Reasoning-Driven Code Intelligence in LLMscited by 47
  4. 2024Evaluating Language Models as Synthetic Data Generatorscited by 32
  5. 2024Sketch2Code: Evaluating Vision-Language Models for Interactive Web Design Prototypingcited by 29
  6. 2025Learning to See Before Seeing: Demystifying LLM Visual Priors from Language Pre-trainingcited by 23
  7. 2024EMMA-500: Enhancing Massively Multilingual Adaptation of Large Language Modelscited by 16
  8. 2025Massive Supervised Fine-tuning Experiments Reveal How Data, Layer, and Training Factors Shape LLM Alignment Qualitycited by 14
  9. 2025SPICE: An Automated SWE-Bench Labeling Pipeline for Issue Clarity, Test Coverage, and Effort Estimationcited by 11
  10. 2026Coding Agents are Effective Long-Context Processorscited by 11
  11. 2024CodePMP: Scalable Preference Model Pretraining for Large Language Model Reasoningcited by 10
  12. 2024Only-IF:Revealing the Decisive Effect of Instruction Diversity on Generalizationcited by 7
19 more
  1. 2024Thinking with Knowledge Graphs: Enhancing LLM Reasoning Through Structured Datacited by 6
  2. 2025Reasoning-OCR: Can Large Multimodal Models Solve Complex Logical Reasoning Problems from OCR Cues?cited by 6
  3. 2025When Style Breaks Safety: Defending LLMs Against Superficial Style Alignmentcited by 6
  4. 2025On Code-Induced Reasoning in LLMscited by 5
  5. 2025Benchmark Profiling: Mechanistic Diagnosis of LLM Benchmarkscited by 5
  6. 2026Automatic Textbook Formalizationcited by 5
  7. 2025Discovering Hierarchical Latent Capabilities of Language Models via Causal Representation Learningcited by 4
  8. 2024CoinMath: Harnessing the Power of Coding Instruction for Math LLMscited by 2
  9. 2025Multi Agent based Medical Assistant for Edge Devicescited by 2
  10. 2025Latent Traits and Cross-Task Transfer: Deconstructing Dataset Interactions in LLM Fine-tuningcited by 2
  11. 2025From Questions to Queries: An AI-powered Multi-Agent Framework for Spatial Text-to-SQLcited by 2
  12. 2025A Latent Variable Framework for Scaling Laws in Large Language Modelscited by 2
  13. 2025R1-Ranker: Teaching LLM Rankers to Reasoncited by 1
  14. 2026Not All Code Is Equal: A Data-Centric Study of Code Complexity and LLM Reasoningcited by 1
  15. 2026Can Large Language Models Generalize Procedures Across Representations?cited by 1
  16. 2026Reforming the Mechanism: Editing Reasoning Patterns in LLMs with Circuit Reshapingcited by 1
  17. 2024FRoG: Evaluating Fuzzy Reasoning of Generalized Quantifiers in Large Language Modelscited by 0
  18. 2026The Role of Dataset Linguistic Structure in the Cultural Awareness of Large Language Modelscited by 0
  19. 2026How code helps different tasks? A decompositional lens on LLM post-trainingcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2023How Abilities in Large Language Models are Affected by Supervised Fine-tuning Data Composition
  2. 2023Dynamics of Instruction Fine-Tuning for Chinese Large Language Models
  3. 2025How Instruction and Reasoning Data shape Post-Training: Data Quality through the Lens of Layer-wise Gradients
  4. 2024Learning or Self-aligning? Rethinking Instruction Fine-tuning
  5. 2025Front-Loading Reasoning: The Synergy between Pretraining and Post-Training Data
  6. 2025OpenCodeReasoning: Advancing Data Distillation for Competitive Coding
  7. 2026Do Instruction-Tuned Models Always Perform Better Than Base Models? Evidence from Math and Domain-Shifted Benchmarks
  8. 2025Cross-Task Benchmarking and Evaluation of General-Purpose and Code-Specific Large Language Models ↗