Skip to content

Frozen Features, Fault Lines, and Motion: Three Routes Through Industrial Anomaly Detection

#anomaly-detection #industrial-vision #vision-transformers #multimodal-llm #unsupervised-learning #optical-flow

MVTec is saturated. That is the interesting part. ​

The best single-class detectors on MVTec-AD now clear 99.7 image AUROC. A benchmark everyone passes stops telling you anything. So the useful signal in industrial anomaly detection has moved to three other places: whether you need learned features at all, where inside a frozen backbone the information actually breaks down, and what you do about defects that only exist as motion.

Three papers take those questions one at a time. PRISM strips learning out entirely. Fault-guided cross-layer prediction maps the internal seams of a DINOv2 backbone and predicts across them. MUSTARD points a multimodal LLM at video and asks it to reason about how a part moves. Different problems, one shared shape underneath.

PRISM: random weights, Mahalanobis distance, no gradient step ​

The setup is almost insultingly simple. Push your input through a fixed random nonlinear projection, then score each sample by Mahalanobis distance to a bank of normal references. No pretrained weights. No AD-specific objective. No backprop.

On 47 tabular datasets from ADBench, PRISM-T reaches 86.4% mean AUROC and 65.9% mean AUPRC, the best AUROC and second-best AUPRC among the compared methods. Read that as a budget line. Any tabular detector you build has to clear roughly 86 AUROC with a real training pipeline before the added complexity pays for itself. Plenty don't.

The visual side is more surprising. Across MVTec-AD and VisA, 27 categories, PRISM-V gets 90.4% mean image AUROC and 96.4% mean pixel AUROC. Pixel localization at 96.4 with zero trained parameters means the separability was already sitting in the pixel statistics plus a decent normal reference set. Learning was never the hard part there. Choosing a scoring rule was.

Key numbers from PRISM

  • 86.4% mean AUROC across 47 ADBench tabular datasets, zero weight optimization
  • 65.9% mean AUPRC, second best of the compared methods
  • 90.4% / 96.4% image / pixel AUROC across 27 visual categories from MVTec-AD and VisA
  • 0 pretrained representations used anywhere in the pipeline

The paper also sketches why this holds: nonlinear transforms change how the mean and covariance terms split their contribution to the Mahalanobis score gap. That mechanism is what you'd want to check before trusting random features on an unfamiliar data type.

Four fault lines inside a frozen ViT ​

The second paper asks a narrower question. If a vision transformer is a stack of blocks, what can one block actually pass to the next?

In DINOv2 ViT-L, the answer isn't "everything, uniformly." Adjacent-layer cosine similarity shows four sharp discontinuities across depth, splitting the stack into stable segments. Inside a segment, blocks hand along roughly the same information. Across a fault line, they don't. Deep blocks keep semantic context but drop local detail. A pointwise block-to-block predictor trained to map hidden states across tokens can't bridge that gap, and the residual is where the defect shows up.

That structure is what fixes the source and target roles. You don't tune which layer pair to use, the similarity profile tells you. The same rule carries over to ViT-B and RADIO-B, which matters more than any single benchmark number, because hardcoding layer indices is how these pipelines break when someone swaps backbones.

There's also a foreground prior, calibrated only on training images, that attenuates background evidence without wiping out defects falling outside the estimated foreground region. That second clause is the whole trick. Masks that are too aggressive delete exactly the edge-of-frame defects you built the detector for.

DatasetImage AUROCPixel AUROCPixel AUPRO
MVTec-AD99.7598.4695.97
VisA99.4299.2196.12
Real-IAD (image-level)94.2799.2696.59
Real-IAD (object-level)96.2699.2696.59

Look at the Real-IAD split. Pixel AUROC of 99.26 against image AUROC of 94.27. The detector can find the defect and still gets confused about whether the picture as a whole is bad. That's a localization-versus-decision gap, and it's the number I'd watch on a production line: a false accept ships a bad part, while a slightly loose bounding box costs you almost nothing.

Quick Take: All three papers converge on the same bet, that a bank of normal references plus a well-chosen distance function beats a bespoke trained detector on most industrial datasets.

MUSTARD: when the defect only exists as motion ​

Static images cover a shrinking share of real inspection. A part can be shaped correctly in every frame and still be wrong, because a hinge sticks, a belt slips, or a component settles at the wrong angle. No single frame shows that.

