TL;DR
Distilling reasoning capabilities from massive large language models (LLMs) into smaller, efficient student models usually results in superficial pattern memorization rather than true understanding. To fix this, the authors introduce ExGRPO, a reinforcement learning distillation framework that uses cognitive-science-inspired "explanatory probes" to challenge student models, forcing them to internalize underlying logic and dramatically improving their generalization.
What Problem Does This Paper Address?
Knowledge distillation (KD) is the standard way to shrink LLMs, making them computationally viable for edge devices or low-resource settings. Typically, this is done via Supervised Fine-Tuning (SFT), where a smaller "student" model is trained to mimic the exact outputs or Chain-of-Thought (CoT) steps of a larger "teacher" model.
However, the authors reveal a critical flaw: distillation amplifies generalization limitations. Instead of learning how to reason, student models often engage in rote pattern matching. A prime example of this is the reversal curse: a distilled model might easily solve a forward problem (e.g., "John started with 5 apples and gave 2 to Mary. How many are left? $\rightarrow$ 3") but completely fail when the question is inverted ("John has 3 apples left. He gave 2 to Mary. How many did he start with?"), as shown in Figure 1. Prior attempts to fix this simply trained models on reversed data, which just teaches them another mechanical mapping rather than a conceptual grasp of the underlying relationships.
Methods
The authors tackle this problem from two angles: data generation and reinforcement learning optimization.
- Explanatory Inversion (EI): Inspired by cognitive science, EI moves beyond simple question reversal. It deconstructs the teacher's reasoning path into $N=10$ distinct categories of template-based "explanatory probes." These probes force the student to justify specific logical steps, explore counterfactual scenarios (e.g., "How would the outcome change if the premise stated 'most' rather than 'all'?"), or explain causal chains.
- Explanatory GRPO (ExGRPO): Standard reinforcement learning algorithms like Group Relative Policy Optimization (GRPO) rely purely on final answer correctness, making them blind to intermediate reasoning flaws. ExGRPO introduces a novel Dialogue Structure Utility Bonus ($r_{dsu}$). During training, the student engages in a multi-turn dialogue answering these randomized EI probes before tackling the final question. The framework rewards the student if completing the full sequence of probes (Scenario A) yields better final accuracy than completing only a partial sequence (Scenario B). This explicitly incentivizes the model to maintain a coherent reasoning trajectory.
Crucially, these multi-turn dialogues are a training-time-only mechanism. At inference time, the student model processes the input question in a single pass, introducing zero latency overhead.
Datasets
The framework was evaluated across a diverse suite of 12 datasets:
- Held-in / Training Tasks: StrategyQA (SQA), CommonsenseQA (CSQA), ARC-Challenge (ARC-c), MATH, GSM8K, TabMWP, ANLI, and Date Understanding.
- Out-of-Distribution (OOD) Evaluation Tasks: BoolQ, OpenBookQA, e-SNLI, and GSM8K-Reversal.
- Models Used: Gemini-1.5-Pro and Meta-Llama-3-70B-Instruct served as teachers; Gemma-7b-it and Qwen2.5-7b-instruct were used as student models.
Key Insights and Ideas
- Distillation is a double-edged sword: While it transfers knowledge, standard SFT distillation locks the student into a rigid target, exacerbating exposure bias and superficial memorization.
- Probing as a conceptual scaffold: Forcing a model to answer "why" an operation is correct or "what if" conditions changed prevents it from simply memorizing text strings.
- RL over SFT for internalization: Reinforcement learning allows the student model to explore reasoning pathways dynamically. Coupled with the dialogue structure bonus, the model learns to treat intermediate steps as a cohesive logical unit.
Key Results
- Substantial Accuracy Gains: When using Gemma-7b as a student, ExGRPO achieved an average 20.39% absolute increase over zero-shot performance and a 6.02% improvement over state-of-the-art distillation baselines.
- Exceptional Data Efficiency: ExGRPO proved highly sample-efficient, matching or surpassing vanilla fine-tuning on 100% of the data while using only 10% to 25% of the training samples.
- Robust OOD Generalization: On unseen out-of-distribution tasks, ExGRPO outperformed the strong RevThink baseline by +4.89% on Gemma and +3.28% on Qwen, demonstrating that the student models successfully internalized flexible reasoning strategies.
Limitations and Future Work
- Teacher Dependence: The quality and nuance of the generated explanatory probes are fundamentally bounded by the teacher model's capabilities (e.g., Gemini-1.5-Pro). Gaps or biases in the teacher's logic can propagate to the student.
- Manual Probe Design: The 10 categories of EI probes were manually engineered based on cognitive science principles. While effective, this templated approach may not scale seamlessly to highly specialized or niche domains without manual adjustment.
- OOD Scope: The out-of-distribution evaluations primarily focused on structural and format-level perturbations rather than broad semantic or domain-level shifts.
Summary updated