PL-SCEA: Reconfiguring Pretrained Attention for Few-Shot Industrial Anomaly Detection
Abstract
Vision Foundation Models (VFMs) provide transferable patch representations for few-shot industrial anomaly detection, but their attention computation is typically inherited from pretraining objectives centered on semantic aggregation. This creates a potential mismatch: token relations that support semantic recognition may not adequately expose the localized texture and structural deviations required for anomaly localization. We therefore investigate the hypothesis that the attention computation of a frozen VFM can be reconfigured as a task-relevant component of anomaly detection. We instantiate this idea with Power-Law Self-Correlation Enhanced Attention (PL-SCEA), which retains the semantic context of pretrained query-key attention while constructing token-adaptive self-correlations over contextualized value features. Positive-correlation filtering and power-law reweighting then emphasize relations that are salient relative to each token's relational background, without introducing additional trainable attention projections. The resulting features are modeled by a lightweight variational autoencoder that provides a fixed-size reconstruction-based representation of category-specific normality. The two stages serve complementary roles: attention reconfiguration shapes how local relational deviations are represented, while reconstruction-based modeling converts deviations from learned normality into anomaly scores. Across MVTec AD and VisA, the complete framework achieves competitive image-level detection and consistently strong pixel-level localization across the evaluated few-shot settings. Ablations further show that PL-SCEA improves localization with either the VAE or a memory bank under the tested setting. These results support the view that task-aligned attention reconfiguration can improve the anomaly-localization capability of frozen pretrained representations.
Create a lesson
Related papers
ADClaw: A Programmable Visual Agent for Industrial Anomaly Detection and Understanding
Shared title terminologycs.CVXinyi Wu, Rongxin Gao, YuHui Lin et al.
ProtoRAG: Prototype-Based Retrieval Augmentation for Few-Shot Fine-Grained Remote Sensing Object Detection
Shared title terminologycs.CVJian Wang, Yuxiang Hong, Chufeng Zhou et al.
Spatial Attention Supervision for Defect Localization: Exploiting Ground-Truth Masks as Training Signal in Diffusion-Augmented Defect Detection
Shared title terminologycs.CVSajjad Rezvani Boroujeni, Muskan Saraf, Gnana Tulasi Makineni et al.
FineHOI: Part-Aware Dense Representations for Zero-Shot Human-Object Interaction Detection
Shared title terminologycs.CVFrancesco Tonini, Lorenzo Vaquero, Mohammad Mahdi Derakhshani et al.
Few-Shot Video Recognition via Hierarchical Metric Learning
Shared title terminologycs.CVJiaxin Zhang, Haoran Gao, Xizhan Gao et al.
Training-Free Logical and Structural Anomaly Detection via Calibrated Fusion
Shared title terminologycs.CVChangyi Li, Miao Yu, Kai Dong et al.