NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

TED: Text-Axis Evidence Decomposition for Prompted Anomaly Localization

Jinyoungkim, Geonho Kim, GiJeong Park, Geonu Lee, YoungJoon YooNeurIPS 2026

TL;DR

Vision-language models like CLIP are great at understanding images globally, but when adapted to pinpoint tiny industrial defects, they often get trigger-happy—flagging complex normal textures, sharp edges, or reflections right alongside actual flaws. Instead of retraining the model, the authors introduce TED (Text-Axis Evidence Decomposition), a lightweight post-hoc scoring rule that asks a simple tie-breaking question for every suspicious patch: does this look more like past defects we’ve seen, or past false alarms? By untangling true anomalies from visually noisy normal regions without touching the underlying model, TED dramatically sharpens pixel-level defect maps—even unlocking strong localization in completely frozen, unadapted backbones.

What Problem Does This Paper Address?

Imagine teaching an AI inspector to spot microscopic scratches on a brushed-metal part using natural language prompts ("a photo of a damaged object" vs. "a photo of a normal object"). Pretrained vision-language models (VLMs) like CLIP weren't built for this kind of fine-grained pixel hunting. To fix this, recent Anomaly Detection (AD) methods bolt on learnable prompts or lightweight visual adapters to crank up the model's sensitivity to defects.

Here is the catch: higher sensitivity doesn't mean cleaner evidence. When deployed on new target domains, these adapted models suffer from what the authors call hard-false-positive (hard-FP) entanglement. Visually busy normal regions—glints of light, intricate weaves, sharp geometric edges—trigger anomaly scores just as high as genuine defects.

Figure 1: Hard-FP competition and text-axis response. (a) Across adapted CLIP-AD hosts, true defects remain much harder to separate from hard false positives than from generic outside patches. (b) Across target datasets, the learned text-axis response is consistently more informative than the orthogonal component, suggesting that the axis should be decomposed rather than discarded.

Standard prompt-similarity scoring collapses all of this onto a single 1D scale, leaving true defects and "hard normal" patches hopelessly overlapping. Simply suppressing high scores dims the real defects too. The challenge isn't getting the backbone to see the defect; it's figuring out how to decode an ambiguous high score once it appears.

Methods

Rather than designing yet another adapter or prompt-tuning pipeline, the authors leave the host detector, prompts, and visual backbone completely frozen. They propose TED, a post-hoc evidence decoder that operates along the host model's existing normal-to-anomaly text direction (the vector pointing from the "normal" text embedding to the "anomaly" text embedding).

Figure 2: Overview of TED. The host provides patch features(Vp) and normal(tn)/anomaly(ta) text embeddings that define the host text axis. TED projects query patches and source defect/hard-FP features onto this axis to compute a defect-versus-hard-normal support margin. T-TED uses this margin as a train-free local score, while C-TED converts it into a bounded residual anchored to the host score.

Using a labeled source dataset (no target-domain data or labels are ever touched), TED builds two reference memory banks per feature layer:

  1. A Defect Bank: Patch features from actual source defects.
  2. A Hard-FP Bank: Normal source patches that the host model previously mistook as anomalous (high-scoring false alarms).

When evaluating a patch in a new query image, TED projects the query patch, the defect bank, and the hard-FP bank onto that same 1D normal-to-anomaly text axis. It measures how close the query's response is to each bank (via a smooth log-sum-exp kernel density estimate) and computes a support margin: defect support minus hard-FP support.

TED comes in two flavors:

  • T-TED (Train-Free): Uses this signed margin directly as the new pixel-level anomaly score. Ideal for raw, unadapted VLM backbones.
  • C-TED (Source-Calibrated): Designed for already-adapted CLIP-AD hosts (like AdaCLIP or FAPrompt) whose baseline scores are already well-tuned. Instead of overwriting the host score, C-TED passes the margin through a tiny, source-trained tanh layer to add a bounded residual nudge—boosting defect-like patches and pushing down hard-FP lookalikes.

Datasets

