Investigating Mysteries of CoT-Augmented Distillation

Somin Wadhwa, Silvio Amir, Byron C. Wallace · DOI

Abstract

Chain-of-Thought (CoT) prompting has become a cornerstone of Large Language Model (LLM) performance, and distilling these rationales into smaller student models consistently improves their accuracy. However, the underlying mechanism of this improvement remains poorly understood. This paper investigates whether the logical coherence and positioning of CoT rationales are critical for successful distillation. Through a series of ablation studies across multiple benchmarks and model architectures, we demonstrate that CoT rationales function as a high-density supervisory signal rather than a step-by-step reasoning guide. Notably, placing rationales after the target label (Post-CoT) yields superior performance and robustness compared to traditional Pre-CoT approaches, even when the rationales are logically incoherent.

Introduction

Large Language Models (LLMs) like GPT-4 exhibit remarkable reasoning capabilities when prompted to generate intermediate steps—a technique known as Chain-of-Thought (CoT). To bridge the gap between these massive models and smaller, more efficient "student" models (e.g., GPT-2, Gemma-2B), researchers frequently employ distillation. In this process, the student is trained on both the final answer and the intermediate rationales generated by a larger "teacher" model.

While this method consistently boosts student performance, it raises a fundamental question: is the student model learning to reason, or is it benefiting from a more nuanced training signal? This research investigates the "mysteries" of CoT distillation to determine if the logical coherence of the rationale actually matters for the student's success.

Methodology

The authors conducted a series of rigorous ablation studies using Mistral-7B-Instruct as a teacher model and three student models: GPT-2, Phi-1.5, and Gemma-2B. The study focused on three popular commonsense reasoning benchmarks: CommonsenseQA (CSQA), OpenbookQA (OBQA), and QuaRel. The experimental framework included several novel setups:

  1. Positioning Ablations: Comparing "Pre-CoT" (rationale before the label) vs. "Post-CoT" (rationale after the label).
  2. Coherence Testing: Shuffling the tokens within a rationale to destroy its logical flow.
  3. Information Density: Masking varying percentages of the rationale or using only "important" tokens identified via Integrated Gradients (an attribution method).
  4. Internal Probing: Using TunedLens to visualize the model's confidence in the correct label across different layers and time-steps.

Key Insights: The Post-Reasoning Paradox

A primary finding of this research is the "Postfix Advantage." Traditionally, CoT is viewed as a prerequisite for the answer. However, the study reveals that placing the rationale after the target label during training (Post-CoT) actually results in higher accuracy. This has significant practical implications: because the rationale follows the answer, the student model does not need to generate the CoT at inference time to achieve the performance boost, drastically reducing computational overhead.

Furthermore, the research challenges the necessity of logical coherence. In Post-CoT setups, shuffling the rationale into a "word salad" did not significantly degrade performance. For instance, Phi-1.5 on the QuaRel dataset achieved 81.01% accuracy with shuffled rationales, nearly identical to the 81.36% achieved with coherent ones. In contrast, shuffling a Pre-CoT rationale caused performance to crater (dropping from ~80% to ~45%). This suggests that the benefit of CoT distillation lies in the presence of relevant semantic tokens rather than the logical structure of the argument.

Mechanistic Analysis: Confidence and Attribution

Using TunedLens, the authors observed that models trained with Post-CoT rationales reach a high-confidence state regarding the correct answer much earlier in their internal processing. For example, a model might become confident at layer 27 when trained with Post-CoT, whereas a baseline model might not reach the same confidence until layer 40.

The study also explored the "density" of the signal. By using Integrated Gradients to select only the top 15 high-attribution tokens—keywords that bridge the input to the label—the researchers found they could match or even exceed the performance of full, coherent rationales. In one case, GPT-2 on OBQA reached 74.86% accuracy using only key tokens, compared to 70.26% using the full CoT.

Conclusion and Limitations

The findings suggest that CoT-augmented distillation works by providing a richer, more informative supervisory signal that guides the model toward the correct answer more efficiently. While the study is limited to English-language multiple-choice tasks, it opens new avenues for efficient AI training. Future work may investigate the specific mechanism by which these "important" tokens provide such a strong supervisory signal and whether this can be used to create even more efficient training regimes for edge-device AI.

Summary updated

BibTeX
@inproceedings{wadhwa2024investigating,
  author = {Somin Wadhwa and Silvio Amir and Byron C. Wallace},
  title = {{Investigating Mysteries of CoT-Augmented Distillation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.349},
}
Figure