FiLo++: Zero-/Few-Shot Anomaly Detection by Fused Fine-Grained Descriptions and Deformable Localization

Zhaopeng Gu, Bingke Zhu, Guibo Zhu, Yingying Chen, Ming Tang, Jinqiao Wang · OpenReview

Abstract

Anomaly detection (AD) typically requires extensive normal samples from the target class for training, limiting its applicability in scenarios that require rapid adaptation, such as cold start. Zero-shot and few-shot anomaly detection do not require labeled samples from the target class in advance, making them a promising research direction. Existing zero-shot and few-shot approaches often leverage powerful multimodal models to detect and localize anomalies by comparing image-text similarity. However, their handcrafted generic descriptions fail to capture the diverse range of anomalies that may emerge in different objects, and simple patch-level image-text matching often struggles to localize anomalous regions of varying shapes and sizes. To address these issues, this paper proposes the FiLo++ method, which consists of two key components. The first component, Fused Fine-Grained Descriptions (FusDes), utilizes large language models to generate anomaly descriptions for each object category, combines both fixed and learnable prompt templates and applies a runtime prompt filtering method, producing more accurate and task-specific textual descriptions. The second component, Deformable Localization (DefLoc), integrates the vision foundation model Grounding DINO with position-enhanced text descriptions and a Multi-scale Deformable Cross-modal Interaction (MDCI) module, enabling accurate localization of anomalies with various shapes and sizes. In addition, we design a position-enhanced patch matching approach to improve few-shot anomaly detection performance. Experiments on multiple datasets demonstrate that FiLo++ achieves significant performance improvements compared with existing methods.

Introduction

Traditional anomaly detection (AD) models are data-hungry, requiring thousands of "normal" samples to learn the baseline characteristics of a healthy product. This requirement presents a major bottleneck for "cold-start" scenarios in manufacturing. Recent "zero-shot" approaches leverage multimodal models like CLIP to compare images against text prompts (e.g., "a photo of a damaged nut"). However, these methods face two major hurdles: coarse descriptions that fail to distinguish subtle defects from lighting artifacts, and rigid localization mechanisms based on fixed-grid patch matching that struggle with irregular defect shapes.

FiLo++ (an evolution of the authors' previous FiLo work) introduces a two-pronged architecture to address these issues by giving AI a more precise "vocabulary" and flexible "vision."

Methodology

Fused Fine-Grained Descriptions (FusDes)

Instead of relying on generic prompts, FiLo++ utilizes Large Language Models (LLMs) to generate category-specific defect descriptions. For a given object class, the LLM provides specific terms like "frayed," "discolored," or "punctured."

  • Learnable Templates: The system combines these specific terms with learnable prompt vectors that adapt during training to better align text and image features.
  • Runtime Prompt Filtering: To solve "cross-semantic ambiguity," where a description might accidentally match a normal feature, the model dynamically filters out "noisy" prompts that do not clearly distinguish between normal and abnormal states for a specific image.

Deformable Localization (DefLoc)

To accurately identify the location of defects, FiLo++ employs a sophisticated localization pipeline:

  • Grounding DINO: This vision foundation model identifies the object of interest first, allowing the system to ignore background noise that often causes false positives.
  • MDCI Module: The Multi-scale Deformable Cross-modal Interaction module uses Deformable Convolutions. Unlike standard kernels, these can change their shape to match the irregular geometry of a defect, significantly improving localization precision.
The overall architecture of FiLo++, featuring the Fused Fine-Grained Descriptions (FusDes) and Deformable Localization (DefLoc) modules.

Experimental Results

The authors evaluated FiLo++ on four major benchmarks: industrial datasets (MVTec-AD and VisA) and medical datasets (BrainMRI and RESC). The medical datasets were used to test the model's generalization capabilities—training on industrial data and testing on medical images without further tuning.

Quantitative comparison of FiLo++ against state-of-the-art zero-shot anomaly detection methods on MVTec-AD and VisA datasets.

As shown in the table above, FiLo++ sets new benchmarks for zero-shot performance. On the VisA dataset, it achieved 84.5% Image-level AUC and 96.2% Pixel-level AUC, significantly outperforming WinCLIP and AnomalyCLIP. On MVTec-AD, it reached 92.1% Image-AUC. Furthermore, in medical generalization tests on the BrainMRI dataset, FiLo++ achieved an 86.6% Image-AUC in a 1-shot setting, outperforming the next best method by 13.5%.

Conclusion

FiLo++ demonstrates that moving beyond generic "normal vs. abnormal" labels is crucial for robust zero-shot anomaly detection. By leveraging LLMs for fine-grained descriptions and deformable convolutions for flexible localization, the framework achieves state-of-the-art accuracy across diverse domains. Future work will focus on addressing "logical" anomalies, such as missing components, and extending the framework to video anomaly detection.

Summary updated

Abstract

Anomaly detection methods typically require extensive normal samples from the target class for training, limiting their applicability in scenarios that require rapid adaptation, such as cold start. Zero-shot and few-shot anomaly detection do not require labeled samples from the target class in advance, making them a promising research direction. Existing zero-shot and few-shot approaches often leverage powerful multimodal models to detect and localize anomalies by comparing image-text similarity. However, their handcrafted generic descriptions fail to capture the diverse range of anomalies that may emerge in different objects, and simple patch-level image-text matching often struggles to localize anomalous regions of varying shapes and sizes. To address these issues, this paper proposes the FiLo++ method, which consists of two key components. The first component, Fused Fine-Grained Descriptions (FusDes), utilizes large language models to generate anomaly descriptions for each object category, combines both fixed and learnable prompt templates and applies a runtime prompt filtering method, producing more accurate and task-specific textual descriptions. The second component, Deformable Localization (DefLoc), integrates the vision foundation model Grounding DINO with position-enhanced text descriptions and a Multi-scale Deformable Cross-modal Interaction (MDCI) module, enabling accurate localization of anomalies with various shapes and sizes. In addition, we design a position-enhanced patch matching approach to improve few-shot anomaly detection performance. Experiments on multiple datasets demonstrate that FiLo++ achieves significant performance improvements compared with existing methods. Code will be available at https://github.com/CASIA-IVA-Lab/FiLo.
BibTeX
@article{gu2026filo,
  author = {Zhaopeng Gu and Bingke Zhu and Guibo Zhu and Yingying Chen and Ming Tang and Jinqiao Wang},
  title = {{FiLo++: Zero-/Few-Shot Anomaly Detection by Fused Fine-Grained Descriptions and Deformable Localization}},
  journal = {IEEE Trans. Circuits Syst. Video Technol.},
  year = {2026},
  doi = {10.1109/tcsvt.2026.3671805},
}
Figure