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

Hojae Lee, Junho Kim, SangKeun Lee

Abstract

While Large Language Models (LLMs) demonstrate remarkable multi-step reasoning capabilities through Chain-of-Thought (CoT) prompting, their deployment is often hindered by high computational costs. Knowledge distillation aims to transfer these capabilities to smaller, more efficient models. However, existing methods suffer from low-quality teacher rationales and the "black-box" limitation of API-based LLMs, which prevents access to essential probability distributions (soft labels). We introduce Mentor-KD, a framework that inserts an intermediate "mentor" model into the distillation pipeline. By fine-tuning this task-specific mentor, we generate higher-quality reasoning paths and provide soft labels to the student. Our results show that Mentor-KD significantly outperforms previous methods, with student models occasionally surpassing their GPT-3.5 teachers.

Introduction

The primary challenge in "Reasoning Distillation" is the gap between the teacher's capacity and the student's ability to generalize. Current approaches face two major hurdles. First, low data quality: LLM teachers are not infallible; for instance, on certain reasoning tasks, they may only achieve ~58% accuracy. Training on incorrect rationales degrades student performance, yet filtering for only correct ones often results in a dataset too small for effective learning. Second, the black-box problem: Top-tier models like GPT-3.5 are typically accessible only via API, providing only "hard labels" (text). Without "soft labels" (probability distributions), student models are prone to overfitting and fail to capture the teacher's underlying logic.

The Mentor-KD Framework

Mentor-KD addresses these issues through a three-stage pipeline that introduces an intermediate-sized Mentor model (e.g., an 11B FlanT5-XXL) between the Teacher (GPT-3.5) and the Student (e.g., a 250M T5-base).

Comparison between previous reasoning distillation approaches and the proposed Mentor-KD framework.

1. Teacher Annotation and Filtering

We begin by collecting a set of CoT rationales from the LLM teacher. To ensure high data quality, we filter these outputs, retaining only the rationales that lead to the correct final answer.

2. Mentor Training and Augmentation

A task-specific Mentor model is fine-tuned on this high-quality teacher data. Despite being smaller than the LLM, the Mentor becomes a "specialist" in the target domain. It is then used to generate additional correct rationales, effectively augmenting the training set and overcoming the data scarcity caused by filtering the teacher's output.

3. Joint Distillation

The Student model is trained using a dual-loss objective:

  • Rationale Distillation: The student learns to predict the text of reasoning steps from both the Teacher and the Mentor.
  • Soft Label Distillation: Because the Mentor is a local model, the student can access its logits. Training the student to mimic these soft labels acts as a regularizer, helping the model capture the Mentor's internal uncertainty and improving generalization to unseen problems.

Experimental Results

Performance Across Reasoning Tasks

Mentor-KD was evaluated across four categories: Arithmetic (GSM8K, ASDiv, SVAMP), Commonsense (StrategyQA, CommonsenseQA), Logical Reasoning (Date Understanding), and Symbolic Reasoning. The framework outperformed previous state-of-the-art distillation methods, such as MCC-KD, by an average of 2.0% across arithmetic and commonsense tasks. Notably, in several logical and commonsense reasoning benchmarks, the distilled student models actually outperformed the GPT-3.5 teacher.

Efficiency and Scaling

The framework demonstrates remarkable robustness in low-resource scenarios. Mentor-KD achieves better results using only 40% of available teacher data than standard methods achieve using 100%. This significantly reduces the financial cost associated with expensive LLM API calls. Furthermore, the approach scales effectively across student sizes ranging from 80M to 3B parameters.

Discussion and Future Work

Mentor-KD proves that soft labels and task-specific specialists are critical for effective reasoning distillation. While the introduction of a Mentor model adds computational overhead during training, this is offset by the reduced reliance on LLM APIs and the superior performance of the final student model.

Future research will explore the application of Mentor-KD to decoder-only architectures (e.g., Llama, Mistral) and investigate its compatibility with more advanced reasoning strategies like program-aided or 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