Resizable Retrieval

William Kuszmaul, Aaron Putterman, Tingqiang Xu, Hangrui Zhou, Renfei ZhouarXiv 2026

TL;DR

This paper resolves an 18-year-old open problem by introducing the first resizable dynamic retrieval data structure. Unlike previous solutions that require a fixed maximum capacity estimate, this new structure automatically scales its memory footprint based on the current number of stored elements while maintaining optimal constant-time $O(1)$ operations.

What Problem Does This Paper Address?

A retrieval data structure stores a function $f(x)$ that maps a set of keys $K$ from a massive universe $U$ to small $v$-bit values. They are incredibly space-efficient because, unlike standard dictionaries, they don't actually store the keys themselves—they only guarantee the correct value is returned if the queried key is actually in $K$.

In 2006, a seminal paper showed how to make these structures dynamic (supporting insertions and deletions) in constant time, but it required knowing a strict upper bound $N$ on the number of elements ahead of time to allocate space. The open question ever since has been: Can we create a resizable retrieval data structure where the space scales dynamically with the current number of elements $n$?

This is uniquely difficult for retrieval structures. If you shrink a traditional hash table to save space, elements collide, and you simply re-hash them using their full keys. But a retrieval data structure doesn't keep the keys. If you shrink it and cause new collisions, you have no way to re-hash them because the original keys are gone forever.

Methods

The authors overcome this "information loss" dilemma using a clever three-tiered architectural framework built on top of a bit-string Trie:

  1. The Frontyard: Stores keys using a standard fingerprint length ($\ell$ bits) along with a few extra "future fingerprint" bits. These future bits allow the structure to gracefully handle expansions if the dataset grows.
  2. The Midyard (The Core Innovation): When the data structure shrinks, fingerprints are truncated, which inevitably introduces new collisions. Since the full keys are missing, the authors route these colliding elements to the "Midyard," which preserves extra-long fingerprints to safely isolate them without needing the original keys.
  3. The Backyard: A small overflow stash where keys that completely violate structural invariants are stored explicitly.

To make this architecture run in constant time $O(1)$, the authors map queries to a combination of hash tables and static predecessor/successor data structures. They utilize Fusion Trees for sparse data blocks and succinct rank/select structures for dense blocks. Finally, they de-amortize the expensive table-rebuilding process by splitting the data structure into $P$ independent buckets and rebuilding them one-by-one in the background, turning amortized bounds into worst-case guarantees.

Datasets

This is a purely theoretical computer science paper focused on algorithmic design and complexity analysis. No empirical datasets or benchmarks were used. The validity and efficiency of the data structure are proven entirely through rigorous mathematical and probabilistic proofs under the word RAM model.

Key Insights and Ideas

  • The Midyard Workaround: The "aha moment" of the paper is realizing that while you can't recover a full key after it's deleted or compressed, you can proactively save a longer fingerprint before a compression step introduces ambiguity. The Midyard acts as a safe harbor for these variable-length fragments.
  • The Cost of Speed: The authors prove a new space-time trade-off lower bound. They demonstrate that the $n \log^{(k)} n$ term in their space complexity is an unavoidable "tax" if you want true $O(1)$ operational time. If you tolerate slower operations, that extra space can be eliminated.
  • Memory Allocation Synergy: Because this structure maps keys to variable-sized values dynamically, it can double as a highly space-efficient memory allocator for small objects, bypassing the pointer overheads that plague traditional allocators.

Key Results

  • Space Complexity: At any moment storing $n$ keys, the structure occupies $O(n \log \log(U/n) + n \log^{(k)} n) + nv + U^\epsilon$ bits of space. This matches the information-theoretic lower bounds proven in the paper.
  • Time Complexity: Supports insertions, deletions, and lookup queries in true $O(1)$ worst-case time with high probability.
  • Filter Corollary: As a byproduct, the authors achieved a new state-of-the-art bound for resizable Bloom-style filters, reducing space to $n \log \epsilon^{-1} + O(n \log \log n)$ bits based on the current size $n$.

Limitations and Future Work

  • Size Constraints: The data structure requires the current number of elements $n$ to be at least polylogarithmic relative to the universe size $U$ ($n \ge \text{polylog}(U)$) to ensure that probabilistic concentration bounds hold during background rebuilding.
  • Algorithmic Complexity: Managing variable-length fingerprints within the Midyard collection of Fusion Trees is highly complex. The authors note that future work could explore alternative indexing techniques to simplify the Midyard's implementation.

Summary updated

BibTeX
@misc{kuszmaul2026resizable,
  author = {William Kuszmaul and Aaron Putterman and Tingqiang Xu and Hangrui Zhou and Renfei Zhou},
  title = {{Resizable Retrieval}},
  year = {2026},
  eprint = {2606.15944},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.15944},
}
Figure