atlas

Research map / Large language models / Reasoning and chain of thought

Which Data Attributes Stimulate Math and Code Reasoning? An Investigation via Influence Functions

NeurIPS 2025 · Large language models › Reasoning and chain of thought · approach: Efficient and adaptive thinking · 0 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.

Uses EK-FAC influence functions to attribute math and code reasoning gains to SFT training examples, sequences, and tokens, and flips task difficulty in the data mix to improve Qwen2.5-7B-Instruct.

Problem

Existing data curation for LLM reasoning SFT relies on heuristics, and the cross-domain effects between math and code data and the fine-grained patterns driving reasoning gains remain poorly understood.

Approach

Adapts EK-FAC influence functions to reasoning-oriented SFT, using mean log-likelihood of correct answers as the surrogate objective, and extends attribution to sequence (counterfactual sentence removal) and token levels; uses the findings to flip the difficulty mix of training data.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use more challenging math problems and simpler coding problems in the training mixQwen2.5-Instruct-7B · AIME24accuracy: 10.0 -> 20.0Helped
Use more challenging math problems and simpler coding problems in the training mixQwen2.5-Instruct-7B · LiveCodeBenchpass@1 accuracy: 33.8 -> 35.3Helped
Use more challenging math problems and simpler coding problems in the training mixQwen2.5-Instruct-14B · AIME24accuracy: 20.0 -> 23.0Helped
Use more challenging math problems and simpler coding problems in the training mixQwen2.5-Instruct-14B · LiveCodeBenchpass@1 accuracy: 45.3 -> 45.5Helped
Simplify hard math problems and make easy coding tasks more difficult instead of flipping difficulty in the proposed direction (ablation)Qwen2.5-Instruct-7B · LiveCodeBenchpass@1 accuracy: 33.8 -> 30.0Hurt
Remove post-correct-answer exploration from training traces (ablation)Qwen2.5-7B-Instruct · MATH500accuracy: 77.2 -> 73.8Hurt
Remove post-correct-answer exploration from training traces (ablation)Qwen2.5-7B-Instruct · LiveCodeBenchpass@1 accuracy: 33.8 -> 32.0Hurt
Add exploration sentences after reaching a correct answer (ablation)Long-CoT reasoning traces · Math and code reasoninginfluence score: Math: 7.0e+07 -> 9.0e+07; Code: 7.5e+06 -> 8.4e+06Helped
Use high-difficulty math examples instead of lower-difficulty math examplesLLaMA3-8B-Base fine-tuned on MetaMathQA and OSS-Instruct · GSM8K and MBPPaverage influence scoreHelped
Use simpler code problems alongside math dataQwen2.5-7B-Instruct fine-tuned on Bespoke-Stratos-17k · LiveCodeBenchinfluence scoreHelped
Include code-domain examples in math training dataLLaMA3-8B-Base fine-tuned on MetaMathQA and OSS-Instruct · Math reasoninginfluence scoreHelped

Surprising findings

Limitations

Experimental setup

Datasets: MetaMathQA OSS-Instruct Bespoke-Stratos-17k OpenThoughts-114k MATH GSM8k

Benchmarks: AIME24 AIME25 MATH500 LiveCodeBench GSM8k MBPP

Metrics: accuracy pass@1 influence score Pearson correlation of rankings

Baselines: Bespoke-Stratos-17k SFT Difficulty-reverse-Flipped

Builds on: influence functions EK-FAC LIMO s1K Sky-T1

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