NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Machine Learning for Blockchain Data Analysis: Progress and Opportunities

Poupak Azad, Cüneyt Gürcan Akçora, Arijit Khan

TL;DR

This paper provides the first comprehensive survey of how Machine Learning (ML) is being used to decode the massive, complex, and public data generated by blockchains. It categorizes the field into five key ML domains—Graph, Sequential, Code, Temporal, and Text—offering a roadmap for researchers to tackle challenges like financial crime detection, smart contract security, and market prediction.

What Problem Does This Paper Address?

Blockchain technology has moved from the fringes to the mainstream, generating a "Big Data" explosion that is uniquely challenging. Unlike traditional datasets, blockchain data is:

  1. Massive and Heterogeneous: It involves millions of interactions between humans, autonomous bots, and smart contracts.
  2. Pseudonymous: While public, the actors are hidden behind alphanumeric addresses, making it hard to track illicit behavior like money laundering or "Ponzi" schemes.
  3. Structurally Diverse: Data models vary wildly between the "UTXO" model (Bitcoin) and the "Account" model (Ethereum).

The authors address the lack of a unified framework for applying ML to this domain. They aim to bridge the gap between raw ledger data and actionable insights, helping researchers navigate the "black box" of blockchain transactions and the vulnerabilities of smart contracts.

Methods

The authors propose a taxonomy that organizes ML applications into five non-exclusive categories:

  • Graph ML: Using Graph Convolutional Networks (GCNs) and Graph Attention Networks (GATs) to analyze the topological structure of transaction networks. This is the primary tool for de-anonymizing entities and detecting phishing.
  • Temporal ML: Utilizing LSTMs and Recurrent Neural Networks (RNNs) to handle time-sensitive data, such as predicting cryptocurrency price volatility or detecting anomalies in real-time transaction flows.
  • Code ML: Applying NLP-like techniques to analyze smart contract source code (Solidity) or bytecode to find security vulnerabilities before they are exploited.
  • Text ML: Mining social media (Twitter/X) and developer comments to gauge market sentiment and public perception.
  • Scaling Techniques: Since blockchain graphs are too large for standard hardware, the paper highlights methods like node sampling and subgraph mapping to make deep learning computationally feasible.

Datasets

The paper identifies several pivotal datasets that have become the "ImageNet" of the blockchain world:

  • Elliptic Dataset: A large-scale labeled Bitcoin transaction graph used primarily for Anti-Money Laundering (AML) research.
  • BitcoinHeist: A dataset specifically focused on addresses linked to ransomware attacks.
  • Chartalist: A recently introduced standardized benchmark for both UTXO and account-based blockchains.
  • NFTGraph: A dataset for studying the network dynamics of Non-Fungible Tokens.
  • SmartBugs 2.0: An execution framework and dataset for detecting weaknesses in Ethereum smart contracts.

Key Insights and Ideas

  • Blockchain as an ML Catalyst: Interestingly, the authors argue that blockchain isn't just a target for ML; it's a catalyst. Because the data is public and immutable, it provides a unique, transparent playground for training robust ML models that wouldn't be possible with siloed bank data.
  • The UTXO vs. Account Divide: A major "aha" moment is the structural difference in how ML must be applied. Bitcoin (UTXO) is best modeled as a heterogeneous graph of addresses and transactions, whereas Ethereum (Account-based) acts more like a "multiplex network" where nodes are shared but edges represent different assets (Ether, tokens, or contract calls).
  • The "Train-Test Mismatch": Blockchains evolve rapidly due to new regulations or protocol upgrades. A model trained on 2022 data might fail in 2024 because the "nature" of the data has shifted—a phenomenon known as data drift that is particularly aggressive in crypto.

Key Results

While this is a survey paper, it highlights significant milestones in the field:

  • Explosive Growth: The field has seen over 1,750 publications in the ACM Digital Library since 2018.
  • Real-time Detection: New models like BlockGPT (a generative approach) can now detect anomalous transactions in real-time without relying on predefined rules, outperforming traditional heuristic-based systems.
  • Vulnerability Scanning: Hybrid models combining GNNs with expert knowledge have reached high accuracy in identifying "re-entrancy" attacks and other critical smart contract bugs.

Limitations and Future Work

The authors identify several "open frontiers" that the community has yet to solve:

  • Label Scarcity: While we have billions of transactions, we have very few "ground truth" labels for which ones are actually criminal.
  • Explainability: In financial regulation, "the AI said so" isn't enough. There is a desperate need for Explainable AI (XAI) that can tell investigators why a specific address was flagged as suspicious.
  • Cross-Chain Analysis: Most current research stays within one silo (e.g., just Bitcoin). Tracking a criminal who "hops" from Bitcoin to Monero to Ethereum remains an incredibly difficult open problem.
  • LLMs for Code: The authors suggest that Large Language Models (LLMs) are the next big step for generating secure smart contract code and automating audits.

Summary updated

BibTeX
@inproceedings{azad2025machine,
  author = {Poupak Azad and Cüneyt Gürcan Akçora and Arijit Khan},
  title = {{Machine Learning for Blockchain Data Analysis: Progress and Opportunities}},
  booktitle = {Distributed},
  year = {2025},
  doi = {10.1145/3728474},
}
Figure