Saved in:
Bibliographic Details
Main Authors: Attar, Hamid, Lunardon, Luigi, Pagani, Alessio
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2506.01614
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913870712406016
author Attar, Hamid
Lunardon, Luigi
Pagani, Alessio
author_facet Attar, Hamid
Lunardon, Luigi
Pagani, Alessio
contents This paper introduces a Machine Learning (ML) approach for scalability of UTXO-based blockchains, such as Bitcoin. Prior approaches to UTXO set sharding struggle with distributing UTXOs effectively across validators, creating substantial communication overhead due to child-parent transaction dependencies. This overhead, which arises from the need to locate parent UTXOs, significantly hampers transaction processing speeds. Our solution uses ML to optimize not only UTXO set sharding but also the routing of incoming transactions, ensuring that transactions are directed to shards containing their parent UTXOs. At the heart of our approach is a framework that combines contrastive and unsupervised learning to create an embedding space for transaction outputs. This embedding allows the model to group transaction outputs based on spending relationships, making it possible to route transactions efficiently to the correct validation microservices. Trained on historical transaction data with triplet loss and online semi-hard negative mining, the model embeds parent-child spending patterns directly into its parameters, thus eliminating the need for costly, real-time parent transaction lookups. This significantly reduces cross-shard communication overhead, boosting throughput and scalability.
format Preprint
id arxiv_https___arxiv_org_abs_2506_01614
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Contrastive Learning for Efficient Transaction Validation in UTXO-based Blockchains
Attar, Hamid
Lunardon, Luigi
Pagani, Alessio
Machine Learning
Artificial Intelligence
This paper introduces a Machine Learning (ML) approach for scalability of UTXO-based blockchains, such as Bitcoin. Prior approaches to UTXO set sharding struggle with distributing UTXOs effectively across validators, creating substantial communication overhead due to child-parent transaction dependencies. This overhead, which arises from the need to locate parent UTXOs, significantly hampers transaction processing speeds. Our solution uses ML to optimize not only UTXO set sharding but also the routing of incoming transactions, ensuring that transactions are directed to shards containing their parent UTXOs. At the heart of our approach is a framework that combines contrastive and unsupervised learning to create an embedding space for transaction outputs. This embedding allows the model to group transaction outputs based on spending relationships, making it possible to route transactions efficiently to the correct validation microservices. Trained on historical transaction data with triplet loss and online semi-hard negative mining, the model embeds parent-child spending patterns directly into its parameters, thus eliminating the need for costly, real-time parent transaction lookups. This significantly reduces cross-shard communication overhead, boosting throughput and scalability.
title Contrastive Learning for Efficient Transaction Validation in UTXO-based Blockchains
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2506.01614