用拓扑分析提升异常分割的结构一致性,无需重训练模型。
Learning Topology-Aware Representations via Test-Time Adaptation for Anomaly Segmentation

- 引入拓扑数据分析构建鲁棒伪标签,指导测试时自适应
- 在6个基准上平均提升15%的F1值,复杂结构异常效果更优
- 适合需要高精度结构保持的工业缺陷检测场景
测试时自适应(TTA)是缓解深度模型分布偏移的有前景方法。然而,现有异常分割的TTA方法依赖像素级启发式策略(如置信度阈值或熵最小化),在噪声和纹理变化下无法保持结构一致性,且通常将异常图视为平坦强度场,忽视复杂缺陷的高阶空间关系。本文提出TopoTTA框架,将拓扑数据分析中的持久同调技术融入TTA流程,通过多层级立方体复形滤波生成鲁棒的拓扑伪标签,引导轻量级测试时分类器,提升分割质量而无需重训练主干网络。该方法避免依赖特定方法的原始分数阈值进行掩码二值化,保持连通性,并在2D与3D模态间良好泛化。在六个标准基准(MVTec AD、VisA、Real-IAD、MVTec 3D-AD、AnomalyShapeNet、MVTec LOCO)上的实验证明,相比最先进的无监督异常检测与分割方法,平均F1提升15%,尤其在具有复杂几何或结构变化的异常上表现突出。结果表明,将拓扑推理融入测试时自适应,为结构感知泛化提供了原则性路径,弥合了几何学习与鲁棒适应之间的差距。
原文摘要 · Abstract (English)
Test-time adaptation (TTA) has emerged as a promising paradigm for mitigating distribution shifts in deep models. However, existing TTA approaches for anomaly segmentation remain limited by their reliance on pixel-level heuristics, such as confidence thresholding or entropy minimisation, which fail to preserve structural consistency under noise and texture variation. Moreover, they typically treat anomaly maps as flat intensity fields, ignoring the higher-order spatial relationships that characterise complex defect geometries. We introduce TopoTTA (Topological Test-Time Adaptation), a novel framework that integrates persistent homology, a tool from topological data analysis, into the TTA pipeline to enforce geometric and structural coherence during adaptation. By applying multi-level cubical complex filtration to anomaly score maps, TopoTTA derives robust topological pseudo-labels that guide a lightweight test-time classifier, enhancing segmentation quality without retraining the backbone model. The approach avoids reliance on method-specific raw-score thresholding for mask binarisation, preserves connectivity, and generalises across both 2D and 3D modalities. Extensive experiments across six standard benchmarks (MVTec AD, VisA, Real-IAD, MVTec 3D-AD, AnomalyShapeNet, and MVTec LOCO) demonstrate an average 15% F1 improvement over state-of-the-art unsupervised anomaly detection and segmentation methods, with the largest gains on anomalies exhibiting complex geometric or structural variations. These findings suggest that integrating topological reasoning into test-time adaptation provides a principled route to structure-aware generalisation, bridging the gap between geometric learning and robust adaptation.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。