A fingerprint filter for a set of keys stores an -bit fingerprint of each key in an array of cells and answers a query for by comparing with values read from a few cells chosen by hashing . A key in always matches. An absent key matches with a probability close to , where is the number of independent comparisons made, so the fingerprint length sets the false-positive rate , and the space is bits, plus any metadata per cell, times the ratio of cells to keys. Dynamic filters store each fingerprint in one cell of a hash table and support insertion and deletion: cuckoo filters (Fan et al. 2014) and quotient filters (Bender et al. 2012). Static filters are built once from the whole of by solving a linear system over GF(2) in which the equation for has right-hand side : xor filters (Graf and Lemire 2020), binary fuse filters (Graf and Lemire 2022) and ribbon filters (Dillinger and Walzer 2021). A static filter accepts no insertion after it is built.

Any filter for sets of keys from a large universe needs at least bits, and a Bloom filter at its best number of hash functions uses times that. A fingerprint filter with load , the number of keys per cell, uses about bits per key for a small constant , so its overhead over the bound is a factor and an additive term. The static filters reach between 0.81 and 0.94 with . The dynamic filters operate at between 0.75 and 0.95 with close to 3.

On the series benchmark, each filter was built from the 5,843,219 keys of the first hour (the cuckoo and quotient tables also from more keys, enough to fill them to their design loads) and queried with 52,974,808 keys that first appear later in the day. Every filter’s false-positive rate is within 1% of its formula, or within two standard errors where a run counts fewer than 1,000 false positives. At a ribbon filter of width 128 uses 8.56 bits per key, 1.07 times the bound, against 9.02 for a binary fuse filter, 9.84 for an xor filter and 11.5 for a Bloom filter. A cuckoo filter with 4-slot buckets at 95% load uses fewer bits per key than a Bloom filter at rates below about 0.4% (12.63 against 13.09 bits at 0.185%) and more above it. A quotient filter at 90% load reads 28 slots per absent query on average and its queries cost 248 to 337 ns, against 15 to 18 ns for the cuckoo, xor and binary fuse filters.

The space bound

Let be a universe much larger than . A structure that answers membership queries for every -key subset of with no false negatives and false-positive rate must use at least bits in the worst case (Carter et al. 1978), and static structures exist that use bits (Dietzfelbinger and Pagh 2008). Insertion raises the bound. Lovett and Porat (2010) showed that a dynamic structure, which receives the keys one at a time and must answer queries in between, needs at least bits for a constant that depends only on . If is not known when the structure is created, Pagh, Segev and Wieder (2013) showed that a further bits are needed.

The rate of a fingerprint filter follows from one assumption: the fingerprint of an absent key is uniform on its values and independent of the values it is compared with. If a query compares with stored fingerprints, , so . With metadata bits per cell and load ,

FilterComparisons Metadata Load Bits per key
Cuckoo, buckets of slots00.95 at
Quotient30.75 to 0.9
Xor10
Binary fuse, 3 positions10
Ribbon, overhead 10

For the static filters a query computes one value from several cells and compares it with once, so and exactly when the value is uniform. A quotient filter stores the low bits of a -bit hash, and its rate is that of a comparison with all stored hashes, which gives the in the table below. The static filters have a multiplicative overhead and no additive one, and the dynamic filters have both.

Cuckoo filters

A cuckoo filter is a table of buckets, each holding slots of bits, with 0 reserved for an empty slot. Key has a nonzero fingerprint and two candidate buckets,

for a power of two and hash functions , . Since , either bucket together with the fingerprint determines the other, so a fingerprint can be moved between its two buckets without the key, which the filter does not store. Fan et al. call this partial-key cuckoo hashing. Insertion stores in a free slot of or if there is one. Otherwise it removes a fingerprint from a randomly chosen slot of one of the two buckets, stores there, and inserts the removed fingerprint into its alternate bucket in the same way, for at most 500 relocations (MaxNumKicks in the paper); if the walk ends without a free slot, the insertion fails and the table is full. A query reports as possibly present if either bucket holds , and deletion removes one copy of from either bucket. The relocation walk is that of cuckoo hashing (Pagh and Rodler 2004), with slots per bucket.

