TL;DR
AutoCSF provides a mathematically principled framework for indexing highly skewed key-value datasets by optimally combining Compressed Static Functions (CSFs) with approximate set membership pre-filters. By deriving tight theoretical bounds on space usage, it eliminates brittle heuristics, supports modern filter types (like XOR and binary fuse filters), and achieves Pareto-optimal memory-latency tradeoffs—compressing massive genomics datasets to a fraction of a bit per key with nanosecond-scale lookups.
What Problem Does This Paper Address?
In data-intensive fields like computational genomics, applications frequently need to store and query massive, immutable key-value datasets. A classic example is a $k$-mer count table, which maps DNA substrings to their frequency of occurrence. These datasets are often highly skewed: a single "dominating" value (e.g., a count of 1) can account for over 90% of all entries.
To store these efficiently in memory, researchers use Succinct Retrieval Data Structures like Compressed Static Functions (CSFs). CSFs compress data down to its empirical entropy, but they suffer from a hard architectural floor: they must use at least 1 bit per key. To break this barrier, prior work introduced filter-augmented CSFs (such as Bloom-enhanced CSFs), which push minority keys into a pre-filter and completely omit the dominating value from the main index.
However, existing implementations rely on ad-hoc, empirical heuristics to decide when to use a filter and how to tune its false positive rate ($\epsilon$). If these heuristics make a wrong guess, they can actively degrade performance, adding significant memory overhead instead of saving space.
Methods
The authors introduce AutoCSF, a framework that replaces empirical guesswork with rigorous information-theoretic bounds. Instead of trying to model the absolute size of a CSF and a filter independently—which is notoriously difficult due to how random false positives alter downstream Huffman encodings—AutoCSF models the difference in space usage between a standard CSF and a filter-augmented CSF.
Using the mathematical optimality of Huffman codes and the Kraft-McMillan inequality, the authors prove clean upper and lower bounds on this space delta. AutoCSF uses the lower bound as a provably safe decision criterion: if the maximized lower bound is negative, the algorithm safely defaults to a standard CSF. If it's positive, it selects the optimal discrete filter parameters (e.g., fingerprint size) that maximize space savings. Crucially, AutoCSF is filter-agnostic; it seamlessly supports classic Bloom filters as well as modern, highly efficient structures like XOR filters and binary fuse filters.
Datasets
The authors evaluated AutoCSF using both synthetic and real-world workloads:
- Synthetic Workloads: 100,000 keys where the majority value fraction ($\alpha$) was swept from 0.50 to 0.99. The remaining minority keys were drawn from three distinct distributions to test different entropy levels: Uniform-100 (100 equally likely symbols), Zipfian (power-law distribution), and Unique (every minority key has a distinct value, representing the worst-case scenario).
- Genomics Workloads: Three real-world $k$-mer count datasets ($k=15$) exhibiting diverse scales and skews:
- E. coli (Sakai strain): 5.3M keys, extreme skew ($\alpha = 0.97$), 42 distinct values.
- SRR10211353: 9.8M keys, low skew ($\alpha = 0.20$), 228 distinct values.
- C. elegans: 69.7M keys, intermediate skew ($\alpha = 0.82$), 760 distinct values.
Key Insights and Ideas
- Sidestepping Complexity via Deltas: Bounding the absolute size of a filter-augmented CSF is unwieldy because filter false positives mix with regular keys, distorting the value frequency distribution. Bounding the difference directly via Huffman code optimality bypasses this complexity entirely.
- The Danger of Heuristics: The paper demonstrates that older heuristic models (like BCSF) fail at low-to-moderate skews, recommending filter configurations that add up to 1 bit per key of overhead compared to a plain CSF. AutoCSF's lower bound acts as a reliable safety net that never recommends a space-inflating filter.
- A Reality Check for "Learned" Indexes: Recent trends favor using neural networks to predict value distributions (Learned CSFs) to beat entropy barriers. However, AutoCSF reveals a stark tradeoff: while Learned CSFs compress well in specific high-entropy regimes, they suffer from 2 to 4 orders of magnitude higher query latency and require minutes to hours of training time. AutoCSF achieves comparable or better space savings with zero training overhead and nanosecond lookups.
Key Results
- Safety and Accuracy: Across all evaluations, empirical space savings consistently fell within AutoCSF's predicted upper and lower bounds. The theory-guided parameter selection matched or came within a single discrete step of the absolute empirical optimum.
- Heuristic Avoidance: As illustrated in Figure 3, AutoCSF successfully avoids the space penalties introduced by older heuristic models at lower values of $\alpha$.
- Genomics Performance: On the highly skewed E. coli dataset, AutoCSF compressed the index down to just 0.31 bits per key—37× smaller than a standard Minimal Perfect Hash (MPH) table—while maintaining a lightning-fast query latency of 92 ns.
- Scalability: On the 70-million-key C. elegans dataset, AutoCSF built the index in just 6.6 seconds and used 33% less memory (1.26 bits/key) than Learned CSF, while executing queries 63× faster.
- Pareto Dominance: As shown in Figure 4, AutoCSF consistently occupies the coveted bottom-left corner (low memory, low latency) of the Pareto frontier across both synthetic and real-world genomic workloads.
Limitations and Future Work
The primary limitation identified is that the derived upper bound on space savings becomes somewhat loose at moderate skews, particularly for the "Unique" minority distribution (showing a gap of up to ~1.5 bits/key). This looseness doesn't affect AutoCSF's practical decisions—which rely entirely on the tight lower bound—but tightening this upper bound remains an open theoretical challenge. The authors suggest that future work could achieve this by incorporating more fine-grained assumptions about the minority value distribution.
Summary updated