atlas

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

MathFimer: Enhancing Mathematical Reasoning by Expanding Reasoning Steps through Fill-in-the-Middle Task

ICLR 2026 · Large language models › Reasoning and chain of thought · approach: Search and self-correction in reasoning · 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.

Trains a fill-in-the-middle model (MathFimer-7B) on NuminaMath-FIM to insert intermediate steps into existing math CoT solutions, and shows SFT on the expanded data improves GSM8K, MATH, Math Odyssey and OlympiadBench-EN accuracy.

Problem

Existing math reasoning training data often has coarse-grained solution steps, and current step-expansion methods rely on stronger external models or expensive search (e.g., MCTS), which can introduce errors by generating new chains instead of building on verified solutions.

Approach

Adapt the code fill-in-the-middle paradigm to math solutions: decompose verified CoT solutions into steps, hold out one middle step with prefix/suffix context, and train a 7B model (from Qwen2.5-Math-7B) to reconstruct it, then insert generated steps between existing steps (filtered by a similarity threshold) to create expanded datasets.

Key results

Surprising findings

Limitations

Experimental setup

Datasets: NuminaMath-CoT GSM8K MATH MathInstruct-CoT MetaMathQA ScaleQuest-Math DAPO-Math-17K

Benchmarks: GSM8K MATH Math Odyssey OlympiadBench-EN BBH GPQA_diamond MMLU_redux LogicBench HellaSwag

Metrics: average accuracy over 16 samples at temperature 0.7 PRM score

Baselines: prompt-based step expansion (Llama-3.2-3B-Instruct) DPO Step-DPO RFT PPO

Builds on: fill-in-the-middle training chain-of-thought prompting Qwen2.5-Math NuminaMath-CoT

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