Feature-Context Consistency: Unsupervised Adversarial Detection with Drift Stability on Attributed Graphs

Firas Bayram, Maxime Cordy
10/12/2026
cs.LGcs.AI

Official code: serval-uni-lu/CB-RBM (0 stars, Python, MIT, PyTorch, last commit 2026-10-08).

Abstract

Adversarial detection on evolving attributed graphs faces two challenges: fraud labels arrive late or not at all, and natural distributional drift erodes any trained decision boundary. Modern detectors can reach strong detection rates when labels are available and the distribution is stationary; sustaining that quality without labels and under drift is the open problem.

Show full abstract

We identify feature-context consistency -- the alignment between a node's attributes and its aggregated neighborhood attributes -- as a single structural signal that addresses both. We formalize it as the Context Boost (CB) score within a Restricted Boltzmann Machine framework (CB-RBM) and prove two complementary worst-case guarantees: a strict separation between the expected CB of legitimate and adversarial nodes, with gap growing linearly in model capacity, whenever the adversary's context stays far enough from legitimate neighborhood context; and a Wasserstein-Lipschitz bound on how far the CB distribution moves under natural drift. We validate on XBlock Ethereum phishing (~153K nodes) and Reddit banned-user detection (~11K nodes), with two further datasets in the appendix spanning diverse domains. With zero labels, CB-RBM achieves AUROC >= 0.96 on four adversarial attacks and keeps FPR close to its calibrated 5% target under drift -- outperforming supervised GNNs (hundreds of labels), unsupervised graph-anomaly baselines, and a standard RBM whose FPR collapses to 89-100%. What typically requires separate mechanisms -- label-free operation and drift stability -- here follows from a single structural regularity of the data. Code: https://github.com/serval-uni-lu/CB-RBM.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

Context-Boosted RBM: label-free adversarial detection with drift stability on attributed graphs (NeurIPS 2026)

00PythonOct 8, 20261 months agoMIT
concept-driftfraud-detectiongraph-anomaly-detectionneurips-2026pytorch+1 more

Similar Papers

Cite this paper

@article{bayram2026featurecontext,
  title  = {Feature-Context Consistency: Unsupervised Adversarial Detection with Drift Stability on Attributed Graphs},
  author = {Firas Bayram and Maxime Cordy},
  year   = {2026},
  eprint = {2610.16694},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.16694v1}
}

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/2610.16694.svg)](https://codeofpaper.com/paper/2610.16694)

Discussion