← Back to feed
2026-06-26visiondatacode

Learning Topology-Aware Representations via Test-Time Adaptation for Anomaly Segmentation

Ali Zia, Usman Ali, Abdul Rehman, Umer Ramzan, Kang Han, Muhammad Faheem, Shahnawaz Qureshi, Wei Xiang

PDF preview for Learning Topology-Aware Representations via Test-Time Adaptation for Anomaly Segmentation
Read on arXiv →

Key claim

TopoTTA improves anomaly segmentation by 15% on average.

In plain English

Imagine you're working on a system that detects defects in products, like identifying scratches or dents in manufactured items. The challenge is that the conditions under which you trained your model might not match the real-world scenarios it faces, leading to errors in detection. Current methods often rely on simple rules, like setting a confidence threshold, to decide if something is an anomaly. However, these methods can fail when the anomalies are complex or when the input data varies in texture or noise. This is what's called reliance on pixel-level heuristics, which can miss the bigger picture of how defects are structured and related to each other.

What this paper introduces is a new approach that uses topological data analysis to better understand the shape and structure of anomalies. Instead of treating anomaly maps as flat images, it looks at the underlying geometric relationships, which helps maintain consistency even when the data changes. By applying a technique called persistent homology, the method creates robust labels that guide a lightweight classifier during the adaptation process. This means it can improve the quality of segmentation without needing to retrain the entire model.

In practical terms, this approach leads to a significant improvement in detecting and segmenting anomalies, especially those with complex shapes. The results show an average 15% increase in F1 score across several standard benchmarks, which is a meaningful enhancement over existing methods. For anyone building systems that need to adapt to new conditions while maintaining accuracy, this method offers a promising direction.

Novelty
8.0/10

The integration of topological data analysis into test-time adaptation represents a significant methodological advancement.

Reliability
8.0/10

The extensive experiments across multiple benchmarks provide strong support for the claims made.

Deep reliability assessment

The methodology supports improved segmentation quality by integrating topological reasoning into test-time adaptation, but the reliance on the quality of upstream anomaly score maps and non-differentiable operations may limit its robustness in noisy conditions.

Reproducibility

yes, the code is available at https://topotta.github.io

Key figure

Figure 1 likely illustrates the TopoTTA framework integrating persistent homology into the test-time adaptation pipeline for anomaly segmentation.

Benchmark results

MVTec ADF1: 0.553vs PatchCore+15%SOTA
MVTec LOCOF1: 0.584vs SALAD+15%SOTA
VisAF1: 0.47vs Dinomaly+15%SOTA
Codelink
topotta.github.ioOfficial