Language-Guided Open-World Anomaly Segmentation

Klara Reichard, Nikolas Brasch, Nassir Navab, Federico TombariarXiv 2025 · DOI

Introduction

Traditional perception systems in autonomous driving typically operate under a "closed-world" assumption, where models are trained to recognize a fixed set of categories such as cars, pedestrians, and roads. However, real-world environments are unpredictable. When these systems encounter "out-of-distribution" (OOD) objects—such as stray animals or fallen cargo—they often misclassify them into known categories, posing significant safety risks. While existing anomaly segmentation methods can flag these regions as "unknown," they lack the ability to identify what the object is.

The Clipomaly Framework

To bridge this gap, we present Clipomaly, a zero-shot framework designed to detect, segment, and name unconstrained anomalies on the fly. Clipomaly leverages the shared image-text embedding space of CLIP (Contrastive Language-Image Pre-training) to provide human-interpretable labels without the need for anomaly-specific training data.

The pipeline consists of four primary stages:

  1. Unknown Mask Prediction: The system utilizes dense CLIP embeddings, fine-tuned on known classes (e.g., Cityscapes), to calculate pixel-wise softmax entropy. High entropy indicates uncertainty, signaling a potential anomaly. A Graph Cut algorithm then refines these regions into a coherent binary mask.
  2. Tagging: Candidate labels are generated using either a dictionary-based approach or the Recognize-Anything Model (RAM).
  3. CLIP-BEST Region Matching: This core innovation selects the most accurate label by calculating the spatial similarity (soft Intersection-over-Union) between candidate text embeddings and the dense CLIP image embeddings within the identified unknown region.
  4. Open-Vocabulary Segmentation: The selected label is integrated into the known vocabulary, and a segmentation backbone (CAT-Seg) re-processes the image to produce a final, fine-grained semantic map.
Overview of the Clipomaly architecture: from entropy-based mask prediction to region-based label matching using CLIP embeddings.

Experimental Evaluation

The model was fine-tuned on the Cityscapes dataset to establish a baseline of "known" classes. Its ability to handle anomalies was evaluated using several benchmarks:

  • RoadAnomaly: 60 images of diverse obstacles like tires and animals.
  • SMIYC (SegmentMeIfYouCan): A public benchmark for OOD detection.
  • BDD-Anomaly: Used to assess performance stability across open and closed-world settings.

Results and Discussion

Clipomaly achieves state-of-the-art performance on major benchmarks. On the RoadAnomaly dataset, the RAM-based variant achieved 84.7 AUPR and 57.8 mIoU, significantly outperforming previous methods like UNO and Maskomaly. On the SMIYC leaderboard, the method ranks 6th in AUPR, notably surpassing ContMAV.

Qualitatively, the model demonstrates a remarkable ability to identify and label diverse anomalies. For instance, it can distinguish between a "turkey" and "terrain," providing essential context for downstream autonomous vehicle planning. This interpretability is critical; knowing an object is a "pheasant" allows for different behavioral responses than knowing it is a static "bollard."

Qualitative results demonstrating Clipomaly's ability to correctly identify and name road anomalies like turkeys.

Conclusion

Clipomaly represents a significant step toward safer autonomous systems by moving beyond generic "unknown" flags to semantic understanding. By naming anomalies, the system allows for more nuanced behavioral responses. Future work will focus on integrating explicit uncertainty losses to sharpen initial masks and optimizing the system for real-time deployment on automotive hardware.

Summary updated

BibTeX
@misc{reichard2025language,
  author = {Klara Reichard and Nikolas Brasch and Nassir Navab and Federico Tombari},
  title = {{Language-Guided Open-World Anomaly Segmentation}},
  year = {2025},
  eprint = {2512.01427},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.01427},
}
Figure