Self-Distillation for Randomized Neural Networks

Minghui Hu, Ruobin Gao, Ponnuthurai Nagaratnam Suganthan

Abstract

Knowledge distillation (KD) is a conventional method in the field of deep learning that enables the transfer of dark knowledge from a teacher model to a student model, consequently improving the performance of the student model. In randomized neural networks, due to the simple topology of network architecture and the insignificant relationship between model performance and model size, KD is not able to improve model performance. In this work, we propose a self-distillation pipeline for randomized neural networks: the predictions of the network itself are regarded as the additional target, which are mixed with the weighted original target as a distillation target containing dark knowledge to supervise the training of the model. All the predictions during multi-generation self-distillation process can be integrated by a multi-teacher method. By induction, we have additionally arrived at the methods for infinite self-distillation (ISD) of randomized neural networks. We then provide relevant theoretical analysis about the self-distillation method for randomized neural networks. Furthermore, we demonstrated the effectiveness of the proposed method in practical applications on several benchmark datasets.

Introduction

Knowledge Distillation (KD) has long been a cornerstone of model compression in deep learning, typically facilitating the transfer of "dark knowledge" from a complex teacher model to a more efficient student. However, applying this paradigm to Randomized Neural Networks (RNNs), such as the Random Vector Functional Link (RVFL) architecture, presents unique challenges. Unlike standard deep networks, RNNs do not exhibit a linear relationship between model size and performance, and their simple single-layer topology makes traditional teacher-student role assignments difficult. Furthermore, the hallmark efficiency of RNNs—often achieved through closed-form solutions—is frequently compromised by the computational overhead of standard KD.

This paper introduces a novel self-distillation framework tailored for RNNs. By utilizing a model's own predictions as supervisory signals, the proposed approach achieves significant performance improvements without increasing architectural complexity.

Methodology

The core of the proposed framework involves three distinct self-distillation strategies for RVFL networks:

  1. Single-Teacher Self-Distillation (STSD): The model is initially trained on ground truth labels. Its subsequent predictions are blended with the original labels, weighted by a temperature parameter $\alpha$, to supervise a retraining phase. In the context of RVFL, this retraining remains a computationally efficient closed-form matrix operation.
  2. Multi-Teacher Self-Distillation (MTSD): This is an iterative extension where each generation $\tau$ acts as the teacher for the next. The final prediction is an ensemble of outputs from all generations, enhancing stability and accuracy.
  3. Infinite Self-Distillation (ISD): Theoretically, as the number of distillation generations approaches infinity, the process converges. The authors demonstrate that ISD is mathematically equivalent to a standard ridge regression where the regularization parameter $\lambda$ is scaled by $\alpha$ (i.e., $\lambda/\alpha$).
The proposed self-distillation pipeline for randomized neural networks, illustrating the flow from input $x$ to the final ensemble prediction $y^{pred}$.

Experimental Evaluation

The effectiveness of these methods was validated across 39 benchmark datasets from the OpenML repository. These datasets span various domains and include tasks such as kr-vs-kp, mfeat-factors, and KDDCup09. The proposed MTSD and ISD methods were compared against standard RVFL, Ensemble Deep RVFL (edRVFL), and traditional backpropagation-based models like MLP and ResNet18.

Key Insights

  • Regularization Effect: Self-distillation acts as a powerful regularizer in RNNs by effectively filtering noise from the feature matrix.
  • Hyperparameter Sensitivity: Empirical results indicate that the temperature parameter $\alpha$ plays a critical role in performance. As shown in Figure 4, accuracy typically peaks when $\alpha$ is set between 0.3 and 0.5 across various datasets.
Accuracy vs. Temperature Parameter $\alpha$ across multiple benchmark datasets, highlighting the optimal range for distillation.

Results and Discussion

The experimental results demonstrate the superiority of the self-distillation approach:

  • Accuracy Gains: MTSD outperformed the base RVFL model on 36 out of 39 datasets and achieved the highest overall accuracy on 21 datasets, frequently surpassing the more complex edRVFL.
  • Reliability: Beyond accuracy, MTSD significantly reduces the variance of results across different random seeds, leading to more reliable model performance.
  • Efficiency: By leveraging analytical solutions, these methods maintain the low computational cost characteristic of RNNs, training orders of magnitude faster than standard deep learning models.

Conclusion

This work successfully adapts self-distillation for randomized neural networks, providing both a practical framework (MTSD) and a theoretical limit (ISD). While the current architecture is primarily suited for tabular data and lacks the hierarchical feature extraction of deep CNNs, it offers a highly efficient and accurate alternative for many real-world applications. Future research may explore integrating these techniques with other stochastic models like Broad Learning Systems.

Summary updated

Abstract

Knowledge distillation (KD) is a conventional method in the field of deep learning that enables the transfer of dark knowledge from a teacher model to a student model, consequently improving the performance of the student model. In randomized neural networks, due to the simple topology of network architecture and the insignificant relationship between model performance and model size, KD is not able to improve model performance. In this work, we propose a self-distillation pipeline for randomized neural networks: the predictions of the network itself are regarded as the additional target, which are mixed with the weighted original target as a distillation target containing dark knowledge to supervise the training of the model. All the predictions during multi-generation self-distillation process can be integrated by a multi-teacher method. By induction, we have additionally arrived at the methods for infinite self-distillation (ISD) of randomized neural networks. We then provide relevant theoretical analysis about the self-distillation method for randomized neural networks. Furthermore, we demonstrated the effectiveness of the proposed method in practical applications on several benchmark datasets.
BibTeX
@article{hu2023self,
  author = {Minghui Hu and Ruobin Gao and Ponnuthurai Nagaratnam Suganthan},
  title = {{Self-Distillation for Randomized Neural Networks}},
  journal = {IEEE Transactions on Neural Networks and Learning Systems},
  year = {2023},
  doi = {10.1109/tnnls.2023.3292063},
}
Figure