A query compares with the slots of two buckets, of which about are occupied at load . With fingerprints uniform on the nonzero values the rate is , and the space is bits per key. For and Fan et al. give bits per key. Their semi-sorting variant sorts the four fingerprints of a bucket and stores the multiset of their four high-order 4-bit groups as a 12-bit index into a table of the 3,876 possible multisets, saving 1 bit per slot; the space becomes . At the plain table uses fewer bits per key than a Bloom filter at its best at rates of 0.37% and below (11.52 against 11.64 bits at , where ), and the semi-sorted table below about 3% (7.33 bits for both at ), the threshold that Fan et al. report.

Deleting is safe only for a key that was inserted, since an absent key that matches a stored fingerprint would delete another key’s fingerprint and create a false negative. All copies of one key go to the same two buckets, so a key inserted more than times exhausts them and the insertion fails.

Measured rates. The table has buckets of 4 slots ( slots). Each line is the mean of 3 builds with independent hash functions, and the rate is false positives per million of the 52,974,808 absent keys.

Keys, loadBits per keyExpectedMeasuredBloom, same rate
5,843,219, 0.697811.4821,65821,6867.99
5,843,219, 0.6971622.9785.085.219.5
7,969,177, 0.95088.4229,42129,4547.34
7,969,177, 0.9501212.631,8541,85413.09
7,969,177, 0.9501616.84116.0116.418.85

The last column is the space a Bloom filter needs for the measured rate at its best integer , from the formula that the Bloom filter measurements confirm. At 95% load and 8-bit fingerprints the cuckoo filter uses 15% more space than a Bloom filter with the same rate, at 12 bits 3.5% less and at 16 bits 11% less. At 70% load it uses more than a Bloom filter at every fingerprint length measured.

How full the table gets

A cuckoo table is full when the walk fails, and the load at which that happens depends on , on the table size and on . Two limits bound it. For two choices and buckets of slots, a placement of all keys exists with probability tending to 1 as if the load is below a threshold and with probability tending to 0 above it; , and (Walzer 2021, Table 1). A walk of at most 500 relocations finds a placement only when one is reachable within that many steps, so the load at the first failure lies below the threshold. Each line below is the mean load at the first failed insertion over 10 builds with 16-bit fingerprints, inserting the benchmark keys in order of first appearance.

Slots
4,0960.5320.8790.9700.994
65,5360.5020.8760.9650.992
1,048,5760.5020.8670.9620.988
8,388,6080.4990.8640.9590.987
Threshold 0.50.89700.9804

The load at the first failure falls as the table grows, by 1.5 points from 4,096 to 8.4 million slots for and by 1.1 points for . Fan et al. report 50%, 84%, 95% and 98% for . With on slots the 10 fills averaged 1.09 to 1.30 relocations per insertion up to the first failure.

Partial-key cuckoo hashing adds a dependence on : the alternate bucket of a fingerprint in bucket is one of at most buckets, so the keys of a bucket can move only within a neighborhood whose size does not grow with . Fan et al. show that a high load requires . With and slots, 4-bit fingerprints fail at a mean load of 0.847 (lowest 0.693, highest 0.945 of 10 builds), 5-bit fingerprints at 0.953 and 6- to 16-bit fingerprints at 0.955 to 0.959; on slots 4-bit fingerprints reach 0.949. Replacing the xor by , an involution that allows any , gave 0.957 at 16 bits and 0.885 at 4 bits on slots.

Quotient filters

