Abstract
In the knowledge distillation literature, feature-based methods have dominated due to their ability to effectively tap into extensive teacher models. In contrast, logit-based approaches, which aim to distill 'dark knowledge' from teachers, typically exhibit inferior performance compared to feature-based methods. To bridge this gap, we present LumiNet, a novel knowledge distillation algorithm designed to enhance logit-based distillation. We introduce the concept of 'perception', aiming to calibrate logits based on the model's representation capability. This concept addresses overconfidence issues in the logit-based distillation method while also introducing a novel method to distill knowledge from the teacher. It reconstructs the logits of a sample/instances by considering relationships with other samples in the batch. LumiNet excels on benchmarks like CIFAR-100, ImageNet, and MSCOCO, outperforming the leading feature-based methods, e.g., compared to KD with ResNet18 and MobileNetV2 on ImageNet, it shows improvements of 1.5% and 2.05%, respectively.
Introduction
Knowledge Distillation (KD) is a fundamental technique for model compression, enabling the transfer of predictive power from a large "teacher" model to a compact "student" model. Existing KD methods generally fall into two categories: logit-based and feature-based. Logit-based methods are computationally efficient and preserve privacy by only requiring the teacher's final outputs. However, they often struggle with teacher overconfidence, which masks the "dark knowledge"—the subtle inter-class relationships—necessary for effective learning. Feature-based methods, while more performant, require access to intermediate layers and introduce significant computational overhead. LumiNet addresses these challenges by introducing a perception-driven calibration mechanism that allows logit-based distillation to surpass state-of-the-art feature-based techniques.
Methodology: Perception-Driven Calibration
The core of LumiNet is the transformation of raw teacher logits into Perception Logits. Traditional KD treats each sample independently, ignoring the contextual information present within a training batch. Drawing inspiration from Kurt Lewin’s Gestalt psychology "field theory," LumiNet posits that a model's "perception" of a sample is influenced by the surrounding environment (i.e., other samples in the batch).
LumiNet recalibrates the teacher's logits ($z$) by standardizing them using batch-level statistics. For each class $j$ in a batch, the mean ($U_j$) and variance ($V_j$) are calculated. The perception logit $h_{ij}$ for sample $i$ and class $j$ is defined as: $$h_{ij} = \frac{z_{ij} - U_j}{\sqrt{V_j}}$$
This statistical calibration effectively dampens overconfident predictions and uncovers the underlying inter-class relationships that are often flattened by the softmax function in standard KD.
The training objective combines a standard cross-entropy loss with a KL-divergence loss that aligns the student’s perception logits with those of the teacher. This approach requires no additional parameters and maintains the training efficiency of basic logit-based KD.
Experimental Results
LumiNet was evaluated across diverse benchmarks, including image classification (CIFAR-100, ImageNet), object detection (MS COCO), and natural language processing (GLUE).
Key performance highlights include:
- ImageNet: LumiNet achieved a 1.5% accuracy improvement when distilling from ResNet34 to ResNet18 and a 2.05% gain for MobileNetV2, significantly outperforming standard KD.
- CIFAR-100: A ResNet8x4 student reached 77.5% accuracy, surpassing competitive methods like DKD and ReviewKD.
- Object Detection: On MS COCO, LumiNet provided a +2.25 AP gain over the student baseline using Faster R-CNN.
- NLP: On the GLUE benchmark, a BERT-6 student outperformed traditional KD by an average of 1.4 points.
Discussion and Conclusion
LumiNet demonstrates that logit-based distillation can be highly effective when teacher outputs are properly contextualized. By leveraging batch statistics, the method mitigates confirmation bias—where students inherit teacher errors—and even allows students to outperform teachers in specific classes. While the method is sensitive to very small batch sizes, its parameter-free nature and superior performance make it a compelling choice for resource-constrained environments. Future work will explore the application of perception-driven distillation to Large Language Models and continual learning scenarios.
Reference: Hossain, M. I., et al. (2025). LumiNet: Perception-Driven Knowledge Distillation via Statistical Logit Calibration. Published in Transactions on Machine Learning Research.
Summary updated