Test-Time Adaptation for Anomaly Segmentation via Topology-Aware Optimal Transport Chaining
Authors:
Preprint
Abstract
Deep topological data analysis (TDA) offers a principled framework for capturing structural invariants such as connectivity and cycles that persist across scales, making it a natural fit for anomaly segmentation (AS). Unlike thresholdbased binarisation, which produces brittle masks under distribution shift, TDA allows anomalies to be characterised as disruptions to global structure rather than local fluctuations. We introduce TopoOT, a topology-aware optimal transport (OT) framework that integrates multi-filtration persistence diagrams (PDs) with test-time adaptation (TTA). Our key innovation is Optimal Transport Chaining, which sequentially aligns PDs across thresholds and filtrations, yielding geodesic stability scores that identify features consistently preserved across scales. These stabilityaware pseudo-labels supervise a lightweight head trained online with OT-consistency and contrastive objectives, ensuring robust adaptation under domain shift. Across standard 2D and 3D anomaly detection benchmarks, TopoOT achieves state-of-the-art performance, outperforming the most competitive methods by up to +24.1% mean F1 on 2D datasets and +10.2% on 3D AS benchmarks.Keywords
All Related Versions
This publication has 14 references indexed in Scilit:
- 2D-3D Feature Fusion via Cross-Modal Latent Synthesis and Attention-Guided Restoration for Industrial Anomaly Detection2025
- A Comprehensive Survey on Test-Time Adaptation Under Distribution ShiftsInternational Journal of Computer Vision, 2024
- AMI-Net: Adaptive Mask Inpainting Network for Industrial Anomaly Detection and LocalizationIEEE Transactions on Automation Science and Engineering, 2024
- Enhanced Multi-Scale Features Mutual Mapping Fusion Based on Reverse Knowledge Distillation for Industrial Anomaly Detection and LocalizationIEEE Transactions on Big Data, 2024
- Deep Learning for Unsupervised Anomaly Localization in Industrial Images: A SurveyIEEE Transactions on Instrumentation and Measurement, 2022
- The MVTec Anomaly Detection Dataset: A Comprehensive Real-World Dataset for Unsupervised Anomaly DetectionInternational Journal of Computer Vision, 2021
- Functional summaries of persistence diagramsJournal of Applied and Computational Topology, 2020
- Predicting Clinical Outcomes in Glioblastoma: An Application of Topological and Functional Data AnalysisJournal of the American Statistical Association, 2019
- A High-Efficiency Fully Convolutional Networks for Pixel-Wise Surface Defect DetectionIEEE Access, 2019
- Classification of hepatic lesions using the matching metricComputer Vision and Image Understanding, 2014