A swin transformer enhanced reverse knowledge distillation model for industrial anomaly detection via window-aware stochastic local perturbation

Abstract Industrial anomaly detection is critical for quality control in manufacturing, yet it remains challenging due to the scarcity of defective samples and the diversity of potential anomalies. This paper proposes TRKDM-P, a two-stage reverse knowledge distillation framework enhanced by a Swin Transformer backbone and a window-aware stochastic local perturbation strategy. In the first stage, the student decoder acquires fundamental reconstruction capabilities by mimicking frozen teacher features. In the second stage, a window-aware masking strategy simulates realistic anomalies within Swin Transformer windows, enforcing the model to learn repair mechanisms and improving generalization to unseen defects. To further enhance reconstruction fidelity and localization precision, we introduce an Attention-Guided Feature Enhancement module and a normalized feature repository that anchors the decoder to normal patterns. Extensive experiments on the MVTec AD dataset demonstrate that TRKDM-P achieves state-of-the-art performance, with image-level and pixel-level AUROCs of 99.4% and 98.1%, respectively. Additional evaluations on BTAD and MPDD datasets confirm its strong generalization. However, the use of a Swin-B backbone and auxiliary modules increases model parameters to 88.1M, highlighting a trade-off between accuracy and efficiency. This work underscores the potential of transformer-based knowledge distillation for industrial anomaly detection while identifying avenues for lightweight deployment.

Authors

Publication Details

Journal
Discover Applied Sciences
Published
2026-05-02
DOI
https://doi.org/10.1007/s42452-026-08699-7
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

A swin transformer enhanced reverse knowledge distillation model for industrial anomaly detection via window-aware stochastic local perturbation

Yuqi Qin, Yunfeng Peng
Discover Applied Sciences
Anomaly Detection Techniques and Applications
article

A swin transformer enhanced reverse knowledge distillation model for industrial anomaly detection via window-aware stochastic local perturbation

Yuqi Qin, Yunfeng Peng
article en

Abstract

Abstract Industrial anomaly detection is critical for quality control in manufacturing, yet it remains challenging due to the scarcity of defective samples and the diversity of potential anomalies. This paper proposes TRKDM-P, a two-stage reverse knowledge distillation framework enhanced by a Swin Transformer backbone and a window-aware stochastic local perturbation strategy. In the first stage, the student decoder acquires fundamental reconstruction capabilities by mimicking frozen teacher features. In the second stage, a window-aware masking strategy simulates realistic anomalies within Swin Transformer windows, enforcing the model to learn repair mechanisms and improving generalization to unseen defects. To further enhance reconstruction fidelity and localization precision, we introduce an Attention-Guided Feature Enhancement module and a normalized feature repository that anchors the decoder to normal patterns. Extensive experiments on the MVTec AD dataset demonstrate that TRKDM-P achieves state-of-the-art performance, with image-level and pixel-level AUROCs of 99.4% and 98.1%, respectively. Additional evaluations on BTAD and MPDD datasets confirm its strong generalization. However, the use of a Swin-B backbone and auxiliary modules increases model parameters to 88.1M, highlighting a trade-off between accuracy and efficiency. This work underscores the potential of transformer-based knowledge distillation for industrial anomaly detection while identifying avenues for lightweight deployment.

Discover Applied Sciences
Industry, innovation and infrastructure
Openalex Percentile: Top 5%
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.