A quotient filter stores a -bit hash of each key, with , by quotienting (Cleary 1984): the high bits, the quotient , select a home slot in a table of slots, and only the low bits, the remainder , are stored. The remainders of all keys with the same quotient are stored in consecutive slots, a run, sorted by remainder. Runs appear in the order of their quotients, and a run whose home slot is taken is shifted to the right, as in linear probing. A maximal sequence of occupied slots is a cluster. Bender et al. keep three bits per slot:

  • is_occupied: some stored key has this slot as its home slot.
  • is_continuation: the slot holds a remainder of the same run as the slot before it.
  • is_shifted: the remainder in the slot is not in its home slot.

A query for checks is_occupied at and, if it is set, scans left to the start of the cluster, counts the occupied home slots it passed to determine which run belongs to , scans right to the start of that run, and compares with each remainder in the run. Insertion and deletion locate the run the same way and shift the rest of the cluster by one slot.

The filter represents the multiset of -bit hashes exactly, so it errs only when an absent key’s hash equals a stored one: at load . A slot holds bits, so the space is bits per key. Because the stored remainders, read in slot order, are the stored hashes in sorted order, two filters with the same can be merged by a single sequential pass that writes a new table, and the table can be doubled by moving one bit from each remainder to the quotient. Bender et al. use merging to maintain filters on flash storage with sequential writes.

The cost of a query is the length of the scan, which grows with the length of clusters, as in linear probing. Bender et al. bound the expected cluster length by , which is 27 at , and recommend filling the table to at most 75%. The measurements below use slots and 8-bit remainders; each line is the mean of 5 builds.

LoadSlots read per absent queryShifts per insertionCluster of a stored key, mean99th percentile clusterBound
0.501.400.185.0135.7
0.601.861.117.8199.5
0.702.992.4113.53218.1
0.754.204.4919.04327.0
0.806.567.4029.16343.7
0.8511.913.450.29980.4
0.9027.728.8108.7183187.0
0.95119.292.7424.9495773.7

Shifts per insertion are averaged over the insertions that raised the load from the line above to this line (from 0 for the first line), so they give the cost of an insertion at that load. The fourth column is the mean length of the cluster that contains a randomly chosen stored remainder, which is what a query for a present key scans; the fifth is the 99th percentile of the length of clusters themselves, whose mean is shorter (5.7 slots at 0.75 and 15.2 at 0.9). The longest cluster in the 5 builds at 0.95 had 6,655 slots. The bound of Bender et al. exceeds the measured cluster of a stored key at every load, by a factor of 1.4 at 0.75 and 1.8 at 0.95. From 0.75 to 0.9 the slots read per absent query rise by a factor of 6.6 and the shifts per insertion by 6.4.

Keys, loadBits per keyExpectedMeasuredBloom, same rate
6,291,456, 0.75814.672,9252,93212.15
6,291,456, 0.751321.3391.591.619.36
7,549,747, 0.90812.223,5093,51611.76
7,549,747, 0.901317.78109.9109.818.98

These use slots, and the rates are per million absent keys, means of 3 builds. At 75% load the 3 metadata bits and the empty quarter of the table make the filter larger than a Bloom filter with the same rate for every from 5 to 16; at 90% load it is smaller for ().

Counting quotient filters. Pandey et al. (2017) replace the three bits by two bit vectors, occupieds and runends, and an 8-bit offset for each block of 64 slots, 2.125 bits per slot in all, and locate a run with rank and select operations on 64-bit words instead of a scan. They report that the structure operates up to 95% load. Variable-length counters stored among the remainders let one remainder represent many copies of a key, which makes the structure a counting filter.

Xor filters

An xor filter for is an array of cells of bits, divided into three blocks of cells, with hash functions that map each key to one cell in each block, such that

A query computes the left side for and compares it with . For , the left side is a fixed value and is uniform and independent of it, so . Graf and Lemire use , so the space is bits per key plus .

The equations are a linear system over GF(2) with one row per key and three nonzero entries per row. Graf and Lemire solve it by peeling, the method Botelho, Pagh and Ziviani (2007) used for minimal perfect hashing. View the keys as hyperedges on the cells. Repeatedly find a cell that lies in exactly one remaining key, push that key and that cell onto a stack, and remove the key. If every key is removed, pop the stack and set each key’s cell to the value that satisfies its equation: no key popped later touches the cell, because each of them was removed earlier, when the cell already had degree 1. If peeling stops with keys remaining, those keys form the 2-core of the hypergraph, the largest subhypergraph in which every cell has degree at least 2, and the build is repeated with new hash functions.

