Unraveling the MEV enigma: ABI-free detection model using Graph Neural Networks

Seongwan Park, Woojin Jeong, Yunyoung Lee, Bumho Son, Huisu Jang, Jaewook Lee · DOI · OpenReview

Abstract

This paper introduces ArbiNet, a Graph Neural Network (GNN) framework designed for the ABI-free detection of Maximal Extractable Value (MEV) transactions on the Ethereum blockchain. Traditional detection methods rely heavily on smart contract ABIs and hard-coded heuristics, which struggle to scale with the rapidly evolving DeFi landscape. By focusing on standardized ERC-20 token transfer patterns, ArbiNet achieves a near-perfect F1 score (0.98) in identifying complex arbitrage and sandwich attacks. This approach provides a robust, protocol-agnostic solution for monitoring MEV and its impact on blockchain decentralization.

Introduction: The MEV Challenge

Maximal Extractable Value (MEV)—the profit extracted by validators through transaction reordering—is a critical factor in blockchain economics. While some forms of MEV, like arbitrage, enhance market efficiency, "toxic" MEV, such as sandwich attacks, directly harms users and risks centralizing the network.

Mechanism of a sandwich attack, illustrating front-running and back-running transactions.

The primary obstacle to effective MEV monitoring is the reliance on Application Binary Interfaces (ABIs). Current heuristic-based tools are limited by three major factors:

  1. Dependency: Contracts not verified on Etherscan remain invisible to traditional tools.
  2. Maintenance: Constant manual updates are required to keep pace with new DeFi protocols.
  3. Low Recall: Conservative rules often miss complex, non-cyclical MEV strategies that do not fit simple "buy low, sell high" loops.

Methodology: The ArbiNet Framework

To overcome these hurdles, the researchers developed ArbiNet, which utilizes an "ABI-Free" philosophy. Instead of decoding contract logic, ArbiNet analyzes the resulting flow of ERC-20 tokens, which follows a universal standard across the Ethereum ecosystem.

The ArbiNet workflow: from transaction exploration to GNN training.

Graph Representation and Features

Transactions are modeled as directed graphs where nodes represent blockchain addresses and edges represent token transfers. The model extracts 14 key features per node, categorized as follows:

  • Profits: Counts of tokens with positive, negative, or zero net change.
  • Tokens: Diversity of distinct token types involved in the transaction.
  • Addresses: Classification of addresses (e.g., null addresses for burning, block builders, or smart contracts).
  • Transfers: Raw volume of incoming and outgoing value transfers.

Model Architecture

The authors evaluated several GNN architectures, including Graph Convolutional Networks (GCN) and Graph Attention Networks (GAT), but found GraphSAGE to be the most effective. Its inductive nature and ability to process edge directions allow it to capture the complex "flow" of value inherent in modern MEV strategies.

Dataset and Benchmarking

The study utilized an extensive MEV dataset, manually identifying 47 events and 18 function calls across various DeFi platforms to establish "ground truth." Analyzing Ethereum blocks up to 15.6M, the researchers identified 20.6% more arbitrage transactions than previous benchmarks. Notably, they categorized five distinct arbitrage types, including "Burn & Mint" and "NFT Arbitrage," which often bypass traditional cycle-detection heuristics that look for closed loops.

Results and Performance

ArbiNet demonstrated exceptional performance, achieving an F1 score of 0.9814. In comparative tests against industry-standard Flashbots heuristics, ArbiNet proved significantly more robust. While Flashbots maintained high precision, its recall was only 0.47, indicating that it missed over half of the actual arbitrage transactions identified by ArbiNet. Additionally, a specialized sandwich detection algorithm achieved an F1 score of 0.9883, confirming that these attacks leave predictable "fingerprints" in transfer data even without ABI access.

Conclusion and Future Work

ArbiNet represents a significant shift toward protocol-agnostic MEV detection. However, challenges remain. As deep learning detection becomes standard, MEV searchers may employ adversarial obfuscation techniques, such as injecting dummy transfers to confuse graph structures. Future research will focus on improving model explainability and extending detection to less frequent but impactful MEV types like liquidations.

Summary updated

BibTeX
@article{park2024unraveling,
  author = {Seongwan Park and Woojin Jeong and Yunyoung Lee and Bumho Son and Huisu Jang and Jaewook Lee},
  title = {{Unraveling the MEV enigma: ABI-free detection model using Graph Neural Networks}},
  journal = {Future Generation Computer Systems},
  year = {2024},
  doi = {10.1016/j.future.2023.11.014},
}
Figure