Multi-teacher knowledge distillation as an effective method for compressing ensembles of neural networks

Konrad Zuchniak
2/14/2023
cs.LG

No official code found. Best implementation: ZuchniakK/MTKD (30 stars, MIT, last commit 2023-05-19).

Abstract

Deep learning has contributed greatly to many successes in artificial intelligence in recent years. Today, it is possible to train models that have thousands of layers and hundreds of billions of parameters. Large-scale deep models have achieved great success, but the enormous computational complexity and gigantic storage requirements make it extremely difficult to implement them in real-time applications. On the other hand, the size of the dataset is still a real problem in many domains. Data are often missing, too expensive, or impossible to obtain for other reasons. Ensemble learning is partially a solution to the problem of small datasets and overfitting. However, ensemble learning in its basic version is associated with a linear increase in computational complexity. We analyzed the impact of the ensemble decision-fusion mechanism and checked various methods of sharing the decisions including voting algorithms. We used the modified knowledge distillation framework as a decision-fusion mechanism which allows in addition compressing of the entire ensemble model into a weight space of a single model. We showed that knowledge distillation can aggregate knowledge from multiple teachers in only one student model and, with the same computational complexity, obtain a better-performing model compared to a model trained in the standard manner. We have developed our own method for mimicking the responses of all teachers at the same time, simultaneously. We tested these solutions on several benchmark datasets. In the end, we presented a wide application use of the efficient multi-teacher knowledge distillation framework. In the first example, we used knowledge distillation to develop models that could automate corrosion detection on aircraft fuselage. The second example describes detection of smoke on observation cameras in order to counteract wildfires in forests.

View on arXivView PDF

Code Implementations(1)

ZuchniakK/MTKDCommunity100%
MIT

Multi-Teacher Knowledge Distillation, code for my PhD dissertation. I used knowledge distillation as a decision-fusion and compressing mechanism for ensemble models.

303Python, Jupyter NotebookSep 28, 20223 years agoMIT
deep-learningensemble-learningknowledgeknowledge-distillationmachine-learning+2 more

Similar Papers

Cite this paper

@article{zuchniak2023multiteacher,
  title  = {Multi-teacher knowledge distillation as an effective method for compressing ensembles of neural networks},
  author = {Konrad Zuchniak},
  year   = {2023},
  eprint = {2302.07215},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.07215v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2302.07215.svg)](https://codeofpaper.com/paper/2302.07215)

Discussion