For random 3-uniform hypergraphs the 2-core is empty with probability tending to 1 if and nonempty with probability tending to 1 if (Molloy 2005), so must exceed , and the factor 1.23 leaves 0.7% of margin. The table counts successful builds, out of the number of trials shown in the first column, with equal to the factor times rounded down to a multiple of 3 and no added constant.

Keys1.201.211.221.231.241.25
1,000 (400 trials)1345101178254302
10,000 (200)0258165198200
100,000 (100)008100100100
1,000,000 (40)000404040
5,843,219 (12)000121212

From keys on, at most 8% of builds succeeded at factor 1.22 and every build succeeded at 1.23. At 1,000 keys the transition spreads from 1.18 to 1.31, and 1.23 succeeds in 45% of builds; the constant 32 raises Graf and Lemire’s factor at that size to 1.262, where about 89% of builds succeed.

At full scale, with cells, the measured rates are 3,901.7 per million at (expected ) and 15.1 at (expected 15.26), at 9.84 and 19.68 bits per key.

Binary fuse filters

A binary fuse filter replaces the three blocks by a sequence of segments of cells. Key chooses a starting segment uniformly from the first , and its three cells lie one in each of segments , and . The array is filled by peeling and assignment exactly as for an xor filter, and . Hypergraphs with this banded structure are a case of spatial coupling: the cells near the two ends of the array have fewer keys, peeling starts there, and it proceeds inward segment by segment. For 3 cells per key, Dietzfelbinger and Walzer (2019) and Walzer (2021) show that as and grow such hypergraphs peel up to a load of , the threshold for the existence of a solution of the system, against 0.818 for the unstructured hypergraph of an xor filter.

Graf and Lemire set , capped at , and the array length to times rounded up to a whole number of segments, which is 1.125 for . They report 9.0 bits per key with 8-bit fingerprints, and 8.6 for a 4-cell variant with factor 1.075. For the 5,843,219 keys of the hour, and the array has 201 segments, 6,586,368 cells or a factor of 1.127. The rates are 3,908.1 per million at and 15.3 at , at 9.02 and 18.03 bits per key.

Keys1.101.111.121.131.151.20Factor used
10,000 (200 trials)000001471.250
100,000 (100)0000961001.175
1,000,000 (40)00224040401.125
5,843,219 (12)010121212121.125

The table counts successful builds at each size factor with the segment length above. At 5.8 million keys every build succeeded from factor 1.12, 3 points above the asymptotic , and at a million keys from 1.13. Below about keys the array length changes only in steps of one segment, so several factors give the same array, and at keys about 75% of builds succeed from 1.18 to 1.22 and 98% from 1.23. Fewer and shorter segments move the peeling threshold away from , which the size formula accounts for with its larger factor at small .

Ribbon filters

A ribbon filter solves a linear system whose rows are bands. Each key has a start uniform on and a -bit coefficient vector whose first bit is 1, and its row of the -column system is placed at columns to . The filter stores an bit matrix such that

where is row of and has bits (Dillinger and Walzer 2021). A query computes the left side for . With stored column by column in -bit words, each of the bits of the left side is the parity of one AND of with contiguous bits of one column, which reads two or three 64-bit words per column for , all within a range of consecutive rows. The rate is . With the space is bits per key; Dillinger and Walzer write for the overhead, called here to keep for the false-positive rate.

