LearnQuestion bank

Design a system that makes a language model much better at solving maths problems. Cover data, training stages and evaluation.

ResearchSystem designHard

Answer it yourself first, out loud or on paper, then compare.

Answer

Model answer, written in a candidate's voice

In short

  • Data: curated problems with worked solutions plus synthetic problems that are generated and independently verified, then deduplicated and decontaminated.
  • SFT: train on worked solutions with a clear final-answer format, while keeping held-out formats to avoid template lock-in.
  • RL: use verifiable rewards from answer checking; outcome reward primary, process reward only where steps are machine-checkable.
  • Tools: add a code interpreter for arithmetic, numeric checks and symbolic verification, with the final answer still checked independently.
  • Decoding: self-consistency sampling with majority vote or a verifier over multiple sampled solutions.
  • Evaluation: contamination-checked held-out sets in difficulty tiers, reporting per-tier accuracy and format robustness.
  • Risks: reward hacking and format overfitting; mitigate with randomised prompts, robust checkers, held-out formats and human audits.

In full

I would treat maths as a verifiable pipeline rather than a style task: build a curated set of problems with worked solutions, then add synthetic problems only after independent verification by answer checking, symbolic equivalence or execution, and deduplicate and decontaminate everything before training. SFT would teach clear worked reasoning and a consistent final-answer format, but I would keep held-out prompt formats so the model does not merely memorise one template. RL would use verifiable rewards from checking the final answer, with outcome reward as the primary signal and process reward only where steps are machine-checkable, because process rewards are noisier and easier to game. I would give the model a code interpreter for arithmetic, numeric evaluation and symbolic checks, while still requiring the final answer to be verified independently rather than trusting the tool output. At inference I would use self-consistency: sample multiple solutions, then majority-vote or rerank with a verifier. Evaluation would use contamination-checked held-out sets split into difficulty tiers, reporting per-tier accuracy, calibration and performance under unseen formats, with explicit checks for reward hacking and format overfitting such as randomised prompts, robust answer checkers and human audits of suspicious high-reward traces.

Corrected by an independent AI reviewer.

What a strong answer covers

  • Data: curated problems with solutions, plus verified synthetic data.
  • SFT on worked solutions; RL with verifiable rewards (answer checking), and a choice between process vs outcome rewards.
  • Tool use, e.g. a code interpreter.
  • Self-consistency decoding.
  • Evaluation: contamination-checked held-out sets in difficulty tiers.
  • Risks: reward hacking, format overfitting.

Common mistakes

  • Unverified synthetic data.
  • A contaminated eval set.