# Test-Time Graph Anomaly Detection via Shifted Augmentation with Dynamic Objective Scheduling

*Chunjing Xiao, Ruobing Fan, Tian Zhao, Fan Zhou, Chong Tang, Ying Ma*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/153400) · [OpenReview](https://openreview.net/forum?id=Lelz20rA0P) · [Open on the map](../papers.html#p153400)

Category: [Graphs, OOD Detection & Medical Imaging](../pcat/7.md) › [Graph Anomaly Detection and Topology-Aware Adaptation](../pgroup/465.md) · Type: new method · Keywords: graph anomaly detection, test-time adaptation, distribution shift, dynamic objective scheduling, contrastive learning, prototype distillation

Areas: [Safety & Security](../areas/safety.md) › Adversarial Security › Graph Adversarial Security; [Continual Learning & Adaptation](../areas/continual-adaptation.md) › Domain Shift Adaptation › Domain Generalization

## Summary
SADOS is a shifted augmentation and dynamic objective scheduling framework that improves test-time graph anomaly detection under distribution shifts.

## Explained to a 5-year-old
When a computer tries to find weird things in a network, it works best on data it has seen before. Sometimes the new data is different, making it hard to tell what's weird. The researchers made a trick that uses the noisy data to help the computer notice the changes. They mix this information into the reliable data so the computer learns from both. This helps the computer stay good at spotting odd things even when the data changes.

## Explained to a 5-year-old, longer
Computers can look for strange behavior in networks like social graphs. They learn from examples they have seen before. When new data comes in, it might be very different from what they know. This makes it hard for the computer to tell what is normal and what is weird. The researchers noticed that some uncertain examples actually carry useful information about changes. They used those uncertain examples to help the computer understand the new patterns. They created special signals from the uncertain data and added them to the reliable data. This mixing helps the computer see both old and new patterns. The computer also changes how it learns over time, focusing first on detecting changes. Later, it pays more attention to correctly labeling anomalies. By doing this, the computer stays accurate even when the data shifts. The result is a more robust way to find odd things in networks.

## For a technical reader
The paper addresses the degradation of supervised graph anomaly detection models when test data distributions differ from training data. It proposes a test-time adaptation scheme that leverages confidence-stratified unreliable samples to extract drift signals and generate label-preserving augmentations. A dynamic objective scheduler first uses contrastive learning to capture early drift and gradually shifts weight to standard classification loss for refined anomaly detection. Experiments show consistent improvements over baseline methods under various distribution shifts. The approach is designed to be practical for real-world graph analytics pipelines.

## Problem
Supervised graph anomaly detection models often degrade when test data distribution shifts because they are trained on closed-world data. Test-time adaptation can update models with unlabeled test data, but balancing reliable high-confidence samples and informative low-confidence samples remains challenging.

## Method
The approach uses confidence-stratified unreliable samples to extract drift-carrying signals, distills prototypes from these samples, and injects them into reliable samples to create label-preserving yet shift-oriented augmentations. It also dynamically schedules the adaptation objective, employing contrastive learning to capture early-stage drift signals and gradually annealing its weight so that classification-oriented anomaly detection dominates later adaptation.

## Results
The approach shows robust improvements in test-time graph anomaly detection under distribution shifts across multiple settings.

## Contributions
It introduces a method to turn unreliable target samples into drift-carrying signals for reliable supervised adaptation, distills prototypes from confidence-stratified unreliable samples, and dynamically schedules the adaptation objective to balance drift detection and anomaly discrimination.

## Research questions this paper is counted under

- [How can graph-level anomaly detection be made reliable when labeled data is scarce and the graph distribution changes over time?](../q/408.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/153400)
