atlas

Research map / Large language models / Instruction and fine-tuning

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

AAAI 2025 · Large language models › Instruction and fine-tuning · approach: Instruction data selection · 6 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Studies how the proportion of coding data in instruction fine-tuning (0%, 50%, 100%) affects zero-shot reasoning across six LLM families, evaluated on twelve symbolic, logical, and arithmetic tasks.

Problem

Coding data is known to boost LLM reasoning during pretraining, but its effect on out-of-domain reasoning during instruction fine-tuning (IFT) is underexplored.

Approach

Builds three equal-size ShareGPT-derived IFT mixtures with 0%, 50%, and 100% coding data (coding labels assigned by GPT-3.5-turbo), fine-tunes six base model families, and analyzes gains overall, per reasoning domain, and per task.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Increase coding data from 0% to 100%Llama-1-7B IFT · 12 reasoning tasksaverage accuracy (%): 23.2 -> 27.9; +4.6Helped
Increase coding data from 0% to 100%Llama-2-7B IFT · 12 reasoning tasksaverage accuracy (%): 26.7 -> 30.6; +3.9Helped
Increase coding data from 0% to 50% (ablation)Llama-3-8B IFT · 12 reasoning tasksaverage accuracy (%): 41.4 -> 42.9Helped
Increase coding data from 0% to 100%Llama-3-8B IFT · 12 reasoning tasksaverage accuracy (%): 41.4 -> 42.6; +1.5Helped
Increase coding data from 0% to 100%Mistral-7B-v0.1 IFT · 12 reasoning tasksaverage accuracy (%): 42.0 -> 52.3; +10.3Helped
Increase coding data from 0% to 100%Qwen-1.5-7B IFT · 12 reasoning tasksaverage accuracy (%): 42.2 -> 47.4; + 5.5Helped
Increase coding data from 0% to 100%Gemma-7B IFT · 12 reasoning tasksaverage accuracy (%): 22.3 -> 30.0; + 7.7Helped
Use 100% coding data rather than 50% (ablation)Llama-3-8B IFT · 12 reasoning tasksaverage accuracy (%): 42.9 -> 42.6Hurt
Add coding data to the IFT mixtureLlama-1 and Llama-2 IFT · Symbolic reasoningaccuracyHelped
Increase coding data from 50% to 100%Llama-1 and Llama-2 IFT · Logical reasoningaccuracyHelped
Replace diverse General or Half-half data with 100% coding dataLlama-1 and Llama-2 IFT · Arithmetic reasoningaccuracyHurt
Include coding data in Half-half or Code mixturesLlama-1-13B and Llama-2-13B IFT · Symbolic and logical tasksaccuracyHelped

Surprising findings

Limitations

Experimental setup

Datasets: ShareGPT Symbolic synthetic tasks (First Letter, Last Letter, Reverse List, Coin Flip) Clutrr List Functions Babi-Inductive Babi-Deductive GSM8K SVAMP ASDiv MAWPS

Benchmarks: First Letter Last Letter Reverse List Coin Flip Clutrr List Functions Babi-Inductive Babi-Deductive GSM8K SVAMP ASDiv MAWPS

Metrics: accuracy

Baselines: General-tuned model (0% coding data) Half-half-tuned model (50% coding data)

Builds on: Alpaca ShareGPT

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy