ARC: A Generalist Graph Anomaly Detector with In-Context Learning

Yixin Liu, Shiyuan Li, Yu Zheng, Qingfeng Chen, Chengqi Zhang +1 more
2/3/2026

No official code found. Best implementation: yixinliu233/ARC (34 stars, last commit 2026-02-10).

Abstract

Graph anomaly detection (GAD), which aims to identify abnormal nodes that differ from the majority within a graph, has garnered significant attention. However, current GAD methods necessitate training specific to each dataset, resulting in high training costs, substantial data requirements, and limited generalizability when being applied to new datasets and domains. To address these limitations, this paper proposes ARC, a generalist GAD approach that enables a ``one-for-all'' GAD model to detect anomalies across various graph datasets on-the-fly. Equipped with in-context learning, ARC can directly extract dataset-specific patterns from the target dataset using few-shot normal samples at the inference stage, without the need for retraining or fine-tuning on the target dataset. ARC comprises three components that are well-crafted for capturing universal graph anomaly patterns: 1) smoothness-based feature Alignment module that unifies the features of different datasets into a common and anomaly-sensitive space; 2) ego-neighbor Residual graph encoder that learns abnormality-related node embeddings; and 3) cross-attentive in-Context anomaly scoring module that predicts node abnormality by leveraging few-shot normal samples. Extensive experiments on multiple benchmark datasets from various domains demonstrate the superior anomaly detection performance, efficiency, and generalizability of ARC.

View on arXivView PDF

Code Implementations(1)

yixinliu233/ARCCommunity68%

[NeurIPS'24] ARC: A Generalist Graph Anomaly Detector with In-Context Learning

346PythonOct 14, 20248 months ago

Similar Papers

Cite this paper

@article{liu2026arc,
  title  = {ARC: A Generalist Graph Anomaly Detector with In-Context Learning},
  author = {Yixin Liu and Shiyuan Li and Yu Zheng and Qingfeng Chen and Chengqi Zhang and Shirui Pan},
  year   = {2026},
  eprint = {2405.16771},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2405.16771},
  url    = {https://arxiv.org/abs/2405.16771},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.16771.svg)](https://codeofpaper.com/paper/2405.16771)

Discussion