arrow
Return

BinaryAD: Efficient image anomaly detection via binarized representations

delete2026-07-01
delete0
PRE
AI
J
Jiong Chen
Z
Zhang, Wenjing
P
Pengfei Wang
B
Bingyang Guo
H
Hanzhe Liang
沈琳琳 cover
沈琳琳 (Linlin Shen)
王金宝 cover
王金宝 (Jinbao Wang) *
Z
Zhichao Lu
DOI:10.1016/j.patcog.2026.114280delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
The steadily increasing complexity of Transformer-based image anomaly detection models poses significant challenges for deployment on resource-constrained edge devices. Although pruning, knowledge distillation, and low-bit quantization have achieved notable success in classification networks, directly applying full-model binarization or uniform low-bit quantization to Transformer-based anomaly detectors often leads to severe degradation in pixel-level anomaly localization performance. A key observation motivating this work is that the prototype extraction and reconstruction objectives commonly adopted in Transformer-based anomaly detection models are highly sensitive to quantization noise in the attention and MLP modules. In this paper, we propose BinaryAD, a module-selective binarization framework that learns compact binarized representations in the Transformer decoder to enable lightweight yet accurate anomaly detection models. Specifically, BinaryAD selectively binarizes only the most computationally intensive components, namely the self-attention and MLP layers in the Transformer decoder, while preserving full-precision feature extractors to maintain sufficient representational capacity. We instantiate BinaryAD on the representative INP and Dinomaly models and conduct extensive experiments on standard anomaly detection benchmarks. Experimental results demonstrate that, across datasets, BinaryAD reduces model size by up to 6.53 & times; and FLOPs by up to 7.99 & times;. More importantly, under optimal configurations, BinaryAD incurs only a minimal performance gap compared to full-precision baselines, with I-AUROC degradation of at most 1.1%, while still retaining competitive pixel-level anomaly localization accuracy. These results indicate that, when properly designed, module-selective binarization offers a practical and effective pathway for deploying advanced Transformer-based anomaly detection architectures on low-power, real-time industrial edge hardware. Source code is available at https://github.com/jj258/BinaryAD.
Keywords:
Anomaly detection
Lightweight models
Binarization
Computational efficiency

Journal

Pattern Recognition cover
Pattern Recognition
IF:
7.6
Papers:
1.3W
Citations:
4.5W

Organization

C
City University of Hong Kong
Scholars:
1.2K
Papers: 599
Citations: 0
S
Shenzhen University
Scholars:
2.0K
Papers: 703
Citations: 0
N
northeastern university - china
Scholars:
3.2W
Papers: 2.7W
Citations: 37
A
audencia
Scholars:
373
Papers: 655
Citations: 4
researcher View more organizations
Cited Papers

Cited Papers

No cited papers available