Mentor-KD: Making Small Language Models Better Multi-step Reasoners

Hojae Lee, Junho Kim, SangKeun Lee · DOI

Abstract

Large Language Models (LLMs) excel at complex multi-step reasoning through Chain-of-Thought (CoT) prompting, but their high computational cost limits real-world deployment. Knowledge Distillation (KD) attempts to transfer this reasoning ability to smaller models by training them on teacher-generated rationales. However, black-box teachers often provide imperfect data and lack the "soft labels" (probability distributions) essential for effective distillation. We propose Mentor-KD, a framework that introduces an intermediate "mentor" model to bridge the gap between massive black-box LLMs and small student models. By augmenting high-quality reasoning data and providing crucial soft labels, Mentor-KD significantly boosts the performance of small language models across diverse reasoning tasks.

Introduction

While LLMs like GPT-4 are powerful reasoners, they are often too slow and expensive for many applications. Researchers use Knowledge Distillation to "teach" smaller models using rationales from these giants. This approach faces two major hurdles:

  1. Data Quality & Quantity: Teachers can generate incorrect reasoning paths. Filtering for correctness often leaves a dataset too small for effective learning.
  2. The Black-Box Problem: Most top-tier LLMs are only accessible via APIs, which do not provide the internal probability distributions (soft labels) that help students capture nuanced knowledge.

Methodology

Mentor-KD addresses these challenges by introducing a task-specific "Mentor" model (e.g., 780M or 11B parameters) to assist the distillation process.

Comparison between previous approaches and Mentor-KD

The framework consists of three main steps:

  1. Teacher Annotation: CoT rationales are collected from a black-box teacher (e.g., GPT-3.5-Turbo). Only samples with correct final answers are retained to ensure high-quality training signals.
  2. Mentor Training & Augmentation: An intermediate Mentor LM is fine-tuned on these correct teacher samples. Once trained, the mentor acts as a specialist, generating additional correct rationales to augment the dataset.
  3. Reasoning Distillation: The Student LM is trained using two losses: Rationale Distillation (fine-tuning on text rationales from both teacher and mentor) and Soft Label Distillation (mimicking the mentor's internal probability distributions).
Detailed overview of the Mentor-KD framework

Datasets

The framework was evaluated across four categories of complex reasoning:

  • Commonsense: StrategyQA, CommonsenseQA.
  • Arithmetic: GSM8K, ASDiv, SVAMP.
  • Logical: Tracking Shuffled Objects, Date Understanding.
  • Symbolic: Last Letter Concatenation.

Key Insights and Results

Mentor-KD achieved an average accuracy improvement of approximately 2.0% over previous state-of-the-art methods across arithmetic and commonsense tasks. On logical reasoning tasks, a small 80M parameter T5 model improved from ~39% accuracy to ~79%.

The Specialist Advantage

Even though the mentor is smaller than the teacher, task-specific fine-tuning allows it to become more accurate in its specific domain. The mentor often correctly solves problems where the teacher failed, providing high-quality training signals that were previously unavailable.

Robustness in Data Scarcity

Mentor-KD is remarkably effective in low-resource scenarios. A student trained with only 40% of the teacher's data using Mentor-KD can outperform a student trained on 100% of the data using standard distillation methods. Furthermore, providing soft labels from the mentor helps the student generalize better than training on text alone.

Conclusion and Future Work

Mentor-KD demonstrates that an intermediate mentor model can effectively bridge the knowledge gap between black-box LLMs and small students. While it introduces additional training overhead, the performance gains and data efficiency are significant. Future research will explore applying this framework to decoder-only architectures and other reasoning paradigms such as retrieval-augmented reasoning.

Summary updated

BibTeX
@inproceedings{lee2024mentor,
  author = {Hojae Lee and Junho Kim and SangKeun Lee},
  title = {{Mentor-KD: Making Small Language Models Better Multi-step Reasoners}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.977},
}
Figure