Abstract
ChatGLM-Math introduces a Self-Critique pipeline that allows Large Language Models (LLMs) to improve their mathematical reasoning using their own feedback. By training a specialized "Math-Critique" model to score and explain solutions, the researchers successfully boosted mathematical performance while simultaneously improving general language capabilities—effectively bypassing the common "alignment tax" where specialized tuning degrades general versatility.
Introduction: The Alignment Tax
LLMs often face a zero-sum game during alignment. Fine-tuning a model on massive amounts of mathematical data (Supervised Fine-Tuning or SFT) often causes its general linguistic "flavor" and conversational flexibility to suffer. Conversely, standard Reinforcement Learning from Human Feedback (RLHF) focuses on human preference (helpfulness and safety), which frequently overlooks the rigorous logical steps and objective accuracy required for complex math. This discrepancy is known as the alignment tax. The authors aim to create a model that excels at math without becoming a "math-only" tool, ensuring it remains a capable general-purpose assistant.
Methodology: The Self-Critique Pipeline
The core of the paper is a three-step Self-Critique pipeline designed to automate the collection of high-quality training data from the model itself.
- Training the Math-Critique Model: The authors first train a specialized version of the base model (ChatGLM3-32B) to act as a judge. This "critic" doesn't just provide a score (1–10); it generates an explanatory analysis of the solution's logic. It was trained on a mix of pseudo-labeled data (from larger models like GPT-4) and a small set of manually annotated high-quality samples.
- Stage 1: Rejective Fine-Tuning (RFT): The base model generates multiple candidate answers for a set of math problems. The Math-Critique model scores them, and only the highest-quality, most diverse "correct" responses are kept to create a new SFT dataset.
- Stage 2: Direct Preference Optimization (DPO): To further refine the model, the authors use the critic to identify "chosen" (correct/high-score) and "rejected" (incorrect/low-score) pairs from the model's own outputs. The model is then trained to prefer the logic of the "chosen" answers.
Evaluation and Performance
The researchers utilized a broad spectrum of data, including academic benchmarks like GSM8k and MATH, and a new challenging benchmark called MATHUSEREVAL. To ensure general language skills were preserved, AlignBench and MT-Bench were used. Finally, the 2023 Hungarian National High School Exam served as an out-of-distribution (OOD) "blind" test to check for data contamination.
Key Results
The results demonstrate that the Self-Critique pipeline allows a 32B model to punch well above its weight class:
- Math Gains: On the average of GSM8k and MATH, the model improved from a score of 52.4 to 61.6 (+17.5%).
- Language Gains: On AlignBench, it improved from 7.37 to 7.80 (+5.85%), proving that math proficiency can be gained without sacrificing general language performance.
- OOD Performance: On the Hungarian Exam, the model achieved a score of 73, the highest among all known open-parameter models at the time of publication, outperforming models twice its size such as DeepSeek-67B.
Discussion and Conclusion
The study highlights that self-supervision is sufficient for model improvement; a model can bootstrap its own intelligence if taught to critique itself. Furthermore, providing analysis rather than binary labels significantly improves the feedback signal.
Despite the gains, limitations remain in "graphic thinking" (spatial reasoning) and precision errors in long multi-step decimal calculations. Future work will focus on multimodal integration to "see" diagrams and better tool-use, such as Python interpreters, to handle raw computation.
Summary updated