Construction is Gaussian elimination in the order of the keys, which the paper calls on-the-fly banding. The solver keeps at most one stored row per column , with its leading 1 in column . A new row is placed at the column of its leading 1 if that column has no stored row. Otherwise the stored row is xored into it, together with the right-hand sides, and the result, whose leading 1 has moved right, is placed in the same way. A row that becomes 0 is linearly dependent on earlier rows, and since its right-hand side is a random fingerprint, the system then has no solution with probability ; the build is repeated with new hash functions. After all rows are placed, back substitution from the last column determines . Each step touches one band of columns, and sorting the keys by start first keeps the stored rows that a key meets in a small range of memory.

Dillinger and Walzer prove that construction succeeds with high probability if is at least about , so for a fixed width the overhead needed grows with . The measured overhead at which half of the builds succeed rises with for every width:

Keys
10,0000.15 (83%)0.04 (70%)0.015 (80%)
100,0000.20 (75%)0.07 (74%)0.02 (50%)
1,000,0000.30 (85%)0.10 (70%)0.04 (70%)
5,843,2190.35 (80%)0.12 (80%)0.05 (60%)

Each cell gives the smallest overhead tried at which at least half of the builds succeeded, with the fraction that did; trials were 200, 100, 40 and 10 builds for the four sizes. At a residual failure rate remains at large overhead: 1 of 40 builds of a million keys and 1 of 10 of 5.8 million keys failed at . The paper’s own measurements put the overhead of this standard ribbon at 14 to 20% for and 6 to 8% for at a 1% rate.

At full scale I used with and with , and all 15 builds of each succeeded on the first set of hash functions.

Width, overheadBits per keyMeasured per millionExpected
128, 0.0777.497,816.37,812.5
128, 0.0788.563,914.83,906.3
128, 0.071010.70976.1976.6
128, 0.071313.91123.2122.1
128, 0.071617.1215.215.3
64, 0.1589.203,911.23,906.3
64, 0.151618.4014.715.3

The ratio of bits per key to is 1.070 for every at and 1.15 at . A Bloom filter with the rate of the 7-bit ribbon, 0.78%, needs 10.1 bits per key.

Dillinger and Walzer also describe homogeneous ribbon, whose system is solvable for every key set, so construction never fails, at the cost of a rate slightly above that depends on the overhead. In bumped ribbon retrieval (Dillinger et al. 2022) keys whose band would overflow are removed to a second, smaller structure, and the overhead falls below 1%. RocksDB added a ribbon filter as an experimental option in version 6.15.0, released in November 2020, with a space saving of about 30% against its Bloom filter at the same rate and 3 to 4 times the construction cost (HISTORY.md).

Space against false-positive rate

All rates below were measured with the 52,974,808 absent keys, means of 3 builds. The static filters and the Bloom comparisons hold the 5,843,219 keys of the hour; the dynamic filters hold enough keys to reach the stated load in slots.

FilterBits per keyRate per millionRatio to boundBloom, same rate
Ribbon, , , 8.563,914.88.001.07011.54
Binary fuse, 9.023,908.18.001.12711.54
Ribbon, , , 9.203,911.28.001.15011.54
Xor, 9.843,901.78.001.23011.54
Quotient, , 12.223,516.28.151.49911.76
Cuckoo, , , 12.631,854.29.081.39213.09
Cuckoo, , , 16.84116.413.071.28918.85
Ribbon, , , 17.1215.216.001.07023.09
Quotient, , 17.78109.813.151.35218.98
Binary fuse, 18.0315.316.001.12723.08
Xor, 19.6815.116.011.22923.10

The static filters’ ratios to the bound are their size factors, , 1.127 and 1.230, independent of . The dynamic filters’ ratios fall as the fingerprint lengthens, since their additive terms ( bits for the cuckoo filter and for the quotient filter) are a smaller share of a longer fingerprint, and their limit as is : 1.053 at 95% load and 1.111 at 90%.

Load thresholds

0%25%50%75%100%0.600.650.700.750.800.850.900.951.00limit 0.818load: keys per slotbuilds that succeed

At load 0.80 (3,277 keys in 4,096 slots), 22 of 24 builds succeed (95% interval 74% to 98%). With 8-bit fingerprints the array costs 10.00 bits per key at this load, for a false-positive rate of 2−8 (0.39%); the lower bound for that rate is 8 bits per key.

