COLE: A Column-based Learned Storage for Blockchain Systems

Ce Zhang, Cheng Xu, Haibo Hu, Jianliang Xu · DOI

Abstract

Blockchain networks face a critical "state explosion" challenge, where the storage requirements for full nodes grow exponentially, hindering decentralization. COLE (COlumn-based LEarned storage) is a novel storage engine designed to mitigate this by replacing pointer-heavy Merkle Patricia Tries (MPT) with a column-oriented design and mathematical learned indexes. Experimental results demonstrate that COLE can reduce storage requirements by up to 94% while simultaneously increasing transaction throughput by up to 5.4x.

Introduction: The State Explosion Crisis

To maintain network integrity, blockchain full nodes must store the entire history of the ledger. As of late 2023, the Ethereum blockchain requires approximately 16TB of storage, with an annual growth rate of 4TB. The primary driver of this growth is the Merkle Patricia Trie (MPT), the standard data structure for indexing state.

Redundancy in Merkle Patricia Tries (MPT) during state updates.

The MPT's design necessitates persisting every version of an index node whenever data is updated to support provenance queries (e.g., checking a balance from 1,000 blocks ago). This leads to massive structural redundancy; research shows that actual ledger data often accounts for less than 3% of total storage, with the rest consumed by index overhead. While learned indexes offer space-saving potential, naive implementations in blockchain contexts often fail because the models themselves become too large to persist frequently.

The COLE Architecture

COLE reimagines blockchain storage through three fundamental shifts: column-based design, learned indexing, and deterministic asynchronous merging.

The COLE storage architecture featuring column-based layout and learned indexing.

1. Column-based Design

Instead of a global tree, COLE treats each ledger state as a "column." Historical versions of a specific address are stored contiguously. This allows a single index for the latest block to point to historical data efficiently without duplicating entire paths for every update.

2. Learned Indexing

COLE utilizes $\epsilon$-Bounded Piecewise Linear Models. Rather than traversing deep pointer-based trees, the system uses mathematical functions (slope and intercept) to predict the approximate position of a key in a sorted file. This replaces megabytes of tree nodes with a few bytes of model parameters.

3. LSM-tree with Asynchronous Merging

To handle high-velocity writes, COLE adopts a Log-Structured Merge-tree (LSM-tree) approach. To prevent "write stalls" common in background merges, COLE introduces a checkpoint-based asynchronous merge strategy. This ensures all nodes, regardless of hardware, remain synchronized on the cryptographic "root hash" by using specific start and commit checkpoints during the merge process.

Evaluation and Results

COLE was evaluated using SmallBank (write-intensive), KVStore (various R/W ratios), and real-world Ethereum Virtual Machine (EVM) workloads.

  • Storage Efficiency: COLE achieved a 93-94% reduction in storage size compared to standard MPT implementations.
  • Performance: Throughput increased by 1.4x to 5.4x due to reduced disk I/O for index traversal.
  • Query Scalability: Provenance query costs (CPU and proof size) grew sublinearly with query range, a significant improvement over the linear growth seen in MPT.
  • Latency Stability: The asynchronous merge strategy reduced tail latency by 1-2 orders of magnitude.

Conclusion and Future Work

COLE demonstrates that combining column-oriented storage with learned indexing can make blockchain full-node maintenance significantly more sustainable. Current limitations include high computational costs for "rewinding" state in blockchains with frequent forks. Future research will focus on optimizing forking support and integrating advanced compression techniques for contiguous historical values.

Summary updated

BibTeX
@inproceedings{zhang2024cole,
  author = {Ce Zhang and Cheng Xu and Haibo Hu and Jianliang Xu},
  title = {{COLE: A Column-based Learned Storage for Blockchain Systems}},
  booktitle = {FAST},
  year = {2024},
  url = {https://openreview.net/forum?id=6mGxEH6SyO},
}
Figure