AnomalyAgent: Agentic Industrial Anomaly Synthesis via Tool-Augmented Reinforcement Learning
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Industrial anomaly generation is a crucial method for alleviating the data scarcity problem in anomaly detection tasks. Most existing anomaly synthesis methods rely on single-step generation mechanisms, lacking complex reasoning and iterative optimization capabilities, making it difficult to generate anomaly samples with high semantic realism. We propose AnomalyAgent, an anomaly synthesis agent with self-reflection, knowledge retrieval, and iterative refinement capabilities, aiming to generate realistic and diverse anomalies. Specifically, AnomalyAgent is equipped with five tools: Prompt Generation (PG), Image Generation (IG), Quality Evaluation (QE), Knowledge Retrieval (KR), and Mask Generation (MG), enabling closed-loop optimization. To improve decision-making and self-reflection, we construct structured trajectories from real anomaly images and design a two-stage training framework: supervised fine-tuning followed by reinforcement learning. This process is driven by a three-part reward mechanism: (1) task rewards to supervise the quality and location rationality of generated anomalies; (2) reflection rewards to train the model's ability to improve anomaly synthesis prompt; (3) behavioral rewards to ensure adherence to the trajectory. On the MVTec-AD dataset, AnomalyAgent achieves IS/IC-L of 2.10/0.33 for anomaly generation, 57.0% classification accuracy using ResNet34, and 99.3%/74.2% AP at the image/pixel level using a simple UNet, surpassing all zero-shot SOTA methods. The code is publicly available at https://github.com/sssjmmm/AnomalyAgent.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 19 of its 45 references that are in the map. First posted on arXiv 9 Apr 2026.
Builds on
19 of 45 references.
References · 19
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
- 2025Qwen3-VL Technical Reportcited by 2,793
- 2024OpenAI o1 System Cardcited by 1,244
- 2025Vision-R1: Incentivizing Reasoning Capability in Multimodal Large Language Modelscited by 665
- 2025DeepEyes: Incentivizing "Thinking with Images" via Reinforcement Learningcited by 410
- 2025Pixel Reasoner: Incentivizing Pixel-Space Reasoning with Curiosity-Driven Reinforcement Learningcited by 278
- 2023Automatically Correcting Large Language Models: Surveying the landscape of diverse self-correction strategiescited by 238
- 2025MEM1: Learning to Synergize Memory and Reasoning for Efficient Long-Horizon Agentscited by 238
- 2025Memory-R1: Enhancing Large Language Model Agents to Manage and Utilize Memories via Reinforcement Learningcited by 237
- 2025SimpleTIR: End-to-End Reinforcement Learning for Multi-Turn Tool-Integrated Reasoningcited by 146
7 more
- 2025DeepEyesV2: Toward Agentic Multimodal Modelcited by 125
- 2025AgentRL: Scaling Agentic Reinforcement Learning with a Multi-Turn, Multi-Task Frameworkcited by 62
- 2014Generative Adversarial Networkscited by 33
- 2025AutoTIR: Autonomous Tools Integrated Reasoning via Reinforcement Learningcited by 33
- 2024SeaS: Few-shot Industrial Anomaly Image Generation with Separation and Sharing Fine-tuningcited by 27
- 2025A Survey on Industrial Anomaly Synthesiscited by 7
- 2025AnoStyler: Text-Driven Localized Anomaly Generation via Lightweight Style Transfercited by 5
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025AgentIAD: Agentic Industrial Anomaly Detection via Adaptive Memory Augmentation
- 2026IndusAgent: Reinforcing Open-Vocabulary Industrial Anomaly Detection with Agentic Tools
- 2026CORE: Contrast-and-Reflect for Self-Supervised Prompt Optimization in Anomaly Synthesis
- 2025PANDA: Towards Generalist Video Anomaly Detection via Agentic AI Engineer
- 2026Plan First, Judge Later, Run Better: A DMAIC-Inspired Agentic System for Industrial Anomaly Detection
- 2025Swift Hydra: Self-Reinforcing Generative Framework for Anomaly Detection with Multiple Mamba Models
- 2026AnomalyAgent: Training-Free Agentic Models for Zero-/Few-Shot Anomaly Detection
- 2025AutoIAD: Manager-Driven Multi-Agent Collaboration for Automated Industrial Anomaly Detection