Lightweight anomaly detection via knowledge distillation from ensemble teachers

This paper proposes a knowledge distillation-based anomaly detection method that employs a heterogeneous Isolation Forest ensemble as the teacher and a lightweight neural network as the student. The student learns the teacher’s soft labels by minimizing the Kullback–Leibler (KL) divergence. Evaluated on three categories from the MVTec 3D-AD dataset (bagel, carrot, and cookie), the teacher achieves a macro-average area under the receiver operating characteristic curve (AUROC) of 0.6406, whereas the student, with 2.010 million parameters in the multilayer perceptron (MLP) head and an approximately 0.051 ms detector-head inference time per image (both excluding the ResNet-50 backbone), achieves a macro-average AUROC of 0.5937 and delivers an approximately 11.6-fold detector-head inference speedup over the teacher ensemble. Compared with representative deep learning baselines (RD4AD and PatchCore), the proposed method achieves moderate accuracy with lower detector-head latency and a smaller detector-head model footprint (excluding the backbone). These results suggest that knowledge distillation can serve as an effective compression technique, transferring ensemble knowledge to a lightweight student with a measurable accuracy trade-off. The benefit of distillation is category-dependent: the student outperforms the teacher on one category but exhibits performance degradation on the others. Moreover, the No-KD ablation (student trained without KD) achieves a higher macro-average AUROC (0.6057 vs. 0.5937), indicating that soft-label distillation is a viable compression strategy rather than a universal performance enhancer. The conditions under which distillation improves or degrades performance are discussed.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2026-10-15
DOI
https://doi.org/10.1038/s41598-026-75425-z
Primary Topic
Anomaly Detection Techniques and Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Lightweight anomaly detection via knowledge distillation from ensemble teachers

Tong Li, Xia Cui
Scientific Reports
Anomaly Detection Techniques and Applications
article

Lightweight anomaly detection via knowledge distillation from ensemble teachers

Tong Li, Xia Cui
article en

Abstract

This paper proposes a knowledge distillation-based anomaly detection method that employs a heterogeneous Isolation Forest ensemble as the teacher and a lightweight neural network as the student. The student learns the teacher’s soft labels by minimizing the Kullback–Leibler (KL) divergence. Evaluated on three categories from the MVTec 3D-AD dataset (bagel, carrot, and cookie), the teacher achieves a macro-average area under the receiver operating characteristic curve (AUROC) of 0.6406, whereas the student, with 2.010 million parameters in the multilayer perceptron (MLP) head and an approximately 0.051 ms detector-head inference time per image (both excluding the ResNet-50 backbone), achieves a macro-average AUROC of 0.5937 and delivers an approximately 11.6-fold detector-head inference speedup over the teacher ensemble. Compared with representative deep learning baselines (RD4AD and PatchCore), the proposed method achieves moderate accuracy with lower detector-head latency and a smaller detector-head model footprint (excluding the backbone). These results suggest that knowledge distillation can serve as an effective compression technique, transferring ensemble knowledge to a lightweight student with a measurable accuracy trade-off. The benefit of distillation is category-dependent: the student outperforms the teacher on one category but exhibits performance degradation on the others. Moreover, the No-KD ablation (student trained without KD) achieves a higher macro-average AUROC (0.6057 vs. 0.5937), indicating that soft-label distillation is a viable compression strategy rather than a universal performance enhancer. The conditions under which distillation improves or degrades performance are discussed.

Scientific Reports
Beijing Institute of Graphic Communication (CN)
Openalex Percentile: Top 25%
Anomaly Detection Techniques and Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.