Manuscript Offprint
arXiv:2609.05876FACT: A Forensic Agent with Compiled Tool-Use Trajectories for AI-Generated Image Detection
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
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 generators held out from all FACT training stages, deepfakes, and manipulated images.
Introduction
The visual boundary between photographs and AI-generated images is rapidly disappearing. Modern generators reproduce coherent geometry, realistic materials, legible text, and plausible lighting, leaving few artifacts that casual inspection can reliably identify. Figure 1 turns this ambiguity into a simple question: which images are synthetic? The same ambiguity also challenges automatic detection. As image generators become more realistic and diverse, a cue that separates real and synthetic images for one generator family may not remain reliable for another. Image authentication is therefore an open-world problem.
This open-world setting is difficult for a single fixed detector because existing methods rely on different forensic priors: CNN-synthesis artifacts (Wang et al. 2020); representations from large pretrained vision-language models (Ojha,

Figure 1: Can you tell which images are real and which are generated by AI?
Li, and Lee 2023); generator-diverse training across thousands of models in Community Forensics (Park and Owens 2024); high-level semantic and high-/low-frequency features in AIDE (Yan et al. 2025a); camera-derived photographic priors in SDAIE (Zhong et al. 2025); multimodal detection, localization, and explanation in SIDA (Huang et al. 2024); and pattern-aware planning and self-reflection in Veritas (Tan et al. 2025). These cues are useful, but their reliability varies across generator families. In our balanced evaluation in Table 1, Veritas, AIDE, Community Forensics, and SDAIE each lead on different generator subsets. A fixed detector therefore commits to one evidence profile before seeing the image. The central question is instead: which evidence should be acquired for this particular image?
We address this image-conditioned evidence-acquisition problem with an agentic formulation: the model must decide which evidence to acquire, interpret returned observations, and stop when the evidence is sufficient. The most recent published agentic framework, UniShield, takes an initial step by routing each image to a predicted forgery domain and expert type before executing the selected detector (Huang et al. 2025). However, this remains closer to one-step routing than to a full forensic investigation. In open-world AI-generated image detection, useful evidence can vary from image to image even within the same broad forgery category. A forensic agent should therefore update its decision as new observations arrive and determine whether additional evidence is
Corresponding author.
Copyright © 2027, Association for the Advancement of Artificial Intelligence (www.aaai.org). All rights reserved.
In Fig. 1, the first two images are AI-generated, while the last two are real photographs.
| Method | Nano | Nano | GPT- | SD3.5 | SD3 | Z-Image |
|---|---|---|---|---|---|---|
| Banana | Pro | Image-1 | L | M | 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 |
Table 1: Detector specialization across recent generators. Each column is a balanced real-versus-synthetic subset. “Comm.” denotes Community Forensics; L and M denote Large and Medium. Darker cells indicate higher accuracy, and bold values mark the best detector in each subset.
still needed.
The limitation of one-step routing suggests that a forensic agent must do more than choose a detector once. A deployable agent must satisfy three requirements. First, it needs procedural knowledge: image-level labels do not specify how to investigate, which evidence to acquire, or how to reconcile conflicting cues. Second, it needs specialization: a general-purpose model can discover procedures, but deployment requires a compact agent specialized for forensic tool use and evidence-conditioned decisions. Third, it needs budget-aware stopping: the agent must decide when another tool call justifies its cost and when further evidence may become redundant or misleading under changing image quality and disagreement among heterogeneous forensic experts.
In this paper, we introduce FACT (Forensic Agent with Compiled Tool-use Trajectories), an Evolve–Distill–Refine pipeline for learning a deployable forensic investigation policy. To acquire procedural knowledge, Evolve represents forensic expertise as an explicit skill and improves it through a propose–execute–verify loop, accepting a revision only when rerunning the full tool interaction improves measured behavior. To achieve specialization, Distill uses the verified skill to guide a strong teacher in the real tool environment, compiling the procedure into action–observation trajectories and behaviorally cloning them into a compact agent. To enable budget-aware stopping, Refine applies cost-aware GRPO after distillation, rewarding final correctness while penalizing unnecessary evidence acquisition. At deployment, FACT uses only the compact forensic agent. For each test image, the agent decides whether to call a forensic tool, use the returned observation, or stop with a final real/AI decision. The skill-evolution components and the general model are used only during training.
We evaluate FACT on two balanced internal benchmarks and four public benchmarks. STD3K evaluates robustness under source diversity, containing 3,200 images from 21 generator/source groups and multiple real-image sources; the final refined FACT checkpoint achieves 91.40%. NewGen-900 evaluates generalization to nine recent generator families held out from all FACT training stages; FACT obtains 82.44% without generator-specific fine-tuning.
On public benchmarks, FACT obtains 87.53% on Chameleon (Yan et al. 2025a), 88.35% balanced accuracy
on LOKI (Ye et al. 2025), 98.77% on AIGCDetectionBenchmark (Zhong et al. 2023), and 94.44% on HydraFake (Tan et al. 2025). Across all six benchmarks, FACT achieves the best performance among the methods compared under each corresponding protocol, covering visually challenging synthetic images, recent generators held out from all FACT training stages, and broader forgery settings involving deepfakes and manipulated images.
Our contributions are threefold:
-
We formulate AI-generated image detection as an image-conditioned tool-use problem. Rather than applying a fixed detector, the agent selectively acquires signal-level and model-based forensic evidence, updates its decision from returned observations, and stops when the evidence is sufficient.
-
We propose an Evolve–Distill–Refine pipeline that learns such a forensic agent from image-level labels. It evolves an executable forensic skill, compiles the skill into action–observation tool-use trajectories, distills them into a specialized policy, and further optimizes tool selection and stopping with cost-aware GRPO.
-
We demonstrate strong performance and broad applicability across six benchmarks. FACT consistently outperforms its constituent tools, majority-vote ensembling, and recent detector baselines, while generalizing to recent generators held out from all FACT training stages and remaining effective on deepfakes and manipulated images.
AI-generated image detection. AI-generated image detection has evolved from recognizing generator-specific artifacts to learning more general and semantically informed notions of authenticity. Early methods exploit GAN fingerprints, upsampling artifacts, global texture inconsistency, and local frequency or texture irregularities (Wang et al. 2020; Liu, Qi, and Torr 2020); these cues can be highly effective on represented generators, but often weaken under unseen architectures, compression, resizing, and editing. Later methods improve cross-generator robustness by transferring pretrained visual representations (Ojha, Li, and Lee 2023), using reconstruction or diffusion-based discrepancies (Wang et al. 2023), or expanding training diversity across many generators, as in Community Forensics (Park and Owens 2024). Recent detectors further introduce heterogeneous forensic priors: SDAIE learns a photographic prior from camera metadata using only real camera images (Zhong et al. 2025); AIDE combines semantic representations with high- and low-frequency evidence (Yan et al. 2025a); SIDA unifies classification and textual explanation in a multimodal model (Huang et al. 2024); and Veritas incorporates planning and self-reflection for pattern-aware reasoning (Tan et al. 2025). These methods improve generalization, but their strengths remain generator- and evidence-dependent: a cue that is reliable for one generator family may be weak or misleading for another. FACT therefore does not introduce another fixed forensic prior. Instead, it treats existing priors as frozen callable experts and learns an image-conditioned policy for deciding which evidence should be acquired before making a decision.
Self-improving agents and agentic forensics. Tool-using agents interleave reasoning with external actions, and recent self-improving agents learn from reflection, interaction feedback, trajectories, or reusable skills (Yao et al. 2023; Shinn et al. 2023; Madaan et al. 2023; Zhao et al. 2024; Zheng et al. 2025; Chen et al. 2025; Yang et al. 2026). In image forensics, UniShield is the closest published agentic framework: it predicts a broad forgery category, selects a corresponding detector, and generates a report (Huang et al. 2025). FACT differs by learning a full tool-use investigation procedure rather than a category-to-detector routing rule: it compiles an execution-verified forensic skill into real action-observation trajectories, distills them into a compact agent, and refines the policy for cost-aware stopping.
Method
Overview and Problem Formulation
Given an image , FACT aims to determine whether it is real or AI-generated. To support this decision, FACT first constructs a forensic toolbox from two complementary evidence sources: frozen model-based experts and lightweight signal-level probes. The goal is to learn a policy that selectively uses this toolbox before predicting . At step , the policy observes the interaction history
and either calls a tool to obtain observation , or stops and outputs a final verdict. The complete trajectory and its acquisition cost are
where is the normalized cost of tool .
As shown in Fig. 2, FACT learns in three stages. Stage I uses a general AI model to analyze labeled images with the toolbox and iteratively improve a textual forensic skill ; candidate skill revisions are accepted only after rerunning the tool-use process and verifying that they improve accuracy. Stage II fixes the verified skill and uses it to generate real action-observation trajectories in the same tool environment, which are then distilled into a compact policy by SFT. Stage III refines the distilled policy with cost-aware GRPO, rewarding correct final decisions while penalizing tool cost, malformed answers, and invalid calls. During inference, FACT uses only the trained policy and the toolbox: for each image, the policy decides whether to answer directly, call more evidence tools, or stop.
Forensic Toolbox Construction
Before training the agent, we first examine how existing detectors behave on different generator families. As shown in Table 1, detectors that are strong on one generator can be weaker on another. This observation suggests that the goal should not be to choose a single detector as the universal solution. Instead, FACT organizes complementary detectors and signal analyses into a toolbox , so that the agent can learn which evidence is useful for each image.
Model-based experts. The first part of the toolbox consists of five frozen model-based experts. These experts capture different types of forensic evidence and provide complementary signals for AI-generated image detection. SDAIE models the photographic regularities of real camera images through EXIF-induced supervision (Zhong et al. 2025). Community Forensics emphasizes broad discriminative coverage by training across thousands of generators (Park and Owens 2024). AIDE combines semantic features with high- and low-frequency evidence (Yan et al. 2025a). SIDA brings multimodal reasoning and textual explanation into the detection process (Huang et al. 2024). Veritas uses pattern-aware planning and self-reflection to reason about synthetic artifacts (Tan et al. 2025). These experts therefore capture different cues, including camera-photo consistency, large-scale generator diversity, semantic plausibility, multimodal reasoning, and reasoning-based artifact analysis. Their strengths across generator subsets motivate using them as callable experts rather than choosing one as the fixed detector.
Signal-level probes. The second part of the toolbox contains eight lightweight signal-level probes. These probes are included because low-level texture, frequency, noise, and compression statistics have long been useful for fake-image detection (Wang et al. 2020; Liu, Qi, and Torr 2020), and they provide evidence that is different from the final prediction of a neural detector. FFT and phase statistics describe spectral behavior; wavelet and Laplacian analyses measure multiscale texture; noise residuals and JPEG analysis capture residual and compression consistency; gradient statistics and local patch consistency describe local structural regularity. These probes do not replace model-based experts. Rather, they give the agent simple and interpretable measurements that can be combined with expert outputs when deciding whether an image is real or AI-generated.
Stage I: Tool-Use Skill Learning
With the toolbox fixed, Stage I learns how a general model should use it for forensic judgment. The goal is not only to decide whether an image is real or AI-generated, but also to learn a reusable investigation procedure: which tools to call, why they are useful, how to interpret their outputs, how

