SIKeD: Self-guided Iterative Knowledge Distillation for Mathematical Reasoning

Shivam Adarsh, Kumar Shridhar, Caglar Gulcehre, Nicholas Monath, Mrinmaya Sachan · Submission to ICLR 2025 · Rejected

TL;DR

SIKeD (Self-guided Iterative Knowledge Distillation) improves the mathematical reasoning of small language models by teaching them to choose between multiple problem-solving strategies. By iteratively mixing a teacher model's data with the student's own successful "on-policy" generations, the method prevents the student from becoming biased toward a single strategy, leading to significant accuracy gains across various benchmarks.

What Problem Does This Paper Address?

Distilling the reasoning capabilities of giant Large Language Models (LLMs) into smaller, more efficient models is a common goal. However, the authors identify a critical "strategy bias" problem. While a teacher like Llama-3 70B can flexibly use different reasoning strategies—such as Chain of Thought (CoT), Program of Thoughts (PoT), or Least-to-Most (L2M)—smaller student models often collapse onto a single preferred strategy during training.

Strategy bias in smaller models compared to the teacher LLM.

This lack of flexibility makes small models brittle. If a math problem is better suited for code-based reasoning (PoT) but the student is biased toward text-based reasoning (CoT), it will likely fail. Traditional distillation forces the student to mirror the teacher's distribution, which often results in a distribution mismatch during actual inference.

Methods

The authors introduce SIKeD, an iterative distillation framework inspired by constructivist learning theory (specifically the phases of "assimilation" and "accommodation").

  1. Initial Distillation: The student model is first trained on a high-quality dataset generated by a teacher LLM (Llama-3 70B) using three distinct strategies: CoT, PoT, and L2M.
  2. Self-Guided Iteration:
    • Data Generation: The current student model generates multiple reasoning chains for each training question.
  3. Filtering: Only the student's generations that result in the correct final answer are kept.
  4. Data Mixing: These "on-policy" successes are mixed with the original teacher data. The authors test two variations: All (using all teacher data) and Adaptive (only using teacher data for questions the student failed to solve).
  5. Dynamic Weighting: A mixing rate is used to balance teacher vs. student data, which gradually aligns the training distribution with the student’s own learned knowledge.
  6. Iterative Refinement: This process repeats for several rounds (typically three), allowing the model to continuously refine its strategy selection and reasoning accuracy.

Key Insights and Ideas

  • The "Aha" Moment on Strategy Bias: The authors demonstrate that small models don't just fail because they are "smaller," but because they become over-specialized. As seen in the strategy selection chart, while the teacher uses a balanced mix of strategies, the student model initially ignores L2M and PoT in favor of CoT.
  • Bridging the Distribution Gap: By including the student's own correct outputs in the training set, SIKeD reduces the KL divergence between the training data and the model’s output distribution. This makes the learning process more "natural" for the smaller model.
  • Strategy Switching: Qualitative analysis shows that over iterations, the model learns to "pivot." A model that failed using PoT in Iteration 1 might successfully switch to L2M in Iteration 3 to solve the same problem.
  • On-Policy vs. Off-Policy: The paper finds that on-policy training (learning from its own current state) is significantly more effective for strategy alignment than off-policy training (learning only from a static teacher or a previous version of itself).

Key Results

The models were trained and evaluated on several prominent mathematical reasoning benchmarks, including GSM8K (in-distribution) and SVAMP, ASDiv, and MultiArith (out-of-distribution). The researchers evaluated models across a wide range of sizes, including Qwen2 (0.5B, 1.5B), SmolLM (1.7B), and Gemma (2B, 7B).

Accuracy improvements across datasets over multiple SIKeD iterations.
  • Consistent Accuracy Boosts: On the GSM8K dataset, SIKeD improved Gemma 2B by +3.2 points and SmolLM 1.7B by +3.4 points over traditional distillation.
  • Strong Generalization: The improvements were even more pronounced on out-of-distribution datasets. For example, on MultiArith, the method achieved gains of up to +5 points.
  • Efficiency: The "Adaptive" variation of SIKeD, which uses less teacher data, performed comparably to or better than the "All" version across iterations. This suggests that models primarily need teacher guidance on the specific problems they struggle with.
  • Optimal Iterations: The authors found that three iterations generally provide the best balance between performance gains and computational cost.

Limitations and Future Work

  • Strategy Dependency: SIKeD relies on a predefined set of reasoning strategies (CoT, PoT, L2M). If a problem cannot be solved by any of these specific frameworks, the method's effectiveness is limited.
  • Computational Overhead: Iterative training requires multiple rounds of generation and fine-tuning, which is more resource-intensive than one-step distillation.
  • Future Directions: The authors suggest exploring how to automatically discover new reasoning strategies during the iterative process, rather than relying on fixed ones provided by the teacher.

Summary updated

BibTeX
@misc{adarsh2024siked,
  author = {Shivam Adarsh and Kumar Shridhar and Caglar Gulcehre and Nicholas Monath and Mrinmaya Sachan},
  title = {{SIKeD: Self-guided Iterative Knowledge Distillation for Mathematical Reasoning}},
  year = {2024},
  eprint = {2410.18574},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.18574},
}
Figure