AdapTS: Lightweight Teacher-Student Approach for Multi-Class and Continual Visual Anomaly Detection
Abstract
Visual Anomaly Detection (VAD) is crucial for industrial inspection.
However, most methods are designed for single-category models, and Teacher-Student (TS) approaches, despite their efficiency, have not been designed for the Continual scenario, where they need a replay buffer.
To bridge this gap, we propose AdapTS, a unified TS framework for multi-class and continual settings, optimized for resource-constrained deployment.
A single shared frozen backbone acts as teacher and student, and lightweight trainable adapters, selected at inference by a prototype-based task identification (99% accuracy), store the knowledge of each category without keeping past data.
Training is enhanced via a segmentation-guided objective on synthetic Perlin noise.
On MVTec AD, AdapTS-M improves I-ROC by 11 points over STFPM and needs 4.3 times less memory than Dinomaly, which is 4 points ahead.
In the Continual scenario, AdapTS-M reaches the best pixel-level AP with only 0.1% forgetting and no replay buffer.
AdapTS-S needs only 23 MB, and with a MobileNetV2 backbone AdapTS needs 6-7 MB while outperforming the edge-oriented STFPM on all metrics.
AdapTS is thus a viable solution for resource-constrained deployment.