Task-Specific Knowledge Distillation via Intermediate Probes

Ryan Brown, Chris Russell

TL;DR

This paper introduces PROBE-KD, a novel knowledge distillation technique that leverages intermediate representations from large language models (LLMs) to create a cleaner, more informative training signal for smaller student models. By training lightweight "probes" on these internal states, PROBE-KD bypasses the noisy output layer of LLMs, leading to significant performance improvements, especially in low-data scenarios.

What Problem Does This Paper Address?

Deploying massive Large Language Models (LLMs) is computationally expensive. Knowledge distillation offers a way to train smaller, more efficient "student" models that mimic the performance of larger "teacher" LLMs. The standard approach, called Logit-KD, uses the teacher's final output probabilities (logits) as the training signal. However, for complex reasoning tasks, LLMs often produce "noisy" outputs. This noise isn't necessarily because the LLM doesn't "know" the right answer internally; rather, the final output layer, optimized for general next-token prediction, can distort or lose this internal knowledge when mapping it to specific answer tokens. This makes the distillation signal unreliable.

Methods

PROBE-KD tackles this by introducing a two-stage process:

  1. Probe Training: Instead of directly using the teacher's output, PROBE-KD first extracts the hidden states from all layers of the teacher LLM for each training example. A small, lightweight "probe" model (either a linear layer or a simple Multi-Layer Perceptron - MLP) is then trained to predict the correct task label directly from these concatenated hidden states. This probe learns a task-specific mapping from the rich internal representations to the desired output.
  2. Distillation to Student: Once trained, the probe's predictions (soft labels) are used as the supervision signal for training the student model, typically via KL-divergence. This effectively "denoises" the distillation signal, as the probe provides a cleaner interpretation of the teacher's internal knowledge than the teacher's own output layer.

An unsupervised variant of probe training (CCS) is also explored, which can be used when labeled data is scarce.

Datasets

The authors evaluate PROBE-KD on four multiple-choice reasoning benchmarks:

  • AQUA-RAT: Algebraic word problems with 5 answer choices.
  • ARC-Challenge & ARC-Easy: Grade-school science questions with 4 choices.
  • MMLU: A broad benchmark covering 57 subjects across STEM, humanities, and social sciences, with 4 choices.

They also investigate data efficiency by using subsets of these training sets.

Key Insights and Ideas

  • Internal Representations are Richer than Outputs: The core idea is that LLMs encode more accurate task-specific knowledge in their intermediate hidden states than their final output layer typically reveals. The output layer acts as a bottleneck that can distort this information.
  • Probes as Denoising Interfaces: Training a probe on hidden states allows for a task-specific "readout" that is optimized for predicting the correct answer, effectively filtering out the noise introduced by the teacher's general-purpose output layer.
  • Architecture Agnostic: PROBE-KD doesn't require architectural changes to either the teacher or the student, making it broadly applicable.
  • Data Efficiency: PROBE-KD shows particularly strong gains in low-data regimes, suggesting that cleaner supervision is crucial when training examples are scarce.
  • Improved Calibration: PROBE-KD students are better calibrated, meaning their confidence in predictions more closely matches their accuracy, which is important for downstream applications.

Key Results

  • Superior Performance: PROBE-KD (MLP) consistently outperforms standard Logit-KD, Feature-KD, and Patient-KD baselines across all tested benchmarks, achieving state-of-the-art distillation performance. For example, on AQUA-RAT, PROBE-KD achieved +2.2% over Logit-KD and +5.0% over Feature-KD.
  • Probe Accuracy: MLP probes trained on hidden states achieved higher accuracy than the teacher's 5-shot outputs on several datasets (e.g., +5.6% on AQUA-RAT), demonstrating their ability to extract latent knowledge.
  • Data Efficiency Gains: The performance gap between PROBE-KD and baselines was largest in the lowest data regimes, highlighting its value when data is limited.
  • Efficiency: Probe training is significantly faster than fine-tuning the teacher model, with MLP probes training in minutes compared to hours for LoRA fine-tuning.

Limitations and Future Work

  • Task Scope: The current work focuses on multiple-choice classification tasks. Extending PROBE-KD to generation tasks (like QA or summarization) would require more complex probes capable of decoding sequences, which is a significant challenge.
  • Hidden State Storage: Extracting and storing hidden states from all layers of large LLMs can be memory-intensive, requiring O(NLd) memory. For very large datasets, streaming or dimensionality reduction techniques might be necessary.
  • Access Requirements: PROBE-KD requires access to teacher hidden states, which is not possible with black-box API-only teachers. However, the proliferation of open-weight models makes this assumption increasingly practical.
  • Probe Architecture: The optimal probe architecture might vary by task and teacher. Further research is needed to systematically explore probe architectures and avoid overfitting.

Summary updated

BibTeX
@inproceedings{brown2026task,
  author = {Ryan Brown and Chris Russell},
  title = {{Task-Specific Knowledge Distillation via Intermediate Probes}},
  booktitle = {LIT @ ICLR},
  year = {2026},
  url = {https://openreview.net/forum?id=J8xd5l4CaL},
}
Figure