Manuscript Offprint
arXiv:2608.30704TUE-Detector: A Tool-Using Expert MLLM-Based Detector for AI-Generated Videos
Abstract
AI-generated video detection, which aims to distinguish AI-generated videos from real ones, has recently received increasing research attention. To perform this task reliably, a key challenge lies in accurately identifying subtle-yet-measurable unnatural artifacts. In this work, we address this challenge from a novel perspective of tool-mediated evidence discovery and propose Tool-Using Expert MLLM-based AI-generated Video Detector (TUE-Detector), a novel framework for AI-generated video detection. TUE-Detector trains a general MLLM into a task-tailored tool-using expert detector that learns to invoke suitable tools, collect concrete evidence of unnaturalness, and reason over the evidence for reliable detection. Meanwhile, TUE-Detector further introduces novel designs to equip the expert detector with high-quality and suitable tools. Extensive experiments demonstrate the effectiveness of our framework.
1. Introduction
Recent AI video generation models can produce increasingly realistic videos. This ability has benefited many applications, such as content creation, education, and entertainment. However, it also brings new risks. Since AI-generated videos can now look very similar to real videos, malicious users may use them to imitate real people or fabricate events, causing harms such as political misinformation [12], non-consensual intimate content [30], and commercial fraud [24]. Therefore, it is important to determine whether a given video is real or AI-generated, and AI-generated video detection has thus received substantial research attention recently [21, 32, 46, 55, 61, 63]. In particular, motivated by the rich visual knowledge and strong reasoning ability of multimodal large language models (MLLMs), recent studies [32, 46, 55, 61] have increasingly explored MLLM-based approaches as a promising direction for this task.
To perform AI-generated video detection reliably, recent works [7, 18, 35] have increasingly highlighted the impor-

Figure 1. Illustration of videos generated by recent AI video generation models. Recent AI-generated videos can already appear highly similar to real videos, with remaining differences mainly lying in subtle-yet-measurable unnatural artifacts, such as subtle shape changes in the upper example and slight texture alterations in the lower example, highlighted by red boxes.
tance of identifying subtle-yet-measurable unnatural artifacts: unobtrusive cues that are difficult to notice at first glance but provide useful evidence for distinguishing real from AI-generated videos. These artifacts often appear as subtle unnaturalness in measurable visual or temporal properties, such as shape, texture, motion, position, color, and boundary stability. For example, AI-generated videos may contain subtle shape changes, slight texture alterations, mildly unnatural object motion, or local lighting and shadow inconsistencies. As illustrated in Figure 1, as video generation models become stronger, obvious artifacts become less frequent, and the differences between real and AI-generated videos increasingly appear as such subtle-yet-measurable cues [10, 41]. Meanwhile, existing detection methods have become relatively effective at capturing salient artifacts when they are present [1, 58]. Therefore, accurately identifying subtle-yet-measurable unnatural artifacts has become an increasingly important problem for further improving AI-generated video detection [7, 19, 21, 38]. However, this remains challenging because these artifacts are not only subtle, but also highly diverse across video categories, scene contents, and generation models.
To handle this challenge, we first note that identifying subtle-yet-measurable unnatural artifacts can be naturally viewed as an evidence discovery problem. Specifically, the detector needs to analyze diverse subtle cues in a video and examine whether they constitute concrete evidence of unnaturalness. Once such evidence is identified and verified, the detector can further reason over it to determine whether the video is real or AI-generated. This perspective motivates us to consider how humans handle similar evidence-based visual analysis problems. In particular, we note that, when facing subtle visual cues, trained human analysts usually do not rely solely on direct visual impressions. Instead, through training, they learn when and how to use suitable tools to examine different types of subtle visual cues [14, 16, 22]. For example, they may use contour-inspection tools to measure subtle shape changes, texture-analysis tools to examine slight texture alterations, and lighting-probe tools to assess local lighting and shadows. After collecting such concrete evidence from different regions and frames of a video, they can reason over the evidence and make a final judgment.
Motivated by this observation, to better identify and analyze subtle-yet-measurable unnatural artifacts in videos for more reliable AI-generated video detection, we aim to approach this task from the perspective of tool-mediated evidence discovery. Specifically, we aim to equip MLLMs with suitable tools and transform them into tool-using experts, enabling them to collect concrete evidence of unnaturalness and reason over such evidence for reliable detection. To achieve this goal, given a general MLLM, one potential solution is to provide it with a heuristically designed toolset and directly prompt it to use these tools for AI-generated video detection. Recently, several works [6, 33, 36, 59] have explored similar ideas by instructing general MLLMs to use external tools for various visual detection and verification tasks. However, a general MLLM is not naturally a tool-using expert. As suggested by prior studies [37, 47], directly prompting a general MLLM to use tools does not necessarily mean that it understands when a tool should be invoked, under what conditions it is useful, or how its output should be incorporated into task-specific reasoning. This is undesirable for our task, where accurate AI-generated video detection calls for a detector model that can adaptively select and properly use suitable tools to discover diverse subtle-yet-measurable unnatural artifacts.
To this end, instead of directly combining a general MLLM with a heuristic toolset, we aim to train the general MLLM into a task-tailored tool-using expert, while further equipping it with suitable tools for AI-generated video detection. Achieving this goal, however, is non-trivial due to two key challenges. First, obtaining suitable tools for this task is difficult. AI-generated videos may exhibit diverse subtle artifacts across different video categories, scenes, and generation models, making it hard to determine in advance which tools are truly useful and suitable for this task. Second, even with a candidate toolset, teaching MLLMs to use tools effectively remains challenging. Different videos may contain different subtle cues in different regions, frames, and temporal scales, so effective tool use cannot follow a fixed pattern. Instead, the model needs to adaptively decide which tools to use, where and when to apply them, and how to incorporate their outputs into detection reasoning, so that the collected evidence can support reliable detection. To address the above challenges, we propose Tool-Using Expert MLLM-based AI-generated Video Detector (TUE-Detector), a novel framework for evidence-grounded AI-generated video detection. To the best of our knowledge, TUE-Detector is the first framework that trains a general MLLM into a task-tailored tool-using expert detector for AI-generated video detection, while further equipping it with suitable and useful tools for identifying subtle-yet-measurable unnatural artifacts. Below, we outline our framework.
Overall, TUE-Detector performs AI-generated video detection through tool-mediated evidence discovery: it learns to invoke diverse tools to examine subtle cues, collect concrete evidence of unnaturalness, and reason over the evidence for the final judgment. However, when starting from a general MLLM, neither a suitable toolset nor the corresponding tool-use ability is readily available. Directly optimizing both from scratch can thus be difficult. To tackle this, we design a progressive two-stage training process that first builds basic tool-use ability with a fixed heuristic toolset, and then further improves both the detector and the toolset. Specifically, in the first stage, we construct an initial heuristic toolset and keep it fixed. With the toolset fixed, we focus on helping the MLLM acquire basic tool-use ability for AI-generated video detection. In particular, to make this stage effective, we propose an influence-based teacher-knowledge guidance strategy, which provides high-quality guidance for learning tool use and evidence-based reasoning. However, since the toolset in this stage is heuristically constructed and remains fixed during training, both the model's tool-use ability and the toolset itself still have room for further improvement. Thus, after the first stage, we introduce a second stage, in which we further optimize both the detector and the toolset. In particular, in this stage, to effectively improve the usability and suitability of the toolset, we propose a tool-use experience-guided tool evolution strategy. Through this progressive process, TUE-Detector is ultimately equipped with suitable tools and strong tool-use ability, driving its effective identification of subtle-yet-measurable unnatural artifacts for reliable AI-generated video detection.
Our contributions are: 1) We propose TUE-Detector, a novel framework for AI-generated video detection. To the best of our knowledge, this is the first work to explore training a general MLLM into a task-tailored tool-using expert detector for AI-generated video detection. 2) We introduce several designs in TUE-Detector to equip it with high-quality and suitable tools, as well as strong tool-use capability. 3) Our method achieves superior performance.
on the evaluated benchmarks.
Different from existing studies, to the best of our knowledge, this work is the first to explore training a general MLLM into a task-tailored tool-using expert detector for AI-generated video detection.
Tool usage. Recently, the idea of using external tools to assist task solving has been studied in various tasks [6, 17, 31, 34, 36, 39, 45, 51, 67, 68, 72], such as open-domain question answering [39], program-aided mathematical reasoning [17], fact verification [67], and image forensic analysis [34, 68, 72]. Different from these existing works, we design a novel framework that trains a general MLLM into a task-tailored tool-using expert detector, enabling it to effectively identify subtle-yet-measurable unnatural artifacts and handle the AI-generated video detection task.
3. Method
To perform reliable AI-generated video detection, a key challenge lies in accurately identifying subtle-yet-measurable unnatural artifacts. To better tackle this challenge, we propose TUE-Detector, a novel framework that trains a general MLLM into a task-tailored tool-using expert detector. Instead of a learned aggregation of outputs from MLLM and tools (as shown in Appendix A), TUE-Detector learns to invoke suitable tools, collect concrete evidence, and reason over it to determine whether a video is real or AI-generated. To achieve this, TUE-Detector follows a two-stage training process. In Stage 1 (Sec. 3.1), we construct an initial heuristic toolset and keep it fixed, allowing training to focus on equipping the general MLLM with basic tool-use and evidence-based reasoning ability. Stage 2 (Sec. 3.2) then

