Mitigating False Positives in Filters: To Adapt or to Cache?
Open Access
- 27 March 2026
- journal article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Database Systems
- Vol. 51 (3) , 1-32
Abstract
Recent work has investigated adaptive filters, which are filters that change their internal representation in response to queries that yield false positives. These include: (1) strongly adaptive filters, which guarantee a false-positive probability of at most ɛ for any query regardless of the history of prior queries, i.e., against adaptive adversaries, (2) support-optimal filters, which guarantee an average false-positive probability of at most ɛ over sufficiently large query sequences, when the adversary is oblivious, (3) other adaptive filters that change their representation and empirically perform better, but do not come with any specific provable guarantees beyond static filters. In this article, we investigate the performance advantages that strongly adaptive filters offer on (non-adversarial) skewed query distributions, which are common in database applications. In our theoretical and experimental results, we model query distribution skewness with the Zipfian distribution with parameter z . We consider two strongly adaptive filters: the broom filter and the telescoping adaptive filter (TAF). We also consider two adaptive (but not strongly adaptive) filters: the adaptive cuckoo filter (ACF), and a non-adaptive rank-and-select quotient filter augmented with a cache of recent false positives, which we call the cache-augmented filter (CAF). We prove upper bounds on the false-positive rates of the broom filter, the TAF, and the CAF as a function of the Zipfian parameter z as the length of the query sequence tends to infinity. We provide an implementation of the broom filter, based on the (non-adaptive) rank-and-select quotient filter. We validate the above bounds experimentally on synthetic Zipfian query sequences on the broom filter, the TAF, and the CAF. Finally, we measure the observed false-positive rate of the broom filter, the TAF, the CAF, and the ACF on highly skewed real-world network trace data. We find that all adaptive filters achieved 1-2 orders of magnitude lower false-positive rates than non-adaptive filters. We further find that the broom filter and the TAF outperform the CAF only when the ratio of distinct negative queries to positive set size is high; otherwise, the CAF and the strongly adaptive filters yield similar false-positive rates.Keywords
Funding Information
- NSF (CCF-1725543, CSR-1763680, CCF-1716252, CCF-1617618, CNS-1938709, CCF-1715777, and AitF-1637458)
- NSF (CCF-2247577 and CCF-2106827)
This publication has 50 references indexed in Scilit:
- Support Optimality and Adaptive Cuckoo Filters2021
- PassDB: A password database with strict privacy protocol using 3D Bloom filterInformation Sciences, 2020
- The Effect of Zipfian Frequency Variations on Category Formation in Adult Artificial Language LearningLanguage Learning and Development, 2017
- Improving Bloom Filter Performance on Sequence Data Using k -mer Bloom FiltersJournal of Computational Biology, 2017
- Bloom filter applications in network security: A state-of-the-art surveyComputer Networks, 2013
- Zipfian frequency distributions facilitate word segmentation in contextCognition, 2013
- Cardinality estimation and dynamic length adaptation for Bloom filtersDistributed and Parallel Databases, 2010
- Traffic analysis of a Web proxy caching hierarchyIEEE Network, 2000
- The log-structured merge-tree (LSM-tree)Acta Informatica, 1996
- A Mathematical Theory of CommunicationBell System Technical Journal, 1948