NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Triplet Knowledge Distillation

Xijun Wang, Dongyang Liu, Meina Kan, Chunrui Han, Zhongqin Wu, Shiguang ShanarXiv 2023 · DOI

Abstract

Knowledge Distillation (KD) typically involves a small "student" model mimicking a large, pre-trained "teacher." However, a significant "capacity mismatch" often occurs: when a teacher is too large or accurate, its complex solutions may fall outside the representational capacity of the student, leading to degraded performance. This paper introduces Triplet Knowledge Distillation (TriKD), which incorporates a third component—the Anchor Model—to constrain the teacher within a "student-friendly" solution space. By ensuring the teacher remains easy to mimic while maintaining high accuracy, TriKD effectively resolves the paradox where larger teachers result in worse students.

The Capacity Mismatch Problem

In traditional KD, a massive teacher can find intricate, high-dimensional solutions that a smaller student cannot represent. When the student attempts to converge toward these unattainable targets, it often fails to capture even basic useful patterns. The core challenge addressed by TriKD is making the teacher's knowledge not only accurate but also accessible to the student architecture.

The TriKD Framework

TriKD proposes a triplet mechanism involving three distinct roles:

  1. The Student ($S$): The compact model targeted for optimization.
  2. The Teacher ($T$): A high-capacity model capable of complex feature extraction.
  3. The Anchor ($A$): A fixed, pre-trained model of the same size as the student that serves as a "territory marker" for the student's attainable subspace.
Conceptual comparison of TriKD against standard training and distillation methods, illustrating how the anchor pulls the teacher into the student's attainable subspace.

Unlike standard offline KD, TriKD is an online process where the teacher and student are trained simultaneously. The training objective utilizes a combined loss function that penalizes the KL-divergence between all three models. Specifically, the Anchor pulls both the Teacher and Student toward a region of the function space known to be navigable by the student's architecture, while the Teacher and Student engage in mutual learning.

Iterative Curriculum Strategy

To optimize the anchor's effectiveness, the authors employ a curriculum learning approach. The process begins with basic online distillation (Generation 0). The resulting student model then serves as the anchor for the subsequent generation. This iterative refinement gradually shifts the anchor toward superior local minima while maintaining a manageable search space for the student.

The TriKD architecture and iterative curriculum learning process, showing how models evolve across generations.

Experimental Evaluation

TriKD was evaluated across diverse benchmarks, demonstrating superior performance over state-of-the-art methods such as DKD, CRD, and ReviewKD.

  • Image Classification: On CIFAR-100 (WRN-40-2 to WRN-16-2), TriKD achieved 76.94% accuracy, significantly outperforming the 73.26% baseline. On ImageNet, TriKD reached a Top-1 accuracy of 71.88%, the highest among compared distillation techniques.
  • Face Recognition: The method showed remarkable efficacy in low-data scenarios. Using a 50k subset of CASIA-WebFace, TriKD improved the baseline performance by 20.7%. In these tasks, the anchor acts as a powerful regularizer, preventing the models from overfitting to noise by keeping them within a simpler, more generalizable function space.

Key Insights

  • Anchor as Constraint: The anchor successfully "tethers" the teacher, preventing it from wandering into overly complex regions without significantly compromising the teacher's own accuracy.
  • Teacher Flexibility: High-capacity teachers retain the ability to find high-accuracy solutions even when restricted to a smaller, student-accessible search space.
  • Regularization: By forcing models to remain near a simpler anchor, TriKD mitigates overfitting, particularly in specialized tasks like face recognition.

Conclusion and Future Work

TriKD offers a robust solution to the capacity mismatch problem by ensuring teacher guidance remains within the student's reach. While the current iterative curriculum process increases total training time, the performance gains—especially in low-data regimes—are substantial. Future research may focus on more efficient methods for identifying optimal anchors and extending the triplet mechanism to domains such as object detection and natural language processing.

Summary updated

BibTeX
@misc{wang2023triplet,
  author = {Xijun Wang and Dongyang Liu and Meina Kan and Chunrui Han and Zhongqin Wu and Shiguang Shan},
  title = {{Triplet Knowledge Distillation}},
  year = {2023},
  eprint = {2305.15975},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.15975},
}
Figure