Unveiling the Key Factors for Distilling Chain-of-Thought Reasoning

Xinghao Chen, Zhijing Sun, Wenjin Guo, Miaoran Zhang, Yanjun Chen, Yirong Sun, Hui Su, Yijie Pan, Dietrich Klakow, Wenjie Li, Xiaoyu Shen

TL;DR

This paper investigates how to effectively transfer complex reasoning abilities (Chain-of-Thought) from large language models (LLMs) to smaller, more efficient models (SLMs). They discover that for SLMs, the level of detail in the reasoning steps (granularity) is crucial and non-linear, while the format of the reasoning matters less. Importantly, a more powerful teacher model doesn't always guarantee a better student model.

What Problem Does This Paper Address?

Large Language Models (LLMs) have shown remarkable reasoning capabilities, especially when guided by Chain-of-Thought (CoT) prompting. This involves breaking down a problem into intermediate reasoning steps, making the process more interpretable and accurate. However, CoT significantly increases computational costs, making it impractical for many applications. The paper addresses the challenge of distilling these valuable CoT reasoning skills into smaller, more resource-efficient language models (SLMs). The core problem is understanding what aspects of CoT supervision are most effective for SLMs, as they have different learning dynamics than LLMs.

Methods

The researchers systematically explored three key factors influencing CoT distillation:

  • Choice of Teacher: They used four different teacher models (GPT-40, LLaMA 3 70B, Gemini-1.5-Flash, and human annotations) to generate CoT supervision data.
  • Granularity of Teaching: This refers to the level of detail in the CoT reasoning steps. They experimented with six different granularity levels, from very concise to highly detailed explanations.
  • Format of Teaching: This involves the structure and presentation of the reasoning steps. They compared the standard CoT format with alternatives like "Least-to-most," "Rephrase and Respond (RaR)," and "Symbolic CoT."

They trained seven different student models (ranging in size and capability) on datasets generated using these varying factors and evaluated their performance on mathematical and commonsense reasoning tasks.

Datasets

The study utilized a combination of established datasets for training and evaluation:

  • Mathematical Reasoning: SVAMP, GSM8K, AQUA-RAT, and MATH.
  • Commonsense Reasoning: CommonsenseQA (CSQA), OpenBookQA (OBQA), and StrategyQA (STQA).

The paper also provides detailed examples of human annotations for these datasets.

Key Insights and Ideas

  • Granularity is King (for SLMs): Unlike LLMs, which generally benefit from more detailed CoT, SLMs exhibit a non-monotonic relationship with granularity. This means there's an optimal level of detail; too little is insufficient, and too much can overwhelm weaker models, leading to performance degradation. Stronger SLMs can handle more detail, while weaker ones perform best with simpler, intermediate-level explanations.
  • Format Matters Less for SLMs: While CoT format can influence LLMs (likely due to their pre-training biases), it has a minimal impact on SLMs. This is attributed to SLMs relying more on supervised fine-tuning, where they adapt to the provided structure rather than having strong pre-existing preferences.
  • Teacher Doesn't Always Trump: The assumption that a more accurate teacher model always leads to a better student model doesn't hold universally for SLMs. The diversity and complexity of the CoT supervision can be more important than raw accuracy alone. For instance, human annotations, while highly accurate, sometimes underperform LLM-generated CoTs on mathematical tasks.
  • Task-Specific Teacher Choice: The effectiveness of LLM-generated vs. human-annotated CoTs depends on the task. LLM CoTs excel in mathematical reasoning due to their structured nature, while human annotations are better for commonsense reasoning, capturing nuanced understanding.

Key Results

  • Granularity: Experiments showed that most student models achieved peak performance at intermediate granularity levels. For example, in Table 1, models like Gemma 2B and LLaMA 3.2 3B showed significant gains with higher granularity, while BLOOM 3B performed best at intermediate levels.
  • Format: Table 3 indicates that the original CoT format often outperformed more complex or modified structures for SLMs, suggesting that simplicity and adaptability are key.
  • Teacher Model: Figure 4 illustrates that higher teacher accuracy doesn't always translate to higher student accuracy. Stronger student models did benefit more from stronger teachers, but the computational cost needs to be considered. Figure 5 showed that LLM-generated CoTs led to higher accuracy on mathematical tasks compared to human annotations for some student models.

Limitations and Future Work

  • Safety Concerns: Some tasks triggered safety concerns in models, leading to the use of provided answers for fine-tuning, which might have limited the diversity and quality of reasoning chains.
  • Teacher Model Capabilities: For certain tasks, teacher models struggled to reverse-engineer plausible CoTs from given answers due to inherent limitations.
  • Focus on Existing KD Techniques: The study focused on analyzing existing CoT approaches rather than exploring novel knowledge distillation techniques.
  • Future Work: The authors suggest exploring alternative training strategies like curriculum-based learning and lightweight multi-stage distillation to improve fidelity and generalizability. Further research into CoT generation methods tailored to task complexity and student capabilities is also recommended.

Summary updated

Abstract

Large Language Models (LLMs) excel in reasoning tasks through Chain-of-Thought (CoT) prompting. However, CoT prompting greatly increases computational demands, which has prompted growing interest in distilling CoT capabilities into Small Language Models (SLMs). This study systematically examines the factors influencing CoT distillation, including the choice of granularity, format and teacher model. Through experiments involving four teacher models and seven student models across seven mathematical and commonsense reasoning datasets, we uncover three key findings: (1) Unlike LLMs, SLMs exhibit a *non-monotonic* relationship with granularity, with stronger models benefiting from finer-grained reasoning and weaker models performing better with simpler CoT supervision; (2) CoT format significantly impacts LLMs but has *minimal* effect on SLMs, likely due to their reliance on supervised fine-tuning rather than pretraining preferences; (3) Stronger teacher models do *NOT* always produce better student models, as diversity and complexity in CoT supervision can outweigh accuracy alone. These findings emphasize the need to tailor CoT strategies to specific student model, offering actionable insights for optimizing CoT distillation in SLMs.
BibTeX
@inproceedings{chen2025unveiling,
  author = {Xinghao Chen and Zhijing Sun and Wenjin Guo and Miaoran Zhang and Yanjun Chen and Yirong Sun and Hui Su and Yijie Pan and Dietrich Klakow and Wenjie Li and Xiaoyu Shen},
  title = {{Unveiling the Key Factors for Distilling Chain-of-Thought Reasoning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure