TL;DR
Vision-Language Models (VLMs) are great at seeing the "big picture," which ironically makes them terrible at spotting microscopic scratches on a factory line—and trying to fine-tune them using only defect-free images causes their internal representations to collapse. This paper introduces SF-DST, a framework that pairs a frequency-domain "magnifying glass" with an orthogonally constrained fine-tuning method (A-LoRA). The result is a model that catches subtle industrial defects as well as specialized vision detectors while retaining the ability to actually talk about what went wrong.
What Problem Does This Paper Address?
Suppose you want to automate quality control in a factory. Training a brand-new model from scratch for every screw, circuit board, and carpet weave doesn't scale. Pre-trained Vision-Language Models (VLMs) offer an appealing shortcut: they already understand the visual world and can describe defects in plain English.
However, dropping a generic VLM onto an assembly line runs into two major walls:
- The Semantic-Detail Paradox ("Texture Blindness"): Standard vision encoders are trained to recognize what an object is, regardless of lighting or minor surface noise. They act like low-pass filters, smoothing over high-frequency signals. Unfortunately, in manufacturing, a microscopic scratch or frayed thread is a high-frequency signal.
- Rank Collapse in One-Class Adaptation: Real defects are rare, so anomaly detectors are usually trained exclusively on normal, defect-free images. When you try to adapt a VLM to this narrow, repetitive diet using standard Low-Rank Adaptation (LoRA), the trainable matrices get lazy. Their columns align into redundant directions—a phenomenon called rank collapse—which actually makes the adapted model perform worse than if you had left it completely frozen.
Methods
The authors tackle architecture and optimization simultaneously with the Spatial-Frequency Dual-Stream Transformer (SF-DST), built atop a frozen InternVL3-8B backbone.
- Dual-Stream Processing: Alongside the standard Spatial Stream (which extracts patch-level semantic tokens while discarding the global
[CLS]token to preserve pixel-level location), the authors add a parallel Frequency Stream. It chops the image into identical patches, runs a 2D Discrete Cosine Transform (DCT—the math behind JPEG compression), scans the frequencies from low to high, and truncates the extreme high-end sensor noise. Because the spatial stream already captures patch averages, this branch acts as a clean band-pass filter for intra-patch textures. - Asymmetric Cross-Modal Modulation (ACMM): Simply gluing noisy frequency data onto clean semantic features corrupts the model. Instead, ACMM is asymmetric: the spatial semantics act as a query (a context gate) to selectively pull relevant spectral details, ignoring background texture noise. Crucially, this is added as a residual through a zero-initialized gate, meaning training starts purely from the trusted VLM representation and only lets frequency cues in when they actively help spot anomalies.
- Anomaly-Aware LoRA (A-LoRA): To stop LoRA from collapsing during one-class training, A-LoRA adds an orthogonal regularization penalty ($\|B^\top B - I\|_F^2$) directly on the LoRA up-projection matrix, forcing its basis vectors to stay independent. This is paired with a classic Deep SVDD hypersphere objective: normal features are pulled toward a momentum-updated center, while synthetic "CutPaste" pseudo-anomalies (made by cutting and pasting normal patches) are pushed outside a safety margin.
Datasets
No new datasets are introduced; the authors evaluate on three established industrial benchmarks:
- MVTec-AD: 5,354 high-resolution images across 15 categories (5 textures like carpet/grid, and 10 objects like bottles/transistors).
- VisA: 12 subsets featuring complex structures and multiple objects per view.
- MMAD: A comprehensive multimodal benchmark with 8,366 industrial images and 39,672 multiple-choice questions across 38 product categories, designed to test whether VLMs can classify, localize, and reason about defects in language.
Key Insights and Ideas
- Naive LoRA actively harms strong backbones in one-class settings: Without orthogonal constraints, vanilla LoRA degrades image-level AUROC on MVTec-AD from 94.9% (frozen) down to 94.5%. At a nominal rank of 16, vanilla LoRA's weight update collapses to an effective rank of just 4.8. A-LoRA keeps the subspace healthy at an effective rank of 14.6 and roughly doubles the effective rank of the learned feature covariance (18.6 $\rightarrow$ 39.1).
- Subspace conditioning predicts performance: Across six different parameter-efficient tuning methods (including DoRA, PiSSA, and AdaLoRA), anomaly detection accuracy tracks the effective rank of the weight updates almost monotonically (Spearman correlation $\rho = 0.94$).
- Asymmetry and zero-gating do the heavy lifting: Symmetric cross-attention between spatial and frequency streams underperforms ACMM (97.2% vs. 98.3% I-AUROC). Letting semantics boss the frequency details around—rather than treating them as equals—prevents background textures from triggering false alarms.
Key Results
- Unsupervised Anomaly Detection: SF-DST achieves 98.3% / 97.5% (Image / Pixel AUROC) on MVTec-AD and 93.7% / 98.4% on VisA, taking the top spot on VisA image-level AUROC among protocol-matched methods (+2.4 points over HVQ-Trans). Splitting MVTec-AD reveals the frequency stream's sweet spot: it boosts texture categories by +3.79 I-AUROC compared to +1.38 on objects.
- Few-Shot Transfer: Across 1-, 2-, and 4-shot settings on MVTec-AD and VisA, SF-DST secures the best or second-best scores in 11 out of 12 evaluations (e.g., 96.2% 1-shot I-AUROC on MVTec-AD).
- PEFT Showdown & Multimodal Reasoning: Under identical architectures and objectives, A-LoRA beats DoRA (+0.9 I-AUROC) and vanilla LoRA (+2.8 I-AUROC) while better preserving pre-trained natural-image features (0.91 CKA similarity vs. 0.61 for full fine-tuning). On MMAD, SF-DST improves over its InternVL3-8B base on 6 of 7 subtasks—jumping +7.8 points in defect classification—and beats GPT-4o-mini and Gemini-1.5-flash on defect localization and object analysis.
Limitations and Future Work
Because SF-DST sits on top of an 8-billion-parameter VLM, it takes 307 ms per image at inference time. Even though the new frequency stream and modulation add only 7.7% of that overhead, the overall system is much heavier than lightweight, vision-only detectors (like DINOv2-based models, which also score slightly higher on pure detection metrics under different protocols, though they lack language capabilities). The authors point to knowledge distillation—compressing the adapted model into a compact student network—and testing on live factory lines with calibrated operating thresholds as clear next steps.
Summary updated