atlas

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

Physics of Language Models: Part 2.2, How to Learn From Mistakes on Grade-School Math Problems

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

Shows that pretraining GPT2-style models on synthetic iGSM math data containing injected errors followed by immediate corrections ("retry data") improves reasoning accuracy over error-free pretraining at equal token budget, while retry-upon-regret inference and LoRA finetuning provide much smaller gains.

Problem

Whether language models can learn to correct their own reasoning mistakes immediately during generation, and whether including error-correction data in pretraining (rather than relying on multi-round self-correction prompting) improves reasoning accuracy over training on error-free data.

Approach

Uses fully controllable synthetic iGSM math data to insert erroneous steps followed by a [BACK] token and correct steps into pretraining data, showing that this retry data (without label masking) raises accuracy versus error-free data at the same token budget, and that error-correction is a skill not easily acquired by LoRA finetuning or by probing-guided retries.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Pretrain on retry data rather than the same-token amount of error-free dataGPT2-12-12 · iGSM-med qp op=23accuracy: 78% to 94%Helped
Pretrain on retry data rather than error-free dataGPT2-12-12 · iGSM-med pq op=23accuracy: 78% to 95%Helped
Use retry upon regret instead of original generationGPT2-12-12 · iGSM-med pq op=23accuracy: 78% to 80%Helped
Increase retry_rate within a reasonable range (ablation)GPT2-12-12 pretrained on retry data · iGSM reasoning tasksaccuracyHelped
Add label masking on erroneous tokens (ablation)GPT2-12-12 pretrained on retry data · iGSM reasoning tasksaccuracyNo clear effect
Fine-tune an error-free pretrained model with retry data using LoRA (ablation)GPT2-12-12 · iGSM reasoning tasksaccuracyNo clear effect
Use small-rank LoRA fine-tuning on retry data instead of error-free pretraining (ablation)GPT2-12-12 · iGSM reasoning tasksaccuracyHurt
Use full fine-tuning on retry data instead of LoRA fine-tuning (ablation)GPT2-12-12 pretrained on error-free data · iGSM reasoning tasksaccuracyHelped
Use retry_weak fake mistakes instead of perfectly designed retry data (ablation)GPT2-12-12 · iGSM reasoning tasksaccuracyHelped
Use retry_miss fake mistakes instead of perfectly designed retry data (ablation)GPT2-12-12 · iGSM reasoning tasksaccuracyHelped

Surprising findings

Limitations

Experimental setup

Datasets: iGSM-med iGSM-hard GSM8K (referenced for design)

Benchmarks: iGSM-med (OOD op 20-23, reask) iGSM-hard (OOD op 28-32)

Metrics: accuracy (fully-correct intermediate steps) average retries per problem unnecessary operations per solution

Baselines: beam search error-free pretraining retry upon regret (version1/version2/versionP) LoRA finetuning on retry data full finetuning (continued pretraining)

Builds on: iGSM synthetic math dataset Physics of Language Models Part 2.1 LoRA GPT-2

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