Comparative Visual Reasoning for Industrial Anomaly Detection

This direction is no longer present in the current build. Its last version stays readable and citable here.

Version 1 of 124 papers35 conceptsfrozen 2026-10-04

Traditional industrial inspection relies on teaching a model what a "defect" looks like. However, in modern manufacturing, defects are rare and unpredictable. A more robust approach, increasingly adopted across the field, shifts the problem from absolute classification to relative comparison. By providing a model with a "golden" reference—a known-good exemplar—researchers are transforming anomaly detection into a task of comparative visual reasoning.

The Golden Template as a Visual Anchor

The core intuition behind this research direction is that it is easier to spot a difference than to define a deviation in a vacuum. In Printed Circuit Board (PCB) manufacturing, Matan Rusanovsky and colleagues demonstrated in ChangeChip that comparing a target board to a single defect-free reference image allows for unsupervised detection without massive labeled datasets.

This "reference-based" approach acts as a visual anchor. Instead of the model asking, "Is this scratch a defect?", it asks, "Does this region match the corresponding region in the golden template?" As noted by Enrique Dehaerne in their review of semiconductor inspection, this method isolates structural deviations by subtracting the reference signal from the query, highlighting only the anomalies.

Anomaly Detection as Change Segmentation

Recent work has reframed the entire detection pipeline as a "change segmentation" task. Bin-Bin Gao introduced MetaUAS, which treats anomalies as pixel-level discrepancies between a query and a reference. By training on synthetic data where differences are explicitly defined, the model learns the relationship of difference rather than specific defect categories.

This shift is powerful because it enables universal generalization. A model trained to segment changes between two images of a bottle can, in theory, apply that same logic to a piece of fabric or a mechanical gear, provided it has a normal reference for each. OneNIP, also by Bin-Bin Gao, uses this single normal image as a "cheat sheet" to prevent models from accidentally reconstructing anomalies through local context alone.

Overcoming the Limits of Language

While Multimodal Large Language Models (MLLMs) like GPT-4o are excellent at general reasoning, they often struggle with the fine-grained precision required for industrial tasks. Xi Jiang and the team behind the MMAD benchmark found that models often experience "information overload" when processing high-resolution industrial images.

To solve this, researchers are moving away from purely text-based prompts. Xiaohao Xu and others have shown that customizing VLMs with visual prompts—actual images of healthy objects—significantly outperforms text-only descriptions. This is because many industrial defects, such as a slightly misaligned capacitor or a subtle texture variation, are difficult to describe in words but obvious when juxtaposed with a normal sample. Aymane Abdali further demonstrated that even a single visual example of an anomaly provides more utility than complex linguistic descriptions.

Juxtaposed Reasoning and Agentic Inspection

The most recent evolution in this field involves "juxtaposed reasoning," where the model is explicitly trained to look back and forth between the query and the reference. Hyunju Kang introduced JUDO, a reasoner that internalizes domain knowledge to explain visual discrepancies relative to a baseline.

This comparative logic is being integrated into agentic workflows. In AgentIAD, Junwen Miao and colleagues equipped an AI agent with the ability to retrieve a canonical normal image whenever it encounters a suspicious area. This allows the system to distinguish between natural variations and actual structural defects, providing a transparent reasoning trace that mimics how a human inspector would use a reference manual.

By grounding detection in direct visual comparison, these methods bypass the need for exhaustive defect libraries and allow AI to adapt to new products as quickly as a reference image can be captured.

Papers in this version

History & citationVersion 1 · 2026-10-04

No longer present in the current build · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_comparative_visual_reasoning_for_industr_1940ae58,
  title = {Comparative Visual Reasoning for Industrial Anomaly Detection},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/comparative-visual-reasoning-for-industrial-anomaly-detection/rdr_1940ae584edf4680bbb2e17b6dbd9279},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-12-01},
}

This exact version (version 1, frozen text):

@misc{lacuna_comparative_visual_reasoning_for_industr_1940ae58_v1,
  title = {Comparative Visual Reasoning for Industrial Anomaly Detection},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/comparative-visual-reasoning-for-industrial-anomaly-detection/rdr_1940ae584edf4680bbb2e17b6dbd9279/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-12-01},
}