DynGraphAgentBench: A Benchmark for Agentic Lifecycle Control in Dynamic Graph Anomaly Detection

Yuwei Han, Lingwei Wei, Wooseong Yang, Liangjie Huang, Liancheng Fang, Huanhuan Ma, Philip S. YuarXiv 2026

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:

  1. 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.
  2. Action: The agent must choose to initialize, keep, or switch a detector. Crucially, this choice happens before any training for the current window begins.
  3. Execution: A sandboxed executor trains the chosen model on all "mature" data and evaluates it on a hidden deployment window.
  4. 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.
Figure 1: Agent control loop overview. Time-aware context, hard-bucket mining, and diagnosis inform the controller. A verifier checks proposed actions before secure execution; delayed feedback and lineage records inform later episodes.

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).

Table 1: Supervised prediction units used to construct the benchmark. Each non-bootstrap prediction unit appears in exactly one hidden deployment window.

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.
Table 2: Four-dataset agent-first results on hidden deployment windows. Per-dataset detection metrics average eight chronological windows; bold marks the best controller in each dataset and metric. The macro row averages dataset means, while switches and GPU hours sum across datasets. NM denotes the GPT-6 Astra condition without outcome memory; C@3 and C@5 are positive capture at fixed 3% and 5% review budgets. Shared training is charged to each selecting policy.
  • 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.
Figure 2: Four-dataset per-window deployment AP, controller switches (stars), and positive prevalence. Prevalence is the expected AP of random ranking, so the dotted line helps distinguish improved ranking from an easier class balance. Every controller choice precedes current-window training and scoring.

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

BibTeX
@misc{han2026dyngraphagentbench,
  author = {Yuwei Han and Lingwei Wei and Wooseong Yang and Liangjie Huang and Liancheng Fang and Huanhuan Ma and Philip S. Yu},
  title = {{DynGraphAgentBench: A Benchmark for Agentic Lifecycle Control in Dynamic Graph Anomaly Detection}},
  year = {2026},
  eprint = {2609.33980},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.33980},
}
Figure