arXiv:2609.01942cs.LGSep 2026

Manuscript Offprint

arXiv:2609.01942

Refining Heuristic-Based Bitcoin Address Clustering with Graph Neural Networks

Hugo Schnoering, Roman Bresson, Michalis Vazirgiannis

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Abstract

Bitcoin’s pseudonymous nature makes it challenging to analyze user-level activity, since a single user may control multiple identifiers (addresses). Existing heuristic-based methods attempt to identify addresses belonging to the same user, but they often produce flat cluster assignments with limited modularity and are prone to errors such as merging different users together. In this work, we propose a method for refining heuristic-obtained clusters by grounding our clustering on contrastive embeddings yielded by graph neural networks. Our contributions are threefold: (i) we release a publicly available dataset of Bitcoin transaction graphs containing a substantial number of clusters; (ii) we propose a methodology for learning address embeddings consistent with heuristics, and back it up with theoretical guiding intuitions; (iii) through hierarchical clustering, we enable a finer analysis of heuristic clusters and provide a quantitative criterion for flagging suspicious merges.

1 Introduction

Bitcoin (Nakamoto, 2009) is the first and most widely adopted cryptocurrency, designed as a decentralized payment system without reliance on a central authority. Its operation is enabled by a peer-to-peer network that collectively maintains a shared, immutable record of transactions (Antonopoulos, 2017a). This record, known as the blockchain, provides transparency and auditability while preserving a certain level of pseudonymity for its users; it is organized as a chronological sequence of blocks, each batching the transactions that happened during a certain time interval.

Bitcoin Address Clustering. Bitcoin transactions are pseudonymous in nature, as users are identified by random pseudonyms called addresses (Antonopoulos, 2017b). A single user can reuse an address or generate new ones at any time; it is therefore common for a user to control many different addresses. Since addresses are generated randomly, there is no direct way to associate multiple addresses with the same user. While analyzing transactions at the address level can be informative, a user-level analysis provides greater insight. The task of address clustering consists of grouping together addresses that belong to the same user (without necessarily identifying said user).

Graph Construction from Transactions. Graph-based representations are particularly well suited for visualizing and analyzing blockchain data. Two primary types of graphs are commonly employed: those where nodes represent transactions and edges represent transferred bitcoin amounts (Weber et al., 2019), and those where nodes represent users and edges represent transactions (Bellei et al., 2024; Schnoering and Vazirgiannis, 2025). In this paper, we focus on the latter, as it offers a more intuitive representation. Constructing a user-level graph from a set of transactions T\mathcal{T} typically involves the following steps (Schnoering and Vazirgiannis, 2025; Bellei et al., 2024; Meiklejohn et al., 2013; Harrigan and Fretter, 2016):

  1. extracting the addresses involved in the transactions T\mathcal{T};

  2. clustering the addresses into users using a heuristic H\mathcal{H} (or a combination thereof) applied to T\mathcal{T}, potentially augmented with external information;

  3. creating directed edges with associated features between users, derived from T\mathcal{T};

  4. generating node features by aggregating information from edges;

  5. incorporating external information (off-chain) into both node and edge features.

Hierarchical Clustering. Hierarchical clustering constructs a hierarchy of nested clusters over a set of points VV endowed with a dissimilarity function dd (Heller and Ghahramani, 2005). In the agglomerative variant, each node initially forms its own cluster. At each step, two clusters A,B⊂VA, B \subset V are merged according to a linkage rule based on dd. After the final step, all nodes are merged into a single cluster. This hierarchy is naturally represented by a rooted binary tree, or dendrogram, where leaves correspond to individual nodes, internal nodes represent successive merges, and node height indicates the merge distance. An example of a dendrogram is illustrated in Figure 1.

Graph Neural Networks (GNNs). GNNs extend neural architectures to graph-structured data by propagating and transforming node features along edges. At each layer, a node updates its representation by aggregating information from its neighbors, allowing the model to capture both local connectivity and node attributes. By stacking multiple layers, GNNs learn embeddings that encode multi-hop structural context and can be used for tasks such as node classification, link prediction, and graph-level inference (Kipf, 2016; Hamilton et al., 2017; Veličković et al., 2017).

Contributions. The main contributions of this paper are threefold:

  1. We publicly release a dataset of large-scale Bitcoin transaction graphs with a substantial number of clusters, enabling the training and evaluation of clustering algorithms at scale (Schnoering and Vazirgiannis, 2026).

  2. We propose a methodology for learning address embeddings consistent with traditional blockchain heuristics, supported by theoretical guiding intuitions and empirical analyses.

  3. We show how these learned representations can refine heuristic-based clustering by flagging potential cluster collapses, proposing candidate splits, and providing a hierarchical clustering that improves intelligibility and visualization.