TL;DR
DynGraphAgentBench is a new executable benchmark designed to evaluate how AI agents manage the lifecycle of anomaly detection models in dynamic, evolving graphs. Unlike traditional benchmarks that pick the best model after seeing all the results, this framework forces agents to make "agent-first" decisions—selecting architectures under uncertainty with delayed feedback, just like a human engineer would in a real-world production environment.
What Problem Does This Paper Address?
In the real world, interaction graphs (like credit card transactions or social networks) are never static. Patterns of behavior shift, new entities appear, and the prevalence of anomalies drifts. Crucially, "ground truth" labels—knowing for sure if a transaction was fraudulent—often arrive with a significant delay after investigations are completed.
Existing benchmarks for dynamic graph anomaly detection often blur the line between model selection and evaluation. They typically train every possible candidate on a dataset and then report the best one. This creates a "current-window oracle" that doesn't exist in practice. A real-world controller must select and adapt detectors using only the information available at that moment, without knowing how the model will perform on the next batch of data.
The authors address this gap by introducing a protocol that tests an agent's ability to reason about model performance, respond to delayed evidence, and manage computational costs over time.
Methods
The core of the paper is the agent-first rolling selection protocol. The process follows a strict control loop:
- Observation: In each deployment window, the agent (an LLM like GPT-6 or Claude) receives aggregate dataset statistics, "model cards" for 11 different detectors, its previous choice, and matured outcomes from two windows ago.
- Action: The agent must choose to
initialize,keep, orswitcha detector. Crucially, this choice happens before any training for the current window begins. - Execution: A sandboxed executor trains the chosen model on all "mature" data and evaluates it on a hidden deployment window.
- Verification: A deterministic verifier checks for protocol violations, such as data leakage or illegal actions, ensuring the agent isn't "cheating" by accessing future labels.
The benchmark includes a Model Bank of 11 selectable architectures, ranging from continuous-time dynamic graph encoders (like TGN and DyGFormer) to graph-attribute fusion models (like GTAN).
Datasets
The benchmark utilizes seven temporal graph datasets covering both node-level and edge-level anomaly tasks. These include financial fraud datasets (DGraph-Fin, Elliptic++, IEEE-CIS, IBM HI-Small, S-FFSD) and non-financial interaction streams (MOOC, Bitcoin-OTC).
These environments are specifically chosen because they exhibit significant temporal variation in anomaly rates and interaction patterns, making the agent's adaptation task challenging.
Key Insights and Ideas
- Strategic Decision-Making vs. Ranking: The benchmark shifts the focus from which model is "best" to how well an agent can identify the best model under constraints.
- The Cost of Adaptation: By tracking "switch rates" and GPU hours, the benchmark exposes the trade-off between performance gains and computational overhead. An agent that switches models constantly might achieve higher accuracy but at a prohibitive cost.
- Memory is Context-Dependent: The authors found that providing agents with a history of past outcomes (cross-window memory) doesn't provide a uniform gain. Its value depends entirely on whether the feedback actually leads the agent to change a suboptimal decision.
- Auditability is Key: By using a deterministic verifier and immutable manifests, the framework ensures that agent rationales are ignored in favor of hard, reproducible execution traces.
Key Results
The authors evaluated several primary controllers, including GPT-6 Astra and Claude Opus 5, alongside a "no-memory" baseline.
- Performance Trade-offs: Claude Opus 5 achieved a higher macro Average Precision (AP) of 0.1664 compared to GPT-6 Astra's 0.1340. However, Claude was significantly more "expensive," consuming 3.91 GPU hours versus Astra's 0.56.
- Behavioral Discrimination: The protocol successfully distinguished between different agent policies. For example, on the S-FFSD dataset, different agents followed substantially different performance trajectories based on their model choices.
- Switching Efficacy: Frequent switching did not guarantee success. On the Bitcoin-OTC dataset, Mistral Large 3 switched models seven times to reach an AP of 0.1648, while DeepSeek V3.2 switched only five times but achieved a much higher AP of 0.2520.
Limitations and Future Work
The current benchmark operates in a "controlled controller track," where agents are limited to selecting from a fixed registry of models and cannot modify code or tune hyperparameters.
The authors acknowledge this as a deliberate constraint to ensure causal ordering and testability. They suggest that future work could include a "native lifecycle track" where agents have more autonomy to edit code, construct new graph features, and manage long-running, complex machine learning workflows. Additionally, the benchmark currently focuses on batched evaluation rather than per-event online latency.
Summary updated