Introduction
Deep Neural Networks (DNNs) have achieved remarkable success in computer vision, yet their high computational cost remains a barrier for deployment on resource-constrained devices like mobile phones or autonomous vehicles. "Multi-classifier" architectures, such as Multi-Scale Dense Networks (MSDNet), offer a solution through "early-exit" strategies. These models allow for dynamic inference: if a network is sufficiently confident in its prediction at an early layer, it can terminate computation early, saving significant energy and time.
However, training these multi-classifier networks presents two primary challenges. First, interference occurs when training early classifiers disrupts the feature generation process for deeper layers. Second, knowledge gaps persist where later, more complex classifiers occasionally fail on inputs that shallower classifiers correctly identify, indicating an inefficient transfer of information within the model.
The Multi-Self-Distillation (MSD) Framework
To address these issues, the authors propose Multi-Self-Distillation (MSD), a collaborative training framework where every classifier within a single backbone acts as both a teacher and a student to its peers. Unlike traditional distillation, which requires a separate, pre-trained teacher model, MSD leverages the internal diversity of the network itself.
The framework utilizes three distinct loss functions to synchronize the classifiers:
- Label Loss: Standard cross-entropy loss comparing each classifier's output to the ground-truth labels.
- Prediction Mimicry Loss (Multi-KD Loss): Classifiers are encouraged to match the probability distributions of all other classifiers. This mutual learning facilitates the sharing of "dark knowledge"—the nuanced information contained in the probabilities of incorrect classes.
- Feature Mimicry Loss: This forces shallow classifiers to align their internal feature maps with those of the deepest, most capable classifier, helping to bridge the capacity gap between early and late layers.
For standard architectures like ResNet that lack native early exits, the authors introduced Sampling-based Branch Augmentation. This technique constructs auxiliary branches by sampling layers from the main backbone, ensuring that the features remain compatible across the entire depth of the network.
Experimental Results
The MSD framework was evaluated on the CIFAR-100 dataset across various architectures, including MSDNet, the ResNet series (18, 50, 101, 152), and WideResNet (WRN).
As shown in the results, MSD consistently outperforms both naive training and standard self-distillation (where only the final classifier teaches the others). Notable highlights include:
- ResNet101: The final classifier's accuracy improved by 4.56% compared to the baseline.
- Early Exit Efficiency: In WideResNet, the first classifier—using only a fraction of the total FLOPs—achieved accuracy levels comparable to much deeper, traditionally trained networks.
- MSDNet Gains: Every classifier in the MSDNet architecture saw an accuracy boost, with the first classifier jumping from 62.40% to 64.13%.
Key Insights and Limitations
The core contribution of MSD is the demonstration that internal collaboration can significantly enhance model performance without increasing inference-time overhead. By treating the network as a collective of learners, the "capacity gap" between shallow and deep layers is effectively narrowed, making early exits far more reliable for real-world dynamic inference.
Despite these gains, the framework has some limitations. It relies on balancing three loss terms, which may require hyperparameter tuning for different architectures, although the authors mitigated this with a "cosine annealing" strategy for the $\beta$ parameter. Additionally, while highly effective on CIFAR-100, further testing on larger-scale datasets like ImageNet would be beneficial to confirm the scalability of the approach to more complex visual tasks.
Summary updated