Figure 2. Illustration of the overall training process of our framework.
starts from the preliminary detector and heuristic toolset obtained in Stage 1, and further improves both, leading to stronger tool-use ability and a more task-suitable toolset.
3.1. Training Stage 1
In this stage, we aim to construct an initial heuristic toolset and train the general MLLM to acquire basic tool-use ability under this fixed toolset. Specifically, after constructing the initial toolset for AI-generated video detection, we train the model to use these tools for tool-mediated evidence discovery and evidence-based reasoning. To make the model effectively acquire this ability, we propose an influence-based teacher-knowledge guidance strategy. Below, we first describe how we construct the heuristic toolset, and then introduce this strategy.
Initial Heuristic Toolset. Our framework first uses an MLLM-based automated process to heuristically construct a fixed initial toolset for tool-mediated evidence discovery. In this process, since AI-generated videos may contain diverse subtle-yet-measurable unnatural artifacts, the construction is guided to include tools that may help collect different types of evidence potentially useful for AI-generated video detection. Following this principle, an initial toolset containing thirteen tools is built. Each tool exposes a common Python-callable interface, while its implementation may orchestrate pretrained segmentation, tracking, OCR, spectral/frequency, temporal, or frame-level analysis backends and serialize their outputs as structured evidence. These tools can support the examination of possible evidence such as illumination inconsistency, implausible object states, and abnormal textual regions. More details of both the tool construction process and the resulting toolset are provided in Appendix D.
Influence-based Teacher-knowledge Guidance Strategy. Given the fixed initial toolset, the goal of this strategy is to help the general MLLM effectively acquire basic tool-use ability for AI-generated video detection. To achieve this, inspired by the observation that high-quality references can provide useful guidance when a model lacks task-specific procedural knowledge [37, 47, 60], we aim to provide the model with reference trajectories for tool-mediated evidence discovery and evidence-based reasoning. Ideally, such references should specify which tools to invoke, what concrete evidence of unnaturalness can be obtained from the tool outputs, and how the collected evidence should be reasoned over to reach the final detection verdict. In this way, the model can learn not only the final verdict, but also the intermediate behaviours required for tool-mediated detection, including tool selection, evidence collection, tool-output interpretation, and evidence-grounded reasoning. However, obtaining such reference trajectories can be difficult in practice, because it requires detailed process-level annotations of tool use, evidence collection, tool-output interpretation, and reasoning. In many existing AI-generated video detection datasets, each training video is usually provided with only a binary real/fake label, rather than such detailed references. This creates a fundamental supervision gap: the desired reference trajectories are useful for learning tool-mediated evidence discovery, but they are usually unavailable in training data.
Initial reference construction. To address the above supervision gap and obtain candidate reference trajectories, we draw inspiration from the capability of existing API-accessible MLLMs. Although these models are not tailored for AI-generated video detection, they often possess broader general knowledge and stronger instruction-following ability than the open-source MLLM to be trained. While they may not produce reliable trajectories every time, their stronger capabilities and stochastic generation make it possible to obtain useful tool-use and reasoning behaviours from multiple attempts. Therefore, we use API-accessible MLLMs as noisy teachers to provide candidate references for tool-mediated evidence discovery and evidence-based reasoning. Specifically, based on this insight, we adopt a generate-then-filter procedure. For each training video, we prompt a capable API-accessible MLLM with sampled video frames, the fixed initial toolset, and the detection instruction. The teacher is required to generate complete tool-augmented reasoning trajectories, including tool selection, tool calls, tool observations, evidence interpretation, and the final detection verdict (more details in Appendix C.1). Since these trajectories are generated by a noisy teacher, we use the available real/fake label as an outcome-level filtering signal and remove trajectories whose final verdict is inconsistent with the label. This gives an initial reference dataset , where is a training video and is a retained teacher-generated trajectory whose final verdict matches the label.
To guide the model to imitate the retained tool-use and reasoning behaviours, we then aim to train it based on these trajectories. However, each trajectory contains both active tokens generated by the teacher and observations returned by external tools. Because of this, directly optimising all tokens would encourage the model to memorise tool observations and weaken its learning of the actual tool-use behaviours, such as reasoning steps and tool-call generation. Therefore, inspired by Tool-Star [13], for each training sample, we define the masked token-wise cross-entropy loss as:
where is the -th token in trajectory , denotes the detector parameters, and is the autoregressive probability of generating token given the video , instruction , and previous tokens . Here, is a token-level mask, set to 1 for tokens corresponding to active reasoning and tool-call generation, and set to 0 for tokens corresponding to tool results. This focuses learning on tool-use decisions and evidence-based reasoning, rather than copying tool observations.
Remaining challenge. As described above, we construct initial reference trajectories through a generate-then-filter procedure, where the binary real/fake label is used to remove trajectories with incorrect final verdicts. Yet, this does not guarantee that the retained trajectories are all high-quality references, because the filtering process only checks the final outcome rather than the intermediate tool-use process. This means that a retained trajectory may match the label while relying on incorrect reasoning, invoking unsuitable tools, missing important evidence, or misinterpreting tool results. Thus, to better learn from these imperfect teacher-generated trajectories, we need to determine which retained trajectories are truly useful for training, rather than treating all of them equally.
Influence-based trajectory weighting. To handle the above challenge, we need a measure that tells whether learning from a retained trajectory is beneficial for the detector. Influence functions [5, 25, 29, 48] provide such a measure by estimating how the validation loss would change if a training sample were up-weighted. This matches our goal: a useful teacher-generated trajectory should guide the model towards better performance on held-out validation data. Specifically, given a held-out validation set, the influence score of each retained trajectory can be defined based on the standard influence-function formulation as:
where is the averaged loss on the held-out validation set, is the masked training loss for imitating trajectory on video , and is the Hessian of the averaged training loss. In our context, this score reflects whether imitating a retained teacher-generated trajectory would improve or hurt validation performance, and thus serves as a proxy for trajectory utility.
However, directly applying Eq. 2 to MLLM detector training in our context appears difficult for two reasons. First, it requires the inverse Hessian over the parameters of a large MLLM. Since is a matrix, where denotes the number of trainable model parameters, explicitly constructing or inverting it is prohibitively expensive. Second, our goal is not to evaluate one trajectory, but to score all retained teacher-generated trajectories in the reference dataset . This would require many sample-specific inverse-Hessian-vector computations, making direct influ-ence estimation difficult to scale. Together, these two issues make it challenging to apply Eq. 2 directly in our setting.
Building on the ridge-regression formulation of RRInf [57], we adapt influence estimation to our masked SFT objective for teacher-generated tool-use trajectories. Specifically, as detailed in Appendix C.6, the influence scores of a batch of retained trajectories can be estimated jointly by solving the following ridge-regression problem:
where and the -th entry of serves as the estimated influence score of the -th retained trajectory in the batch. In Eq. 3, is the matrix of per-trajectory training gradients in the batch, with each column corresponding to one retained trajectory, is the aggregated validation target, is the gradient dimension, and is the ridge penalty. More details on the construction of Eq. 3 and its solution are provided in Appendix C.6.
Reducing the influence-score measurement in Eq. 2 to the ridge-regression problem solving in Eq. 3 offers two practical advantages. First, it removes the need to explicitly construct or invert the Hessian, addressing the main computational bottleneck in Eq. 2. Second, the ridge-regression formulation enables batch-wise estimation of per-trajectory influence scores, avoiding separate inverse-Hessian-vector computations for individual trajectories. This substantially improves efficiency while preserving a utility score for each retained trajectory. As a result, by leveraging Eq. 3, influence-score estimation becomes practical in our scenario.
Once the influence scores of the retained training trajectories are estimated, we use them to construct adaptive trajectory weights, assigning stronger supervision to more influential trajectories. Specifically, we normalize the estimated influence scores into per-trajectory weights and use the following weighted version of Eq. 1 as the loss function for each retained trajectory:
Under this loss, teacher-generated trajectories with greater influence contribute more to optimization, while less influential ones are down-weighted. Notably, since the influence of a trajectory may change as the model improves, we do not keep these weights fixed throughout training. Instead, we periodically recompute the estimated influence scores under the current model, update the trajectory weights, and continue training with the updated weighted loss every epochs. This iterative reweighting adapts teacher guidance as the model gradually acquires tool-use ability.
Overall, the procedure treats the API-accessible MLLM as a noisy proposal source rather than an oracle. The binary label is used only after a trajectory has been generated to filter inconsistent trajectories; it is not included in the teacher prompt and is never available at inference. Across alternative teacher choices, the final results remain stable. These results are reported in the teacher-model and GT-label ablations in Appendix A.
3.2. Training Stage 2
Above, we have obtained two preliminary components: an initial heuristic toolset and a tool-using MLLM model trained through the influence-based teacher-knowledge guidance strategy. At this point, a straightforward way is to directly deploy this preliminary system for AI-generated video detection. However, both components are still limited. On the model side, although the first-stage training equips the MLLM with basic tool-use ability, the model may still overfit to demonstrated trajectory patterns rather than learning a generalizable tool-use policy. On the tool side, the initial toolset is heuristically constructed and remains static; thus, it may not be sufficiently adapted to the tool-use behaviors of the MLLM or to the diverse subtle-yet-measurable unnatural artifacts appearing in AI-generated videos. These limitations motivate a second-stage optimization process that further improves both the model and the toolset.
However, jointly optimizing them is non-trivial because the two components are heterogeneous in form. The model is parameterized as a neural network and can be optimized through gradient-based training, whereas the tools are implemented as callable Python functions for specialized visual or temporal analysis and cannot be updated in the same way. At the same time, the model and the toolset are tightly coupled: the model decides how tools are used, while the toolset determines what evidence the model can obtain. Therefore, optimizing either component in isolation is insufficient, while directly optimizing them together is difficult. To make the problem tractable, we adopt an alternating optimization strategy: we optimize the model given the current toolset, and then evolve the toolset based on the tool-use experience collected from the updated model. These two steps are performed iteratively, allowing the model and the toolset to progressively adapt to each other.
Model Optimization. For model optimization, as discussed above, our main goal in this stage is to improve the generalization ability of the first-stage tool-using MLLM. Although the first-stage training equips the model with basic tool-use behaviors from teacher-generated demonstrations, it may not sufficiently encourage the model to make better tool-use decisions beyond the demonstrated patterns. Since reinforcement learning can improve models through task-level feedback and help them go beyond supervised trajectories, we thus adopt RL to optimize the MLLM in this stage.
To apply RL to our setting, we observe that in many RL optimization processes, many components are task-agnostic and can be directly applied to our scenario, such as the mechanism for deriving update directions from reward sig-nals. Hence, adapting these RL processes to our scenario mainly requires specifying the task-dependent component, i.e., a reward function aligned with the objective of evidence-grounded AI-generated video detection. Based on this, we design a suitable reward function for our scenario below. Specifically, in our task, to enable the model to perform accurate AI-generated video detection through effective tool use, we find it useful to reward both the final detection result and the intermediate tool-use trajectory. For the result reward , we use a binary reward indicating whether the final result is correct, where if the result is correct and otherwise. For the trajectory reward , we evaluate the tool-use trajectory quality from multiple aspects (details in Appendix C.2). Collectively, this gives the following reward:
We provide the full model optimization details for this stage in Appendix C.2. As shown in the reward-weight and reward-component ablations in Appendix A, the performance remains stable across reward-weight settings and remains strong, although lower, when either reward component is removed.
Tool Optimization. Having described how the model is optimized, we next introduce how to evolve the toolset. Notably, compared with model optimization, toolset optimization is more challenging. On the one hand, improving a toolset typically requires measuring the quality of each tool, which is not straightforward for custom tools used in MLLM-based reasoning. Moreover, even if a tool can be evaluated, it remains unclear how to update the tool according to this evaluation. Our tools use a common Python-callable interface, but individual implementations may wrap non-differentiable visual or temporal backends; the interface is therefore an orchestration boundary rather than a restriction to simple scalar heuristics. To address these challenges, we propose a tool-use experience-guided tool evolution strategy. The key intuition is that tools can usually be refined based on use experience. Meanwhile, we also notice that, in our framework, the MLLM's tool-augmented reasoning trajectories provide an observable form of such use experience. Specifically, during RL optimization, each trajectory records which tools are invoked and on which samples they are used. By comparing the final verdict in each trajectory with the ground-truth label, we can further determine whether the detection succeeds. Therefore, these trajectories can be treated as the MLLM's accumulated tool-use experience and used as feedback to evaluate and update the toolset.
User-experience-guided tool evaluation. To evaluate tools from the MLLM's tool-use experience, inspired by how tools are commonly judged in real-world usage [3, 4], we consider two complementary aspects: whether a tool is broadly needed and whether it is effective when used. Accordingly, for each tool t, we define its usage breadth and evidential effectiveness.
Specifically, usage breadth measures whether a tool is broadly needed by the current MLLM. It can be formally defined as the fraction of tool-use trajectories in which the tool is invoked: , where denotes the set of all tool-use trajectories produced during the previous model-optimization step, and denotes the -th trajectory. A higher usage breadth indicates that the MLLM frequently considers this type of evidence relevant across different videos. Meanwhile, evidential effectiveness measures whether a tool tends to support correct detection once it is used. It can be defined as the fraction of correct detections among the trajectories that invoke this tool: . Here, and denote the predicted and ground-truth labels of the video associated with trajectory , respectively. A higher evidential effectiveness indicates that, when the tool is used, it is more often associated with correct detection.
Based on these two measures, all tools in the current toolset can be divided into four groups. Specifically, we rank all tools by usage breadth and split them into high-breadth and low-breadth halves. Similarly, we rank all tools by evidential effectiveness and split them into high-effectiveness and low-effectiveness halves. Taking the intersections of these two partitions yields four types of tools: (a) high-breadth and high-effectiveness tools, (b) high-breadth but low-effectiveness tools, (c) low-breadth but high-effectiveness tools, and (d) low-breadth and low-effectiveness tools. These four types reflect different statuses of tools in the current toolset, which guide the subsequent tool updates.
User-experience-guided tool update. At this point, from the perspective of the MLLM's tool-use experience, we have obtained an evaluation (diagnosis) of each tool. The remaining problem is how to use this diagnosis to effectively update the toolset. This is however still non-trivial because the evaluation only reveals the current status of each tool, but does not directly specify how a custom-formatted tool should be modified.
A natural first step is to make direct decisions for the most certain cases: tools with both high breadth and high effectiveness can be kept, while tools with both low breadth and low effectiveness can be removed. However, this only provides a partial solution. First, it does not specify how to handle partially useful tools, such as tools that are frequently needed but currently unreliable, or tools that are effective but only applicable to limited scenarios. Second, it only exploits the current toolset and provides no mechanism for exploring potentially better tools beyond the existing design space.
To tackle this problem, inspired by model–tool co-evolution [64], biological evolution, and Genetic Programming [15, 26], we design a three-step tool-use-experience-guided tool evolution procedure. The key idea is to convert different diagnostic outcomes into different evolutionary operations: selection for clearly useful or unhelpful tools, mutation for partially useful tools, and exploration for missing tool capabilities. (1) Selection. Following the natural first step and mimicking natural selection, we first retain tools with both high breadth and high effectiveness, while pruning tools with both low breadth and low effectiveness. (2) Mutation. For partially useful tools, we perform targeted mutation by prompting the offline teacher MLLM to modify their callable Python functions according to their diagnosed limitations. Analogous to genetic mutation, this step introduces local variants of existing tools instead of directly discarding them. Specifically, high-breadth but low-effectiveness tools are mutated toward refinement, since they are frequently needed but not yet reliable; low-breadth but high-effectiveness tools are mutated toward generalization, since they are useful when invoked but may be too narrowly applicable. (3) Exploration. Selection and mutation still operate mainly within the current toolset. To explore potentially useful tools beyond the existing design space, we introduce new candidate tools through crossover and brainstorming. Analogous to genetic recombination, crossover combines complementary tools to produce new tools that inherit useful capabilities from both. Brainstorming further introduces missing capabilities by generating tools from failure cases or under-covered unnatural artifacts. Both operations use the same offline teacher interface, which generates Python functions as individual tools or as wrappers that invoke pretrained visual backends. Before admission, every candidate tool is trial-executed on calibration examples to ensure runtime stability: it must import successfully, run without an uncaught exception, and emit the required XML-style schema. Failed candidates are repaired or rejected. Candidates that pass these checks are added to the toolset, used in the next round of model optimization, and can later be pruned if they have low usage breadth and low evidential effectiveness. The trial-execution details and representative mutation, brainstorming, and crossover cases are provided in Appendix C.2.
Through the above process, our proposed user-experience-guided tool update strategy transforms tool optimization from an ill-defined and non-trivial problem over custom tools into a tractable feedback-driven tool evolution process. By alternating model optimization and tool evolution, our framework progressively improves both the MLLM's tool-use capability and the suitability of the toolset, ultimately enabling more reliable evidence-grounded AI-generated video detection.
3.3. Overall Training and Testing
Training. Our training follows a two-stage process, as illustrated in Fig. 2. Given a general MLLM, the first stage constructs an initial heuristic toolset and trains the model to acquire tool-use ability through the influence-based teacher-knowledge guidance strategy introduced in Sec. 3.1. The second stage alternates between RL-based model optimization and user-experience-guided tool evolution introduced in Sec. 3.2. Specifically, after every RL optimization steps, we evolve the toolset using the collected tool-use experience. This process continues until training finishes.
Testing. At test time, the trained model adaptively invokes suitable tools, interprets their returned evidence, and reasons over potentially conflicting observations before producing the final verdict. Tool-use statistics and inference details are provided in Appendix C.3.
4. Experiments
Datasets and evaluation metrics. To evaluate TUE-Detector, we conduct experiments on ViF-Bench [32] and GenVideo [7]. GenVideo is a widely-used dataset for AI-generated video detection introduced in the DeMamba work [7]. Following [46], we use the many-to-many zero-shot protocol on GenVideo and report Recall (R) and F1-score (F1). ViF-Bench [32] is a more recent and comprehensive dataset. For this dataset, we follow Skyra [32] and report accuracy (ACC), R, and F1. More details are in Appendix C.4. Our current evaluation focuses on fully AI-generated text-to-video and image-to-video videos. The proposed framework could also be adapted to face-manipulation detection by incorporating task-specific forensic tools, and we leave its evaluation on benchmarks such as FaceForensics++ to future work.
Implementation details. We conduct the main experiments on 8 NVIDIA H200 GPUs, and the complete TUE-Detector training run takes 19.3 hours. We initialize the detector from Qwen2.5-VL-7B-Instruct [2]. We use a capable API-accessible MLLM as an offline teacher/proposal model, which is never called at inference time. Teacher reliability and reconstructed API cost are reported in Appendix C.1; teacher-swap and tool-registry reproducibility details are in Appendices A and D.
4.1. Main Results
We compare with state-of-the-art AI-generated video detection methods. Experimental results on ViF-Bench and GenVideo are reported in Tab. 1 and Tab. 2. On ViF-Bench, TUE-Detector achieves the best average performance across generators. On GenVideo, it reaches near-saturated performance under the established many-to-many zero-shot protocol. We therefore use ViF-Bench as the primary discriminative benchmark and retain GenVideo mainly for cross-generator comparability with prior work.
4.2. Ablation Studies
We conduct extensive ablation experiments on ViF-Bench and report the average performance across generators. Additional ablation studies are provided in Appendix A.
Table 1. Performance on ViF-Bench, whose paired splits contain real and fake videos. Ours attains 98.82% accuracy on the real videos.
| Method | Metric | Wan2.1-1.3B | CogV-X1.5 | Wan2.2-5B(T2V) | Wan2.2-5B(I2V) | Hunyuan Video(T2V) | Hunyuan Video(I2V) | VACE-1.3B | Wan2.2-14B(T2V) | Wan2.2-14B(I2V) | Skyreels-V2(T2V) | Skyreels-V2(I2V) | LTX-Video-13B(T2V) | LTX-Video-13B(I2V) | Gen4-Turbo | Hai-luo-02 | Pika-V2 | Pixverse-V4-5 | Kling-V1 | Sora-2 | Avg |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| BusterX++ [62] | Acc | 54.85 | 59.39 | 52.42 | 50.30 | 59.15 | 49.70 | 50.91 | 62.42 | 49.70 | 65.76 | 50.00 | 56.25 | 50.00 | 50.89 | 61.68 | 76.82 | 75.66 | 52.84 | 52.33 | 56.90 |
| R | 10.30 | 19.39 | 5.45 | 1.21 | 18.90 | 0.00 | 2.42 | 25.45 | 0.00 | 32.12 | 0.61 | 13.12 | 0.61 | 2.68 | 24.09 | 54.30 | 51.97 | 5.67 | 5.33 | 14.40 | |
| F1 | 18.58 | 32.32 | 10.29 | 2.38 | 31.63 | 0.00 | 4.71 | 40.38 | 0.00 | 48.40 | 1.20 | 23.08 | 1.21 | 5.17 | 38.60 | 70.09 | 68.10 | 10.74 | 10.06 | 21.94 | |
| VidGuard-R1 [46] | Acc | 97.55 | 94.79 | 90.18 | 84.05 | 93.83 | 76.38 | 73.93 | 95.71 | 81.60 | 95.40 | 79.01 | 96.88 | 82.82 | 77.48 | 94.12 | 96.67 | 97.00 | 94.64 | 88.18 | 88.96 |
| R | 98.77 | 93.25 | 84.05 | 71.78 | 91.36 | 56.44 | 51.53 | 95.09 | 66.87 | 94.48 | 61.73 | 97.50 | 69.33 | 60.36 | 92.65 | 97.33 | 98.00 | 93.57 | 80.41 | 81.82 | |
| F1 | 97.58 | 94.70 | 89.54 | 81.82 | 93.67 | 70.50 | 66.40 | 95.68 | 78.42 | 95.36 | 74.63 | 96.89 | 80.14 | 72.83 | 94.03 | 96.69 | 97.03 | 94.58 | 87.18 | 87.25 | |
| Video-Veritas [55] | Acc | 98.16 | 97.85 | 93.56 | 86.81 | 94.75 | 69.33 | 75.15 | 96.93 | 86.20 | 96.93 | 81.48 | 97.81 | 85.28 | 81.08 | 97.06 | 98.00 | 97.67 | 97.50 | 90.54 | 90.64 |
| R | 100.00 | 99.39 | 90.80 | 77.30 | 93.21 | 42.33 | 53.99 | 97.55 | 76.07 | 97.55 | 66.67 | 99.38 | 74.23 | 66.67 | 98.53 | 100.00 | 99.33 | 99.29 | 84.46 | 85.09 | |
| F1 | 98.19 | 97.89 | 93.38 | 85.42 | 94.67 | 57.98 | 68.48 | 96.95 | 84.64 | 96.95 | 78.26 | 97.85 | 83.45 | 77.89 | 97.10 | 98.04 | 97.70 | 97.54 | 89.93 | 89.07 | |
| Ivy-xDetector [23] | Acc | 96.93 | 88.96 | 89.26 | 83.74 | 94.14 | 65.64 | 73.31 | 96.01 | 79.75 | 95.09 | 76.85 | 96.56 | 80.98 | 74.77 | 96.32 | 98.00 | 97.00 | 95.36 | 87.50 | 87.69 |
| R | 98.16 | 82.21 | 82.82 | 71.78 | 92.59 | 35.58 | 50.92 | 96.32 | 63.80 | 94.48 | 58.02 | 97.50 | 66.26 | 55.86 | 97.79 | 100.00 | 98.67 | 95.71 | 79.73 | 79.91 | |
| F1 | 96.97 | 88.16 | 88.52 | 81.53 | 94.04 | 50.88 | 65.61 | 96.02 | 75.91 | 95.06 | 71.48 | 96.59 | 77.70 | 68.89 | 96.38 | 98.04 | 97.05 | 95.37 | 86.45 | 85.30 | |
| Skyra [32] | Acc | 96.97 | 96.36 | 92.12 | 87.58 | 94.82 | 93.64 | 79.09 | 96.36 | 84.55 | 95.76 | 78.96 | 95.94 | 83.74 | 79.46 | 95.99 | 96.36 | 96.05 | 94.68 | 91.00 | 91.02 |
| R | 100.00 | 98.79 | 90.30 | 81.21 | 95.73 | 93.33 | 64.24 | 98.79 | 75.15 | 97.58 | 64.02 | 98.12 | 73.62 | 66.07 | 98.54 | 99.34 | 98.68 | 96.45 | 88.67 | 88.35 | |
| F1 | 97.06 | 96.45 | 91.98 | 86.73 | 94.86 | 93.62 | 75.44 | 96.45 | 82.94 | 95.83 | 75.27 | 96.02 | 81.91 | 76.29 | 96.09 | 96.46 | 96.15 | 94.77 | 90.78 | 90.27 | |
| Ours | Acc | 99.39 | 99.39 | 96.63 | 94.79 | 98.77 | 95.09 | 92.94 | 99.08 | 94.17 | 99.08 | 93.21 | 99.06 | 96.32 | 91.44 | 99.26 | 99.00 | 99.34 | 98.57 | 95.61 | 96.90 |
| R | 100.00 | 100.00 | 94.48 | 90.80 | 98.77 | 91.41 | 87.12 | 99.39 | 89.57 | 99.39 | 87.65 | 99.38 | 93.87 | 83.78 | 100.00 | 99.34 | 99.34 | 97.86 | 92.57 | 94.98 | |
| F1 | 99.39 | 99.39 | 96.55 | 94.57 | 98.77 | 94.90 | 92.51 | 99.08 | 93.89 | 99.08 | 92.81 | 99.07 | 96.23 | 90.73 | 99.27 | 99.00 | 99.34 | 98.56 | 95.47 | 96.77 |
Table 2. Performance on GenVideo, whose test splits combine generated videos with a shared real-video pool. Ours' near-perfect R and F1 require strong performance on both classes.
| Method | Metric | Sora | Morph Studio | Gen2 | HotShot | Lavie | Show-1 | Moon Valley | Crafter | Model Scope | Wild Scrape | Avg |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| NPR [54] | R | 0.91 | 0.99 | 0.99 | 0.24 | 0.89 | 0.57 | 0.97 | 0.99 | 0.94 | 0.87 | 0.84 |
| F1 | 0.27 | 0.84 | 0.91 | 0.30 | 0.86 | 0.59 | 0.81 | 0.91 | 0.81 | 0.81 | 0.71 | |
| VideoMAE [56] | R | 0.67 | 0.96 | 0.98 | 0.96 | 0.77 | 0.80 | 0.97 | 0.96 | 0.96 | 0.68 | 0.87 |
| F1 | 0.62 | 0.95 | 0.98 | 0.96 | 0.86 | 0.87 | 0.96 | 0.97 | 0.96 | 0.79 | 0.89 | |
| MINTIME-CLIP [9] | R | 0.89 | 1.00 | 0.98 | 0.26 | 0.96 | 0.98 | 0.99 | 1.00 | 0.84 | 0.82 | 0.87 |
| F1 | 0.49 | 0.93 | 0.96 | 0.37 | 0.94 | 0.92 | 0.92 | 0.96 | 0.84 | 0.85 | 0.82 | |
| FTCN-CLIP [71] | R | 0.87 | 1.00 | 0.98 | 0.17 | 0.97 | 0.91 | 1.00 | 1.00 | 0.85 | 0.82 | 0.86 |
| F1 | 0.78 | 0.98 | 0.98 | 0.29 | 0.98 | 0.94 | 0.98 | 0.99 | 0.90 | 0.89 | 0.87 | |
| DeMamba-XCLIP [7] | R | 0.98 | 1.00 | 0.99 | 0.65 | 0.94 | 0.98 | 1.00 | 1.00 | 0.92 | 0.89 | 0.93 |
| F1 | 0.64 | 0.96 | 0.97 | 0.75 | 0.95 | 0.95 | 0.95 | 0.97 | 0.92 | 0.91 | 0.90 | |
| VidGuard-R1 [46] | R | 0.95 | 1.00 | 0.98 | 0.94 | 0.98 | 0.95 | 0.97 | 0.99 | 0.94 | 0.91 | 0.96 |
| F1 | 0.97 | 0.99 | 0.99 | 0.91 | 0.99 | 0.89 | 0.99 | 0.99 | 0.95 | 0.90 | 0.96 | |
| Skyra [32] | R | 0.68 | 0.82 | 0.88 | 0.70 | 0.81 | 0.78 | 0.96 | 0.90 | 0.79 | 0.83 | 0.81 |
| F1 | 0.81 | 0.90 | 0.94 | 0.82 | 0.90 | 0.88 | 0.98 | 0.95 | 0.88 | 0.91 | 0.90 | |
| Ours | R | 1.00 | 1.00 | 1.00 | 1.00 | 0.99 | 1.00 | 1.00 | 1.00 | 0.99 | 1.00 | 1.00 |
| F1 | 1.00 | 1.00 | 1.00 | 1.00 | 0.99 | 1.00 | 1.00 | 1.00 | 0.99 | 1.00 | 1.00 |
Table 3. Evaluation on the key strategies in our framework.
| Method | Acc | R | F1 |
|---|---|---|---|
| w/o influence-based guidance | 95.70 | 91.94 | 95.34 |
| w/o user-experience-guided tool evolution | 92.92 | 93.98 | 92.91 |
| TUE-Detector | 96.90 | 94.98 | 96.77 |
Table 4. Evaluation on the two-stage training process.
| Method | Acc | R | F1 |
|---|---|---|---|
| w/o Stage 1 | 82.99 | 70.71 | 79.39 |
| w/o Stage 2 | 93.12 | 93.85 | 93.08 |
| TUE-Detector | 96.90 | 94.98 | 96.77 |
Impact of the key strategies in our framework. In our TUE-Detector framework, we introduce two key strategies: the influence-based teacher-knowledge guidance strategy in training stage 1 and the user-experience-guided tool evolution strategy in training stage 2. To assess the contribution of each strategy, we test two variants. In the first variant (w/o influence-based guidance), we discard the influence-based teacher-knowledge guidance strategy, and directly use Eq. 1 for stage 1 training. In the second variant (w/o user-experience-guided tool evolution), we discard the user-experience-guided tool evolution strategy and do not optimize tool in stage 2 training. As shown in Tab. 3, compared to our framework, the performance of both variants drops significantly, showing the efficacy of both key strategies in our framework.
Impact of the two-stage training process. In our framework, training proceeds through a progressive two-stage process. To evaluate the effectiveness of this design, we consider two variants. In the first variant (w/o Stage 1), we remove the training process in training stage 1 and, after initializing the heuristic toolset, directly optimize the model and toolset alternately as in training stage 2. In the second variant (w/o Stage 2), we omit training stage 2 and directly evaluate the tool-usage expert detector obtained after training stage 1. As shown in Tab. 4, our framework significantly outperforms both variants, demonstrating the importance of both stages in our training process. Both directly prompting off-the-shelf models with the updated toolset and omitting the task-specific tool-use and evidence-integration training of Stage 1 lead to lower performance. Additional variants are provided in Appendix A.
5. Conclusion
In this paper, we proposed TUE-Detector, a novel framework for AI-generated video detection from the perspective of tool-mediated evidence discovery. TUE-Detector enables training a general MLLM into a task-tailored, tool-using expert detector for AI-generated video detection. In TUE-Detector, we propose several novel designs to equip the detector with high-quality, suitable tools and strong tool-use capability. Extensive experiments demonstrate the efficacy of TUE-Detector.
References
[1] Jianfa Bai, Man Lin, and Gang Cao. AI-generated video detection via spatio-temporal anomaly learning. In Proceedings of the Chinese Conference on Pattern Recognition and Computer Vision (PRCV), 2024. 1, 3
[2] Shuai Bai, Keqin Chen, Xuejing Liu, Jialin Wang, Wenbin Ge, Sibo Song, Kai Dang, Peng Wang, Shijie Wang, Jun Tang, et al. Qwen2. 5-vl technical report. arXiv preprint arXiv:2502.13923, 2025. 7, 16, 32
[3] Nigel Bevan. Measuring usability as quality of use. Software Quality Journal, 4:115–130, 1995. 6
[4] Nigel Bevan and Miles Macleod. Usability measurement in context. Behaviour & Information Technology, 13(1–2): 132–145, 1994. 6
[5] Umang Bhatt, Adrian Weller, and Giovanni Cherubin. Fast conformal classification using influence functions. In Conformal and Probabilistic Prediction and Applications, pages 303–305. PMLR, 2021. 4
[6] Chen Chen, Runze Li, Zejun Zhang, Pukun Zhao, Fanqing Zhou, Longxiang Wang, and Haojian Huang. Fakehunter: Multimodal step-by-step reasoning for explainable video forensics. arXiv e-prints, pages arXiv–2508, 2025. 2, 3
[7] Haoxing Chen, Yan Hong, Zizheng Huang, Zhuoer Xu, Zhangxuan Gu, Yaohui Li, Jun Lan, Huijia Zhu, Jianfu Zhang, Weiqiang Wang, and Huaxiong Li. DeMamba: AI-generated video detection on million-scale GenVideo benchmark, 2024. 1, 3, 7, 8, 24, 32
[8] Jongwook Choi, Taehoon Kim, Yonghyun Jeong, Seungryul Baek, and Jongwon Choi. Exploiting style latent flows for generalizing deepfake video detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2024. 3
[9] Davide Alessandro Coccomini, Giorgos Kordopatis Zilos, Giuseppe Amato, Roberto Caldelli, Fabrizio Falchi, Symeon Papadopoulos, and Claudio Gennaro. MINTIME: Multi-identity size-invariant video deepfake detection. IEEE Transactions on Information Forensics and Security, 19:6084–6096, 2024. 8
[10] Riccardo Corvi, Davide Cozzolino, Ekta Prashnani, Shalini De Mello, Koki Nagano, and Luisa Verdoliva. Seeing what matters: Generalizable AI-generated video detection with forensic-oriented augmentation, 2025. WaveRep method; NeurIPS 2025. 1
[11] Deressa Wodajo Deressa, Hannes Mareen, Peter Lambert, Solomon Atnafu, Zahid Akhtar, and Glenn Van Wallendael. Genconvit: Deepfake video detection using generative convolutional vision transformer. Applied Sciences, 15(12):6622, 2025. 3
[12] Tom Dobber, Nadia Metoui, Damian Trilling, Natali Helberger, and Claes de Vreese. Do (microtargeted) deepfakes have real effects on political attitudes? The International Journal of Press/Politics, 26(1):69–91, 2021. 1
[13] Guanting Dong, Yifei Chen, Xiaoxi Li, Jiajie Jin, Hongjin Qian, Yutao Zhu, Hangyu Mao, Guorui Zhou, Zhicheng Dou, and Ji-Rong Wen. Tool-star: Empowering LLM-brained multi-tool reasoner via reinforcement learning, 2025. 4
[14] European Network of Forensic Science Institutes. Best Practice Manual for Forensic Image and Video Enhancement. European Network of Forensic Science Institutes, 2018. ENFSI-BPM-DI-02, Version 01. 2
[15] Ronald Aylmer Fisher. The genetical theory of natural selection: a complete variorum edition. Oxford University Press, 1999. 6
[16] Marco Fontani, Tiziano Bianchi, Alessia De Rosa, Alessandro Piva, and Mauro Barni. A forensic tool for investigating image forgeries. International Journal of Digital Crime and Forensics, 5(4):15–33, 2013. 2
[17] Luyu Gao, Aman Madaan, Shuyan Zhou, Uri Alon, Pengfei Liu, Yiming Yang, Jamie Callan, and Graham Neubig. PAL: Program-aided language models. In Proceedings of the 40th International Conference on Machine Learning (ICML), pages 10764–10799, 2023. 3
[18] Yifeng Gao, Yifan Ding, Hongyu Su, Juncheng Li, Yunhan Zhao, Lin Luo, Zixing Chen, Li Wang, Xin Wang, Yixu Wang, et al. David-xr1: Detecting ai-generated videos with explainable reasoning, 2025. 1, 3
[19] Peisong He, Leyao Zhu, Jiaxing Li, Shiqi Wang, and Haoliang Li. Exposing AI-generated videos: A benchmark dataset and a local-and-global temporal defect based detection method, 2024. 1
[20] Vlad Hondru, Eduard Hogea, Darian Onchis, and Radu Tudor Ionescu. ExDDV: A new dataset for explainable deepfake detection in video. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), 2026. 3
[21] Christian Internò, Robert Geirhos, Markus Olhofer, Sunny Liu, Barbara Hammer, and David Klindt. AI-generated video detection via perceptual straightening. In Advances in Neural Information Processing Systems (NeurIPS), 2025. 1, 3
[22] M. Jerian, S. Paolino, F. Cervelli, S. Carrato, A. Mattei, and L. Garofano. A forensic image processing environment for investigation of surveillance video. Forensic Science International, 167(2–3):207–212, 2007. 2
[23] Changjiang Jiang, Wenhui Dong, Zhonghao Zhang, Chenyang Si, Fengchang Yu, Wei Peng, Xinbin Yuan, Yifei Bi, Ming Zhao, Zian Zhou, and Caifeng Shan. IVY-FAKE: A unified explainable framework and benchmark for image and video AIGC detection, 2025. 3, 8
[24] Pooja Kaushik, Vikas Garg, Anu Priya, and Shashi Kant. Financial fraud and manipulation: The malicious use of deepfakes in business. In Deepfakes and their impact on business, pages 173–196. IGI Global Scientific Publishing, 2025. 1
[25] Pang Wei Koh and Percy Liang. Understanding black-box predictions via influence functions. In Proceedings of the 34th International Conference on Machine Learning (ICML), pages 1885–1894, 2017. 4
[26] John R. Koza. Genetic Programming: On the Programming of Computers by Means of Natural Selection. MIT Press, Cambridge, MA, 1992. 6
[27] Kuaishou Technology. Kuaishou unveils proprietary video generation model ‘Kling’. https://ir.kuaishou.com/news-releases/news-release-details/kuaishou-unveils-proprietary-video-generation-model-kling, 2024. Press release / technical announcement. 3
[28] Rohit Kundu, Hao Xiong, Vishal Mohanty, Athula Balachandran, and Amit K. Roy-Chowdhury. Towards a universal synthetic video detector: From face or background manipulations to fully AI-generated content. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2025. 3
[29] Yongchan Kwon, Eric Wu, Kevin Wu, and James Zou. DataInf: Efficiently estimating data influence in LoRA-tuned LLMs and diffusion models. In International Conference on Learning Representations (ICLR), 2024. 4, 25
[30] Lisa Lazard, Rose Capdevila, Emma L. Turley, Kathryn Gilfoyle, and Nelli Stavropoulou. Deepfake technology and gender-based violence: A scoping review. Trauma, Violence, & Abuse, 2025. 1
[31] Huy Hoan Le, Van Sy Thinh Nguyen, Thi Le Chi Dang, Vo Thanh Khang Nguyen, Truong Thanh Hung Nguyen, and Hung Cao. Multimedia verification through multi-agent deep research multimodal large language models. In Proceedings of the 33rd ACM International Conference on Multimedia (MM), 2025. 3
[32] Yifei Li, Wenzhao Zheng, Yanran Zhang, Runze Sun, Yu Zheng, Lei Chen, Jie Zhou, and Jiwen Lu. Skyra: AI-generated video detection via grounded artifact reasoning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2026. 1, 3, 7, 8, 18, 19, 23, 24, 32
[33] Zehao Li, Hongwei Yu, Hao Jiang, Qiang Sheng, Yilong Xu, Baolong Bi, Yang Li, Zhenlong Yuan, Yujun Cai, and Zhaoqi Wang. FactGuard: Agentic video misinformation detection via reinforcement learning, 2026. 2
[34] Mengfei Liang, Yiting Qu, Yukun Jiang, Michael Backes, and Yang Zhang. From evidence to verdict: An agent-based forensic framework for AI-generated image detection, 2025. 3
[35] Jiahao Lin, Weixuan Peng, Bojia Zi, Yifeng Gao, Xianbiao Qi, Xingjun Ma, and Yu-Gang Jiang. BrokenVideos: A benchmark dataset for fine-grained artifact localization in AI-generated videos, 2025. 1
[36] Qingyuan Liu, Yun-Yun Tsai, Ruijian Zha, Victoria Li, Pengyuan Shi, Chengzhi Mao, and Junfeng Yang. LAVID: An agentic LVLM framework for diffusion-generated video detection, 2025. 2, 3, 15
[37] Shilong Liu, Hao Cheng, Haotian Liu, Hao Zhang, Feng Li, Tianhe Ren, Xueyan Zou, Jianwei Yang, Hang Su, Jun Zhu, Lei Zhang, Jianfeng Gao, and Chunyuan Li. LLaVA-Plus: Learning to use tools for creating multimodal agents. In Computer Vision – ECCV 2024, pages 126–142, 2024. 2, 3
[38] Long Ma, Zhiyuan Yan, Qinglang Guo, Yong Liao, Haiyang Yu, and Pengyuan Zhou. DeCoF: Detecting AI-generated video via frame consistency, 2024. 1, 3
[39] Reiichiro Nakano, Jacob Hilton, Suchir Balaji, Jeff Wu, Long Ouyang, Christina Kim, Christopher Hesse, Shantanu Jain, Vineet Kosaraju, William Saunders, Xu Jiang, Karl Cobbe, Tyna Eloundou, Gretchen Krueger, Kevin Button, Matthew Knight, Benjamin Chess, and John Schulman. WebGPT:
Browser-assisted question-answering with human feedback, 2021. 3
[40] Dat Nguyen, Marcella Astrid, Anis Kacem, Enjie Ghorbel, and Djamila Aouada. Vulnerability-aware spatio-temporal learning for generalizable and interpretable deepfake video detection. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), 2025. 3
[41] Zhenliang Ni, Qiangyu Yan, Mouxiao Huang, Tianning Yuan, Yehui Tang, Hailin Hu, Xinghao Chen, and Yunhe Wang. GenVidBench: A 6-million benchmark for AI-generated video detection, 2026. AAAI 2026. 1
[42] OpenAI. Video generation models as world simulators. https://openai.com/index/video-generation-models-as-world-simulators/, 2024. Technical report, OpenAI. 3
[43] OpenAI. GPT-5.4 model. https://developers.openai.com/api/docs/models/gpt-5.4, 2026. API model card and pricing; accessed 2026-08-28.
[44] OpenAI. Images and vision: Calculating costs. https://developers.openai.com/api/docs/guides/images-vision, 2026. Image-input token accounting; accessed 2026-08-28.
[45] Bhargavi Paranjape, Scott Lundberg, Sameer Singh, Hannaneh Hajishirzi, Luke Zettlemoyer, and Marco Tulio Ribeiro. Art: Automatic multi-step reasoning and tool-use for large language models. 2023. 3
[46] Kyoungjun Park, Yifan Yang, Juheon Yi, Shicheng Zheng, Yifei Shen, Dongqi Han, Caihua Shan, Muhammad Muaz, and Lili Qiu. VidGuard-R1: AI-generated video detection and explanation via reasoning MLLMs and RL. In International Conference on Learning Representations (ICLR), 2026. 1, 3, 7, 8, 24
[47] Yujia Qin, Shihao Liang, Yining Ye, Kunlun Zhu, Lan Yan, Yaxi Lu, Yankai Lin, Xin Cong, Xiangru Tang, Bill Qian, Sihan Zhao, Lauren Hong, Runchu Tian, Ruobing Xie, Jie Zhou, Mark Gerstein, Dahai Li, Zhiyuan Liu, and Maosong Sun. ToolLLM: Facilitating large language models to master 16000+ real-world APIs, 2023. 2, 3
[48] Zhongzheng Ren, Raymond A. Yeh, and Alexander G. Schwing. Not all unlabeled data are equal: Learning to weight data in semi-supervised learning. In Advances in Neural Information Processing Systems 33, pages 21786–21797, 2020. 4
[49] Runway Research. Introducing Gen-3 Alpha: A new frontier for video generation. https://runwayml.com/research/introducing-gen-3-alpha, 2024. Technical blog post, Runway. 3
[50] Ekraam Sabir, Jiaxin Cheng, Ayush Jaiswal, Wael AbdAlmageed, Iacopo Masi, and Prem Natarajan. Recurrent convolutional strategies for face manipulation detection in videos. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), pages 80–87, 2019. 3
[51] Timo Schick, Jane Dwivedi-Yu, Roberto Dessì, Roberta Raileanu, Maria Lomeli, Luke Zettlemoyer, Nicola Cancedda, and Thomas Scialom. Toolformer: Language models can teach themselves to use tools. In Advances in Neural Information Processing Systems (NeurIPS), 2023. 3
[52] Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. DeepSeekMath: Pushing the limits of mathematical reasoning in open language models, 2024. Introduces Group Relative Policy Optimization (GRPO). 21
[53] Haoran Sun, Chen Cai, Huiping Zhuang, Kong Aik Lee, Lap-Pui Chau, and Yi Wang. EDVD-LLaMA: Explainable deepfake video detection via multimodal large language model reasoning, 2025. 3
[54] Chuangchuang Tan, Yao Zhao, Shikui Wei, Guanghua Gu, Ping Liu, and Yunchao Wei. Rethinking the up-sampling operations in CNN-based generative network for generalizable deepfake detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 28130–28139, 2024. 8
[55] Hao Tan, Jun Lan, Senyuan Shi, Zichang Tan, Zijian Yu, Huijia Zhu, Weiqiang Wang, Jun Wan, and Zhen Lei. VideoVeritas: AI-generated video detection via perception pretext reinforcement learning, 2026. 1, 3, 8
[56] Zhan Tong, Yibing Song, Jue Wang, and Limin Wang. Videomae: Masked autoencoders are data-efficient learners for self-supervised video pre-training. pages 10078–10093, 2022. 8
[57] Zhuozhuo Tu, Cheng Chen, and Yuxuan Du. RRInf: Efficient influence function estimation via ridge regression for large language models and text-to-image diffusion models. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, 2025. 5, 24, 25, 27
[58] Danial Samadi Vahdati, Tai D. Nguyen, Aref Azizpour, and Matthew C. Stamm. Beyond deepfake images: Detecting AI-generated videos. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Workshops, pages 4397–4408, 2024. 1
[59] Youqi Wang, Shen Chen, Haowei Wang, Rongxuan Peng, Taiping Yao, Shunquan Tan, Changsheng Chen, Bin Li, and Shouhong Ding. ForgeryVCR: Visual-centric reasoning via efficient forensic tools in MLLMs for image forgery detection and localization, 2026. 2
[60] Jason Wei, Maarten Bosma, Vincent Y. Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan Du, Andrew M. Dai, and Quoc V. Le. Finetuned language models are zero-shot learners. In International Conference on Learning Representations (ICLR), 2022. 3
[61] Haiquan Wen, Yiwei He, Zhenglin Huang, Tianxiao Li, Zihan Yu, Xingru Huang, Lu Qi, Baoyuan Wu, Xiangtai Li, and Guangliang Cheng. BusterX: MLLM-powered AI-generated video forgery detection and explanation, 2025. Also introduces the GenBuster-200K dataset. 1, 3
[62] Haiquan Wen, Tianxiao Li, Zhenglin Huang, Yiwei He, and Guangliang Cheng. BusterX++: Towards unified cross-modal AI-generated content detection and explanation with MLLM, 2025. 3, 8
[63] Wenbo Xu, Wei Lu, Xiangyang Luo, and Jiantao Zhou. MARE: Multimodal alignment and reinforcement for explainable deepfake detection via vision-language models, 2026. 1, 3
[64] Yu Xue, Haoxuan Qu, Zhuoling Li, Yihang Lou, Yan Bai, Hossein Rahmani, and Jun Liu. ToolFG: Towards well-
grounded fine-grained image classification. arXiv preprint arXiv:2606.02518, 2026. 6
[65] Zhiyuan Yan, Yandan Zhao, Shen Chen, Mingyi Guo, Xinghe Fu, Taiping Yao, Shouhong Ding, and Li Yuan. Generalizing deepfake video detection with plug-and-play: Video-level blending and spatiotemporal adapter tuning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2025. 3
[66] Yongqi Yang, Zhihao Qian, Ye Zhu, Olga Russakovsky, and Yu Wu. D^3: scaling up deepfake detection by learning from discrepancy. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 23850–23859, 2025. 3
[67] Shunyu Yao, Jeffrey Zhao, Dian Yu, Nan Du, Izhak Shafran, Karthik Narasimhan, and Yuan Cao. ReAct: Synergizing reasoning and acting in language models. In International Conference on Learning Representations (ICLR), 2023. 3
[68] Fanrui Zhang, Qiang Zhang, Sizhuo Zhou, Jianwen Sun, Chuanhao Li, Jiaxin Ai, Yukang Feng, Yujie Zhang, Wenjie Li, Zizhen Li, Yifan Chang, Jiawei Liu, and Kaipeng Zhang. Code-in-the-loop forensics: Agentic tool use for image forgery detection, 2025. 3
[69] Shuhai Zhang, ZiHao Lian, Jiahao Yang, Daiyuan Li, Guoxuan Pang, Feng Liu, Bo Han, Shutao Li, and Mingkui Tan. Physics-driven spatiotemporal modeling for AI-generated video detection. In Advances in Neural Information Processing Systems (NeurIPS), 2025. Spotlight paper. 3
[70] Yue Zhang, Ben Colman, Xiao Guo, Ali Shahriyari, and Gaurav Bharaj. Common sense reasoning for deepfake detection. In Proceedings of the European Conference on Computer Vision (ECCV), 2024. 3
[71] Yinglin Zheng, Jianmin Bao, Dong Chen, Ming Zeng, and Fang Wen. Exploring temporal coherence for more general video face forgery detection. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 15044–15054, 2021. 3, 8
[72] Chenyang Zhu, Maorong Wang, Jun Liu, Ching-Chun Chang, and Isao Echizen. EvoGuard: An extensible agentic RL-based framework for practical and evolving AI-generated image detection, 2026. 3
Supplementary Material
This appendix is organised as follows. Section A presents additional ablation studies. Section B presents additional visualisations and case studies. Section C provides additional experimental details and the mathematical derivation of the influence reweighting stage. Section D provides toolset details. Section E collects the prompts referenced in the paper. Section F contains the dataset and model licenses.
A. Additional Ablation Studies
In this section, we present the additional ablation studies promised in Section 4.2 of the main paper. Unless noted otherwise, we conduct experiments on VIF-Bench and report the average performance across generators.
Impact of the two complementary aspects of tool-use experience. In our framework, we introduce two complementary aspects of tool-use experience to evaluate tools, namely measuring the usage breadth of a tool across rollouts and measuring the evidential effectiveness of a tool when it is invoked. To evaluate the efficacy of each aspect, we test two variants. In the first variant (), we remove the usage-breadth aspect from tool evaluation. In the second variant (), we remove the evidential-effectiveness aspect from tool evaluation. For these two variants, since each only has one evaluation aspect, we keep high-breadth or high-effectiveness tools, while for tools that is determined as low-breadth or low-effectiveness, we let the MLLM decide whether to prune the tool from the toolset or to mutate it. Moreover, for both variants, brainstorming and crossover operations are kept. As shown in Table 5, compared to our framework, the performance of each variant drops, which shows the importance of evaluating tools along both complementary aspects.
Table 5. Evaluation on the two complementary aspects of tool-use experience.
| Method | Acc ↑ | R ↑ | F1 ↑ |
|---|---|---|---|
| w/o U(t) | 95.58 | 93.48 | 95.35 |
| w/o S(t) | 95.27 | 93.52 | 95.06 |
| TUE-Detector | 96.90 | 94.98 | 96.77 |
Impact of the toolset update strategy. In our framework, the toolset is evolved together with the model policy through selection, mutation, and exploration, where exploration includes brainstorming and crossover. As mentioned in Section 3.2 with the phrase partially useful tools, here we still use this term to collectively refer to high-breadth but low-effectiveness and low-breadth but high-effectiveness tools. Here, to test the efficacy of our toolset update strategy, we test a variant. In this we remove the toolset update strategy. Ablation drops below TUE-Detector, which shows that brainstorming, and crossover all contribute to the final detector.
Table 6. Evaluation on the toolset update strategy.
| Configuration | Acc ↑ | R ↑ | F1 ↑ |
|---|---|---|---|
| w/o tool update strategy | 93.79 | 91.36 | 93.37 |
| TUE-Detector | 96.90 | 94.98 | 96.77 |
Impact of training the model to use tools. In our framework, training is used to turn a general MLLM into a task-tailored tool-using detector. To evaluate the impact of this design choice, we compare our framework with variants that directly use off-the-shelf large models without training and prompt Qwen2.5-VL-7B-Instruct or GPT-5.4 to use the initial or updated toolset. As shown in Table 7, these variants suffer a substantial drop even using the updated toolset, while TUE-Detector achieves much stronger performance. This shows that the toolset alone is insufficient: our way of model training is critical for learning when to invoke tools, how to integrate their evidence, and how to make reliable AI-generated video detection decisions.
Table 7. Evaluation on training the model to use tools.
| Model | Acc ↑ | R ↑ | F1 ↑ |
|---|---|---|---|
| Qwen2.5-VL-7B-Instruct (initial toolset) | 65.33 | 44.15 | 52.94 |
| Qwen2.5-VL-7B-Instruct (updated toolset) | 70.58 | 44.13 | 57.68 |
| GPT-5.4 (initial toolset) | 69.13 | 59.44 | 64.73 |
| GPT-5.4 (updated toolset) | 75.06 | 50.77 | 65.72 |
| TUE-Detector | 96.90 | 94.98 | 96.77 |
Tool-mediated reasoning versus learned aggregation. In our framework, the MLLM adaptively invokes tools, interprets their returned evidence, and integrates that evidence into its reasoning throughout the detection trajectory. To evaluate whether the performance gain depends on this tool-mediated reasoning process or can be reproduced by learned aggregation alone, we test a variant. In this variant (learned aggregation), we train a simple MLP to combine Skyra's final prediction with the outputs of our final toolset, without the adaptive tool invocation and evidence reasoning used in our framework. As shown in Table 8, this variant remains substantially below TUE-Detector across all three metrics. These results show that learned aggregation alone is insufficient and highlight the benefit of adaptive tool invocation and evidence reasoning within the detection trajectory.
Table 8. Comparison with learned aggregation on ViF-Bench.
| Method | Acc ↑ | R ↑ | F1 ↑ |
|---|---|---|---|
| Learned aggregation (MLP) | 91.12 | 82.89 | 88.55 |
| TUE-Detector | 96.90 | 94.98 | 96.77 |
Impact of teacher model used for trajectory generation. In our framework, when constructing the tool augmented trajectories during Stage 1 and evolving the toolset during Stage 2, we use GPT-5.4 as the teacher model. Here we also assess other choices of teacher model, including Claude Opus 4.7 and Gemini 3.1 Pro, and report the results in Table 9. As shown in Table 9, with different choices of teacher model, our framework performs consistently, which shows the robustness of our framework to the choice of teacher model.
Table 9. Evaluation on teacher model used for trajectory generation.
| Teacher model | Acc ↑ | R ↑ | F1 ↑ |
|---|---|---|---|
| Claude Opus 4.7 | 97.15 | 94.76 | 96.91 |
| Gemini 3.1 Pro | 96.91 | 94.89 | 96.66 |
| GPT-5.4 | 96.90 | 94.98 | 96.77 |
Impact of exposing ground-truth binary label to the teacher model when constructing the tool augmented reference trajectories. In our framework (w/o GT binary label), during prompting the teacher model to generate trajectories, we do not pass it with the binary ground-truth label. To evaluate this design, we test a variant (with GT binary label), in which the GT binary label is instead exposed to the teacher MLLM during its trajectory generation. As shown in Table 10, exposing the GT label to the teacher leads to a drop across all three metrics. A potential reason is that, once the teacher already knows the answer, it can fall back on the binary label as a shortcut and become less invested in carefully invoking tools, interpreting their outputs, and assembling evidence into a well-grounded reasoning chain, slightly degrading the quality of tool-grounded reasoning that the student inherits from the trajectories.
Table 10. Evaluation on exposing ground-truth binary label to the teacher model when constructing the tool augmented reference trajectories.
| Teacher input | Acc ↑ | R ↑ | F1 ↑ |
|---|---|---|---|
| with GT binary label | 95.70 | 93.23 | 95.45 |
| w/o GT binary label | 96.90 | 94.98 | 96.77 |
Impact of our token-level mask of tool output. In our framework, we introduce the token-level mask of tool output during training in Stage 1, which let the model focus learning on tool-use decisions and evidence-based reasoning, rather than also learning tool output. To evaluate the efficacy of this mask, we test a variant. In this variant (w/o token-level mask of tool output), we train the model in Stage 1 without masking the token-level mask of tool output, while keeping all other components of our framework fixed. As shown in Table 11, compared to our framework, the performance of this variant drops, which shows the importance of this token-level mask of tool output during training in Stage 1.
Table 11. Evaluation on our token-level mask of tool output.
| Method | Acc ↑ | Recall ↑ | F1 ↑ |
|---|---|---|---|
| w/o token-level mask of tool output | 89.75 | 89.60 | 89.47 |
| TUE-Detector | 96.90 | 94.98 | 96.77 |
LLM-judge evaluation of detection trajectories. We further evaluate the quality of different methods' detection reasoning using Claude Opus 4.7 as an external LLM judge. The judge rates how well each method captures subtle yet measurable unnatural artifacts on a Likert scale from 1 to 5. Its prompt is (Given 16 frames, timestamps, GT, and one CoT, score from 1 to 5 on how well the CoT captures visible, subtle, measurable unnatural artifacts. Penalize missed artifacts, vague claims, contradictions, or hallucinations. For GT=Real, reward avoiding false artifact claims). We compare TUE-Detector against recent methods including SkyraRL and VidGuard-R1. For each of the three models, we evaluate detection reasoning on the same randomly selected set of 250 video samples. The evaluated method identity and the video generator name are hidden from the judge. As shown in Table 12, our method scores substantially higher than both baselines.
Table 12. External LLM-judge evaluation of detection reasoning trajectories on a scale from 1 to 5 (higher is better). Each method is evaluated on the same set of 250 video samples.
| Method | LLM Judge ↑ |
|---|---|
| Skyra-RL | 2.0 |
| VidGuard-R1 | 2.1 |
| TUE-Detector | 4.8 |
Impact of the adaptive damping coefficient . In our framework, when estimating per sample influence weights, we set the adaptive damping coefficient in Eq. 17 to be 10. Here we also assess other choices of ranging from 1 to 50, and report the results in Table 13. As shown in Table 13, our framework gets optimal performance when is set to 10 or 20, and is used in our experiments. The damping term is introduced to make the empirical Fisher/ridge system numerically stable by avoiding singular or near zero directions. In this run, changing mostly rescales the influence magnitudes and preserves the sign/ranking of the samples, so the final metrics vary only slightly. Besides, with different choices of from 1 to 50, our framework outperforms the previous state of the art method consistently. This demonstrates the robustness of our framework to this hyperparameter.
Table 13. Evaluation on the adaptive damping coefficient .
| κ | Acc ↑ | R ↑ | F1 ↑ |
|---|---|---|---|
| 1 | 96.35 | 92.70 | 96.08 |
| 5 | 96.89 | 94.95 | 96.75 |
| 10 | 96.90 | 94.98 | 96.77 |
| 20 | 96.90 | 94.98 | 96.77 |
| 50 | 96.33 | 92.67 | 96.06 |
Impact of using IF with our ridge reformulation. In our framework, we introduce an influence function with a ridge reformulation to practically estimate per-sample training weights. To evaluate this design, we test a variant, Standard IF, which also performs influence-based reweighting but computes influence directly following the standard formulation in Eq. 2 in the main paper. As shown in Table 14, our ridge-based computation enables a practically feasible training procedure, whereas the standard variant is computationally intractable and thus impractical.
Table 14. Evaluation on using IF with our ridge reformulation.
| Pipeline | F1 | Total training time |
|---|---|---|
| Standard IF | N.A. | infeasible |
| TUE-Detector | 96.77 | 19.3 hours |
Impact of different ways of weighting. To further examine whether the performance gain comes from sample reweighting itself or from the influence function weighting signal, we compare our method with two alternative weighting strategies using the same weighted SFT interface. The variant of our framework (weighting with loss), during its training Stage 1, we set the temperature to the median loss over the full training set and compute the raw weight as . This weighting rule assigns larger weights to trajectories that the early model can fit more easily, treating them as cleaner and more internally consistent samples, and assigns smaller weights to high loss trajectories that may be harder, noisier, or less consistent. The raw weights are clipped to [0.10, 3.0] and then divided by their training set mean so that the final weights have mean 1. As shown in Table 15, this alternative underperform our influence function weighting, indicating that the improvement does not come merely from introducing non uniform sample weights but from using a validation targeted influence signal.
Table 15. Evaluation on different ways of weighting.
| Weighting strategy | Acc ↑ | Recall ↑ | F1 ↑ |
|---|---|---|---|
| weighting with loss | 95.63 | 92.44 | 95.28 |
| TUE-Detector | 96.90 | 94.98 | 96.77 |
Impact of using influence function or LLM judge weight- ing. In our framework, we introduce the influence-based teacher-knowledge guidance strategy, which uses the influence function to assess the quality of the reasoning trajectory generated by the teacher model for each sample, and adjusts the sample's training weight accordingly. To test the efficacy of this design, here we evaluate a variant. In this variant, instead of using our strategy, we use a simple prompt to let GPT-5.4 score the quality of the reasoning trajectory generated by the teacher model for each sample. Specifically, we let GPT-5.4 output an integer score from 1 to 10, denoted . We then convert the judge score into a sample weight using the same weighted SFT interface as our method , where the denominator is the mean score over the training split, so the average sample weight is approximately 1.0. As shown in Table 16, influence-based trajectory reweighting gives substantially stronger performance than the LLM judge weighting baseline.
Table 16. Evaluation on using influence function or LLM judge weighting.
| Weighting strategy | Acc ↑ | R ↑ | F1 ↑ |
|---|---|---|---|
| LLM Judge (GPT-5.4) | 92.58 | 92.12 | 92.37 |
| TUE-Detector | 96.90 | 94.98 | 96.77 |
Impact of reward weight . In Eq. 5 in the main paper, our reward has two terms, and . Here we introduce to further explore the scale of relative to , that is, the reward formula becomes . Here we assess different choices of ranging from 0.5 to 1.5, and report the results in Table 17. As shown, with different choices of , our framework performs consistently, which shows the robustness of our framework to .
Table 17. Evaluation on reward weight .
| Acc ↑ | R ↑ | F1 ↑ | |
|---|---|---|---|
| 0.5 | 96.82 | 94.82 | 96.69 |
| 0.75 | 96.76 | 94.71 | 96.62 |
| 1 | 96.90 | 94.98 | 96.77 |
| 1.25 | 96.84 | 94.85 | 96.70 |
| 1.5 | 96.86 | 94.91 | 96.73 |
Impact of each reward component. In Eq. 5 in the main paper, the overall reward combines a direct correctness bonus, , with trajectory-level shaping, . The latter contains both format feedback and the label-dependent anchor term described in Section C.2. We evaluate two ablations: w/o removes only the direct correctness bonus while retaining trajectory-level shaping, whereas w/o removes both the format and anchor terms while retaining the direct correctness bonus. Table 18 shows that either removal reduces performance, indicating that the two components provide complementary training signals.
Table 18. Evaluation of the direct result bonus and trajectory-level shaping reward.
| Method | Acc ↑ | R ↑ | F1 ↑ |
|---|---|---|---|
| w/o | 95.44 | 93.32 | 95.20 |
| w/o | 95.78 | 93.32 | 95.54 |
| TUE-Detector | 96.90 | 94.98 | 96.77 |
Impact of the tool evolution interval . In our framework, we set the tool evolution interval to be 20, meaning that one tool evolution cycle is triggered every 20 GRPO steps. Here we also assess other choices of ranging from 5 to 60, and report the results in Table 19. As shown, with different choices of , our framework performs consistently, which shows the robustness of our framework to .
Table 19. Evaluation on the tool evolution interval .
| (steps) | Acc ↑ | R ↑ | F1 ↑ |
|---|---|---|---|
| 5 | 96.35 | 94.40 | 96.09 |
| 10 | 96.61 | 94.30 | 96.35 |
| 20 | 96.90 | 94.98 | 96.77 |
| 30 | 96.63 | 94.33 | 96.37 |
| 60 | 96.65 | 94.37 | 96.39 |
Impact of iterative reweighting. In our framework, after every epochs, we re-estimate the influence score, where we set as a hyperparameter to 3. To assess this design, we test the following variants. Specifically, we first test a variant (No iterative re-estimation) in which we only estimate the influence score once, without iterative re-estimation. We also assess other choices of ranging from 1 to 4. As shown in Table 20, across different choices of , the performance all outperforms the variant No iterative re-estimation. This shows the efficacy of iterative reweighting. Moreover, the performance is stable when is between 1 and 3, and slightly drop when . Thus, taking both efficiency and effectiveness into considerations, we set in our experiments.
Table 20. Evaluation on iterative reweighting.
| Method | Acc ↑ | R ↑ | F1 ↑ |
|---|---|---|---|
| No iterative re-estimation | 95.58 | 93.48 | 95.35 |
| γ = 1 | 96.92 | 95.02 | 96.79 |
| γ = 2 | 96.90 | 94.98 | 96.77 |
| γ = 3 | 96.90 | 94.98 | 96.77 |
| γ = 4 | 96.37 | 94.57 | 96.22 |
Prompt Robustness. Here, we evaluate the robustness of the designed prompts by using three different LLMs (Gemini 3.1 Pro, GPT-5.4, and Claude Opus 4.7) to paraphrase the original prompts used in our main experiments, and then test the performance of our framework with these paraphrased prompts. As shown in Table 21, our framework performs well consistently across different paraphrased prompts by different LLMs, demonstrating the robustness of our prompt design.
Table 21. Evaluation on prompt robustness. Performance tested with three different prompts paraphrased from the original prompts by three different LLMs.
| Prompt Source | Acc ↑ | Recall ↑ | F1 ↑ |
|---|---|---|---|
| Paraphrased by Gemini 3.1 Pro | 96.85 | 94.89 | 96.72 |
| Paraphrased by GPT-5.4 | 96.87 | 94.92 | 96.73 |
| Paraphrased by Claude Opus 4.7 | 96.93 | 94.39 | 96.78 |
| Original prompts | 96.90 | 94.98 | 96.77 |
Inference time. We measure the inference time of our framework on 8 NVIDIA H200 GPUs in seconds per video clip. The results show that our framework has a practical runtime, processing each video clip in approximately 0.5 seconds.
Table 22. Inference time of our framework.
| Method | Inference time |
|---|---|
| TUE-Detector | approximately 0.5 seconds |
More comparison with training-free tool usage. In our framework, we train a general MLLM into a task-tailored, tool-using expert detector for AI-generated video detection. To further validate the effectiveness of our framework, we evaluate a variant based on training-free tool usage following [36]. Specifically, this variant (training-free usage of tools following [36]) follows existing work [36] and directly equips a general MLLM with tools for AI-generated video detection, without task-specific training. As shown in the results, our framework significantly outperforms this variant, further demonstrating the effectiveness of our approach.
Table 23. More comparison with training-free usage of tools.
| Method | Acc ↑ | Recall ↑ | F1 ↑ |
|---|---|---|---|
| Training-free usage of tools following [36] | 56.99 | 56.67 | 71.41 |
| TUE-Detector | 96.90 | 94.98 | 96.77 |
Impact of tool-returned evidence in the reasoning chain. In our framework, each round of tool calling receives the tool output, and the model will reason over the output. To examine whether the tool-returned evidence is genuinely informing the final classification, rather than the model merely benefiting from the act of issuing tool calls, we evaluate a variant in which the tool-returned evidence within the reasoning chain is masked out, while keeping all other components of our framework fixed. In this variant (Ours (with Tool-returned evidence masked)), at test time, we just replace the tool's returned evidence as a fixed placeholder before being fed back into the model, but still let the model still emit the reasoning and tool invocations as Ours(Full). Thus the final classification can no longer condition on what the tools actually observed. As shown in Table 24, this variant substantially underperforms Ours (Full) and collapses to near-baseline (Baseline (Qwen2.5-VL-7B)) accuracy, validating that the efficacy of our framework genuinely arises from integrating the tool-returned evidence across the multi-step reasoning chain, rather than from the tool-invocation pattern alone.
Table 24. Evaluation on tool-returned evidence in the reasoning chain.
| Method | Acc↑ | Recall↑ | F1↑ |
|---|---|---|---|
| Baseline (Qwen2.5-VL-7B [2]) | 70.58 | 44.13 | 57.68 |
| Ours (with Tool-returned evidence masked) | 71.34 | 46.82 | 58.94 |
| Ours (Full) | 96.90 | 94.98 | 96.77 |
B. Additional Qualitative Results
In this section, we present additional visualisations and case studies.
B.1. Qualitative Comparisons
Visual evidence with compact tool diagnostics. Each case below contains chronological frames, the ground-truth label, a one-sentence conclusion, and the key numerical diagnostics returned during tool interaction; we omit full reasoning traces to keep the comparison focused on observable evidence. Specifically, Fig. 3 highlights person/body instability in a campaign-news clip; Fig. 4 highlights unnatural object deformation; Fig. 5 highlights temporal deformation in a hoodie logo; Fig. 6 highlights liquid/object interaction deformation; and Fig. 7 highlights background instability around a puppy. Across these cases, the comparison methods overlook the indicated artifacts, whereas TUE-Detector identifies them and reaches the correct verdict.
Ground truth: FAKE.
Summary. TUE-Detector identifies temporal instability in the foreground people and predicts FAKE; the excerpt below reports the diagnostic statistics returned during the interaction.
TUE-Detector key tool evidence
<ANALYSIS> Global features: bright_z=0.94, sharp_z=2.71, sharp_z12=2.71, sharp_z13=-0.77, rmg_std=2.82, sat_mean=67.0, halo_peak=0.0, halo_purple=0.0, cam_type=complex(conf=0.73). ... </ANALYSIS>Ground truth: FAKE.
Summary. TUE-Detector identifies non-rigid deformation of the flashlight and predicts FAKE; the excerpt below reports the diagnostic statistics returned during the interaction.
TUE-Detector key tool evidence
<ANALYSIS> Global features: bright_z=-0.55, sharp_z=15.39, sharp_z12=15.39, sharp_z13=10.29, rmg_std=0.90, sat_mean=67.1, halo_peak=0.0, halo_purple=0.0, cam_type=None(conf=0.00). ... </ANALYSIS>Ground truth: FAKE.
Summary. TUE-Detector identifies temporal instability in the hoodie logo and text and predicts FAKE; the excerpt below reports the diagnostic statistics returned during the interaction.
TUE-Detector key tool evidence
<ANALYSIS> Global features: bright_z=1.85, sharp_z=5.96, sharp_z12=5.96, sharp_z13=5.10, rmg_std=3.20, sat_mean=34.7, halo_peak=0.0, halo_purple=0.0, cam_type=None(conf=0.00). ... </ANALYSIS>Ground truth: FAKE.
Summary. TUE-Detector identifies temporal inconsistency in the liquid and stirring-stick interaction and predicts FAKE; the excerpt below reports the diagnostic statistics returned during the interaction.
TUE-Detector key tool evidence
<ANALYSIS> Global features: bright_z=9.28, sharp_z=4.44, sharp_z12=4.44, sharp_z13=8.53, rmg_std=2.75, sat_mean=67.0, halo_peak=0.0, halo_purple=0.0, cam_type=None(conf=0.00). ... </ANALYSIS>Ground truth: FAKE.
Summary. TUE-Detector identifies temporal instability around the rear puppy and adjacent background and predicts FAKE; the excerpt below reports the diagnostic statistics returned during the interaction.
TUE-Detector key tool evidence
<ANALYSIS> Global features: bright_z=8.21, sharp_z=0.49, sharp_z12=0.49, sharp_z13=3.36, rmg_std=2.43, sat_mean=42.7, halo_peak=0.0, halo_purple=0.0, cam_type=None(conf=0.00). ... </ANALYSIS>C. Additional Details
C.1. Additional Details of Stage 1
Additional implementation details about Stage 1 training. During SFT training, we use LoRA rank , , dropout 0 on the language-side projections only. The learning rate is initially set to and gradually decayed to over the course of training. Training is performed
Person/body instability (Wan2.2-TI2V-5B-I)
Left to right: chronological representative frames. Red boxes mark the unstable person/body region.