Figure 2: Overview of FACT. FACT trains a forensic agent with an Evolve–Distill–Refine pipeline. Skill evolution learns an executable investigation procedure from judged cases; trajectory distillation converts the skill into supervised action–observation tool-use data; and cost-aware GRPO teaches the agent when additional evidence is worth its cost. At inference, the trained agent adaptively calls forensic tools or stops with a final real/AI decision.
to handle conflicting evidence, and when to stop. Following recent agent works that store reusable experience as skills or reflection-derived procedures (Zhao et al. 2024; Zheng et al. 2025; Yang et al. 2026), FACT represents this procedure as a textual forensic skill . In our implementation, is a structured instruction covering tool selection, evidence interpretation, conflict handling, stopping criteria, and final-answer format. Updating lets become more specialized for AI-generated image detection without finetuning its parameters.
At update step , FACT samples a labeled skill-update batch . The current skill is given to , which analyzes each image with access to the toolbox . During the investigation, sees the image and the tool observations it requests, but not the ground-truth label. Each run is recorded as a trajectory
where is the final prediction. After the batch is judged, the labels are revealed and the errors are summarized as
The model then uses the current skill and this error summary to propose a revised skill:
FACT evaluates the proposed revision on a separately sampled labeled verification batch
which is not used to construct or propose . Let
denote running on verification image with skill and toolbox . The verification accuracy is
The skill is updated by the following replay check:
Thus, a revised instruction is accepted only when it improves rerun tool-use performance on the separate verification batch.
Beyond single-batch updates, FACT also summarizes recent error summaries and proposes broader skill revisions. For example, if the model repeatedly over-trusts frequency artifacts on compressed real images, the skill can be revised to check compression consistency before making a final decision. If the model repeatedly overlooks spatially inconsistent evidence, the skill can place greater emphasis on patch-level consistency checks. These broader updates are retained only after the same replay check. The output of Stage I is a verified forensic skill , which provides the procedure used to generate training trajectories in Stage II. Representative skill revisions and the complete initial and evolved skill texts are provided in the supplementary material.
Stage II: Distilling Tool-Use Trajectories
Stage I produces a verified forensic skill , but this skill is still a textual procedure used by a general model. For deployment, we need a compact model that can execute the procedure directly: it should know when to call a tool, how to react to the returned evidence, and when to stop. Stage II therefore converts the skill into supervised tool-use trajectories and distills them into a compact policy .
For each labeled training image , the general model follows and interacts with the toolbox . It selects a tool, receives the tool output, and then decides the next action until it produces a final decision. We record this process as
where is a tool call or a stopping action, is the corresponding tool output, and provides the supervised final answer. The key supervision is not only the final label, but the intermediate action sequence showing how evidence changes the next decision.
We initialize each trajectory into a training sequence containing the image, task instruction, tool definitions, previous tool calls, returned tool outputs, and the next action to imitate. The compact policy is trained by supervised fine-tuning:
where is a token in the serialized trajectory and only for tokens that the agent should generate, such as tool calls, stopping decisions, and the final answer. Tokens from tool outputs are used as context but are not prediction targets.
After this stage, becomes a compact forensic agent trained to imitate the tool-use behavior induced by . It has learned the basic investigation procedure, while Stage III further optimizes how much evidence should be acquired under a tool-cost budget.
Stage III: Cost-Aware Tool-Use Refinement
The SFT policy has learned how to conduct a forensic investigation, but supervised imitation does not directly optimize the deployment objective: making a correct decision under a limited evidence budget. Stage III therefore refines the distilled policy with cost-aware GRPO.
For each training image , we sample a group of K complete trajectories
from the current policy. Each trajectory is scored by a task-cost reward:
The task term rewards the final decision.
while the cost term penalizes cumulative tool acquisition,
The remaining terms penalize interaction failures:
where is the number of invalid tool calls.
GRPO compares trajectories sampled for the same image. For trajectory , its group-relative advantage is
Let denote an agent-generated token in trajectory , including tool calls and final-answer tokens, and let mask these trainable tokens. The clipped GRPO objective is
where
and is the fixed SFT reference policy.
This refinement does not ask RL to discover tool use from scratch. Instead, because the policy already imitates valid trajectories from Stage II, the reward mainly teaches whether another tool call improves the final decision enough to justify its cost. The coefficient controls this evidence budget: increasing encourages the agent to avoid unnecessary calls, while the task reward prevents it from stopping too early.
Inference. At inference time, FACT uses the trained forensic agent to judge each test image. The agent predicts a tool-use sequence over the forensic toolbox U, where each step either calls a tool or terminates with Stop. Returned observations are added to the history and used to choose the next action. Once the agent stops, it outputs a real/AI verdict and brief rationale based on the evidence it acquired. The skill-learning and trajectory-synthesis components are used only during training.
Experiments
Experimental Setup
Benchmarks. We evaluate FACT on two balanced internal benchmarks and four public benchmarks. The internal benchmarks are designed to isolate two deployment scenarios that are not fully covered by existing test sets. STD3K contains 3,200 images, with 1,600 generated images from 21 generator/source groups and 1,600 real images from LIVE, CLIVE, Flickr8K, and TID2013 (Sheikh, Sabir, and Bovik 2006; Ghadiyaram and Bovik 2016; Hodosh, Young, and Hockenmaier 2013; Ponomarenko et al. 2015). It measures robustness under broad source diversity rather than performance on a single generator family. NewGen-900 contains 900 images, with 450 generated images and 450 real images from the same real-image sources. The fake images are drawn from nine recent generators: Nano Banana, Nano Banana Pro, GPT-Image-1, GPT-Image-2, SD3.5-Large, SD3-Medium, OmniGen2, Qwen-Image, and Z-Image Turbo. These generator families are held out from all FACT training stages, so
NewGen-900 directly evaluates open-world cross-generator generalization.
For public evaluation, we use benchmarks that emphasize different failure modes. Chameleon contains visually challenging AI-generated images that are often misclassified as real by existing detectors (Yan et al. 2025a); we evaluate on its official split. LOKI evaluates synthetic-data detection under a multimodal LMM protocol with real/synthetic judgments and explanation-oriented questions (Ye et al. 2025); we report balanced accuracy on its image-detection subset to match the public protocol. AIGCDetectionBenchmark covers a broad set of AI image generators, including 17 prevalent generative models (Zhong et al. 2023); we use its official image-detection test split, which also enables direct comparison with UniShield. HydraFake extends the evaluation beyond full-image generation to broader image-forgery settings, including face swapping, reenactment, attribute editing, personalization, relighting, restoration, and cross-domain deepfakes (Tan et al. 2025). We report the average accuracy across its official evaluation splits (Tan et al. 2025). Detailed dataset composition, sampling rules, and benchmark documentation are provided in the supplementary material.
Baselines and metrics. We compare FACT with the five frozen model-based experts in the toolbox—SDAIE, Community Forensics, AIDE, SIDA, and Veritas—and their unweighted majority vote. For the public benchmarks, we additionally include published results under the corresponding benchmark protocols. Detailed baseline descriptions and the exact provenance of externally reported results are provided in the supplementary material.
We report accuracy on STD3K, NewGen-900, Chameleon, and AIGCDetectionBenchmark; balanced accuracy on LOKI, BAcc = 1/2(TPR + TNR); and average accuracy across the official HydraFake evaluation splits. Efficiency is measured by the average normalized acquisition cost .
Implementation details. FACT uses GPT-5.1 for skill evolution and trajectory synthesis, and Qwen3-VL-8B-Instruct (Bai et al. 2025) as the compact forensic agent. Full training configurations, optimization settings, and tool-cost calibration are provided in the supplementary material.
Comparison with Existing Works
Tables 2–6 compare FACT with its constituent experts, majority voting, and representative published baselines on the internal and public benchmarks. Complete baseline results and their provenance are provided in the supplementary material. Unless otherwise stated, FACT denotes the Stage III refined checkpoint.
On STD3K, the final refined FACT checkpoint reaches 91.40%, exceeding the strongest constituent expert by 12.84 percentage points and demonstrating robustness across diverse generator and real-image sources.
On NewGen-900, the final refined FACT checkpoint obtains 82.44%, outperforming the strongest constituent expert by 5.55 points. All nine generator families are held out from skill evolution, trajectory distillation, and RL refinement, demonstrating open-world generalization without generator-specific fine-tuning.
| 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 |
| FACT | 91.40 | 82.44 |
Table 2: Comparison on the internal benchmarks. All values are accuracies in percentages. All methods are evaluated using our fixed evaluation pipeline.
| 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 |
| Majority Vote | 65.97 |
| Ivy-xDetector‡ (Zhang et al. 2025) | 73.17 |
| DefakerOne‡ (GuangJian Team 2026) | 84.70 |
| FACT | 87.53 |
Table 3: Comparison on Chameleon. †: Table 5 of (Yan et al. 2025a); ‡: cited method papers. Unmarked results use our fixed pipeline.
On Chameleon, FACT achieves 87.53%, exceeding DefakerOne, the strongest previously reported comparison, by 2.83 points. This indicates strong performance on visually challenging synthetic images.
On LOKI, FACT achieves 88.35% balanced accuracy, surpassing EvoGuard by 1.97 percentage points under the reported public protocol. This shows that the learned policy remains effective under the multimodal evaluation setting.
On AIGCDetectionBenchmark, FACT reaches 98.77%, exceeding the strongest comparison by 1.97 points. The gain over individual detectors and majority voting supports image-conditioned evidence acquisition over static aggregation.
On HydraFake, FACT achieves 94.44% average accuracy, outperforming Veritas by 3.74 points and showing that FACT remains effective beyond fully generated images, including on deepfakes and edited images. Across all six benchmarks, FACT outperforms every constituent expert, majority voting, and the strongest available published comparison.
The supplementary material additionally provides qualitative case analyses, full agent conversation traces, and the human evaluation.
Ablation Studies
Contribution of each training stage. Table 7(a) evaluates skill learning, trajectory distillation, and cost-aware refinement. Directly querying GPT-5.1 reaches 87.90% on STD3K but only 50.80% on NewGen-900. Adding the learned skill
| 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 |
| FakeReasoning† (Gao et al. 2025) | 64.78 |
| Forensic-MoE† (Fang et al. 2025) | 74.92 |
| EvoGuard† (Zhu et al. 2026) | 86.38 |
| Community (Park and Owens 2024) | 82.80 |
| Veritas (Tan et al. 2025) | 65.95 |
| SDAIE (Zhong et al. 2025) | 82.85 |
| Majority Vote | 83.20 |
| FACT | 88.35 |
Table 4: Comparison on LOKI. †: Table 2 of (Zhu et al. 2026). Unmarked results use our fixed pipeline.
| 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 |
| SDAIE (Zhong et al. 2025) | 96.00 |
| ReAlign† (Huang et al. 2026) | 96.14 |
| Majority Vote | 95.50 |
| FACT | 98.77 |
Table 5: Comparison on AIGCDetectionBenchmark. †: Table 6 of (Huang et al. 2025); ‡: cited method paper. Unmarked results use our fixed pipeline.
raises performance to 89.40% and 75.10%, showing that Stage I contributes procedural knowledge beyond direct visual judgment.
Distilling skill-guided action-observation trajectories further improves performance to 91.53% and 81.89%. Cost-aware GRPO produces the final FACT checkpoint, changing accuracy to 91.40% on STD3K and 82.44% on NewGen-900. Thus, refinement trades a marginal 0.13-point decrease on STD3K for a 0.55-point gain on NewGen-900. In the reward-component experiment, the full cost-aware reward achieves 82.44% accuracy while reducing normalized acquisition cost from 1.5500 to 1.3835 (Table 8).
Effect of toolbox composition. Table 7(b) compares signal probes, model-based experts, and their combination on STD3K + NewGen-900. The two families alone obtain 82.90% and 82.50%, while combining them reaches 90.70%. This confirms that low-level measurements and high-level detector outputs provide complementary evidence.
Effect of reward components. Table 8 shows that format and valid-tool penalties improve NewGen-900 accuracy from
| (a) | (b) | ||
|---|---|---|---|
| Method | Acc. | Method | Acc. |
| FreqNet† | 64.60 | Gemini-2.5-Pro† | 78.90 |
| ProDet† | 80.60 | M2F2-Det† | 63.20 |
| NPR† | 69.80 | FakeShield† | 60.80 |
| AIDE† | 70.60 | SIDA-7B† | 76.30 |
| Co-SPY† | 84.70 | SIDA-13B† | 69.80 |
| D³† | 81.10 | FFAA† | 64.00 |
| Effort† | 82.20 | FakeVLM† | 77.30 |
| Qwen2.5-VL-7B† | 54.10 | Veritas† | 90.70 |
| InternVL3-8B† | 58.30 | AIDE (ours) | 61.60 |
| MiMo-VL-7B† | 72.50 | SDAIE (ours) | 68.30 |
| GLM-4.1V-9B-T† | 61.70 | Community (ours) | 76.30 |
| GPT-4o† | 60.80 | FACT | 94.44 |
Table 6: Comparison on HydraFake. Values are average accuracies in percentages. †: Table 1 of (Tan et al. 2025); unmarked results use our fixed pipeline. “T” abbreviates Think.
| (a) Training stages | (b) Toolbox | |||||||
|---|---|---|---|---|---|---|---|---|
| Var. | S | D | R | STD | New | Sig. Exp. | Acc. | |
| Direct | - | - | - | 87.90 | 50.80 | ✓ | - | 82.90 |
| Skill | ✓ | - | - | 89.40 | 75.10 | - | ✓ | 82.50 |
| Distill. | ✓ | ✓ | - | 91.53 | 81.89 | ✓ | ✓ | 90.70 |
| Refine | ✓ | ✓ | ✓ | 91.40 | 82.44 | |||
Table 7: Pipeline and toolbox ablations. In (a), S, D, and R denote skill learning, trajectory distillation, and GRPO refinement; the variants are Direct, Skill-guided, Distilled, and Refined. In (b), Sig. and Exp. denote signal probes and model-based experts.
| Task | Fmt. | Valid | Cost | Acc. | Acq. |
|---|---|---|---|---|---|
| ✓ | - | - | - | 81.78 | 1.5300 |
| ✓ | ✓ | - | - | 82.00 | 1.5700 |
| ✓ | ✓ | ✓ | - | 82.56 | 1.5500 |
| ✓ | ✓ | ✓ | ✓ | 82.44 | 1.3835 |
Table 8: Reward-component ablation on NewGen-900. Reward terms are added cumulatively; the full reward uses .
81.78% to 82.56%. Adding tool cost yields 82.44% accuracy and lowers acquisition cost from 1.5500 to 1.3835.
Conclusion
We presented FACT, a forensic agent that reframes AI-generated image detection as learning an investigation procedure rather than training another fixed detector. FACT converts image-level supervision into a tool-use skill, compiles it into action-observation trajectories, and distills them into a cost-aware agent. Across benchmarks, FACT improves over individual experts and static voting while generalizing to recent generators held out from all FACT training stages.
The results show that evidence acquisition and stopping should be optimized jointly. The refined policy preserves de-tection performance while reducing normalized acquisition cost, avoiding redundant calls without abandoning difficult cases.
FACT suggests that robustness may depend less on a universal detector and more on learning which evidence each image requires. Additional qualitative analyses and limitations are provided in the supplementary material. Upon publication, we will release the code, trained model, and benchmark data and metadata, subject to source licenses.
References
Bai, S.; Cai, Y.; Chen, R.; et al. 2025. Qwen3-VL Technical Report. arXiv:2511.21631.
Chen, Y.; Xu, B.; Wang, X.; Zhang, Y.; and Mao, Z. 2025. Training LLM-Based Agents with Synthetic Self-Reflected Trajectories and Partial Masking. arXiv:2505.20023.
Esser, P.; Kulal, S.; Blattmann, A.; Entezari, R.; Müller, J.; Saini, H.; Levi, Y.; Lorenz, D.; Sauer, A.; Boesel, F.; Podell, D.; Dockhorn, T.; English, Z.; Lacey, K.; Goodwin, A.; Marek, Y.; and Rombach, R. 2024. Scaling Rectified Flow Transformers for High-Resolution Image Synthesis. arXiv:2403.03206.
Fang, M.; Li, Z.; Yu, L.; Yang, Q.; Xie, H.; and Zhang, Y. 2025. Forensic-MoE: Exploring Comprehensive Synthetic Image Detection Traces with Mixture of Experts. In Proceedings of the IEEE/CVF International Conference on Computer Vision, 17772–17782.
Gao, Y.; Chang, D.; Yu, B.; Qin, H.; Chen, L.; Liang, K.; and Ma, Z. 2025. FakeReasoning: Towards Generalizable Forgery Detection and Reasoning. arXiv:2503.21210.
Ghadiyaram, D.; and Bovik, A. C. 2016. Massive Online Crowdsourced Study of Subjective and Objective Picture Quality. IEEE Transactions on Image Processing.
Goodfellow, I.; Pouget-Abadie, J.; Mirza, M.; Xu, B.; Warde-Farley, D.; Ozair, S.; Courville, A.; and Bengio, Y. 2014. Generative Adversarial Nets. In NeurIPS.
Google. 2025a. Introducing Gemini 2.5 Flash Image, Our State-of-the-Art Image Model. https://developers.googleblog.com/en/introducing-gemini-2-5-flash-image/. Accessed: 2026-06-30.
Google. 2025b. Introducing Nano Banana Pro. https://blog.google/innovation-and-ai/products/gemini-app/nano-banana-pro/. Accessed: 2026-06-30.
GuangJian Team. 2026. Venus-DeFakerOne: Unified Fake Image Detection & Localization. arXiv preprint arXiv:2605.14091.
Ho, J.; Jain, A.; and Abbeel, P. 2020. Denoising Diffusion Probabilistic Models. In NeurIPS.
Hodosh, M.; Young, P.; and Hockenmaier, J. 2013. Framing Image Description as a Ranking Task: Data, Models and Evaluation Metrics. Journal of Artificial Intelligence Research.
Huang, Q.; Xu, Z.; Zhang, X.; Yu, X.; and Zhang, J. 2026. ReAlign: Generalizable Image Forgery Detection via Reasoning-Aligned Representation. arXiv preprint arXiv:2605.16080.
Huang, Q.; Xu, Z.; Zhang, X.; and Zhang, J. 2025. UniShield: An Adaptive Multi-Agent Framework for Unified Forgery Image Detection and Localization. arXiv:2510.03161.
Huang, Z.; Hu, J.; Li, X.; He, Y.; Zhao, X.; Peng, B.; Wu, B.; Huang, X.; and Cheng, G. 2024. SIDA: Social Media Image Deepfake Detection, Localization and Explanation with Large Multimodal Model. arXiv:2412.04292.
Karras, T.; Laine, S.; and Aila, T. 2019. A Style-Based Generator Architecture for Generative Adversarial Networks. In CVPR.
Liu, R.; Cui, M.; Qin, Z.; Yan, Z.; Chen, R.; Han, Y.; Li, Z.; Chen, J.; Chen, Z.; Lin, K.; Shen, J.; Weng, L.; Dong, J.; Wang, Y.; and Wu, S. 2026. MIRROR: Manifold Ideal Reference ReconstructOR for Generalizable AI-Generated Image Detection. arXiv:2602.02222.
Liu, Z.; Qi, X.; and Torr, P. H. S. 2020. Global Texture Enhancement for Fake Face Detection in the Wild. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 8057–8066.
Madaan, A.; Tandon, N.; Gupta, P.; Hallinan, S.; Gao, L.; Wiegreffe, S.; Alon, U.; Dziri, N.; Prabhumoye, S.; Yang, Y.; Gupta, S.; Majumder, B. P.; Hermann, K.; Welleck, S.; Yazdanbakhsh, A.; and Clark, P. 2023. Self-Refine: Iterative Refinement with Self-Feedback. In NeurIPS.
Ojha, U.; Li, Y.; and Lee, Y. J. 2023. Towards Universal Fake Image Detectors that Generalize Across Generative Models. In CVPR.
OpenAI. 2025. Introducing 4o Image Generation. https://openai.com/index/introducing-4o-image-generation/. Accessed: 2026-06-30.
OpenAI. 2026. Introducing ChatGPT Images 2.0. https://openai.com/index/introducing-chatgpt-images-2-0/. Accessed: 2026-06-30.
Park, J.; and Owens, A. 2024. Community Forensics: Using Thousands of Generators to Train Fake Image Detectors. arXiv:2411.04125.
Peebles, W.; and Xie, S. 2023. Scalable Diffusion Models with Transformers. In ICCV.
Ponomarenko, N.; Jin, L.; Ieremeiev, O.; Lukin, V.; Egiazarian, K.; Astola, J.; Vozel, B.; Chehdi, K.; Carli, M.; Battisti, F.; and Kuo, C.-C. J. 2015. Image Database TID2013: Peculiarities, Results and Perspectives. Signal Processing: Image Communication.
Rombach, R.; Blattmann, A.; Lorenz, D.; Esser, P.; and Ommer, B. 2022. High-Resolution Image Synthesis with Latent Diffusion Models. In CVPR.
Sheikh, H. R.; Sabir, M. F.; and Bovik, A. C. 2006. A Statistical Evaluation of Recent Full Reference Image Quality Assessment Algorithms. IEEE Transactions on Image Processing.
Shinn, N.; Cassano, F.; Berman, E.; Gopinath, A.; Narasimhan, K.; and Yao, S. 2023. Reflexion: Language Agents with Verbal Reinforcement Learning. In NeurIPS.
Tan, C.; Zhao, Y.; Wei, S.; Gu, G.; Liu, P.; and Wei, Y. 2024. Rethinking the Up-Sampling Operations in CNN-Based Generative Network for Generalizable Deepfake De-tection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 28130–28139.
Tan, H.; Lan, J.; Tan, Z.; Liu, A.; Song, C.; Shi, S.; Zhu, H.; Wang, W.; Wan, J.; and Lei, Z. 2025. Veritas: Generalizable Deepfake Detection via Pattern-Aware Reasoning. arXiv:2508.21048.
Wang, S.-Y.; Wang, O.; Zhang, R.; Owens, A.; and Efros, A. A. 2020. CNN-Generated Images Are Surprisingly Easy to Spot... for Now. In CVPR.
Wang, Z.; Bao, J.; Zhou, W.; Wang, W.; Hu, H.; Chen, H.; and Li, H. 2023. DIRE for Diffusion-Generated Image Detection. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), 22445–22455.
Wen, S.; Ye, J.; Feng, P.; Kang, H.; Wen, Z.; Chen, Y.; Wu, J.; Wu, W.; He, C.; and Li, W. 2025. Spot the Fake: Large Multimodal Model-Based Synthetic Image Detection with Artifact Explanation. In Advances in Neural Information Processing Systems.
Wu, C.; Li, J.; Zhou, J.; Lin, J.; Gao, K.; Yan, K.; Yin, S.; Bai, S.; Xu, X.; Chen, Y.; et al. 2025a. Qwen-Image Technical Report. arXiv:2508.02324.
Wu, C.; Zheng, P.; Yan, R.; Xiao, S.; Luo, X.; Wang, Y.; Li, W.; Jiang, X.; Liu, Y.; Zhou, J.; et al. 2025b. OmniGen2: Exploration to Advanced Multimodal Generation. arXiv:2506.18871.
Xu, Z.; Zhang, X.; Li, R.; Tang, Z.; Huang, Q.; and Zhang, J. 2025. FakeShield: Explainable Image Forgery Detection and Localization via Multi-Modal Large Language Models. In International Conference on Learning Representations.
Yan, S.; Li, O.; Cai, J.; Hao, Y.; Jiang, X.; Hu, Y.; and Xie, W. 2025a. A Sanity Check for AI-generated Image Detection. In International Conference on Learning Representations.
Yan, Z.; Wang, J.; Jin, P.; Zhang, K.-Y.; Liu, C.; Chen, S.; Yao, T.; Ding, S.; Wu, B.; and Yuan, L. 2025b. Orthogonal Subspace Decomposition for Generalizable AI-Generated Image Detection. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, 70268–70288. PMLR.
Yang, Y.; Gong, Z.; Huang, W.; Yang, Q.; Zhou, Z.; Huang, Z.; Li, Y.; Gao, X.; Dai, Q.; Liu, B.; Qiu, K.; Yang, Y.; Chen, D.; Yang, X.; and Luo, C. 2026. SkillOpt: Executive Strategy for Self-Evolving Agent Skills. arXiv:2605.23904.
Yao, S.; Zhao, J.; Yu, D.; Du, N.; Shafran, I.; Narasimhan, K.; and Cao, Y. 2023. ReAct: Synergizing Reasoning and Acting in Language Models. In ICLR.
Ye, J.; Zhou, B.; Huang, Z.; Zhang, J.; Bai, T.; Kang, H.; He, J.; Lin, H.; Wang, Z.; Wu, T.; Wu, Z.; Chen, Y.; Lin, D.; He, C.; and Li, W. 2025. LOKI: A Comprehensive Synthetic Data Detection Benchmark using Large Multimodal Models. In International Conference on Learning Representations.
Zhang, W.; Jiang, C.; Zhang, Z.; Si, C.; Yu, F.; and Peng, W. 2025. IVY-FAKE: A Unified Explainable Framework and Benchmark for Image and Video AIGC Detection. arXiv preprint arXiv:2506.00979.
Zhao, A.; Huang, D.; Xu, Q.; Lin, M.; Liu, Y.-J.; and Huang, G. 2024. ExpeL: LLM Agents Are Experiential Learners. In AAAI.
Zheng, B.; Fatemi, M. Y.; Jin, X.; Wang, Z. Z.; Gandhi, A.; Song, Y.; Gu, Y.; Srinivasa, J.; Liu, G.; Neubig, G.; and Su, Y. 2025. SkillWeaver: Web Agents Can Self-Improve by Discovering and Honing Skills. arXiv:2504.07079.
Zhong, N.; Xu, Y.; Li, S.; Qian, Z.; and Zhang, X. 2023. PatchCraft: Exploring Texture Patch for Efficient AI-generated Image Detection. arXiv preprint arXiv:2311.12397.
Zhong, N.; Zou, M.; Xu, Y.; Qian, Z.; Zhang, X.; Wu, B.; and Ma, K. 2025. Self-Supervised AI-Generated Image Detection: A Camera Metadata Perspective. arXiv:2512.05651.
Zhu, C.; Wang, M.; Liu, J.; Chang, C.-C.; and Echizen, I. 2026. EvoGuard: An Extensible Agentic RL-based Framework for Practical and Evolving AI-Generated Image Detection. arXiv:2603.17343.