cs.LGAug 20, 2026

Online Test-Time Adaptation for Generalizable Dynamic Graph Anomaly Detection

Authors: Jialun Zheng, Hanchen Yang, Jiannong Cao, Yankai Chen, Yuanjing Feng, Philip S. Yu

Organizations: Department of Computing, The Hong Kong Polytechnic University, Hong Kong, China · Department of Computer Science, University of Illinois at Chicago (UIC), Chicago, IL, USA · Institute of Information Processing and Automation, Zhejiang University of Technology, Zhejiang, China

Abstract

Generalizable dynamic graph anomaly detection (DGAD) enables pretrained detectors to identify anomalies in unseen target domains without costly retraining. However, existing methods often fail for two reasons. First, they mainly rely on domain-agnostic patterns and miss domain-specific patterns that keep evolving. Second, they assume access to the full target domain data, whereas in more practical online test-time adaptation settings, target data arrive sequentially in unlabeled chunks. To address these limitations, we formulate online test-time adaptation for generalizable DGAD and propose OTTA-DGAD. OTTA-DGAD first extracts dynamic prototypes, i.e., evolving representations of normal and anomalous patterns, from temporal ego-graphs and stores them in a memory buffer. The buffer selectively retains general patterns shared across the source domains used for pretraining while incorporating new patterns from the target domain. An anomaly scorer then compares incoming edge representations against these prototypes to identify both general and domain-specific anomalies. During adaptation, OTTA-DGAD updates the memory buffer using reliable pseudo-labels identified through confidence-based detection. It further enriches each target chunk with relevant representations retained from previous chunks, compensating for information loss resulting from the sequential arrival of data. Extensive experiments under strict test-then-adapt OTTA settings demonstrate state-of-the-art performance on ten real-world datasets from diverse domains.

Figures & tables

Explore similar work

CardsList
  1. TA-GGAD: Testing-time Adaptive Graph Model for Generalist Graph Anomaly Detection

    Mar 10, 2026Xiong Zhang, Hong Peng, Changlong Fu +3Anomaly DetectionCross-Dataset Generalization

  2. Temporal Memory-Aware Online Test-Time Adaptation on Dynamic Graphs

    Aug 28, 2026Bo Li, Xin Zheng, Ming Jin +2Test-Time AdaptationContinual Test-Time Adaptation