Anchoring Reasoning Distillation via Syntactic Constraints
Zehua Cheng, Wei Dai, Jiahao Sun
NeurIPS page · OpenReview · Open on the map
Category: LLM Post-Training: RL & Distillation › Reasoning Distillation for LLMs · Type: new method · Keywords: reasoning distillation, syntactic constraints, teacher trace verification, loss masking, mathematical benchmarks, compact models
Areas: LLM Reasoning › Reasoning Optimization › Reasoning Distillation; Evaluation & Benchmarks › Language Model and Agent Benchmarks › Test-Time Selection; RL for LLMs & Agents › Distillation Reinforcement Learning › Reasoning distillation
Summary
ARU introduces Atomic Reasoning Units with syntactic constraints to distill complex reasoning into compact models while filtering out wrong teacher traces, achieving state-of-the-art performance on math benchmarks.
Explained to a 5-year-old
We want to teach a small robot how to solve math problems by copying a big teacher's reasoning. The teacher sometimes makes mistakes, and if we copy those mistakes the robot learns wrong answers. So we give the robot a rule that says each step must be like a simple sentence: a fact, an action, and a result. We also check the teacher's wrong steps to see if the plan is good but the numbers are wrong, and we hide the wrong numbers when teaching. This helps the robot learn to solve math problems better.
Explained to a 5-year-old, longer
When we want a tiny computer program to solve hard math problems, we first teach it by copying the answers and steps from a much bigger, smarter program. The big program sometimes makes mistakes while thinking, and if we copy those mistakes the small program will also make the same errors. To avoid this, we give the small program a simple rule that each thinking step must look like three parts: a fact, an action, and a result. This rule helps separate the plan from the numbers, so the robot can learn the correct reasoning structure. We also run a check on the teacher's wrong steps to see if the plan is actually correct but the arithmetic is wrong, and we recover those good plans. Then we teach the robot using only the good plans and hide the wrong result numbers, so the robot does not learn the mistakes. By doing this, the robot can solve math problems more accurately than before. The new method works on many different math benchmarks and even lets a very small robot match the performance of a much larger one on some tasks. This makes it easier to use powerful reasoning in small models, which can be useful for devices with limited resources.
For a technical reader
The paper addresses the challenge of distilling high-quality reasoning into compact student models by leveraging teacher traces that are often partially incorrect. It introduces a grammar-based decomposition of reasoning steps, a verification step that recovers valid plans from erroneous traces, and a loss masking technique that suppresses gradients on faulty results. Empirical evaluation across a grid of student sizes, benchmarks, and baselines shows consistent superiority over existing methods, with notable gains on GSM8K, MATH-500, and AIME. The work also highlights a capability gap that narrows on pure-logic controls, suggesting arithmetic offloading as a key factor. The approach enables efficient, accurate reasoning distillation for resource-constrained deployments.
Problem
Distilling complex reasoning into small models is hindered by the scarcity of fully correct teacher traces, and training on abundant wrong traces can poison the student with incorrect arithmetic.
Method
The approach enforces a Backus-Naur-Form grammar that splits each reasoning step into premise, operation, and result, verifies wrong teacher traces to recover valid plans, and masks gradients on faulty results during student training.
Results
The approach improves GSM8K by +11.1 and MATH-500 by +9.8 over the closest baseline at 1.7B, and on AIME the Maj@8 score is 14.8 versus 9.5 for PoT. Additionally, a 0.5B ARU model matches a ≥1.5B Gold-SFT model on GSM8K (p<0.05).
Contributions
The paper introduces a grammar-based decomposition of reasoning steps, a verification procedure to recover valid plans from wrong traces, and a loss masking scheme that prevents arithmetic poisoning, enabling effective distillation of complex reasoning into compact models.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction