Structural Rationale Distillation via Reasoning Space Compression

Jialin Yang, Jiankun Wang, Jiajun Wu, Henry Leung, Jiayu Zhou, Steve Drew

TL;DR

Knowledge distillation from large language models (LLMs) to smaller models often fails because teachers provide inconsistent, wildly varying explanations for similar problems. This paper introduces Distillation through Reasoning Path Compression (D-RPC), a method that constrains the teacher to use a compact, dynamically updated bank of canonical reasoning paths. This structured approach reduces supervision noise, leading to significant accuracy gains across math and commonsense benchmarks while saving token costs.

What Problem Does This Paper Address?

To train a Small Language Model (SLM) to reason, researchers often use knowledge distillation: having the SLM mimic the step-by-step "Chain-of-Thought" (CoT) rationales generated by a powerful LLM teacher. However, LLMs suffer from rationale divergence. For two very similar math problems, the teacher might generate completely different structural strategies (e.g., "compute unit rate, then combine" vs. "estimate total, then subtract difference").

This inconsistency acts as label noise. It forces the capacity-constrained student model to waste parameters reconciling multiple solution formats for the same problem type, rather than reinforcing a single reusable pattern. Rationale divergence inflates training costs, slows down student learning, and can even amplify hallucinations during fine-tuning.

Methods

The authors propose Distillation through Reasoning Path Compression (D-RPC), which acts like a curated "cookbook" for the teacher model. Instead of letting the teacher improvise freely, D-RPC constrains it to follow a compact bank of reusable, high-level reasoning paths.

As shown in Figure 1, the pipeline consists of three stages:

  1. Bank Initialization: The teacher solves a small seed set (5% of the training data). Its high-level intents are embedded and clustered using DBSCAN to form an initial bank of canonical reasoning paths.
  2. Bank-Guided Supervision: For each new training question, the system retrieves the top candidate paths from the bank based on embedding similarity. The teacher is prompted to generate a detailed rationale conditioned on the selected path. If the teacher discovers a valid new path, it is buffered and periodically merged back to grow the bank dynamically.
  3. Student Model Training: The student model is fine-tuned via LoRA on these highly consistent supervision tuples.

The authors formalize this via a PAC-Bayes generalization analysis, proving a fundamental trade-off: a bank that is too small lacks coverage (high approximation bias), while a bank that is too large re-introduces high supervision entropy.

Figure 1: D-RPC pipeline. Stage 1, Reasoning bank initialization. A seed subset of questions is solved by the teacher; the resulting reasoning paths are clustered by intent to form the initial reasoning path bank. Stage 2, Bank-guided supervision. For each training question, retrieve the top-Kret candidate paths, condition the teacher to follow one, and collect the supervision tuple. Novel correct paths are buffered and periodically merged back into the bank via re-clustering. Stage 3, Student model training. The student SLM is fine-tuned with LoRA on the collected supervision tuples.

Datasets

The method was evaluated across five diverse, established reasoning benchmarks:

  • GSM8K: Grade-school arithmetic word problems.
  • AQUA: Multiple-choice algebraic word problems.
  • StrategyQA: Multi-hop commonsense reasoning requiring implicit strategies.
  • AI2ARC: Challenge-level science question answering.
  • MATH: High-school competition-level mathematics.

No new datasets were introduced; the authors leveraged these existing benchmarks to test how well path compression scales across different domains and difficulty levels.

Key Insights and Ideas

  • Consistency > Freeform Improvisation: Restricting the teacher's reasoning space provides a cleaner, lower-variance supervision signal. This makes it significantly easier for a smaller student model to internalize reusable strategies.
  • The "Sweet Spot" of Compression: Generalization performance follows a U-shaped curve relative to the size of the reasoning bank. In ablations, performance peaked at 75 paths; fewer paths caused coverage gaps, while more paths diluted the benefits of structural reuse.
  • Alignment with Student Priors: Empirically, banking reduces the frozen-model loss of the student. This means that structured, canonical rationales are inherently more predictable and aligned with the student's pre-trained weights before fine-tuning even begins.

Key Results

The authors evaluated D-RPC using two student models—Llama 3.1 8B Instruct and Qwen 3 1.7B—against standard CoT, freeform generation, and structured baselines (like SuperCorrect).

  • Llama 3.1 8B Instruct: D-RPC achieved the highest accuracy across all five benchmarks. The gains were most pronounced on harder tasks, outperforming the next-best baseline by +3.53 points on MATH (reaching 48.76%) and +3.50 points on AQUA (reaching 67.52%).
  • Qwen 3 1.7B: The benefits scaled remarkably well to smaller models, showing a massive +10.51 point improvement over standard CoT on the challenging MATH dataset.
  • Token Efficiency: Unlike template-heavy approaches that rely on verbose XML tags, D-RPC reduced total teacher token usage by roughly 33–35% across math datasets, preventing output-length explosion and reducing inference latency.
Main experimental results across benchmarks

Limitations and Future Work

  • Scope of Evaluation: All experiments relied on a single teacher model (GPT-5.1) and focused on math and commonsense reasoning. It remains unverified whether these benefits transfer to other domains like code generation or scientific QA.
  • Computational Overhead: Generating the bank requires an initial categorization pass and a seed-set pass, adding roughly 2× the teacher-query cost of standard CoT during the offline data generation phase (though student inference time remains unaffected).
  • Theoretical Constraints: The PAC-Bayes generalization analysis is tailored specifically to LoRA-based SFT with Gaussian weight priors. Extending this theory to full fine-tuning or alternative parameter-efficient methods (like prefix tuning) remains an open challenge.

Summary updated

BibTeX
@inproceedings{yang2026structural,
  author = {Jialin Yang and Jiankun Wang and Jiajun Wu and Henry Leung and Jiayu Zhou and Steve Drew},
  title = {{Structural Rationale Distillation via Reasoning Space Compression}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=UK2XjwZOOP},
}
Figure