Seedlabs
Source research

AD-FM: Multimodal LLMs for Anomaly Detection via Multi-Stage Reasoning and Fine-Grained Reward Optimization

Jingyi Liao, Yongyi Su, Rong-Cheng Tu, Zhao Jin, Wenhao Sun, Yiting Li et al. · 2026 · 13 citationsRead the paper

All 9 authors

Xun Xu, Dacheng Tao, Xulei Yang

While Multimodal Large Language Models (MLLMs) demonstrate remarkable capabilities across diverse domains, their application to specialized anomaly detection (AD) remains constrained by domain adaptation challenges. Existing Group Relative Policy Optimization (GRPO) based approaches suffer from two critical limitations: inadequate training data utilization when models produce uniform responses, and insufficient supervision over reasoning processes that encourage immediate binary decisions without deliberative analysis. We propose a comprehensive framework addressing these limitations through two synergistic innovations. First, we introduce a multi-stage deliberative reasoning process that guides models from region identification to focused examination, generating diverse response patterns essential for GRPO optimization while enabling structured supervision over analytical workflows. Second, we develop a fine-grained reward mechanism incorporating classification accuracy and localization supervision, transforming binary feedback into continuous signals that distinguish genuine analytical insight from spurious correctness. Comprehensive evaluation across multiple industrial datasets shows that our method achieves superior accuracy by enabling general-purpose MLLMs to acquire fine-grained visual discrimination for detecting subtle manufacturing defects.

What the full text shows

Working prototype
  • AD-FM achieved higher average binary classification accuracy across four industrial datasets compared to other MLLMs and proprietary models. — 73.15% avg accuracy vs. 71.60% (GPT-4.1) and 66.56% (InternVL3 38B) (Multi-domain evaluation on MVTec, VisA, MVTec-LOCO, and GoodsAD)
  • The fine-grained reward mechanism significantly reduced the percentage of samples with zero reward variance, increasing training data utilization. — 11.00% zero-variance samples vs. 41.25% for binary-only baseline (MVTec dataset, 6 responses per sample)
  • Multi-stage reasoning and fine-grained rewards provided a substantial improvement over the zero-shot base model. — +22.11% improvement over 51.04% baseline (Multi-domain anomaly detection using Qwen2.5-VL 7B)
Setup
Trained on 20% of data from MVTec, VisA, MVTec-LOCO, and GoodsAD; evaluated on the remaining 80%. Hardware: two NVIDIA B200 GPUs.
How
The authors used Group Relative Policy Optimization (GRPO) to fine-tune a Qwen2.5-VL (7B) model using LoRA. They implemented a three-stage reasoning process (Think, Rethink, Answer) and a fine-grained reward function combining classification accuracy and localization supervision.
Limitations
Hardware compatibility issues with FlashAttention on Blackwell architecture required using standard attention mechanisms.

Summarized by Gemma 4 from the open-access full text · 17 Nov 2026. Read it