Figure 3. Qualitative results on a person instability example. From left to right, the chronological frames highlight the foreground people region where bodies and faces become temporally unstable, while the baselines focus on apparently stable news banner or campaign-sign text.
Unnatural object deformation (Sora-2)
Left to right: chronological representative frames. Red boxes mark the unstable flashlight/object region.

Figure 4. Qualitative results on an unnatural object deformation example. From left to right, the chronological frames highlight the flashlight region where the object shape becomes non-rigid, while the baselines describe the device and hand motion as stable and physically plausible.
Hoodie logo/text deformation (HunyuanVideo-I2V)
Left to right: chronological representative frames. Red boxes mark the unstable hoodie logo/text region.

Figure 5. Qualitative results on a hoodie logo deformation example. From left to right, the chronological frames highlight the middle green logo detail where the graphic becomes temporally unstable, while the baselines describe the logo as clear and stable.
Unnatural liquid surface texture (SkyReels-V2-I2V-14B-540P)
Left to right: chronological representative frames. Red boxes mark the unstable liquid/object interaction region.

Figure 6. Qualitative results on an unnatural liquid surface texture example. From left to right, the chronological frames highlight the left glass and stirring region, where the liquid color and stick interaction become temporally inconsistent while the baselines describe the interaction as physically plausible.
Background instability (LTX-Video-13B-I)
Left to right: chronological representative frames. Red boxes mark the unstable background region.

