One Language-Free Foundation Model Is Enough for Universal Vision Anomaly Detection

Bin-Bin GaoNeurIPS 2026

TL;DR

For the past couple of years, spotting visual defects without domain-specific training meant wrestling with massive vision-language models, intricate text prompts, and heavy adapters. This paper shows that you can throw the entire text encoder in the trash. By learning tiny, task-specific decision weights directly in the visual space—amounting to just 0.02 million parameters—UniADet unlocks pure-vision backbones like DINOv3, crushing existing zero-shot, few-shot, and even full-shot benchmarks at a fraction of the computational cost.

What Problem Does This Paper Address?

Visual Anomaly Detection (AD) is the art of looking at an image—say, a manufactured hazelnut or a brain MRI—and figuring out if something is wrong (image-level classification) and where it is wrong (pixel-level segmentation). Historically, you needed thousands of pristine "normal" images for every single object type to train a specialized model.

To build universal detectors that work out-of-the-box on unseen objects (zero-shot or few-shot), researchers turned to Vision-Language Models (VLMs) like CLIP. By comparing image features to text prompts like "a photo of a damaged object," VLMs generalized surprisingly well. However, this sparked an arms race of complexity: tedious prompt engineering, learnable text embeddings, and heavy visual/textual adapter modules. Worse, tying anomaly detection to language locks us out of powerful, pure-vision foundation models like DINOv2 and DINOv3.

Furthermore, existing VLM methods use the exact same text-derived weights to judge both whole images and tiny pixel patches across different network layers—assuming all those features live in the same mathematical neighborhood. (Spoiler: they don't.)

Figure 1: Comparison of current language-dependent and our language-free paradigm for zero-shot vi- sion anomaly detection. (a) The language-dependent paradigm requires a heavy dual-branch pipeline, relying on a textual encoder and complex adapters (θt and/or θv) to align visual features with fixed or learnable tex- tual prompts. (b) The proposed language-free paradigm is simple (learning only task-related weights, Wcls and Wseg), parameter-efficient (about 0.015M learnable pa- rameters), general (adapting a variety of foundation mod- els, e.g., CLIP and DINOv3), and effective (surpassing SOTA zero/few-shot and even full-shot AD methods).

Methods

The author strips universal anomaly detection down to its bare essentials with UniADet:

  • Ditching the Text Encoder: In CLIP-based AD, the giant text encoder ultimately boils prompts down into a simple two-column weight matrix ("normal" vs. "anomalous") used to take a cosine similarity with visual features. UniADet deletes the text encoder and adapters entirely, freezing a single vision foundation model and optimizing those lightweight linear probes directly in the visual latent space.
  • Multi-Scale Decoupling (DCS & MS-DCS): Instead of forcing one shared weight matrix to do everything, UniADet learns separate weights for global image classification ($W_{cls}$) and local pixel segmentation ($W_{seg}$). Because shallow network layers capture fine textures while deep layers capture abstract semantics, it also learns independent weights for every selected layer of the backbone.
  • Class-Aware Augmentation (CAA): During base training, images are stitched into grids or cropped to teach multi-scale context, carefully sampling within the same class so normal and anomalous labels don't get muddled.
  • Training-Free Few-Shot Memory Bank (MS-NMB): If you have 1 to 4 normal reference images of a new object, UniADet stores their multi-scale patch tokens in a memory bank. At test time, it blends its zero-shot score with the nearest-neighbor distance to these normal patches—no fine-tuning required.
Figure 2: The language-free UniADet framework. Uni- ADet decouples global image anomaly classification and local patch segmentation so that their weights are learned independently across hierarchical features. Once trained, it can identify anomalous images and segment anoma- lous regions in a zero-shot manner. Furthermore, it can be extended to few-shot scenarios using a multi-scale normal memory bank constructed from a few normal reference images, without additional training.

Datasets

No new datasets are introduced, as the goal is proving universal generalization across standard benchmarks. Following standard zero-shot protocols, UniADet is trained once on the test split of VisA and evaluated across 13 unseen datasets (and trained on MVTec when evaluating on VisA):

  • Industrial (6 benchmarks, Zero- & Few-Shot): MVTec, VisA, BTAD, DTD, KSDD, and the massive, complex Real-IAD dataset.
  • Medical (8 benchmarks, Cross-Domain Zero-Shot): Brain tumor detection (HeadCT, BrainMRI, Br35H), skin lesions (ISIC), and gastrointestinal polyps (ClinicDB, ColonDB, Kvasir, Endo).

Key Insights and Ideas

  • Language is just an expensive middleman: A text encoder's only real job in zero-shot AD is generating linear decision boundaries. Learning those vectors directly from an auxiliary visual dataset is faster, simpler, and removes linguistic bias.
  • Text prompts actively fight pixel segmentation: When the author compared UniADet's learned directions to standard WinCLIP text embeddings, global classification weights correlated positively with text, while local segmentation weights correlated negatively. Generic words like "damaged" align with whole images, not fine-grained pixel structures!
  • Feature manifolds don't mix: t-SNE visualizations reveal that global tokens vs. local patch tokens, and shallow layers vs. deep layers, form completely separate clusters in latent space. Sharing weights across them creates a mathematical tug-of-war that decoupling cleanly resolves.

Key Results

  • Extreme Efficiency: UniADet uses only 0.015M–0.02M learnable parameters (2 to 3 orders of magnitude smaller than competitors like AdaptCLIP and Bayes-PFL) and runs zero-shot inference in 15.7 ms per image on CLIP—nearly 4$\times$ faster than AdaptCLIP (57.5 ms) and 10$\times$ faster than Bayes-PFL (154.9 ms).
  • Zero-Shot Dominance: Swapping in DINOv3 allows UniADet to hit 91.7% image AUROC and 47.4% pixel AUPR across industrial benchmarks (+7.2% pixel AUPR over Bayes-PFL). Trained only on industrial parts, it transfers zero-shot to medical segmentation at 91.7% pixel AUROC / 63.2% pixel AUPR.
  • Beating Full-Shot with 4 Images: On the challenging Real-IAD benchmark, 4-shot UniADet (with DINOv2) achieves 90.3% image AUROC and 48.5% pixel AUPR—beating heavy 5-model ensembles like UniVAD and, for the first time ever, outperforming state-of-the-art full-shot models like Dinomaly (89.3% / 42.8%) trained on all available normal data.

Limitations and Future Work

  • No Textual Reasoning: Because it is completely language-free, UniADet cannot handle scenarios where anomalies are defined by specific text instructions or logical rules written in natural language.
  • Memory Bank Scaling: In the few-shot setting, the computational cost and memory footprint of the nearest-neighbor search grow linearly with the number of normal reference images provided. Future work is not explicitly discussed in the paper.

Summary updated

BibTeX
@inproceedings{gao2026one,
  author = {Bin-Bin Gao},
  title = {{One Language-Free Foundation Model Is Enough for Universal Vision Anomaly Detection}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=tLTO6bWhaB},
}
Figure