Guided Cuckoo Filter: Full-Pipeline Insertion Optimization
Min Liu
Abstract
Cuckoo filters are widely deployed as space-efficient alternatives to Bloom filters, supporting fast lookups, insertions, and deletions. However, their insertion cost grows steeply at high load factors because the standard insertion procedure is entirely unguided: it places each fingerprint into whichever candidate bucket happens to be tried first, and when both candidates are full, it displaces a random victim in a random walk. These blind random choices occur at two distinct stages of the insertion pipeline, the initial placement decision and the eviction victim selection, yet each stage can be independently replaced with a guided, informed decision. We propose the Guided Cuckoo Filter, which optimizes the entire insertion pipeline by steering both stages. At the placement stage, the filter compares the occupancy of both candidate buckets and inserts into the less loaded one, applying the power-of-two-choice principle to reduce how often eviction chains are triggered. At the eviction stage, the filter preferentially displaces the most recently inserted element, whose alternate bucket carries latent randomness that shortens the resulting chain. Because these two guided decisions target orthogonal bottlenecks, eviction frequency and eviction chain length, their benefits compose multiplicatively. Experiments on cuckoo filters with 222 slots confirm that the fully guided insertion reduces per-insertion kicks by up to 3.1× at 96\% load and cumulative total kicks by 63\% at the practical capacity ceiling of 95\% load, with negligible computational overhead.
Create a lesson
Related papers
Bayesian Optimal Stopping: Invincible Prophets and Achievable Philosophers
Shared title terminology · Alireza AmaniHamedani, Ali Aouad, Senem Işık et al.
Planning Width Is Hard to Approximate Even Given the Unique Optimal Plan
Shared title terminology · Viet Bac Nguyen
ObliGraph: Graph Pattern Query Processing with Full and Differential Obliviousness
Shared title terminology · Lyu Xu, Xinyi Zhang, Qichen Wang
Optimal Robust Community Detection
Shared title terminology · Samuel B. Hopkins, Yiding Hua, Sidhanth Mohanty et al.
Approximation Algorithms for Product Query Optimization
Shared title terminology · Macéo Ottavy, Avijeet Ghosh, Pascal Koiran et al.
Optimal universal sets for submodular functions
Shared title terminology · Marek Adamczyk, Richard Ueltzen, Jan Vondrak