Vision-Language Feature Alignment for Road Anomaly Segmentation

Zhuolin He, Jiacheng Tang, Jian Pu, Xiangyang XuearXiv 2026

TL;DR

VL-Anomaly is a novel vision-language framework designed to drastically reduce false positives in road anomaly segmentation for autonomous driving. By leveraging the open-world semantic priors of pre-trained Vision-Language Models (VLMs) like CLIP, it aligns visual features at both the pixel and mask levels to precisely isolate unexpected obstacles while ignoring benign environmental variations like changing skies or trees.

What Problem Does This Paper Address?

For autonomous vehicles to navigate safely, they must accurately detect out-of-distribution (OOD) objects—unexpected road obstacles like lost cargo or stray animals that were never included in their training datasets.

Existing anomaly segmentation methods typically follow a vision-only paradigm, relying on pixel-level uncertainty or low-level visual statistics to flag anomalies. However, because these models lack a high-level semantic understanding of the scene, they suffer from high false-positive rates. Normal background elements that exhibit natural visual variations (such as shifting cloud patterns in the sky, shadows, or seasonal changes in vegetation) are frequently misclassified as anomalies. This can lead to phantom braking and erratic vehicle behavior, posing severe safety risks.

Methods

VL-Anomaly addresses this by introducing a pre-trained VLM (CLIP) as an "external observer" to provide robust semantic regularization. The framework consists of two core components:

  1. Prompt Learning-Driven Aligner (PL-Aligner): Rather than using rigid, handcrafted text prompts, the authors employ learnable context tokens for each known class (e.g., "road", "sky", "vegetation"). The PL-Aligner bridges the gap between the segmentation model's visual features and CLIP's text embeddings using a hierarchical, two-stage alignment process:
  2. Pixel-level alignment: Maps dense visual features directly to text embeddings using a contrastive loss to capture fine-grained boundaries.
  3. Mask-level alignment: Aligns the transformer decoder's mask queries with the text embeddings to ensure structured, object-level category consistency.
  4. Multi-Source Inference Strategy: At inference time, the model fuses three complementary scores to generate the final anomaly map:
  5. Detector confidence from the base segmentation network.
  6. Text-guided similarity derived from the learned prompts.
  7. CLIP-based image-text similarity from the frozen CLIP image encoder, providing a global semantic prior.
Overall architecture of VL-Anomaly

Datasets

The model is first finetuned on the Cityscapes dataset using auxiliary outlier data from MS-COCO. It is then evaluated on three widely recognized road anomaly benchmarks:

  • RoadAnomaly: 60 internet-sourced validation images featuring diverse, multi-scale anomalies.
  • Segment Me If You Can (SMIYC): Evaluated on the RoadAnomaly21 (RA21) and RoadObstacle21 (RO21) subsets.
  • Fishyscapes: Evaluated on the Static and the highly challenging Lost & Found (L&F) validation subsets.

Key Insights and Ideas

  • The "Insider" vs. "External" Perspective: Closed-set segmentation models suffer from an inherent bias—they try to force every visual input into a pre-defined category. By introducing a VLM, the system gains an independent semantic anchor that recognizes when a region simply does not match any known class description.
  • Hierarchical Granularity is Crucial: The ablation studies revealed that aligning features at only the pixel level or only the mask level yields suboptimal results. Pixel-level alignment anchors fine-grained semantics, while mask-level alignment reinforces object coherence. Together, they effectively suppress background noise.
  • Learnable Prompts Outperform Static Text: Moving from handcrafted templates to learnable context tokens allowed the text embeddings to dynamically adapt to the specific nuances of road scenes during training, yielding consistent performance gains.

Key Results

VL-Anomaly achieves state-of-the-art performance across all evaluated benchmarks:

  • Fishyscapes Lost & Found: The model achieved a massive +23.5% absolute boost in AuPRC (jumping from the Mask2Anomaly baseline of 46.0% to 69.5%) and raised the AuROC to 96.0%.
  • SMIYC-RO21: It achieved a near-perfect AuROC of 99.7% and improved the Positive Predictive Value (PPV) from 70.3% to 73.4%.
  • Efficiency: Despite the multi-modal integration, the framework maintains an inference speed of 6.7 FPS (only a minor drop from the baseline's 8.3 FPS), proving its viability for real-world robotics pipelines.
Qualitative comparison of anomaly segmentation maps

Limitations and Future Work

The primary limitation acknowledged by the authors is that their multi-source inference strategy relies on manually adjusted hyperparameter weights ($\alpha, \beta, \gamma$) to fuse the three score maps. These weights were tuned empirically based on dataset performance, which limits the system's automation and scalability across entirely unseen environments.

Future work will focus on developing adaptive, data-driven weight optimization strategies to automatically balance these parameters online.

Summary updated

BibTeX
@misc{he2026vision,
  author = {Zhuolin He and Jiacheng Tang and Jian Pu and Xiangyang Xue},
  title = {{Vision-Language Feature Alignment for Road Anomaly Segmentation}},
  year = {2026},
  eprint = {2603.01029},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.01029},
}
Figure