Manuscript Offprint

arXiv:2610.16694

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

Firas Bayram, Maxime Cordy

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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

1 Introduction

Within networked systems, adversarial actors (e.g., scammers in cryptocurrency transaction graphs, banned users on social platforms, fake reviewers in e-commerce networks) operate at scale to bypass systems' security and business protection measures. The stakes are substantial: cryptocurrency fraud alone reached $9.3 billion in 2024 [1, 2], with comparable damage from coordinated review rings, account abuse, and platform manipulation [3]. These systems are naturally represented as attributed graphs, where nodes carry features and edges encode relationships, and detection requires exploiting both channels together. Adversarial manipulation then consists of introducing new nodes and edges in the graph following a specific (adversarial) feature distribution.

Yet deploying detectors on these graphs faces two compounding constraints. First, label scarcity: adversarial entities typically operate for days or weeks before being flagged—if they are ever reported at all—leaving no reliable supervisory signal during the critical early window when the most damage is done [4]. Second, distributional drift [5, 6]: user behavior, network topology, and feature distributions evolve continuously through organic growth and churn [7], inducing natural

Preprint.

concept drift [8]. A detector trained on a snapshot implicitly encodes the feature distribution of that moment; as legitimate entities migrate to new regions of feature space, the learned decision boundary becomes stale—legitimate activity that was once well within the normal range now falls outside it, triggering escalating false alarms [9]. The standard remedy is periodic retraining, but this loops back to the first problem. Retraining requires fresh labels, which arrive late and incomplete. In particular, supervised fraud GNNs [10–12] depend on exactly these labels, and unsupervised graph detectors such as DOMINANT [13] and CoLA [14] carry no guarantee against drift-induced false alarms. Without a mechanism that is inherently stable under drift, practitioners are trapped in a cycle where the model is either stale or starved of supervision.

We identify feature-context consistency—the alignment between an entity’s own attributes and the aggregated attributes of its neighbors—as a single structural signal that simultaneously addresses both problems. A legitimate entity develops feature patterns that are statistically coherent with those of its neighbors, because repeated interaction shapes both parties. An adversarial entity, by contrast, is injected without this history: its features may mimic legitimate patterns, but its neighborhood context is absent, random, or structurally inconsistent—and the adversary cannot unilaterally control the features of its neighbors. This enables label-free detection. The same signal is also robust to drift, because natural drift moves node features and their mean-pooled context in tandem and preserves their alignment, which gives drift stability without retraining. Both properties follow from the same structural fact: in attributed graphs with meaningful relationships, feature-context correlation is nonzero for legitimate entities and broken for early-stage adversarial injections.

Operationalizing this insight requires a label-free model whose score function is analytically decomposable into feature and feature-context contributions, so the loss of coherent context for adversarial nodes is expressible in closed form. Energy-based models satisfy the label-free requirement, learning an unnormalized density from legitimate data alone [15]. Among these, the Restricted Boltzmann Machine [16], a well-studied neural-network EBM, additionally provides a closed-form free energy whose per-hidden-unit decomposition supports the separation and drift bounds in §5 — unlike GNNs or alternative EBMs (score-based, energy-GAN). RBMs carry a track record in unsupervised fraud and anomaly detection [17–19], yet remain unexplored for attributed-graph adversarial detection. A standard RBM, however, models features in isolation — capturing what an entity looks like, not whether that appearance is consistent with its surroundings [20]. We extend the Gaussian-Bernoulli RBM with a gated context pathway that conditions the energy on aggregated neighborhood features, yielding the Context-Boosted RBM (CB-RBM). The Context Boost (CB) score — the reduction in free energy from conditioning on neighborhood context — directly measures feature-context consistency and underlies both our detection mechanism and drift guarantees.

Our main contributions are as follows.

• Method (§4). We propose CB-RBM, an RBM with a GLU-gated context pathway conditioning the free energy on aggregated neighborhood features, and the Context Boost (CB) score—the free-energy reduction from context—as a label-free detection signal.

• Theoretical framework ( §5§5). Under five empirically verifiable assumptions, we prove a strict separation between the expected CB of legitimate and adversarial nodes (Theorem 1) and a Wasserstein-Lipschitz bound on how far the CB distribution moves under drift (Theorem 2, Corollary 2)—coupling label-free detection and drift stability through a single feature-context correlation structure.

• Detection boundary analysis ( §6.2§6.2, §6.5§6.5). The ρ1eff\rho_{1}^{eff} analysis reveals that CB detects absence of legitimate network context rather than feature deviation, characterizing the detection signal and delineating its scope.

• Empirical validation ( §6§6). On XBlock Ethereum phishing [21] and Reddit banned users [22], CB-RBM (0 labels) achieves AUROC ≥\geq 0.96 on all non-white-box attacks and keeps FPR close to its calibrated 5% target under 20-step drift, ahead of supervised GNNs trained on hundreds of labels, unsupervised graph-anomaly baselines and a standard RBM whose FPR rises to 89–100%.

References (51)