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

Ming Hu, Yongsheng Huo, Mingyu Dou, Jianfu Yin, Peng Zhao +4 more
3/20/2026
4 citations
cs.CVcs.AI

No official code found. Best implementation: Xi-Mu-Yu/FB-CLIP (25 stars, MIT, last commit 2026-07-03).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

Xi-Mu-Yu/FB-CLIPCommunity77%
MIT

[CVPR 2026] Code for "FB-CLIP: Fine-Grained Zero-Shot Anomaly Detection with Foreground-Background Disentanglement"

252Mar 5, 20265 months agoMIT

Similar Papers

Cite this paper

@article{hu2026fbclip,
  title  = {FB-CLIP: Fine-Grained Zero-Shot Anomaly Detection with Foreground-Background Disentanglement},
  author = {Ming Hu and Yongsheng Huo and Mingyu Dou and Jianfu Yin and Peng Zhao and Yao Wang and Cong Hu and Bingliang Hu and Quan Wang},
  year   = {2026},
  eprint = {2603.19608},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.19608v1},
  journal = {CVPR 2026 2026}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2603.19608.svg)](https://codeofpaper.com/paper/2603.19608)

Discussion