FB-CLIP: Fine-Grained Zero-Shot Anomaly Detection with Foreground-Background Disentanglement

arXiv cs.CV / 3/23/2026

💬 OpinionModels & Research

Key Points

  • FB-CLIP introduces foreground-background disentanglement to enable fine-grained zero-shot anomaly detection and localization, reducing interference from backgrounds.
  • It enhances textual cues via End-of-Text features, global-pooled representations, and attention-weighted token features for richer semantic guidance.
  • The visual module applies multi-view soft separation along identity, semantic, and spatial dimensions with background suppression to improve discriminability.
  • Semantic Consistency Regularization aligns image features with normal and abnormal textual prototypes to enlarge semantic gaps and suppress uncertain matches.
  • Experiments show effective anomaly detection and localization under zero-shot settings in complex scenes.

Abstract

Fine-grained anomaly detection is crucial in industrial and medical applications, but labeled anomalies are often scarce, making zero-shot detection challenging. While vision-language models like CLIP offer promising solutions, they struggle with foreground-background feature entanglement and coarse textual semantics. We propose FB-CLIP, a framework that enhances anomaly localization via multi-strategy textual representations and foreground-background separation. In the textual modality, it combines End-of-Text features, global-pooled representations, and attention-weighted token features for richer semantic cues. In the visual modality, multi-view soft separation along identity, semantic, and spatial dimensions, together with background suppression, reduces interference and improves discriminability. Semantic Consistency Regularization (SCR) aligns image features with normal and abnormal textual prototypes, suppressing uncertain matches and enlarging semantic gaps. Experiments show that FB-CLIP effectively distinguishes anomalies from complex backgrounds, achieving accurate fine-grained anomaly detection and localization under zero-shot settings.