One build in 256 slots at the same load

205 keys in 256 slots (load 0.80). Peeling assigned every key a slot that no unpeeled key touches, so the array can be solved by substitution in reverse peeling order.

Simulation in the browser on integer keys with seeded 32-bit hashes. Cuckoo filters insert keys one at a time with up to 500 evictions and fail at the first key that does not fit; xor and binary fuse filters peel the 3-uniform hypergraph of key positions; ribbon filters run on-the-fly Gaussian elimination over GF(2) and fail when a key's row is linearly dependent on earlier rows. The vertical line is the load below which a valid layout exists with probability tending to 1 as the table grows and above which it tends to 0. For cuckoo filters the line is the threshold for the existence of a placement, which a random walk limited to 500 evictions does not always find. Ribbon filters of a fixed width have no such constant, since the overhead they need grows with the number of keys.

The figure builds each layout in the browser and plots the fraction of 24 builds that succeed at each load from 0.60 to 1.00, in steps of 0.01, for tables of 256, 4,096 or 65,536 slots. A cuckoo build succeeds if every key is inserted, and the other layouts if the system is solved. The vertical line marks the asymptotic threshold where one exists: and for the cuckoo layouts, for the xor layout and for the binary fuse layout. The lower panel draws one build in 256 slots, 32 per row, and marks the cells involved in its failure: the two full buckets of the cuckoo key that did not fit, the 2-core that stopped peeling, or the band of the ribbon row that reduced to 0.

At 4,096 slots the C harness, given the same layouts and the benchmark keys, measured over 400 builds per load that the xor layout succeeds in 97% of builds at 0.80, 22% at 0.82 and none at 0.84, around . The cuckoo layouts succeed in 70% of builds at 0.88 and 1% at 0.90 with , and in 99.5% at 0.96 and 0.5% at 0.98 with . The binary fuse layout succeeds less often than the xor layout at this size (79% at 0.78 and 17% at 0.80), since 4,096 slots hold only 16 segments of 256 cells, and Graf and Lemire’s formula sizes the array for 3,277 keys at a factor of 1.30, a load of 0.77. Ribbon layouts have no sharp threshold at a fixed width: with the success rate falls from 94% at 0.86 to 22% at 0.94, and with from 98% at 0.94 to 39% at 0.98. At 65,536 slots the xor layout’s transition narrows to between 0.80 and 0.82, the binary fuse layout’s moves to about 0.85, still short of with 32 segments, and the cuckoo layout with fails by 0.88, below its threshold, as the limit of 500 relocations takes effect.

Cost of building and querying

The timings are single-threaded on one pinned core, in nanoseconds per key, medians of 3 repetitions; the range over the repetitions follows in parentheses where it exceeds 10% of the median. Each filter is built from the hour’s keys (the dynamic tables from as many keys as fill them to the stated load) and queried with 5,843,219 present keys in shuffled order and 5,843,219 absent keys. The two Bloom filters have 12 bits per key and , with the blocked layout’s bits in one 512-bit line.

FilterSizeBuildPresent queryAbsent query
Bloom, standard8.4 MiB56 (50 to 64)5945 (39 to 45)
Bloom, blocked 5128.4 MiB5050 (49 to 57)39
Cuckoo, , , 16 MiB103 (91 to 104)15 (13 to 16)16 (14 to 18)
Quotient, , 16 MiB3982 (67 to 85)49
Quotient, , 16 MiB59337 (324 to 388)248 (221 to 251)
Xor, 6.9 MiB218 (199 to 219)1816
Binary fuse, 6.3 MiB172 (154 to 175)1817
Ribbon, , 6.0 MiB341 (327 to 364)32 (29 to 35)33 (28 to 35)
Ribbon, , 6.4 MiB130 (120 to 135)4241 (36 to 46)

