atlas

Research map / Large language models / Agents, code and math

Physics of Language Models: Part 2.1, Grade-School Math and the Hidden Reasoning Process

ICLR 2025 · Large language models › Agents, code and math · approach: Mathematical and structural reasoning benchmarks · 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.

Builds a controlled synthetic grade-school math dataset (iGSM) and pretrains GPT2-style models from scratch to probe how language models solve math problems internally.

Problem

Whether language models truly learn reasoning skills on grade-school math or merely memorize solution templates, and what hidden mental reasoning process they use; existing internet-pretrained models and GSM8K-style data contamination make these questions hard to answer.

Approach

Generate an effectively unlimited, contamination-free synthetic grade-school math dataset from controlled dependency graphs, pretrain GPT2-style models from scratch on it, and use a V(ariable)-probing method (frozen model plus rank-8 embedding update and linear head) to reveal internal planning states such as necessity and dependency of parameters.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Pretrain GPT2-RoPE on synthetic iGSM dataGPT2-RoPE · iGSM same distributionaccuracy: 99%Helped
Pretrain GPT2-RoPE on synthetic iGSM dataGPT2-RoPE · iGSM OOD longer reasoning lengthsaccuracyHelped
Use a deeper, narrower model rather than a shallower, wider modelGPT2 · iGSM math reasoningreasoning lengthHelped
Use a 4-layer, 1920-dimension model instead of a 20-layer, 576-dimension modelGPT2 · iGSM math reasoningreasoning lengthHurt
Replace GPT2 architecture with Llama architectureGPT2-RoPE · iGSM math reasoningaccuracyNo clear effect
Use CoT solutions that define the parameter before giving intermediate stepsGPT2-RoPE · iGSMaccuracyHelped
Generate only necessary solution steps rather than computing unnecessary parametersGPT2-RoPE · iGSM including OODunnecessary computationsHelped
Probe model states after pretraining on iGSMGPT2-RoPE · iGSM parameter dependencies, including unnecessary parametersdependency identificationHelped
Use V-probing to identify incorrect necessity predictionsGPT2-RoPE · iGSM reasoning errorsprediction of unnecessary parameters as necessaryHurt
Use V-probing to identify readiness errorsGPT2-RoPE · iGSM reasoning errorsready-to-compute predictionsHurt

Surprising findings

Limitations

Experimental setup

Datasets: iGSM-med iGSM-hard GSM8K

Benchmarks: iGSM-med iGSM-hard

Metrics: accuracy probing accuracy unnecessary parameters per solution

Baselines: GPT-4 GPT-4o Llama randomly-initialized transformer probing

Builds on: GPT-2 RoPE GSM8K

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