FACT: A Forensic Agent with Compiled Tool-Use Trajectories for AI-Generated Image Detection
Organizations: Lingnan University, Hong Kong · Harbin Institute of Technology, Shenzhen · The University of Hong Kong · The Chinese University of Hong Kong ·
Abstract
AI-generated image detection is increasingly open-world: new image generators produce highly realistic images that make visual artifacts harder to identify. Existing detectors usually rely on a fixed set of forensic cues, so a detector that works well for one generator family may fail on another. We introduce FACT (Forensic Agent with Compiled Tool-use Trajectories), which learns an image-conditioned tool-use policy for forensic analysis. Instead of applying a fixed detector, FACT decides which forensic tools to call, interprets the returned evidence, and stops when sufficient evidence has been collected. FACT follows an Evolve--Distill--Refine pipeline: it evolves an execution-verified forensic skill, compiles the skill into action--observation tool-use trajectories, distills them into a compact agent, and refines the policy with cost-aware GRPO. Across two internal and four public benchmarks, FACT achieves the best performance among all compared methods, including on recent unseen generators, deepfakes, and manipulated images.
Figures & tables
| Method | Nano Banana | Nano Pro | GPT- Image-1 | SD3.5 L | SD3 M | Z-Image Turbo |
|---|---|---|---|---|---|---|
| VERITAS | 0.74 | 0.75 | 0.76 | 0.50 | 0.64 | 0.35 |
| SIDA | 0.70 | 0.61 | 0.51 | 0.53 | 0.58 | 0.57 |
| SDAIE | 0.64 | 0.54 | 0.36 | 0.69 | 0.70 | 1.00 |
| AIDE | 0.52 | 0.84 | 0.55 | 0.49 | 0.50 | 0.98 |
| Comm. | 0.67 | 0.56 | 0.59 | 0.52 | 0.83 | 0.71 |
| Method | STD3K | NewGen-900 |
|---|---|---|
| Community ( Park and Owens 2024 ) | 78.56 | 72.67 |
| Veritas ( Tan et al. 2025 ) | 40.78 | 43.11 |
| SIDA ( Huang et al. 2024 ) | 77.38 | 61.00 |
| SDAIE ( Zhong et al. 2025 ) | 59.53 | 76.89 |
| AIDE ( Yan et al. 2025a ) | 44.31 | 73.44 |
| Majority Vote | 72.97 | 75.33 |
| Method | Accuracy |
|---|---|
| NPR † ( Tan et al. 2024 ) | 57.81 |
| AIDE † ( Yan et al. 2025a ) | 65.77 |
| Community ( Park and Owens 2024 ) | 78.44 |
| Veritas ( Tan et al. 2025 ) | 58.23 |
| SIDA ( Huang et al. 2024 ) | 66.50 |
| SDAIE ( Zhong et al. 2025 ) | 58.86 |
| Method | BAcc. |
|---|---|
| Effort † ( Yan et al. 2025b ) | 74.09 |
| FakeVLM † ( Wen et al. 2025 ) | 81.62 |
| MIRROR † ( Liu et al. 2026 ) | 85.23 |
| AIDE † ( Yan et al. 2025a ) | 73.70 |
| FakeShield † ( Xu et al. 2025 ) | 61.55 |
| SIDA † ( Huang et al. 2024 ) | 61.92 |
| Method | Accuracy |
|---|---|
| AIDE † ( Yan et al. 2025a ) | 92.80 |
| FakeVLM † ( Wen et al. 2025 ) | 81.00 |
| UniShield † ( Huang et al. 2025 ) | 94.20 |
| Community ( Park and Owens 2024 ) | 96.80 |
| Veritas ( Tan et al. 2025 ) | 69.60 |
| SIDA ( Huang et al. 2024 ) | 59.90 |
| (a) Method Acc. FreqNet † 64.60 ProDet † 80.60 NPR † 69.80 AIDE † 70.60 Co-SPY † 84.70 D 3† 81.10 Effort † 82.20 Qwen2.5-VL-7B † 54.10 InternVL3-8B † 58.30 MiMo-VL-7B † 72.50 GLM-4.1V-9B-T † 61.70 GPT-4o † 60.80 | (b) Method Acc. Gemini-2.5-Pro † 78.90 M2F2-Det † 63.20 FakeShield † 60.80 SIDA-7B † 76.30 SIDA-13B † 69.80 FFAA † 64.00 FakeVLM † 77.30 Veritas † 90.70 AIDE (ours) 61.60 SDAIE (ours) 68.30 Community (ours) 76.30 FACT 94.44 |
| (a) Training stages Var. S D R STD New Direct – – – 87.90 50.80 Skill ✓ – – 89.40 75.10 Distill. ✓ ✓ – 91.53 81.89 Refine ✓ ✓ ✓ 91.40 82.44 | (b) Toolbox Sig. Exp. Acc. ✓ – 82.90 – ✓ 82.50 ✓ ✓ 90.70 |
| Task | Fmt. | Valid | Cost | Acc. | Acq. |
|---|---|---|---|---|---|
| ✓ | – | – | – | 81.78 | 1.5300 |
| ✓ | ✓ | – | – | 82.00 | 1.5700 |
| ✓ | ✓ | ✓ | – | 82.56 | 1.5500 |
| ✓ | ✓ | ✓ | ✓ | 82.44 | 1.3835 |
AI-Generated Image Detection
AI-generated image detection identifies synthetic or AI-edited images and develops methods that generalize across generators, domains, and image transformations.
See all 194 papers