TED is evaluated under a strict cross-dataset transfer protocol (source-to-target, zero target-domain training or tuning) across standard industrial inspection benchmarks:

  • MVTec AD, VisA, MPDD, and BTAD for both frozen-backbone and adapted-host evaluations.
  • MVTec AD 2 as an additional diagnostic benchmark for frozen VLM backbones.
  • No new datasets are introduced; existing benchmarks are paired in source-to-target splits to test cross-domain generalization.

Key Insights and Ideas

  • Frozen VLMs already know more than they let on: Raw CLIP and ImageBind backbones perform terribly at pixel-level anomaly localization using standard prompt similarity. Yet, applying train-free T-TED on the exact same frozen features causes localization metrics to skyrocket. The defect information wasn't missing from the representation—raw prompt similarity was just a terrible way to rank it.
  • Decompose the text axis, don't discard it: One might assume that if the text axis confuses defects with edges, we should look orthogonal (perpendicular) to it. The authors show that orthogonal residuals actually hurt separation against ordinary background, whereas the text axis remains highly informative—it just needs source-bank tie-breaking to pry apart the top-scoring contenders.
  • Architecture tweaks don't cure entanglement: Even when the authors change feature layers, swap backbones, and retrain the host models from scratch, the exact same confusing normal patches continue to compete with true defects. Feature engineering and local evidence decoding solve fundamentally different problems.
  • Explicitly modeling mistakes is the secret sauce: Using only a defect bank leaves defects and hard normals tangled up. Explicitly contrasting against a bank of the model's own past false alarms is what creates a clean ranking gap.

Key Results

  • Massive leaps on frozen backbones: On frozen ViT-H/14 transferring to MVTec AD, replacing raw prompt similarity with train-free T-TED jumps pixel-AUROC from 15.2 to 85.3, P-PRO from 1.0 to 77.9, and P-AP from 2.0 to 26.2. Similar dramatic recoveries hold across ImageBind and other CLIP variants.
  • Consistent gains on adapted state-of-the-art hosts: Applied post-hoc to adapted models (AnomalyCLIP, FAPrompt, AdaCLIP, AdaptCLIP), C-TED improves 71% to 100% of evaluated pixel-level settings depending on the host, adding an average of +2.9 P-AUROC, +4.9 P-PRO, and +3.0 P-AP.
  • Helps most when things get messy: Grouping target classes by how badly the baseline struggles with hard false positives shows that C-TED's mean localization gain ($\Delta$PRO / $\Delta$AP average) scales from +5.0 in low-competition regimes to ~+10.9 (+11.3 in Mid, +10.6 in High) when hard-FP entanglement is severe.
  • Lightweight and stable: Residual rank ablations show a tiny subspace ($r=2$) works best, and localization gains saturate with a modest retained bank size (as small as 256 patches), avoiding per-target hyperparameter tuning.

Limitations and Future Work

  • Ceiling on already-clean hosts: Because C-TED is designed specifically to resolve competition between defects and hard false positives, gains naturally shrink when a host model is already highly calibrated and separates the two well on a given target domain.
  • Reliance on representative source banks: As noted in the conclusion, TED's effectiveness depends on having representative source-domain defect and hard-FP examples. Furthermore, on adapted hosts, directly replacing the host score with train-free T-TED can be brittle (degrading performance compared to the calibrated host), making the bounded residual of C-TED necessary.
  • Pixel-level focus: TED specifically targets local anomaly maps; consequently, image-level screening metrics (I-AUROC) see smaller and occasionally mixed changes.
  • (Future work directions are not explicitly detailed in the paper beyond framing local evidence decoding as a distinct, complementary axis to model adaptation.)

Summary updated

BibTeX
@inproceedings{jinyoungkim2026ted,
  author = {JINYOUNGKIM and Geonho Kim and GiJeong Park and Geonu Lee and YoungJoon Yoo},
  title = {{TED: Text-Axis Evidence Decomposition for Prompted Anomaly Localization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=2lzL7Y6lmU},
}
Figure