MUSTARD is the first framework to point a multimodal LLM at this. It selects keyframes using optical flow, adds motion-derived modalities to the input, and runs a reasoning pipeline that compares against a handful of normal reference samples. No model updates at all, which on a factory floor means a product changeover costs you a few reference clips instead of a retraining run.

The claim is fine-grained spatiotemporal awareness plus an explanation a human can read. The abstract ships no AUROC, so treat the detection claim as a direction rather than a result. What I'd want before trusting it on a line: per-category numbers on a dynamics dataset, and some measure of how often the explanation matches the true failure mode. Plausible reasoning and correct reasoning look identical in a demo.

What actually separates them ​

Accuracy isn't the axis. All three have credible numbers, and two are above 99 image AUROC on MVTec-AD. The differences that decide a deployment are data requirements, backbone coupling, and whether the thing you're catching moves.

The pattern in that chart is the useful part: pixel localization is strong and flat across datasets, while the image-level decision is where variance appears. If your inspection step ends with a human looking at a mask, you're in good shape. If it ends with an automated accept/reject, that's the number to stress test.

PRISM needs nothing but normal samples and a covariance inverse, and it runs anywhere numpy runs. The cost: no notion of time, no explanation. Fault-guided prediction needs a frozen ViT, plus a re-check of the similarity profile whenever the backbone changes, but it gives you pixel maps at 256x256 (99.26/96.59 P-AUROC/AUPRO on Real-IAD) and the fault structure is derived rather than hand-tuned. MUSTARD is the only one of the three that can say anything about motion, and the only one whose accuracy claims I can't check against a number in the abstract.

The shape all three share ​

Strip the branding and the architectures look like the same pipeline with different feature extractors.

None of the three updates weights on the target product. None of them needs a labelled defect set, which is the constraint that actually matters, because defects are rare by definition. The reference set is the model. The design work goes into what counts as a reference and how you measure distance from it.

What trips people up ​

Leaking test images into calibration. The foreground prior in the fault-guided paper is calibrated on training images only. The moment you tune a mask threshold per category against your test split, your reported AUROC is fiction. I watched a team spend two weeks chasing a 1.5 point gap that turned out to be exactly this.

Reporting image AUROC on MVTec and stopping. Above 99.5, the benchmark can't rank methods. Report Real-IAD, report AUPRO, and report the image-versus-pixel gap. A detector at 94.27 image AUROC with 99.26 pixel AUROC tells you where to look. A single aggregate number doesn't.

Hardcoding layer indices. The four fault lines are specific to DINOv2 ViT-L. Swap to ViT-B or RADIO-B and the segment boundaries move. Compute the adjacent-layer similarity profile at load time and derive the source/target pairs from it, or your next backbone upgrade silently degrades the model.

Frame sampling that deletes the signal. If you're checking motion defects, uniform every-Nth-frame sampling gives you a set of individually normal images. The defect is in the transition. Optical-flow-guided keyframe selection exists for this reason, and a fixed stride is not a substitute.

Trusting generated explanations without measuring them. A reasoning pipeline that never updates its weights also never corrects itself. Score the explanations against known failure modes before anyone acts on them.

When I set up a frozen-DINO pipeline for a client last year, the scoring rule held up fine. The reference set was the failure: 40 "normal" images that included three with a subtle sheen variation the operators had stopped noticing. Everything downstream was correct and the output was garbage. PRISM's results make the same point from the other direction. The reference bank does most of the work.

What this means ​

If you're building a first-pass detector for tabular process data, start with PRISM-T before you train anything. An 86.4 mean AUROC baseline that fits in a notebook sets the bar, and if your gradient-boosted model can't clear it by a wide margin, the extra complexity isn't buying you anything.

If your defects are visual and localized, use fault-guided cross-layer prediction on a frozen ViT and compute the similarity profile at load time so the layer pairs travel with the backbone. Real-IAD object-level at 96.26 with pixel AUPRO of 96.59 is production-usable, and the 4.99 point gap between pixel and image AUROC means you should pair it with a separate image-level classifier instead of letting the localization score make the accept/reject call.

One thing to watch: MUSTARD's core claim, that an MLLM can reason about dynamics-based defects with zero weight updates, is the most interesting and the least evidenced of the three. Watch for per-category dynamics benchmarks and an explanation-faithfulness metric in the next round of papers. If those land, changeover cost on a multi-product line drops to a handful of reference clips, and that changes the economics of small-batch manufacturing.