Every filter exceeds the 2 MiB per-core L2 cache and fits in the 260 MiB last-level cache. Queries are independent of one another, so the processor overlaps their cache misses and the figures are throughput. The cuckoo and quotient filters of the harness store each slot in 16 bits instead of packing 12 or 11, and their sizes are those of the arrays as stored.

A cuckoo query reads two buckets of 8 bytes and an xor or binary fuse query reads three bytes at independent positions, and these cost 15 to 18 ns. A quotient filter query scans its cluster, and its cost tracks the cluster lengths measured above: at 90% load an absent query reads 27.7 slots on average and costs 248 ns, and a present query, which lands in a cluster of 109 slots on average, costs 337 ns; at 75% load the two cost 49 and 82 ns. The Bloom filters of this harness evaluate a 64-bit mix per probe and branch at the first 0 bit, and their queries cost 39 to 59 ns. Lang et al. (2019) find with vectorized implementations that blocked Bloom filters outperform cuckoo filters at high lookup throughput; the timings here use scalar code for every filter and do not test that comparison.

Construction is where the static filters cost more. Peeling an xor filter costs 218 ns per key, and a binary fuse filter 172 ns; in both the peeling passes visit the cells of each key at independent positions, and in the binary fuse filter those positions lie within three adjacent segments. The ribbon filter of width 128 costs 341 ns per key, 3.3 times an insertion into the cuckoo table at 95% load (103 ns) and 6.1 times one into the standard Bloom filter (56 ns), and that of width 64 costs 130 ns. The quotient filter’s build costs 39 and 59 ns per key at the two loads because the cost is averaged over the whole fill, and most insertions are made at loads where they shift few slots; the shift counts in the cluster table give the cost of an insertion at each load.

Later designs

Several designs since 2020 address the dynamic case. The prefix filter (Even, Even and Morrison 2022) stores most keys in a table of small per-bin dictionaries, one cache line per bin, and the keys that overflow a bin in a second, smaller filter, so that most queries read one cache line. The vector quotient filter (Pandey et al. 2021) places each key in one of two blocks of small quotient filters, chosen by load, and searches a block with vector instructions. InfiniFilter (Dayan et al. 2023) and the Aleph filter (Dayan, Bercea and Pagh 2024) expand a quotient-style filter as keys arrive, without knowing in advance, which is the case that the Pagh, Segev and Wieder bound concerns; InfiniFilter assigns longer fingerprints to newer keys so that the rate stays bounded, and the Aleph filter makes its operations take constant time.

Consequences for implementations

For a set known in full at build time, such as the keys of an immutable table file, a static filter has a smaller size at every rate measured. A ribbon filter of width 128 at 7% overhead has the smallest size, 1.07 times the bound against 1.127 for a binary fuse filter and 1.23 for an xor filter, and costs 2.0 times as much to build per key as a binary fuse filter and 1.8 to 1.9 times as much per query. At 5.8 million keys a width-64 ribbon filter needed 12 to 15% overhead to build reliably, which places it at or above the binary fuse filter in space. Against a Bloom filter at the same rate, a binary fuse filter saves 22% of the space at both and , with queries 2.3 to 3.3 times faster in this harness and construction about 3 times slower.

When keys must be inserted after the filter is created, a cuckoo filter with 4-slot buckets at 95% load uses less space than a Bloom filter only at rates below about 0.4%, or about 3% with semi-sorting, and the table must be sized for the largest , since an insertion fails once the walk does not find a free slot; at 8.4 million slots that happened at a load of 0.953 to 0.961 for fingerprints of 6 to 16 bits. Its fingerprints must have at least 5 bits for a table of that size, and inserting the same key more than 8 times fails. A quotient filter supports merging and doubling, which a cuckoo filter does not, but its query cost grows with load: 4.2 slots per absent query at 75% load and 28 at 90%, where the space advantage over a Bloom filter begins only at rates below about 0.1%. The counting quotient filter’s 2.125 metadata bits and rank-and-select lookup are designed to remove that trade-off.