arXiv:2509.23741cs.CV2025-09IJCV被引 2

通过残差特征学习,实现无需微调的跨类别异常检测。

ResAD++: Towards Class Agnostic Anomaly Detection via Residual Feature Learning

  • 用残差特征替代原始特征,消除类间相关性
  • 在8个真实数据集上直接检测新类别,性能超越现有方法
  • 适合需要快速部署到未知类别的工业异常检测场景

本文研究无类别依赖的异常检测(AD)问题,目标是训练一个可泛化至不同领域新类别的通用异常检测模型,无需对目标数据重新训练或微调。现有单/多类别方法在新类别上表现不佳,根本原因在于其表征学习仍受类别影响,存在特征相关性。为此,提出残差特征学习框架ResAD,核心思想是学习残差特征分布而非初始特征分布。残差特征通过匹配并减去正常参考特征生成,有效实现特征解相关。即使在新类别中,正常残差特征分布也保持稳定。此外,针对残差特征仍存在的尺度相关性问题,提出超球面约束方法,将初始残差特征约束在空间超球面上,使不同类别的特征尺度尽可能一致。进一步引入新型logbarrier双向收缩单类分类损失和基于向量量化的目标特征分布匹配模块,形成改进版ResAD++。在八个真实世界异常检测数据集上的实验表明,ResAD++在直接应用于新类别时表现优异,显著优于当前最先进方法,且优于原版ResAD。代码已公开于https://github.com/xcyao00/ResAD。

原文摘要 · Abstract (English)

This paper explores the problem of class-agnostic anomaly detection (AD), where the objective is to train one class-agnostic AD model that can generalize to detect anomalies in diverse new classes from different domains without any retraining or fine-tuning on the target data. When applied for new classes, the performance of current single- and multi-class AD methods is still unsatisfactory. One fundamental reason is that representation learning in existing methods is still class-related, namely, feature correlation. To address this issue, we propose residual features and construct a simple but effective framework, termed ResAD. Our core insight is to learn the residual feature distribution rather than the initial feature distribution. Residual features are formed by matching and then subtracting normal reference features. In this way, we can effectively realize feature decorrelation. Even in new classes, the distribution of normal residual features would not remarkably shift from the learned distribution. In addition, we think that residual features still have one issue: scale correlation. To this end, we propose a feature hypersphere constraining approach, which learns to constrain initial normal residual features into a spatial hypersphere for enabling the feature scales of different classes as consistent as possible. Furthermore, we propose a novel logbarrier bidirectional contraction OCC loss and vector quantization based feature distribution matching module to enhance ResAD, leading to the improved version of ResAD (ResAD++). Comprehensive experiments on eight real-world AD datasets demonstrate that our ResAD++ can achieve remarkable AD results when directly used in new classes, outperforming state-of-the-art competing methods and also surpassing ResAD. The code is available at https://github.com/xcyao00/ResAD.

异常检测残差学习无监督跨类别

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。