arXiv:2608.25206cs.CRAug 2026

Manuscript Offprint

arXiv:2608.25206

Authenticated Data Structures for Dynamic Workloads

Ziheng Shangguan, Aviv Yaish, Dahlia Malkhi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We introduce the Huffman-Merkle Tree (HMT), an authenticated data structure (ADS) for dynamic workloads where items may differ in access frequencies, and access frequencies can change over time. An ADS allows proving item membership against a short commitment to a large mutable state, with applications including verifiable storage, Internet transparency services, and blockchains. Optimizing ADS performance under continuously changing access frequencies has not been fully addressed before, neither in theory nor in practice.

HMT addresses dynamically changing access skew through two complementary mechanisms. The first is a Huffman-coding-based Merkle-tree layout, with a novel extension to support evolving access frequencies. The second is an elastic tiering regime that partitions items across separate trees, such as hot and cold tiers, with adaptive migration between them. The key insight in the combined approach is to place frequently accessed items closer to the root, while assigning less frequently accessed items to progressively larger and deeper trees. This reduces the overall frequency-weighted access cost. Additionally, our scheme is designed to scale to gigabytes of data spanning millions of items. To handle dynamism efficiently, layout updates are applied in batches, access frequencies are tracked using a count-min sketch, and the system employs a tier-promotion cache while exploring multiple tier-migration policies.

We implement HMT and compare it on real-world data with Ethereum’s Merkle Patricia Trie (MPT) ADS and its proposed replacement, the Unified Binary Tree (UBT). Our evaluation considers two metrics: the amount of hashing per ADS update and access-weighted membership-proof size. The latter metric captures both each item’s access cost and frequency. We find that the best HMT policy uses about 2.4×2.4\times and 0.34×0.34\times less average hash operations than MPT and UBT respectively, together with 0.18×0.18\times and 0.55×0.55\times shorter proofs.

Keywords: Merkle trees, state commitments, blockchains.

1 Introduction

Authenticated Data Structures (ADSs) allow committing to a large state using a short digest and proving against the digest that specific elements are included. They are useful for memory checking [46], remote storage [38, 32], internet certificates [8], and blockchains [30].

The Merkle Tree (MT) is a widely used ADS where elements appear as leaves, each internal node stores a hash of the concatenation of its children, and the root hash serves as a

Figure

(a)

Figure

(b)

Figure 1: Panel (a) depicts a Merkle Tree (MT) and (b) shows a Huffman Merkle Hash Tree (HuffMHT), both with 4 items with monotonically decreasing access frequencies, i.e., mim_i is accessed more frequently than mi+1m_{i+1}.

compact commitment to the entire structure. Item inclusion is proven by showing the sibling hashes along the path from the element to the root. So, inclusion proofs in a balanced binary MT with N leaves contain log⁡N\log N hash values, incurring logarithmic cost regardless of element access frequencies. This shortcoming extends to other notable ADSs, e.g., Merkle-Patricia Tries (MPTs) [47], which also suffer costs that are independent of access frequencies.

Real-world workloads are typically skewed, with some elements accessed more frequently than others [20]. Our focus is therefore the average-case performance of ADSs under such workloads, where each element's proof and update cost is weighted by its access frequency.

When all access frequencies are known in advance, this optimization problem is well understood: the optimal static tree can be described by a Huffman code [34]. However, the dynamic setting is more challenging. Prior work has addressed changing access distributions by rebuilding the entire data structure whenever the distribution changes [33]. However, this incurs overhead which must be accounted for in the same concrete units as proof generation and verification: the number of hash-compression invocations. To our knowledge, the practical challenge of devising an ADS which efficiently adapts to evolving access frequencies while explicitly accounting for restructuring cost has not been addressed before.

Given these gaps, we ask:

Can we design efficient authenticated data structures for applications where elements may be updated and access frequencies can change?

References (48)