atlas

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

MathGAP: Out-of-Distribution Evaluation on Problems with Arbitrarily Complex Proofs

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

Introduces MathGAP, a synthetic generator of arithmetic word problems with controllable proof-tree depth, width, shape and sentence ordering, used to test OOD easy-to-hard generalization of LLMs with in-context CoT demonstrations.

Problem

Existing math word problem benchmarks are likely contaminated and do not systematically vary proof complexity, so it is unclear whether LLMs generalize to problems with deeper, wider, or nonlinear arithmetic proofs.

Approach

Formalize math word problems as world models of logical forms and inference rules, generate problems and CoT traces top-down from sampled proof trees with controlled depth, width, shape and leaf ordering, and use the generator to build OOD test sets of increasing complexity.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Increase the output-token limit from 4,096 to 10,000o1-preview · MathGAP nonlinear depth 7answer accuracy: 0.25% -> 76.5%Helped
Increase the output-token limit to 10,000DeepSeek-R1 · MathGAP nonlinear depth 6answer accuracy: 77.5%Helped
Randomly order the problem sentenceso1 · MathGAP nonlinear depth 7 (100 problems)answer accuracy: 5.0%Hurt
Randomly order the problem sentencesDeepSeek-R1 · MathGAP nonlinear depth 7 (100 problems)answer accuracy: 11.0%Hurt
Increase proof depth and/or widthLLMs evaluated with MathGAP · MathGAP arithmetic problemsanswer accuracyHurt
Increase proof width rather than proof depthLLMs evaluated with MathGAP · MathGAP linear problemsanswer accuracyHurt
Use nonlinear rather than linear proof structuresLLMs evaluated with MathGAP · MathGAP arithmetic problemsanswer accuracyHurt
Move a sentence from canonical ordering to the frontLLMs evaluated with MathGAP · MathGAP linear depth 5 order generalizationanswer accuracyHurt
Use a range of OOD examples with varying complexity instead of only primitive examplesLLMs evaluated with MathGAP · MathGAP linear depth generalizationanswer accuracyHelped
Provide in-context examples rather than zero-shot promptingLLMs evaluated with MathGAP · MathGAP easy-to-hard generalizationanswer accuracyMixed
Provide in-distribution examples rather than zero-shot promptingLLMs evaluated with MathGAP · MathGAP nonlinear depth generalizationanswer accuracyMixed

Surprising findings

Limitations

Experimental setup

Benchmarks: MathGAP

Metrics: answer accuracy 95% bootstrap confidence intervals

Baselines: zero-shot prompting in-distribution in-context examples primitive in-context examples

Builds on: chain-of-thought prompting GSM8K Dynabench

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