Abstract
General-purpose Vision-Language Models (VLMs) often struggle in industrial settings due to a lack of domain-specific knowledge and the inability to perform effective reference-based comparisons. We present SAGE, a framework that addresses these gaps through Comparison-based Learning. SAGE utilizes Self-Guided Fact Enhancement (SFE) to fuse visual features with textual anomaly facts and Entropy-aware Direct Preference Optimization (E-DPO) for fine-grained logical alignment. Evaluated on the AD-PL dataset and MANTA benchmark, SAGE demonstrates superior accuracy and reasoning consistency over state-of-the-art models like GPT-4o.
Introduction
Detecting defects in a manufacturing environment requires more than general visual recognition; it demands an understanding of domain-specific "normalcy." General VLMs like GPT-4o often fail to distinguish between benign artifacts, such as lighting reflections, and critical anomalies like chemical degradation or structural cracks. This failure stems from three primary issues: a lack of industrial domain specificity, the absence of comparison logic against reference standards, and a lack of interpretable reasoning.
SAGE (Self-Guided Fact Enhancement and Entropy-aware Alignment) shifts the paradigm from single-image analysis to comparison-based learning, mimicking the human inspector's process of comparing a suspect part against a known "perfect" reference.
Methodology
The SAGE framework is built upon two novel training strategies designed to ground visual features in industrial logic.
Self-Guided Fact Enhancement (SFE)
SAGE incorporates domain-specific "facts" to guide its visual attention. The system generates textual descriptions of potential object-specific anomalies (e.g., "leakage can occur when the cable is exposed to moisture"). These facts are converted into embeddings and fused with visual features via a cross-attention mechanism. To sharpen the model's focus, SAGE identifies the "top-k most distinct patches" between the test image and a reference normal image, ensuring the model prioritizes actual discrepancies over background noise.
Entropy-aware Direct Preference Optimization (E-DPO)
To improve logical sturdiness, SAGE employs E-DPO. Unlike standard DPO, which uses binary preferences, E-DPO utilizes a set of four ranked answers ranging from "perfect" to "completely wrong." The model is optimized based on the entropy (uncertainty) of these choices, allowing it to learn subtle distinctions between varying degrees of correctness. This results in more nuanced and reliable diagnostic reasoning.
Multiscale Logical Evaluation (MLE)
To quantitatively measure reasoning quality, the authors developed MLE. This framework uses a teacher model to score responses on a 1–5 scale across three dimensions: identification accuracy, localization precision, and reasoning consistency.
Datasets and Evaluation
The researchers introduced AD-PL, a massive preference-optimized dataset tailored for industrial reasoning, containing 28,415 QA instances with expert-ranked responses derived from benchmarks like MVTec AD, VisA, and MPDD.
Evaluation was conducted on the MANTA (multi-view anomaly) and MPDD QA datasets. SAGE demonstrated a clear lead over both open-source and proprietary models:
- Zero-Shot Accuracy: SAGE achieved 69.6% average accuracy on MANTA, outperforming GPT-4o by 7.5%.
- One-Shot Performance: In one-shot settings, SAGE reached 73.5% accuracy.
- Logical Consistency: In the "Accuracy-for-Group" (Acc-G) metric—requiring correct answers to five interrelated questions—SAGE scored 17.0% (zero-shot), nearly doubling the performance of competing models.
Conclusion
SAGE demonstrates that industrial anomaly detection is significantly improved by providing models with a "normal" reference and grounding visual analysis in domain-specific facts. While the model currently depends on the quality of initial fact generation, its ability to outperform general-purpose VLMs in logical consistency marks a significant step toward deployable industrial AI. Future work will focus on reducing reliance on external fact generation and improving generalization to entirely unseen industrial categories.
Summary updated