RAMA: Resistance-Aware Multi-Hop Aggregation Graph Representation Learning for Robust Ethereum Account Classification

Zhaowei Liu, ZengyangZhang, HaitaoYang, Yao Shan, Xiangfu Zhao, Yongchao SongNeurIPS 2026

TL;DR

Catching fraudsters on Ethereum is like finding a needle in a deliberately tangled haystack of millions of transactions. This paper borrows a classic concept from electrical engineering—circuit resistance—to build a Graph Neural Network (GNN) called RAMA that sees right through noisy, obfuscated financial flows. By treating the blockchain like an electrical grid, RAMA suppresses distracting, spurious transactions while locking onto multi-step money laundering and phishing schemes.

What Problem Does This Paper Address?

Ethereum’s openness and pseudonymity make it a playground for decentralized finance, as well as hacks, phishing, and Ponzi schemes (which cost users roughly $1.8 billion in 2023 alone). Naturally, researchers model this ecosystem as a massive graph—accounts are nodes, transactions are directed edges—and deploy Graph Neural Networks (GNNs) to classify high-risk accounts.

However, standard GNNs stumble over two major hurdles here:

  1. Structural Noise: Conventional GNNs treat every transaction edge equally. Routine transfers or deliberate "dust" transactions created by scammers to muddy the waters get amplified during message passing. Simply deleting weak edges via heuristics risks throwing away subtle, genuine clues.
  2. Long-Range Blindness: Sophisticated schemes like multi-step money laundering span many hops across the network. Standard GNNs only look at immediate, fixed-hop neighborhoods; if you stack too many layers to see further, node representations blur together into useless noise (a phenomenon known as oversmoothing).

Methods

To separate signal from noise without destroying the graph's topology, the authors propose RAMA (Resistance-Aware Multi-hop Aggregation).

Figure 1: Two illustrative examples of effective resistance computation. For a pair of nodes u and v connected via multiple vertex-disjoint paths p, the effective resistance Ru,v can be approximated by the reciprocal of the sum of the reciprocals of their lengths: Ru,v = (P

The secret sauce is effective resistance, borrowed from electrical circuit theory. Imagine every edge in the transaction graph is a resistor. If two accounts are connected only by a single, long, tenuous chain (series connection), the resistance between them is high. If they are linked by multiple redundant transaction paths (parallel connection), the overall resistance drops.

Figure 2: Original features, positional encodings, and clustering coefficients are concatenated to initialize representations. The Effective Resistance Feature Augmentation module then reweights the adjacency matrix via resistance distances, guiding the Multi-Hop Aggregation module to fuse hop-wise features via attention for final Ethereum account classification.

RAMA builds on standard node features (augmented with Laplacian positional encodings and local clustering coefficients) using three novel steps:

  • Resistance-Aware Reweighting: Rather than adding or deleting edges—which would alter the real-world record of transactions—RAMA extracts local subgraphs via random walks, computes the Laplacian pseudoinverse to find the effective resistance between accounts, and continuously reweights the adjacency matrix. Low-resistance (structurally consistent) connections get amplified; high-resistance (sporadic, noisy) links are dialed down.
  • Adaptive Hop Truncation: Instead of guessing how many hops ($K$) the GNN should look ahead, RAMA measures how quickly the average resistance-guided affinity decays across hops, automatically stopping message passing before distant noise creeps in.
  • Attention-Based Multi-Hop Fusion: Finally, an attention mechanism weighs each hop's features relative to the target node's initial state, allowing the model to dynamically focus on local or global transaction patterns depending on the account's context.

Datasets

The authors evaluate RAMA on a real-world Ethereum transaction network built from the established XBlock dataset (no new benchmarks are introduced). It is a massive, sparsely labeled, semi-supervised graph containing 1,402,220 nodes and 2,815,028 directed edges, with 12 raw features per node. Within this ocean of data, 816 accounts are labeled across six categories: Converter, Exchange, Gambling, ICO, Mining, and Phish/Hack. Following prior literature, they test across three splits using 70%, 50%, and 30% of the labeled nodes for training.

Key Insights and Ideas

  • Physics beats heuristics for graph denoising: Because parallel paths lower effective resistance, sporadic spam transactions barely affect the resistance metric compared to genuine, multi-path behavioral relationships. Continuous reweighting preserves weak-but-important ties that hard edge-filtering destroys.
  • Homophily fails in financial crime: Standard GNNs assume "birds of a feather flock together" (phishers transact with phishers). On Ethereum, scammers transact with innocent victims and exchanges. Combining global structural context with hop-level attention overcomes this heterophily trap.
  • How you fuse hops matters more than just having them: In ablation studies, replacing the multi-hop attention mechanism with simple mean pooling caused Macro-F1 to drop by up to 7.5%—proving that different fraud patterns live at different relational distances and require adaptive weighting.

Key Results

RAMA consistently outperforms both general-purpose GNNs (like GCN, GAT, GraphSAGE) and specialized blockchain models (like FA-GNN and persistent-homology-based ETGNN):

  • Overall Accuracy: Across the 70%, 50%, and 30% training splits, RAMA achieves state-of-the-art Macro-F1 scores of 0.8610, 0.7811, and 0.7446, beating the strongest baselines by up to 2.01% (and improving by ~2.3 percentage points over ETGNN on Split 1).
  • Catching Bad Actors: Under the 70% split, RAMA hits an impressive 0.9091 F1 on Phish/Hack accounts (91.84% precision, 90.00% recall), and near-perfect scores on Converter (0.9818 F1) and Mining (0.9565 F1). Gambling proved the hardest to catch (0.6667 F1), largely due to missed recalls.
  • Noise Resilience: When the authors injected 10%, 20%, and 30% random spurious edges into the graph, traditional GNNs degraded sharply (~14% Macro-F1 drop at 30% noise for GCN), whereas RAMA remained remarkably stable, suffering the smallest drop of all tested models (~7.5%).

Limitations and Future Work

While the main text defers a full discussion of limitations and future directions to Appendix G (which is not included in the main pages), two core constraints are explicitly noted:

  • Computational Overhead: Calculating exact Moore-Penrose pseudoinverses on local subgraphs takes $O(s_v^3)$ time per node (where $s_v$ is the subgraph size). While RAMA smartly sidesteps this during training by precomputing the weights once upfront, scaling to massive graphs still incurs a heavy preprocessing cost.
  • Static Graph Assumptions: RAMA treats the Ethereum transaction network as a static snapshot. Because real-world blockchains are streaming, dynamic environments where attack patterns constantly evolve, extending resistance-aware learning to temporal graphs remains an open frontier.

Summary updated

BibTeX
@inproceedings{liu2026rama,
  author = {Zhaowei Liu and ZengyangZhang and HaitaoYang and Yao Shan and Xiangfu Zhao and Yongchao Song},
  title = {{RAMA: Resistance-Aware Multi-Hop Aggregation Graph Representation Learning for Robust Ethereum Account Classification}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=E2j4hTCc0W},
}
Figure