Figure 7. Qualitative results on a background instability example. From left to right, the chronological frames highlight the rear puppy, where textures and object boundaries become unstable while the baselines describe the puppy motion as natural.
until convergence. The influence function is computed with a learning rate of 0.01, 1000 iterations, and .
Additional Implementation Details about Reference Construction. The teacher we use to make the tool augmented Chain-of-Thought trajectories for ViF-CoT-4K in the main paper is GPT-5.4. All teacher calls are made in 2026-04. We do not relabel trajectories later during Stage 1 / 2 training.
Reference Construction pipeline. The teacher model constructs the reasoning trace from 16 frames uniformly sampled per video. The initial heuristic tools (in the format of tool cards as shown in Section D) and the reference trajectory tag schema (as shown in Section C.1) are given to the teacher model. (Here for ViF-Bench, following Skyra [32], we additionally leverage its calibrated no-tool CoT reference.) All teacher prompts are listed in Section E.1. Every sample reaches a final verdict that matches the ground-truth label within at most 10 retries. The final SFT corpus therefore keeps all 4,034 rows, each with a final verdict that matches the binary GT by construction.
Teacher reliability and reconstructed API cost. Table 25 reports the reference-construction logs for the final trajectory cache. Sample-level retries and internal format retries are recorded at different layers of the pipeline and are therefore not additive. Malformed or invalid attempts were rare and recoverable: only 66/4,100 internal attempts (1.610%) failed validation, and only 63/4,034 samples (1.562%) required any format retry.
Table 25. Teacher reliability and reconstructed API cost for reference construction.
| Statistic | Value |
|---|---|
| Final cached trajectories | 4,034 (2,017 Real / 2,017 Fake) |
| Mean teacher calls per trajectory | 2.291 |
| Mean sample-level retries per trajectory | 0.00694 |
| Samples with sample-level retry | 20/4,034 (0.496%) |
| Internal trajectory attempts | 4,100 |
| Malformed/invalid internal attempts | 66/4,100 (1.610%) |
| Samples with at least one format retry | 63/4,034 (1.562%) |
| Reconstructed no-cache list-price cost | ~0.064/trajectory) |
Frame sampling. We follow Skyra [32] and uniformly sample 16 frames per video resized to 256p. The teacher receives the 16 frames as bare image tokens in the system message; tool calls in the SFT corpus refer to frames by sampled frame index only.
Trajectory tag schema and SFT label masking. Every training trajectory is a chat starting with system message and followed with iterative tool round. Inside every round of reasoning, only three tags are allowed:
• <think>... </think>
• <answer>Real|Fake</answer>
• <tool>NAME</tool>
Token level mask construction (pseudocode).
def build_labels(input_ids, tokenizer): # Find all assistant spans. spans = find_assistant_spans(input_ids, tokenizer) labels = [-100] * len(input_ids) for start, end in spans: labels[start:end] = input_ids[start:end] return labels # -100 masks CE loss
Tags follow XML style nesting rules: every <tag> must close with the matching </tag> before another <tag> of the same kind opens. Malformed assistant outputs (unmatched outer tags or a missing <answer>) are penalised at GRPO time, not at SFT time (Section C.2). A full mask marked trajectory under this schema is shown in Section C.1. Illustration on the SFT training trajectory. In this subsection, we show one example complete trajectory from ViF-CoT-4K following the trajectory tag schema and token-level masking mentioned in the main paper. Supervised tokens (those that contribute to the cross entropy loss in Eq. 1 in the main paper) are marked o, while masked tokens (whose label is set to -100 and which are not used in the loss) are marked ×. The full trajectory has between 1.5K and 3K tokens, depending on the round count and the number of tool calls.
SYSTEM x Given a video represented by frames, determine ... USER x video_id: ... 16 sampled frames ... Determine Real|Fake. ASST-R1 o <think>The first frame looks subtly inconsistent with the rest ...</think> <answer>Fake</answer>
<tool>first_frame_jump_analyzer</tool> <tool>color_cast_analyzer</tool> <tool>halo_peak_analyzer</tool> <tool>toolbox_guide</tool> TOOL-R1 x tool output: first_frame_jump_analyzer fired with sharp z=4.83, bright z=2.91; ... ASST-R2 o <think>The first-frame anomaly corroborates the initial guess ...</think> <answer>Fake</answer> <tool>background_motion_analyzer</tool> <tool>foreground_burst_analyzer</tool> <tool>toolbox_guide</tool> TOOL-R2 x tool output: foreground_burst_analyzer fired ... ASST o <think>All rounds converge on synthesis artefacts ...</think> <answer>Fake</answer>
Comparison of high/low influence-function training trajectories.
Low influence-function trajectory.
R1:
<think>The video begins with a profile shot of a young man in a dark environment. From the start, the scene is unstable. At timestamp 0.33s, strange, unnatural colored lights (blue and pink) appear on his face. The scene then abruptly transitions and dissolves into a chaotic view of a room where people are playing chess. At 1.00s, a ghostly, distorted blue silhouette of the man's face is superimposed over the chess game, which is a significant visual anomaly. The scene continues to be unstable, with bright, washed-out lighting and flickering. As the video progresses, the scene shifts again around 3.33s to a different room with bleachers, but the chess game remains, creating a confusing blend of two different locations. My main focus is on the people playing chess. Towards the end of the clip, starting around 3.67s, the two main players slump forward onto the chessboard. Their bodies appear to distort and merge with the board and each other in a physically impossible manner. This is a severe violation of common sense and natural human posture. This represents a clear at <bbox>[0.3, 0.3, 0.8, 1.0]</bbox>, encompassing the entire sequence of bizarre visual effects and culminating in the distorted figures.</think> <answer>Fake</answer> <tool>neutral_reconsider_merge_into</tool> <tool>neutral_reconsider_not_stable</tool> <tool>toolbox_guide</tool>
Tool after R1:
<ANALYSIS> Global features: bright_z=-0.77, sharp_z=-0.75, sharp_z12=-0.75, sharp_z13=-0.72, rmg_std=16.28, sat_mean=113.5, halo_peak=114.5, halo_purple=354.0, cam_type=static(conf=0.60). Phrase scan: no match. </ANALYSIS> <MANUAL> Cite the key numeric signals in your next round <think>, then invoke 'toolbox_guide'. </MANUAL>R2:
<think>I am analyzing a video that appears to be from a chess tournament held in a school gymnasium. I will conduct a thorough inspection to ensure its authenticity. The video quality is somewhat low, but the scenes of the players are coherent and the camera work is stable. I am specifically examining the sequence of events around the 3.67-second mark to check for any physical impossibilities. In this part of the video, one player slumps forward onto the chessboard. I have carefully reviewed this action and found that it is physically plausible. The player's body moves naturally, and the interaction with the board is consistent with the laws of physics. There is no merging or distortion of figures. My inspection reveals no signs of digital manipulation or generation artifacts.</think> <answer>Real</answer> <tool>foreground_burst_analyzer</tool> <tool>background_motion_analyzer</tool> <tool>toolbox_guide</tool>
Tool after R2:
<ANALYSIS> ... </ANALYSIS> <MANUAL> ... </MANUAL>R3:
<think>Considering all the above information, I determine the final verdict to be Fake.</think> <answer>Fake</answer>
High influence-function trajectory
R1:
<think>The video begins with an aerial shot, framed as a live news broadcast, showing two skydivers in freefall. One skydiver
is wearing a white suit and the other a dark suit. I am tracking their descent against the ground below. Initially, their movements seem plausible. However, as I continue to watch, I notice something strange happening to the skydiver in the white suit. Around the 2-second mark, this person begins to shrink and fade away unnaturally. By timestamp 2.75s, the skydiver has completely vanished from the scene, leaving only the other skydiver in the frame. This is a clear violation of physical laws. This event constitutes an at <bbox>[0.3, 0.6, 0.6, 0.9]</bbox>, as a person cannot simply dematerialize in mid-air. The video is clearly manipulated.</think> <answer>Fake</answer> <tool>foreground_burst_analyzer</tool> <tool>forensic_frame_delta_probe</tool> <tool>toolbox_guide</tool>
Tool after R1:
<ANALYSIS> Global features: bright_z=1.75, sharp_z=29.07, sharp_z12=29.07, sharp_z13=26.29, rmg_std=0.83, sat_mean=34.0, halo_peak=75.0, halo_purple=0.0, cam_type=static(conf=0.93). Phrase scan: no match. </ANALYSIS> <MANUAL> Cite the key numeric signals in your next round <think>, then invoke 'toolbox_guide'. </MANUAL>R2:
<think>I am conducting a thorough analysis of this video clip to verify its authenticity. The video shows two skydivers against a landscape below. I will carefully inspect the scene for any signs of digital manipulation or generation artifacts. My primary focus is on the skydiver in the white suit, as this is a point of interest for the analysis. I am examining the area <bbox>[0.3, 0.6, 0.6, 0.9]</bbox> for any inconsistencies. From the beginning of the clip until around 2 seconds, the skydiver moves naturally through the air. At timestamp 2.75s, the skydiver has completely vanished from the scene, having faded away unnaturally. This is a clear violation of physical laws. This event is an <bbox>[0.3, 0.6, 0.6, 0.9]</bbox> at, as a person cannot simply dematerialize in mid-air. This is a definitive sign of a generated video. I have found evidence of manipulation.</think> <answer>Fake</answer> <tool>foreground_burst_analyzer</tool>
<tool>forensic_frame_delta_probe</tool> <tool>toolbox_guide</tool>
Tool after R2:
<ANALYSIS> ... </ANALYSIS> <MANUAL> ... </MANUAL>R3:
<think>Considering all the above information, I determine the final verdict to be Fake.</think> <answer>Fake</answer>
C.2. Additional Implementation Details of Stage 2
Additional details about Stage 2 training. For Stage 2, the model is updated with full-parameter GRPO [52]. We set a batch size of 4 and four rollouts per prompt, and use a learning rate of . We enable KL regularisation against the reference policy with coefficient 0.10.
Result reward. The result reward scores the final verdict:
Incorrect final verdicts receive no direct result bonus. The term below provides trajectory-level shaping: it combines structural and tool-validity feedback with a label-dependent anchor signal that rewards corrections of the frozen Stage 1 prediction and penalises regressions.
Trajectory reward. The trajectory-level shaping reward is the sum of the format term and the anchor term:
Format reward. The format reward aggregates one hard format check and a small tool-name drift penalty. The hard check has two rules:
-
Final verdict: Final round must contain exactly one <answer>Real|Fake</answer>; this is the answer used to score the rollout.
-
Round structure: every round must contain a <think>... </think> block.
If either hard rule fails, we set the hard term to -1.0; otherwise we set it to 0.0. On top of this hard term, for every <tool> block whose NAME is not in the current registry we add a -0.1 tool-name drift penalty (kept small on purpose, so that the model is not punished too hard when it proposes names of tools that were just added to the toolset). The final is the sum of the hard term and these per-call drift penalties. For malformed responses, missing final verdicts are treated as incorrect when computing , while tool-name drift is still scored from any parsed tool calls.
Anchor terms. Before Stage 2 begins, we run the Stage 1 checkpoint once over every training video and cache its Real/Fake prediction in a static lookup keyed by video ID. The lookup is frozen for the whole of Stage 2: the starting checkpoint itself never runs again during RL, and every rollout's current model verdict is compared against this cached anchor, so the model is rewarded for improving on its own starting point and penalised for regressing from it. is the sum of three indicator defined bonuses:
The three indicators are not mutually exclusive: when the anchor is wrong, the GT is Real, and the current prediction is right, the rollout receives , and this stacking is intentional so that flipping a previously misclassified Real video carries the largest positive reward.
Tool evolution is triggered every training steps. At each evolution point, the newly collected rollouts are used to update the tool statistics and decide which tools should be retained, removed, mutated, or used as sources for exploration, as detailed below.
Additional implementation details about the tool evolution process. We use the following notation for the tool evolution details. The current toolset is written as the registry T, and the tool use trajectories collected since the previous evolution cycle form the rollout buffer . For a tool t, denotes the subset of buffered rollouts that invoke t; the usage breadth and evidential effectiveness are the same quantities defined in Section 3.2, computed on this buffer. If is empty, we set and assign t to the low-breadth and low-effectiveness group. The four natural language groups in the main text are denoted by (high breadth and high effectiveness), (high breadth and low effectiveness), (low breadth and high effectiveness), and (low breadth and low effectiveness). We use for the proposal queue of candidate tool updates.
Evolution algorithm. Section 3.2 introduces selection, mutation, and exploration. Exploration is implemented through Brainstorm, which proposes new tools from observed gaps, and Crossover, which mixes complementary existing tools into a new one. These updates run inside an outer cycle that fires every training steps. The pseudocode is below.
Algorithm 1 Illustration on the tool evolution cycle.
Require: current registry T, rollout buffer from last steps
1: Compute per tool quadrants from : (high breadth high effectiveness), (high breadth low effectiveness), (low breadth high effectiveness), (low breadth low effectiveness).
2: Select: retain tools in and delete tools in .
3: Initialise an empty proposal queue and an empty error history.
4: while new valid candidate updates can still be proposed do
5: Sample one tool from or for Mutate, sample error patterns and current tool gaps for Brainstorm, or sample two complementary tools for Crossover.
6: Trial run the candidate tool on several examples and check that it imports, executes, and emits the required XML schema.
7: if the candidate runs without error then
8: Push the candidate to .
9: else
10: Append the error message and failure summary to the error history; later prompts see it and can revise the proposal.
11: end if
12: end while
13: Apply to T (delete + add); return updated T.
Operator prompts. Each operator prompt header expands one of MUTATE, CROSSOVER, or BRAINSTORM. The full text of each header is in Section E.3.
Evolution model. The evolution model is the teacher MLLM used to generate trajectories in Training Stage 1, called through a relay endpoint. Each call receives the current tool registry, compact rollout statistics, a slice of recent failure cases, and the available source for the tools being mutated or crossed over. When a trial run fails, the next evolution prompt also receives the error message and a short failure summary so that the evolution model can revise the proposal.
Trial execution and error feedback. Every candidate proposal is trial run before it is added to the toolset. We import the candidate function, call it on calibration examples, and check that it executes without an uncaught exception and returns the required XML-style schema. If a proposal fails to import, crashes at runtime, has a signature mismatch, or emits malformed output, we do not add it immediately. Instead, we feed the concrete error message and a short failure summary back to the evolution model in the next evolution prompt, allowing the evolution model to revise the candidate. Once a candidate runs successfully, it is added to the toolset and can later be removed by the selection step if its rollout statistics show that it has low breadth and low effectiveness. Selection Example. One representative candidate is ocr_sam_filter. The idea is intuitive: first use SAM style localisation to isolate the text region, then inspect that masked region with OCR oriented checks for warped or unstable characters. This candidate passed trial execution and was retained as an independent member of the final evolved toolset. This illustrates that a proposed tool must first be executable and is then retained or pruned according to its subsequent rollout statistics.
Mutation Example. A representative mutation is the strengthening of first_frame_jump_analyzer. An early version compared the first frame brightness and sharpness jumps against fixed global thresholds, which made it sensitive to the overall exposure or blur level of each video clip. The mutated version keeps the same tool name but normalises the first frame jump by the typical frame to frame variation within the same video, so the first frame is judged against the rest of its own video.
Before mutation: fixed thresholds on raw first-frame jumps.
def first_frame_jump_analyzer(state): b_jump = abs(state.bright[1] - state.bright[0]) s_jump = abs(state.sharp[1] - state.sharp[0]) if b_jump > BRIGHT_THR or s_jump > SHARP_THR: return ... return ...
After mutation: same tool, normalised against the same video.
def first_frame_jump_analyzer(state): b_z = mad_z_first_jump(state.bright) s_z = mad_z_first_jump(state.sharp) if b_z > 4.0 or s_z > 4.0: return ... return ...
The exploration step covers two complementary ways of producing genuinely new tools, namely brainstorm (proposes new tools from observed gaps) and crossover (mixes complementary existing tools into a new one). Below we give one example for each.
Brainstorm Example. Brainstorm contributes new probes that target gaps not covered by the initial toolset. Examples include sam_region_stability, which targets object morphing or disappearing regions, and ocr_sam_filter, which targets warped or unstable text regions. These brainstormed probes make previously vague failure patterns measurable, even if some of them may later be removed by the selection step, or folded by the crossover step into a more comprehensive tool rather than kept as separate tools.
def sam_region_stability(state): """New probe: track salient SAM regions across sampled frames.""" masks = segment_salient_regions(state.frames) tracks = track_masks_over_time(masks, state.frames) unstable = [ tr for tr in tracks if tr.iou_jitter > 0.55 or tr.area_drop > 0.70 ] return ...
Crossover Example. A representative crossover offspring is complex_scene_consistency_fuser. It fuses three evidence channels that would otherwise be inspected separately: scene complexity classification, background track support, and foreground support density. Each individual tool captures a feature that is difficult to use as decisive evidence by itself and is only effective for part of the samples. However, when these features are combined across multiple dimensions, their joint pattern becomes a decisive unnatural artifact, which supports better detection over a broader effective range.
Parent tool 1: background support under a static camera.
def background_motion_analyzer(state): bg_drift = median_track_drift(state. background_tracks) return bg_drift < STATIC_BACKGROUND_THR
Parent tool 2: foreground support density and burst motion.
def foreground_burst_analyzer(state): burst = max_step_jump(state.foreground_tracks) density = support_density(state.foreground_tracks) return burst > BURST_THR and density < DENSITY_THR
Crossover offspring: require the joint pattern before firing.
def complex_scene_consistency_fuser(state): static_bg = background_motion_analyzer(state) sparse_fg_burst = foreground_burst_analyzer(state) complex_scene = scene_complexity_score(state.frames) > COMPLEX_THR if complex_scene and static_bg and sparse_fg_burst: return ... return ...
C.3. Additional Implementation Details of Testing
In this subsection, we illustrate the testing process of our framework. We let the trained model to reason, call tools from evolved toolset and reach the final verdict as it does in training pipeline.
Tool-use statistics. During evaluation, the trained policy typically invokes 3–4 tools per video, and first_frame_jump_analyzer is the most frequently invoked forensic tool. The complete evolved registry is listed in Table 28; Tables 5 and 24 further evaluate usage breadth, evidential effectiveness, and the contribution of tool-returned evidence.
Tool failure semantics. If a code tool throws an error (for example, a missing state feature), the tool's result will be omitted from this round's tool output given back to the model. The backend records the error message and attaches it to the tool's mutation context, so the evolution LLM can use the failure trace when proposing later MUTATE updates.
C.4. Additional Details of ViF-Bench
Paired Test Setup. ViF-Bench [32] is a new paired benchmark. It has about 5,000 fake videos and 5,000 real videos. The real videos come from Panda-70M (≈3.5K) and Kinetics-400 (≈1.5K). The fake part consists of videos from 19 state of the art video generators. They cover both Text to Video (T2V) and Image to Video (I2V), as listed in Table 26. We follow the official sample selection from Skyra [32]: 2,949 fake videos (per generator counts in Table 26) and a shared pool of 163 real videos that is reused across all 19 generators. The fake count per generator is not always 163; it ranges from 111 (Gen4-Turbo) to 163, with the smaller pools coming from closed source generators (Hailuo-02, Pika-V2, Pixverse-V4-5, Kling-V1, Sora-2). For each generator, the reported metrics are paired metrics computed over all fake videos from that generator and their paired real videos.
Table 26. Video generators and test counts in ViF-Bench.
| Generator | Modality | #Test Fakes |
|---|---|---|
| Wan2.1-1.3B | T2V | 163 |
| CogVideoX-1.5 | T2V | 163 |
| Wan2.2-TI2V-5B | T2V | 163 |
| Wan2.2-TI2V-5B | I2V | 163 |
| HunyuanVideo | T2V | 162 |
| HunyuanVideo-I2V | I2V | 163 |
| VACE-1.3B | T2V | 163 |
| Wan2.2-A14B | T2V | 163 |
| Wan2.2-A14B | I2V | 163 |
| SkyReels-V2 | T2V | 163 |
| SkyReels-V2 | I2V | 162 |
| LTX-Video-13B | T2V | 160 |
| LTX-Video-13B | I2V | 163 |
| Gen4-Turbo | I2V | 111 |
| Hailuo-02 | T2V | 136 |
| Pika-V2 | T2V | 150 |
| Pixverse-V4-5 | T2V | 150 |
| Kling-V1 | T2V | 140 |
| Sora-2 | T2V | 148 |
| Real (shared, Panda-70M + Kinetics-400) | N/A | 163 |
Frame sampling. We sample 16 evenly spaced frames per video, the same as Skyra [32]. For TUE-Detector, each frame is encoded by Qwen2.5-VL-7B-Instruct with the model's default pixel budget (max_pixels = 16,384 × 28 × 28 = 12,845,056, min_pixels = 4 × 28 × 28 = 3,136); we do not override these limits at inference time. The reproduced baselines follow each method's own eval script, which can apply tighter caps (Skyra-SFT/RL: max_pixels = 1,003,520; VidGuard-R1: max_pixels = 401,408). All three caps are upper bounds: ViF-Bench frames are roughly 450 × 256 pixels (about 115,000 pixels per frame), well below every cap. So on this benchmark the cap is non binding, and the three setups feed the same input to the VLM. See Section C.3 for the full inference protocol.
Training set. For training we use ViF-CoT-4K [32], which is the SFT dataset that comes with ViF-Bench. It has 4,034 rows of Skyra style grounded Chain-of-Thought labels. It covers 7 generators: CogVideoX1.5-5B (T2V and I2V), HunyuanVideo, HunyuanVideo-I2V, Wan2.1-T2V-1.3B, and Wan2.2-TI2V-5B (T2V and I2V). Six of these also appear in the ViF-Bench test split, but the I2V variant of CogVideoX1.5-5B is in training only and is not part of the 19-generator test set.
Benchmark-specific training data. For the ViF-Bench result in Table 1 in the main paper, we train on ViF-CoT-4K and start from Qwen2.5-VL-7B-Instruct.
Evaluation metrics of ViF-Bench. For this dataset, we follow Skyra and report accuracy (ACC), R, and F1. [32].
We use for generator indices. For each fake generator :
-
Pair each fake video in with the matching real video from the shared real pool (matched by source clip id). Let be this set of pairs; the per generator counts are in Table 26.
-
Each pair gives one Real and one Fake video, so generator has test items in total. On these items, compute Acc, Recall, and F1 with Fake as the positive class:
- Take the mean across the 19 generators (every generator gets the same weight):
C.5. Additional Details of GenVideo
Many to Many Zero Shot Eval. GenVideo [7] is the standard large scale benchmark for cross generator AI video detection. It has about 1,078,838 fake videos and about 1,223,511 real videos in total. We follow the many to many test setup of GenVideo [7]: the test set has about 18,588 videos (10,000 real + 8,588 fake). The real videos come from MSR-VTT, Youku-mPLUG, and Kinetics-400, and form a shared pool that is reused for every test generator. The fakes are from 10 generators (Sora, Morph Studio, Gen2, HotShot, Lavie, Show-1, MoonValley, Crafter, ModelScope, and WildScrape). The point of this setup is to check how well the model works on generators it has not seen during training, not how well it works on the same generators. We report Recall and F1 on each generator and the average across generators, the same as in [7, 46].
Benchmark-specific training data. For the GenVideo result in Table 2 in the main paper, we train on the GenVideo training split, which has 10 generators: Pika, ZeroScope, DynamiCrafter, VideoCrafter, SVD, OpenSora, Latte, SEINE, I2VGen-XL, and Stable Diffusion. These 10 training generators are different from the 10 test generators listed above, so the GenVideo many to many evaluation is fully zero shot. Evaluation metrics of GenVideo. For this dataset, we follow GenVideo [7] and VidGuard-R1 [46] and report Recall (R) and F1 with Fake as the positive class. The eval set per generator is , where the shared real pool is the same real videos described in Section C.5, reused for every . For each test generator ( ):
The final scores are the mean across the 10 generators:
C.6. Additional Details of Eq. 3 in the Main Paper
This subsection derives how the classical influence function in Eq. 2 in the main paper is applied to our masked SFT objective and then reformulated as a ridge regression problem in Eq. 3 in the main paper under a damped empirical Fisher approximation. The validation split and the conversion from raw influence scores to the sample weights in Eq. 4 in the main paper are given in Section C.7.
Our estimator builds on the ridge-regression reformulation and normalized stochastic solver of RRInf [57]. We adapt this pipeline to the mask-consistent SFT objective for teacher-generated tool-use trajectories and convert the resulting signed influence estimates into weights for iterative trajectory training.
Approximation roadmap. The derivation below has both exact algebraic steps and implementation approximations. First, we apply the classical influence definition to the same masked token level objective used by SFT. Second, we approximate the Hessian with a damped empirical Fisher built from masked per sample gradients. Third, given that approximation, the push through identity exactly converts the damped inverse form into a ridge problem over sample coefficients. Fourth, the implementation solves this ridge problem with a normalised stochastic gradient method, where each mini batch is a small subset of trainable parameter coordinates and a LoRA layer is used as a structured coordinate block for memory efficiency. Finally, the influence weight normalisation rule converts the resulting signed estimated influence values into the weights used by the second SFT pass.
From influence functions to ridge regression. This subsection has three parts. The first part is the math: how the classical influence function, when evaluated on the same masked token level objective as SFT, reduces to the ridge regression problem in the paragraphs from C.6 to C.6. The second part is the wall clock cost of running the resulting pipeline at the LoRA scale of Section 3.1 (A). The third part explains why the new form is cheap to run (C.6 and its three sub points).
LoRA restricted parameter space and mask consistent per sample gradients. In Stage 1 we adapt the base multimodal model with LoRA. Each adapted weight matrix is written as , where is frozen, is the LoRA scaling factor, and only the small factors , ( ) are trained. We put the LoRA factors of every adapted module together into one vector . The size is much smaller than the full backbone. All gradients, Hessians and influence values below are computed only with respect to . As is standard in influence analyses [29], each influence computation is evaluated at the current adapter checkpoint, denoted by for notational simplicity.
Besides, in our setting, each trajectory is only partially supervised. The student should learn the assistant side reasoning, answers, and tool call names, but system message and tool output are not generated by the student and are assigned label -100 in the SFT data (Section C.1). If influence scores were computed on the unmasked transcript, they would measure a different objective from the one actually optimised by SFT, and could reward samples for fitting deterministic tool output text rather than for providing useful supervised reasoning and tool use decisions. Therefore, we define all influence quantities below using the same token level mask as Eq. 1 in the main paper.
In the main text, we write the Hessian generically as ; in the derivation below, we evaluate it at the current adapter checkpoint and therefore write . For a training sample , the per sample loss used for influence estimation is
where are the tokens of and is the active token mask: for supervised assistant tokens and for tokens whose label is -100. We keep the notation for this masked loss throughout the derivation. The per sample gradient is , and for a ridge batch of retained trajectories we stack the gradients into . Here denotes a generic ridge batch size; the derivation allows , while in all reported experiments we use the full training split as the ridge batch, so 3,632. Let be the held out validation set (built in Section C.7). The averaged validation gradient is , where denotes the same masked loss as Eq. 7. The validation target used in the ridge regression solver below is a rescaled version of , defined in Eq. 12.
Hessian simplification via Bartlett's second identity. Our starting point is the classical influence function [29] applied to the masked training and validation losses above:
where is the averaged masked empirical risk for the current ridge batch (the per sample mean version of the unnormalised masked sum in Eq. 1 in the main paper); this normalisation is the standard convention in the influence function literature [29, 57] and is what makes the empirical Fisher in Eq. 10 consistent with . Eq. 8 is intractable when is dense. Throughout this derivation, identity matrices are written with explicit dimensions, such as or . A standard identity for log likelihood losses, often referred to as Bartlett's second identity [29], allows us to bypass second order computation entirely. Concretely, writing the score as for a generic conditioning context and output token , then under mild regularity:
where the expectation is taken over . Applied to our masked cross entropy training loss, Eq. 9 suggests that, in expectation under the model distribution and at the current adapter checkpoint , the Hessian can be approximated by the outer product of the masked per sample gradients. The masks are fixed with respect to , so the same first order gradients in Eq. 7 define both the empirical Fisher approximation and the ridge problem below. We do not invoke Bartlett's identity as an exact equality (our SFT samples are teacher trajectories, not draws from ); it merely motivates the standard empirical Fisher approximation [29, 57] that replaces the Hessian by the corresponding sample average:
Eq. 10 is good for our setting in two ways. First, we do not need a second order backward pass; we only need first order per sample gradients, which we obtain with one extra forward/backward pass per training sample over the trainable LoRA factors only (not a free byproduct of mini batch SFT, which yields only batch aggregated gradients). Second, is positive semidefinite by construction. So once we add a small ridge term for numerical stability, the inverse is well defined.
Reduction to a ridge regression problem. Substituting Eq. 10 into a damped version of Eq. 8 with Hessian damping coefficient , we define the damped empirical-Fisher influence estimate as:
(11)
For the ridge formulation, we absorb the leading factor by defining the validation target as
so that Eq. 11 simplifies to , with the leading scale fully absorbed into . Computing this expression directly still needs the inverse of a matrix, which is too large at our LoRA scale. We use the push through reformulation to move the inverse to the much smaller space:
where is a generic positive constant. This identity is a direct corollary of the Sherman–Morrison–Woodbury identity. Plugging Eq. 13 into the simplified form of Eq. 11 (with , and using the absorbed b from Eq. 12) gives the per sample damped empirical-Fisher influence estimate vector
The right hand side has no residual scale: the factor that would otherwise sit outside has been absorbed into b at definition time (Eq. 12).
Equivalence to ridge regression. The right hand side of Eq. 14 is exactly the closed form solution of the corresponding damped empirical-Fisher influence estimate as a ridge regression problem in with ridge penalty (this is the that appears in Eq. 3 in the main paper):
We can check this by setting the gradient of the objective in Eq. 15 to zero:
(16)
The Hessian damping (Eq. 11) and the ridge penalty (Eq. 15) play different roles, and they relate by a scaling: holds exactly when . In practice, however, we do not pick a flat numerical value for either or . Instead, we use an adaptive layer wise damping parameterisation. For LoRA layer , let be the number of trainable adapter parameters in that layer, let be the corresponding gradient slab, and define as the average squared per sample gradient norm over the ridge batch. The per layer Hessian damping is set as
where is the adaptive damping coefficient, i.e. the user level scaling knob in our implementation. Using the same relation, the associated layer wise effective ridge penalty is , where is the full trainable gradient dimension; the layer size only enters the adaptive damping estimate in Eq. 17. Thus the effective regularisation is data dependent and varies across layers, rather than being a flat or a flat . Throughout the paper, we reserve for Hessian damping and for the ridge penalty in Eq. 15; our implementation does not set either one to a single flat numerical value directly, and instead uses the adaptive damping coefficient to determine the layer wise effective regularisation through Eq. 17. In the full LoRA-gradient case, setting recovers Eq. 3 in the main paper; the layer-wise stochastic solver below is used as a practical approximation to this ridge objective.
Why the ridge form matters. Eq. 15 replaces a hard inverse with a strongly convex quadratic program in unknowns. The dense ridge objective admits simple gradient descent updates, where each full-gradient iteration costs one matrix vector product. As stated above, in all reported experiments the ridge batch covers the full training split, so . For the LoRA setup in Section 3.1, and , so the unknown dimension drops from to , which is a roughly -fold reduction ( ); equivalently, the dense matrix shrinks from to , about times fewer entries (the absolute drop is entries).
Why the ridge regression pipeline is cheap. Three properties together make this pipeline cheap. (i) One backward pass per sample. The first stage builds the masked gradient matrix . Each mask consistent per sample gradient needs only one forward pass and one backward pass through the network, with system, and tool output tokens excluded by Eq. 7. The frozen backbone is still traversed in both directions, but only the LoRA factors carry trainable gradients (so storage and the optimiser update touch only those), and we do not need any second order computation. So building for a ridge batch of samples costs about the same as one extra epoch of LoRA forward and backward passes when the batch covers the training part.
(ii) Push through identity removes the inverse. As shown in Eq. 13, the push through identity changes the inverse of the empirical Fisher into a inverse of the Gram matrix . The closed form complexity drops from FLOPs to FLOPs. To put the numbers in our setting: the form is plainly out of reach at ; the Gram matrix itself is small ( entries), but forming it costs FLOPs, and just holding in memory already takes entries. What actually makes the pipeline practical is a stochastic gradient method that only uses a small subset of model parameters per iteration. Let be the -th row of and let be the corresponding coordinate of . The full-gradient ridge update can be written as
(18)
Instead of summing over all coordinates, stochastic gradient descent uses a coordinate mini batch :
(19)
Following RRInf [57], we further normalise each coordinate contribution by its squared gradient norm:
(20)
where is a small numerical constant. In our implementation, , , and takes the adaptive value induced by Eq. 17 with adaptive damping coefficient . (iii) Layer wise sampling. For memory efficiency, we instantiate as a structured coordinate mini batch corresponding to one LoRA layer. Concretely, let be the set of trainable coordinates in LoRA layer , with . We draw a layer with probability and set , which is equivalent to drawing a trainable coordinate uniformly and then loading the full layer containing it. This keeps the stochastic update aligned with coordinate mini batching while exploiting the fact that adapter gradients are naturally stored by layer. The peak memory drops from (full gradient) to (one layer slab on device at a time), and the per step compute drops from to for the sampled layer , with expected per step compute . Total compute over iterations is therefore for the full-gradient solver and for the layer wise variant. Together, these three properties make the whole IF pipeline only a constant factor slower than naive LoRA SFT. There is no second order computation, no inverse, and the working memory is bounded by the gradients of one LoRA layer. This explains why the ridge regression pipeline is cheap.
C.7. Additional Details of Eq. 4 in the Main Paper
Validation set construction. The validation set that we use to compute the masked validation target (Eq. 12) is a held out subset of the retained reference set introduced in Section 3.1, where is the same masked objective defined in Eq. 7. Before any influence computation, we construct by sampling 10% of the fake videos from each video generator, yielding 201 fake videos in total, and then adding their corresponding 201 paired real videos. Thus, the validation set contains videos. The remaining videos form the training split . We compute the validation target only on and compute the per sample training gradients only on , so the same held out target is used throughout influence reweighting.
Influence weight normalisation. This subsection shows how to turn the raw estimated scores from Eq. 15 into the per sample weights in the reweighted SFT loss of Eq. 4 in the main paper.
Sign convention and utility score. As discussed below Eq. 2 in the main paper, the classical influence function convention assigns negative scores to high quality samples (up weighting them reduces validation loss). With the absorbed validation target b from Eq. 12, the ridge solution inherits this convention exactly for the damped empirical-Fisher estimate: for high quality samples. To work with the “higher is better” convention used by the normalisation rule below, we introduce an explicit utility score
so that means sample is good for training and means it is not. The estimated score follows the same sign convention as the original classical influence score ; only is used in the weighting rule.
Given the utility scores , we use a simple influence weight normalisation rule with no hyperparameter:
Properties. Eq. 22 has three properties that we like in practice:
• Loss scale stays the same. By design, . So the average per sample loss in the reweighted SFT loss of Eq. 4 in the main paper matches that of the unweighted loss in Eq. 1 in the main paper. This means the effective learning rate does not change, and we can reuse the optimiser settings of the first (unweighted) SFT pass without retuning.
• Hard filter of bad samples. Any sample with (equivalently ) gets , so it is fully removed from the second SFT pass, not just down weighted. This matches our goal: low quality reference trajectories should not affect the loss at all.
• No hyperparameter. Eq. 22 has no temperature, threshold, or scale knob. The only knob is the adaptive damping coefficient (Eq. 17), which we already set in the influence solver. This is on purpose: in the ablations of Section 4, any gap between the unweighted and the weighted SFT can come only from the influence based filter in Eq. 22, not from some extra weighting knob.
Edge case. If (that is, no sample is good under the current ridge solution), we fall back to uniform weights for all . This is the same as the unweighted SFT loss in Eq. 1 in the main paper. We have not seen this fallback fire in any of our runs.
D. Toolset Details
Initial heuristic toolset. Table 27 lists every tool in the initial toolset. Every round of code tool returns a short structured XML string (Section D).
Tool Card in Prompt. Here is the tool card we use during reference construction, model training and inference. We give this to teacher model or student model when we want to let them know what tools they can use and how to use them. During tool evolution, this block is updated whenever the toolset evolves. The card looks like this:
- first_frame_jump_analyzer [code] purpose: Detect anomalous first-frame discontinuity via a robust MAD-z computed on the bright and sharp channels. reads: state.bright (per-frame brightness, 16 floats) state.sharp (per-frame Laplacian variance, 16 floats) output: XML string with an <ANALYSIS> body; additional output metadata is omitted here (...). fires when: bright-channel z > 4 OR sharp- channel z > 4. cannot prove: A first-frame baseline shift that affects all 16 frames uniformly cancels out and is invisible to z.
Tool output schema. The outputs of all called tools in one round will be packed into one tool output that the model reads as the format below.
<ANALYSIS> ... a short body that names the specific signals the tools checked, the numeric values computed, and which thresholds were exceeded (or not) ... </ANALYSIS> <MANUAL> ... a short natural-language explanation that the tool registry uses to decide whether and how to override its baseline verdict when this tool fires; not surfaced to the student in raw form ... </MANUAL>Representative tool source. We let the large model observe training set samples, and prompt it with some common tools in the field of AI-generated video detection to enable it to build the initial heuristic toolset. We show two representative tool implementations below.
(i) First frame jump analyser. Detects an anomalous discontinuity at the first sampled frame. Both the bright and sharp channels are summarised by a robust MAD-z that compares the magnitude of against the median absolute deviation of over the rest of the clip; if either channel exceeds the threshold, the first frame is statistically out of distribution relative to its own clip.
from typing import Any, Dict
Z_THR = 4.0
def _mad_z(values): """Robust MAD-z of |diff(values)[0]| against the tail baseline.""" values = [float(x) for x in values if x is not None] if len(values) < 3: return 0.0 diffs = [abs(values[i + 1] - values[i]) for i in range(len(values) - 1)] tail = diffs[1:] sorted_tail = sorted(tail) n = len(sorted_tail) base = sorted_tail[n // 2] if n % 2 else 0.5 * (sorted_tail[n // 2 - 1] + sorted_tail[n // 2]) abs_dev = sorted(abs(x - base) for x in tail) m = len(abs_dev) mad = abs_dev[m // 2] if m % 2 else 0.5 * (abs_dev[m // 2 - 1] + abs_dev[m // 2]) return (diffs[0] - base) / (1.4826 * mad + 1e-6)
def run(video_id: str, state: Dict[str, Any]) -> str:
Table 27. Initial code tool registry.
| Name | Class | Purpose (one line) |
|---|---|---|
| halo_peak_analyzer | code | Detect halo / ringing peaks around high gradient boundaries via halo peak statistics. |
| halo_spectrum_analyzer | code | Detect halo with broader spectrum aware criteria (purple channel area). |
| color_cast_analyzer | code | Detect frame to frame R-G channel jitter paired with oversaturated rendering. |
| first_frame_jump_analyzer | code | Detect anomalous first frame discontinuity via robust MAD-z on bright and sharp channels. |
| subtle_jump_analyzer | code | Detect lag-1 / lag-2 first frame jumps in the moderate MAD-z band from 3 to 20. |
| background_motion_analyzer | code | Detect background point drift under a confidently static camera. |
| foreground_burst_analyzer | code | Detect foreground point teleportation under a confidently static camera. |
| forensic_frame_delta_probe | code | Judge frame to frame consistency based on inter frame change dimensions (color fingerprint, hand anomaly, jump stable patches, OCR drop, ...). |
| neutral_reconsider_distinct_fingers | code | Perform a targeted second check for hand and finger artifacts. |
| neutral_reconsider_distorted_chars | code | Perform a targeted second check for distorted characters. |
| neutral_reconsider_merge_into | code | Perform a targeted second check for multiple objects merging into a single object. |
| neutral_reconsider_not_stable | code | Perform a targeted second check for unstable object forms. |
| toolbox_guide | guide | toolbox manual: introduces every code tool and dispatches the appropriate combination. |
bright = state.get("bright") or [] sharp = state.get("sharp") or []
if len(bright) < 3 or len(sharp) < 3: return ( "<ANALYSIS>\n" "First-frame analysis: insufficient frames.\n" "</ANALYSIS>\n" "... " )
b_z = _mad_z(bright) s_z = _mad_z(sharp)
if b_z > Z_THR or s_z > Z_THR: return ( "<ANALYSIS>\n" f"First-frame robust MAD-z (vs frames 2-16 baseline):\n" f" bright channel z = {b_z:.2f}, sharp channel z = {s_z:.2f}\n" f" threshold {Z_THR:.1f} exceeded; first frame is\n" f" out-of-distribution relative to the rest of the clip.\n" )
</ANALYSIS>\n" "... " )
return ( "<ANALYSIS>\n" f"First-frame robust MAD-z (vs frames 2-16 baseline):\n" f" bright channel z = {b_z:.2f}, sharp channel z = {s_z:.2f}\n" f" threshold {Z_THR:.1f} exceeded.\n" " </ANALYSIS>\n" "... " )
(ii) Background motion analyser. A physics grounded check: under a confidently static camera, tracked background points should not drift. The tool fires only when the camera motion classifier is confident the camera is static and there are enough background points for a reliable percentile estimate; it then asks whether the 90th percentile of background point displacement and per frame step both exceed their thresholds.
from typing import Any, Dict
CAM_CONF_THR = 0.87 MIN_NBG = 10 DISP_P90_THR = 25.0 STEP_P90_THR = 8.0
def run(video_id: str, state: Dict[str, Any]) -> str: cam_type = state.get("cam_type") cam_conf = float(state.get("cam_conf") or 0.0) n_bg = int(state.get("n_bg") or 0) disp_p90 = state.get("disp_p90") step_p90 = state.get("step_p90")
if cam_type != "static" or cam_conf < CAM_CONF_THR: return ( "<ANALYSIS>\n" f"Background motion: camera is not confidently static " f"(type={cam_type}, conf={cam_conf:.2 f}); rule skipped.\n" "</ANALYSIS>\n" "... " )
if n_bg < MIN_NBG or disp_p90 is None or step_p90 is None: return ( "<ANALYSIS>\n" f"Background motion: insufficient background points " f"(n_bg={n_bg}); rule skipped.\n" "</ANALYSIS>\n" "... " )
disp_p90 = float(disp_p90) step_p90 = float(step_p90) if disp_p90 > DISP_P90_THR and step_p90 > STEP_P90_THR: return ( "<ANALYSIS>\n" f"Background motion under static camera " f"(n_bg={n_bg}, cam_conf={cam_conf:.2 f}):\n" f" background-point displacement p90 = {disp_p90:.1f} px " f"(threshold {DISP_P90_THR:.0f})\n" f" background-point per-frame step p90 = {step_p90:.1f} px " f"(threshold {STEP_P90_THR:.0f})\n" f" Both thresholds exceeded; background drift is\n" f" physically inconsistent with a static camera.\n" "</ANALYSIS>\n" "... " )
return ( "<ANALYSIS>\n" )
f"Background motion under static camera " f"(disp_p90={disp_p90:.1f}, step_p90={ step_p90:.1f}); " f"thresholds not jointly exceeded.\n" "</ANALYSIS>\n" "... " )
Initial heuristic toolset vs. updated toolset. We compare the initial heuristic toolset and the updated toolset. The initial heuristic toolset has 13 tools as listed in Table 27: 12 code tools plus toolbox_guide.
E. Prompts
In this section, we collect the prompts referenced earlier in the appendix. The teacher prompts are referenced from Section C.1, the student facing SFT/GRPO/evaluation prompt is listed in Section E.2, and the tool evolution operator prompts are referenced from Section C.2.
E.1. Teacher Prompts
Below are two teacher prompts for both pipelines. After every round’s teacher model’s output, we run the invoked tools. After the tools return results, we append the tool output and previous messages to the end of this prompt, then send the combined content to the teacher model to generate the next round of output.
GenVideo (generate-then-filter reference construction; GT is not included in the teacher prompt).
Here are uniformly sampled frames in one video sample:
- frame_idx 0: <attached image>
- frame_idx 1: <attached image>
- ...
Your task is to use the frames and the toolset provided later to reason about whether the video is AI-generated or real. Include <think>, an <answer>, 1-3 code-tool calls from the tool_card block, then toolbox_guide as the last tool call. Stop immediately after toolbox_guide. Reason with these tools and decide; call the tools from the tool cards below that you think can help you further inspect artifacts in the video. (tool calls refer to frames by sampled-frame index starting from 0).
Below is a toolset, presented as tool cards, that helps you judge whether the given video sample is real or AI-generated. <tool_cards> ... one compact card per forensic tool ... </tool_cards>
schema of your output: <think>...</think> <answer>Real|Fake</answer> You could also append with tool call as below: <tool>tool_name_1</tool> <tool>tool_name_2</tool>
Table 28. Comparison between the initial heuristic toolset and updated toolset of our framework.
| Initial heuristic toolset | Updated toolset |
|---|---|
| halo_peak_analyzer | halo_peak_analyzer |
| halo_spectrum_analyzer | halo_spectrum_analyzer |
| color_cast_analyzer | color_cast_analyzer |
| first_frame_jump_analyzer | first_frame_jump_analyzer |
| subtle_jump_analyzer | subtle_jump_analyzer |
| background_motion_analyzer | background_motion_analyzer |
| foreground_burst_analyzer | foreground_burst_analyzer |
| forensic_frame_delta_probe | forensic_frame_delta_probe |
| neutral_reconsider_distinct_fingers | neutral_reconsider_distinct_fingers |
| neutral_reconsider_distorted_chars | neutral_reconsider_distorted_chars |
| neutral_reconsider_merge_into | neutral_reconsider_merge_into |
| neutral_reconsider_not_stable | neutral_reconsider_not_stable |
| toolbox_guide | toolbox_guide |
| protect_real_bg_density | |
| camconf_low_fake_check | |
| motion_step_fuser | |
| complex_scene_consistency_fuser | |
| blue_sky_foreground_density_check | |
| face_landmark_consistency | |
| sam_region_stability | |
| ocr_sam_filter | |
| physical_implausibility_analyzer |
...
<tool>toolbox_guide</tool>
General rules of your output:
- Only tools in the tool-card block may appear inside <tool> tags.
- Every <tool> block takes either the form <tool>{"name": str, "args": dict}</tool> or <tool>{"name": str}</tool>, depending on the tool_card.
- The tool results is not produced by you. Do not fabricate any tool output.
ViF-CoT-4K (rewrite of the official ViF-CoT-4K reference).
Here are uniformly sampled frames in one video sample:
- frame_idx 0: <attached image>
- frame_idx 1: <attached image>
- ...
Your task is to use the frames and the toolset provided later to reason about whether the video is AI-generated or real. Include <think>, an <answer>, 1-3 code-tool calls from the tool_card block, then toolbox_guide as the last tool call. Stop immediately after toolbox_guide. Reason with these tools and decide; call the tools from the tool cards below that you think can help you further inspect artifacts in the video. (tool calls refer to frames by sampled-frame index starting from 0).
Below is a toolset, presented as tool cards, that helps you judge whether the given video sample is real or AI-generated.
<tool_cards> ... one compact card per forensic tool ... </tool_cards>
The official ViF-CoT-4K reference reasoning for this sample is as follows: <vifcot4k_reference>
schema of your output: <think>...</think> <answer>Real|Fake</answer>
You could also append with tool call as below: <tool>tool_name_1</tool> <tool>tool_name_2</tool> ... <tool>toolbox_guide</tool>
General rules of your output:
- Only tools in the tool-card block may appear inside <tool> tags.
- Every <tool> block takes either the form <tool>{"name": str, "args": dict}</tool> or <tool>{"name": str}</tool>, depending on the tool_card.
- The tool results is not produced by you. Do not fabricate any tool output.
- You may use the given official ViF-CoT-4K reasoning for this sample as a reference for your reasoning and may insert 1-2 additional tool calls from the tool-card block between <answer>, choosing tools that are most relevant to the artifact described.
E.2. Student Prompt for SFT, GRPO, and Evaluation
Shared student prompt. The student receives the same prompt structure during Stage 1, Stage 2, and final evaluation. The prompt includes the full current tool card block; during tool evolution, this block is also updated when tools get updated. After every round's student model's output, we run the invoked tools. After the tools return results, we append the tool output and previous messages to the end of this prompt, then send the combined content to the student model to generate the next round of output. The prompt is:
Here are uniformly sampled frames in one video sample:
- frame_idx 0: <attached image>
- frame_idx 1: <attached image>
- ...
Your task is to use the frames and the toolset provided later to reason about whether the video is AI-generated or real. Include <think>, an <answer>, 1-3 code-tool calls from the tool_card block, then toolbox_guide as the last tool call. Stop immediately after toolbox_guide. Reason with these tools and decide; call the tools from the tool cards below that you think can help you further inspect artifacts in the video. (tool calls refer to frames by sampled-frame index starting from 0).
Below is a toolset, presented as tool cards, that helps you judge whether the given video sample is real or AI-generated. <tool_cards> ... one compact card per forensic tool ... </tool_cards>
schema of your output: <think>...</think> <answer>Real|Fake</answer> You could also append with tool call as below: <tool>tool_name_1</tool> <tool>tool_name_2</tool> ... <tool>toolbox_guide</tool>
General rules of your output:
- Only tools in the tool-card block may appear inside <tool> tags.
- Every <tool> block takes either the form <tool>{"name": str, "args": dict}</tool> or <tool>{"name": str}</tool>, depending on the tool_card.
- The tool results is not produced by you. Do not fabricate any tool output.
E.3. Tool Evolution Operator Prompts
Mutate prompt
[role: evolution operator MUTATE] This tool currently still has low usage breadth/low evidential effectiveness. Please read its code carefully and think about how to improve it
so that it can cover more edge cases, detect the intended features more reliably, and become a better tool. (e.g. tighten a threshold, restrict to a specific frame subset, swap aggregation function, add an early exit, gate on cam_motion_classifier result, OR change the temporal granularity if reasoning supports it). Optional tool-error section (omitted when no tool error is observed in the current evolution cycle): The following tool error messages have been observed so far. You may use them as concrete debugging evidence: [error message 0, error message 1, ...] Return the FULL revised source for the function (not a diff).
Crossover prompt
[role: evolution operator CROSSOVER] Review the current toolset and their using history, fuse two or more tools that you think are complementary in functionality or case coverage into a new tool. Alternatively, if you think combining the results of two or more tools can produce an effective signal for judging whether a sample is real or fake, you may also create a new tool that combines the results of those tools as a new tool in the toolset.
Brainstorm prompt
[role: evolution operator BRAINSTORM] Open-ended brainstorming. Based on the current failed samples and their full reasoning chains, create a new tool that you think can capture artifacts in video samples that are still missed by the current toolset.
F. Licenses
We use ViF-Bench and ViF-CoT-4K [32] by following the license of here. We use the GenVideo dataset [7] by following the license of here. We use the Qwen2.5-VL-7B-Instruct [2] by following the license of here.