Manuscript Offprint
arXiv:2608.23502Linear Hashing is Not That Awesome
Abstract
Consider the canonical universal hash family , where are chosen uniformly from , which we call linear hashing, being used to hash elements into buckets. For any universal family, the expected size of the largest bucket is at least and at most . The only improvement upon these trivial bounds for linear hashing is a 2019 upper bound of by Knudsen. We show that for any sufficiently larger than , there is a set of keys whose expected maximum load is , proving linear hashing does not have a polylogarithmic maximum load. We extend the same bounds to the classical multiply-shift hash family of Dietzfelbinger, Hagerup, Katajainen, and Penttonen.
Our main contribution is an equivalence between the maximum load problem to a density variant of arithmetic Kakeya sets. We then complete the lower bound using a construction of Green and Ruzsa of a small set containing long arithmetic progressions with every difference in a prescribed range. Surprisingly, our equivalence also implies that any substantial improvement over Knudsen's upper bound would imply new results about standard arithmetic Kakeya sets. More precisely, an upper bound would improve known bounds for unions of complete integer arithmetic progressions, while an upper bound would imply Bourgain's arithmetic-progression criterion.
Independent concurrent work of obtains the same super-polylogarithmic lower bound for linear hashing. The two works differ in their surrounding frameworks and additional results.
Contents
1 Introduction 3
1.1 Connection to Kakeya sets 3
1.2 Alternative hash families 4
2 Overview 6
3 From Linear Hashing to Density Arithmetic Kakeya 7
3.1 The hashing model 7
3.2 Definition of density-Kakeya 7
3.3 Reduction from linear hashing to density-Kakeya 8
3.4 Reduction from density-Kakeya to linear hashing 9
3.5 Comparison and implications on arithmetic Kakeya bounds 10
4 Lower Bound for Linear Hashing 12
4.1 Digesting a construction of Green and Ruzsa 13
4.2 Hashing lower bound 14
5 Lower Bound for Multiply-Shift Hashing 15
6 Discussion and Open Problems 16
A The Green–Ruzsa Construction 18
where is prime and are uniform in . This is the canonical example of a universal family in the sense of Carter and Wegman [CW79]. Assume we map distinct keys to buckets using . While universality guarantees that the expected number of elements colliding with each specific element is constant, the expected size of the largest bucket is far less understood.
For a truly random function, this expected maximum load is . The same order is unavoidable for any hash family when is sufficiently larger than : We can draw elements to insert independently, and observe the above lower bound holds for i.i.d. placements from any distribution. For any universal family, the expected maximum load is at most , as the expected number of element pairs with colliding hashes is due to universality and linearity of expectation, as well as the number of pair collisions being at least quadratic in the maximum load.
The only known improvement over these straightforward bounds came from Knudsen [Knu19], who proved that for linear hashing the expected maximum load is at most . Until this work, no improvements over the naive lower bound were known. Closing this gap has been repeatedly posed as a significant open problem [Knu19, Wes24, DD24], with several papers posing the question of whether the upper bound can be improved to match the simple lower bound.
In this paper we give the first non-trivial lower bound, showing that the expected maximum load for linear hashing is at least super-polylogarithmic. More precisely, we prove the following.
Theorem (Main lower bound, informal). For every sufficiently large and , and every prime , there is a set of keys in for which the expected maximum load of linear hashing is at least
In particular, we rule out linear hashing achieving optimal expected maximum load. We generalize our lower bound also to the multiply-shift hash family of Dietzfelbinger, Hagerup, Katajainen, and Penttonen [DHKP97], defined as
where is uniform odd number in and denotes the shift-right operation. This is a variation of the linear hashing family which is optimized for computer implementation, as it replaces arbitrary divisions with binary operations that are significantly quicker on most computer architectures. This simplicity has made multiply-shift a standard practical choice for integer hashing [Tho15, RAD15, LC22]. Knudsen's upper bound also extends to this family [Knu19].
1.1 Connection to Kakeya sets
Our main contribution is an equivalence between the maximum load of linear hashing and a new density version of arithmetic Kakeya. Informally, we seek a small set in such that, for many differences , the set contains many points from some short arithmetic progression of difference . Unlike in the usual arithmetic Kakeya problem, we do not require the entire progression to be present: the selected points may form an arbitrary subset, which may depend on . In particular, they may even not contain any actual arithmetic progression at all. We refer to such sets as density-Kakeya sets.
This rich-subset relaxation is reminiscent of finite-field Furstenberg sets, where one works over a vector space and asks for large intersections with affine subspaces rather than requiring the entire subspaces to be present [DDL21, DD24]. Our setting, however, differs both in its ambient algebraic structure and in the bounded arithmetic patterns with respect to which richness is measured.
Beyond our headline lower bound, the equivalence is also consequential in the upper-bound direction. As formalized in Section 3.5, any polynomial improvement over Knudsen's cube-root exponent would yield new lower bounds for unions of complete arithmetic progressions over the integers. At the qualitative endpoint, an maximum-load upper bound (for all ) would imply Bourgain's arithmetic-progression criterion for the Euclidean Kakeya conjecture. In particular, our equivalence implies that any improvement over the currently known upper bounds for the maximum-load in linear hashing would have direct consequences in arithmetic combinatorics.
Our lower bound uses a construction of Green and Ruzsa [GR19], who constructed a small set containing a complete arithmetic progression of a prescribed length for every difference in a long interval. Their construction is therefore a genuine arithmetic Kakeya construction, rather than merely a dense one, and we use their set without modification.
Nevertheless, the density relaxation already plays a meaningful role in our argument. If a set contains an L-term progression of difference d, then, it also contains every r-th point of an rL-term progression of difference d/r. Thus every difference supplied by the Green–Ruzsa construction can be duplicated to many of its divisors. These additional differences generally support only a fraction of the corresponding progression and would not be counted by the ordinary Kakeya formulation, but they remain valid in the density variant and are thus still usable for our hashing application.
We remark that dense arithmetic Kakeya is seemingly a substantially weaker requirement than arithmetic Kakeya. The subsets associated with different differences need not themselves contain long arithmetic progressions, and their density may tend to zero. This leaves room for improving our lower bound without improving the best-known genuine arithmetic Kakeya constructions. We currently do not know a substantial separation between the two notions in the arithmetic setting. We show that polynomial such separations do occur over vector spaces. This suggests that the dense arithmetic problem may similarly admit substantially better constructions, potentially leading to a polynomial lower bound for linear hashing.
1.2 Alternative hash families
The question of expected maximum load was also studied for other, related, hash families. In particular, hash families that are truly linear, usually with input and output sets realized as vector spaces of sizes and for some and prime , are far better understood. Despite the confusing terminology, the family we study in this paper—which is usually called “linear hashing”—is in fact neither linear nor affine: as is inherently co-prime to the prime , there is no non-trivial linear function mapping any module of size to any module of size . In our case then, the final mod operation breaks linearity.
Truly linear hash families are very attractive mathematically, as linearity makes their analysis significantly cleaner. On the other hand, these variants are far less practical, due to multiplications over non-integers being slower to implement: if the chosen vector space is of high dimension over a small field, then the description of each linear function is a large dense matrix and applying it requires matrix-vector multiplication; otherwise the field is a large prime power, and then scalar multiplication requires extension-field arithmetic.
One endpoint of this range is realizing an input space of size which is a power of two as a vector space . Then, the family of linear maps in corresponds to -by- binary matrices. We can thus define the family
for a uniformly chosen matrix from . For this family, Alon, Dietzfelbinger, Miltersen, Petrank, and Tardos [ADM 99] proved that the expected max load is . Babka [Bab18] subsequently observed that their argument can be optimized to give . Very recently, it was finally improved by Jaber, Kumar, and Zuckerman [JKZ25] to the optimal matching the maximum load order of a fully random function.
At the other endpoint of this range, for a large finite field we may consider the family of linear maps in . Alon et al. [ADM 99] prove that for this family, there is an input set of size for which the expected maximum load is at least , and even if is a perfect square.
The same input and output cardinalities can therefore support linear map families with dramatically different behavior. For example, setting , we have
Nevertheless, the family of -linear maps has polynomial worst-case maximum load, whereas the family of all -linear maps has optimal maximum load. Algebraically, the former is a highly structured proper subfamily of the latter: every -linear map is also -linear, but not conversely. The multiply-shift family is defined on input and output sets of these same cardinalities, namely
but respects neither of these linear structures.
These two examples may have provided contradictory intuition as to which of the two known bounds for linear hashing and multiply-shift hashing should be closer to the correct answer.
In a complementary high-load regime, in which the average bucket contains many keys, Dhar and Dvir [DD24] studied the same families of genuinely linear maps and obtained a stronger, two-sided guarantee on the load of every bucket, also via studying connections to Kakeya-type problems.
Organization. Section 2 gives an overview of the proof. Section 3 introduces dense arithmetic Kakeya sets and proves the reduction to hashing. In Section 4 we state the Green–Ruzsa construction as a black box and prove the lower bound for linear hashing using it. Section 5 gives the multiply-shift lower bound. We end with discussion and open problems in Section 6. For completeness, Appendix Section A repeats the short Green–Ruzsa construction. We do this because we need to analyze several features of their construction which they do not explicitly spell out.
Acknowledgments within and beyond the realms of men. All mathematical content originated from the biologically-generated author and discussions with colleagues, but interaction with an AI model was extremely useful in revealing an oversight, which is next detailed. The equivalence with the density variant of arithmetic Kakeya was known to the author for a while, and was previously discussed with several colleagues. In particular, in earlier discussions with Terence Tao and Cosmin Pohoata, Tao brought up the paper of Green and Ruzsa [GR19], and we explored whether their arguments could be adapted to improve the upper bound for the relaxed Kakeya problem. After the author later gave this context to an AI tool, it made an important observation: the very same Green–Ruzsa paper also contains a construction, which with essentially no modification can be plugged into the aforementioned equivalence to yield an improved lower bound, rather than the upper bound we pursued. The author thanks Tao and Pohoata for the aforementioned discussions, and William Kuszmaul for separate, older, discussions on potential upper bounds for the problem.
2 Overview
The paper is organized around a density relaxation of arithmetic Kakeya. Informally, instead of requiring a set to contain a complete arithmetic progression of a given difference , we require it only to contain many points from some short progression of difference . For , a length parameter , and a nonzero difference , define the richness
Thus, an dense arithmetic Kakeya set is an for which for at least differences. The sets of indices may be completely arbitrary; in particular, they need not be intervals or contain even a three-term arithmetic progression.
In Section 3, we show that this is precisely the combinatorial object underlying linear hashing. Up to constant factors, the expected maximum load of a set of keys is equal to its average richness over all differences. One direction associates every rich difference with a multiplier producing a heavy bucket. Conversely, the preimage of every bucket under every multiplier is a subset of a short arithmetic progression of the corresponding difference. Consequently, the maximum-load problem for linear hashing is equivalent to bounding the density arithmetic Kakeya parameter.
This equivalence also explains the difficulty of improving the known upper bound. Complete integer progressions are a special case of our density witnesses, and the best known general bounds for them already give only the cube-root exponent. Knudsen's upper bound may therefore be viewed as extending this cube-root bound to arbitrary subsets of bounded cyclic progressions. As discussed in Section 3.5, any polynomial improvement over this upper bound would improve known bounds already for complete integer progressions, while a subpolynomial upper bound would imply the upper-Minkowski Kakeya conjecture. On the other hand, an improved lower bound requires only a better construction for the weaker density problem. We give some evidence that this distinction can be substantial by exhibiting a polynomial separation between the two variants over finite vector spaces.
For our lower bound, we use a construction of Green and Ruzsa [GR19] as a black box. In the parameter range needed here, their construction gives an integer set S of size at most n which contains a complete progression of length
for every difference in a sufficiently long initial interval. Thus, the Green–Ruzsa set is an ordinary arithmetic Kakeya construction, and we use it without modification.
The density relaxation nevertheless plays a crucial role. If S contains the progression
then, for every invertible r, the same points can also be written as
They are therefore a K-point subset of a longer progression whose difference is the quotient . In this way, every difference supplied by the Green–Ruzsa construction generates many additional differences. We use this to amplify the original interval of differences to a constant fraction of all differences in . Plugging the resulting dense arithmetic Kakeya set into our equivalence proves the lower bound for linear hashing in Section 4.
Finally, Section 5 applies the same Green–Ruzsa set and the same difference-amplification idea to multiply-shift hashing. The only change is geometric: linear hashing identifies residue classes modulo m, whereas multiply-shift buckets are consecutive intervals determined by the high bits. In both cases, the amplified progression is short enough that at least a constant fraction of its selected points fall into one bucket. This gives the same lower bound for both hash families.
3 From Linear Hashing to Density Arithmetic Kakeya
3.1 The hashing model
For an integer and a positive integer , let denote the standard representative of modulo . Let be prime and let . The linear hashing family consists of the functions
For a set , denote the maximum load by
For , we are interested in the maximum over all input sets of the expected maximum load
3.2 Definition of density-Kakeya
The following arithmetic object, which is a relaxation of arithmetic Kakeya sets, naturally comes up in our analysis of linear hashing.
Definition 3.1 (Density arithmetic Kakeya set). Let , let , and let . We say that is -rich in the differences if, for every , there are and with such that
If , we call an dense arithmetic Kakeya set.
When and for every , this is the standard problem of a set containing a complete -arithmetic-progression for every difference. The freedom to choose arbitrary is our density relaxation. Nonetheless, this means that a true Kakeya set is in particular also a density-Kakeya set.
We note that can be vanishing. We also remark that the bounded index interval (that is ) is essential for our application.
3.3 Reduction from linear hashing to density-Kakeya
Theorem 3.2 (Density-Kakeya implies high maximum load). Let be prime, let , let have size at most , and suppose that is -rich in a set of differences . If , then,
Proof. Fix , and write each given dense arithmetic progression subset as
For and any , the corresponding keys are sent, before the final reduction modulo , to
Let . Prior to the final mod , the values for lie in an interval of length less than . This interval crosses at most one multiple of . Consequently, splits into at most two parts, with respect to that (at most) singular crossing. On the part before the crossing, every value is congruent to modulo . On the part after the crossing, every value is congruent to modulo . One of these two parts has size at least , implying the load claim.
The map is injective on . Thus there are distinct multipliers with maximum load at least , for any choice of the additive shift. Averaging over proves the stated bound.
Corollary 3.3. If X is an dense arithmetic Kakeya set of size at most n and , then
The following crucial observation shows we can benefit from the density relaxation even if the starting set contains complete progressions. Intuitively, we notice that a length k arithmetic progression with difference d, is automatically also a subset of the same size k of a length rk arithmetic progression with difference for any r. Thus, each arithmetic progression gives many rich differences corresponding to divisors of the original difference.
Lemma 3.4 (Difference amplification). Let be positive integers with . Suppose that contains a -term arithmetic progression of every integer difference . Then is -rich in a set of size .
Proof. For every pair and with , let
If , then
Since , this certifies richness in the difference .
We next show that these differences are distinct. Indeed, and are equal if and only if
Both products are at most , so this is simply equality over the integers. Hence, taken over the rationals ,
Furthermore, the two fractions are reduced, and hence .
It is thus left to count the number of pairs that are co-prime. A non-co-prime pair has some common divisor . Hence, by a union bound, the number of such pairs is at most
Thus at least pairs are coprime. This gives the claimed differences.
We remark that for simplicity Lemma 3.4 is phrased with respect to an original set X that contains true arithmetic progressions for all differences in some interval. On the other hand, both assumptions could be relaxed: If for every difference the set only contains a rich subset of the arithmetic progression, the proof essentially carries without modification. On the other hand, having rich differences for only a subset of the differences may invalidate the co-prime pairs counting argument. The given argument still carries through to arbitrary yet large enough subsets of the differences range [D].
3.4 Reduction from density-Kakeya to linear hashing
The preceding reduction has a converse when we fix the naturally arising arithmetic progression length
For and , define the richness
Thus X is -rich in difference d precisely when .
Theorem 3.5 (Equivalence of linear hashing maximum load and density-Kakeya). Let , let , and let have size . For every and , writing
we have
Consequently,
Proof. Fix and . For a bucket , let
Since , we have . Moreover,
Intersecting this identity with X, the keys ending in bucket r form a subset of a cyclic translate of . The load of every bucket is therefore at most , proving the upper bound.
The other direction follows from the proof of Theorem 3.2.
Thus, up to an absolute factor of two and the negligible contribution of , the expected maximum load is exactly the average directional richness. We also remark for completeness that in both directions we may consider bounds only concerning a single, uniform, density parameter : If at least fraction of differences have richness at least , then we get a lower bound of for the maximum load. On the other hand, if the maximum load is , and hence the average richness is , then by a standard pigeonholing over dyadic intervals we conclude there exist some such that at least fraction of differences have richness at least and .
3.5 Comparison and implications on arithmetic Kakeya bounds
In this section, we compare this equivalence with what is known for ordinary arithmetic progressions. Suppose that we remove both relaxations we made when moving from arithmetic Kakeya to our density variant: the witnesses again must be complete K-term progressions, and they lie in the integers rather than in . If an n-element integer set contains K-term progressions with D distinct differences, the state-of-the-art union bound of Gilboa and Pinchasi [GP14, Proposition 4.1] gives, for every fixed ,
With the scale of parameters relevant for hashing, , where the last inequality follows as we also have . Thus, the above bound implies
Hence, if we have , but also otherwise we have . Strikingly, therefore, even after requiring complete progressions over the non-modular integers, the best presently known general bounds still lead to the same cube-root exponent as the best known upper bound for linear hashing.
Knudsen’s argument may now be viewed as an extension of this cube-root bound to both relaxations relevant to hashing. By our equivalence, his theorem can be interpreted as showing that the full-progression cube-root phenomenon survives when complete integer progressions are replaced by arbitrary subsets of short cyclic progressions. Notably, every actual arithmetic Kakeya set is trivially also a density-Kakeya one. Consequently, a significantly better linear hashing upper bound would therefore have independent arithmetic-Kakeya consequences in standard settings.
To be precise, following Green and Ruzsa [GR19], let denote the minimum cardinality of a set containing a -term arithmetic progression with common difference for every . Also define the uniform worst-case maximum load
Proposition 3.6 (Hashing upper bounds imply arithmetic Kakeya bounds). For all , writing , we have
Consequently, if for all , where , then
Proof. Let have size and contain a -term progression of every difference . Set , and by Bertrand's postulate choose a prime with . Let be the reduction of modulo . Since and , every one of the given progressions remains a -term progression in , and the differences remain distinct and nonzero. Thus has size at most and is -rich in differences. Taking and , we have , so Theorem 3.2 gives
The second assertion follows because either or .
Suppose, then, that for some fixed one could improve Knudsen's bound (for all ) to
Taking
in Theorem 3.6 would give
By contrast, the bound of Gilboa and Pinchasi [GP14] gives at this scale only
The improvement in the exponent is
Thus the exponent 1/3 for linear hashing is exactly the threshold at which this reduction begins to improve the best known general bounds for unions of complete integer arithmetic progressions.
We next observe that if there is an upper bound of for linear hashing (for all ), then a weaker version of the arithmetic Kakeya conjecture, due to Bourgain, follows. The arithmetic Kakeya conjecture is equivalent to saying that for any fixed , there exists a fixed for which for all sufficiently large . The classical geometric Kakeya conjecture is known to follow from it. Bourgain [Bou91, Bou93] observed that the geometric Kakeya conjecture already follows from the formally weaker assertion that, for every fixed , a set containing -term arithmetic progressions with every difference must have size ; see Green and Ruzsa [GR19, Equation (1.1)] for this formulation. Unlike the arithmetic Kakeya conjecture, this condition allows the progression length to grow polynomially with the number of differences. Our equivalence also shows that a upper bound for linear hashing would imply exactly this condition.
Corollary 3.7. If , then for every fixed ,
Proof. Let and . Since , we have , and hence . By Theorem 3.6,
Since , the first term cannot realize the minimum for sufficiently large . Therefore , which is equivalent to .
The conclusion of Theorem 3.7 is precisely Bourgain's condition
The arithmetic Kakeya conjecture of Katz and Tao [KT02], in the equivalent forms discussed by Green and Ruzsa [GR19], predicts a substantially stronger, sub-polynomial, answer for complete integer progressions, and in particular that such improvements exist for true Kakeya sets. Both the arithmetic Kakeya conjecture and Bourgain's arithmetic-progression criterion concern complete integer progressions. Neither makes any corresponding prediction for arbitrary vanishing-density subsets of cyclic progressions of the kind we show are equivalent to the hashing bound.
We remark that there is evidence from finite vector spaces that the density relaxation can improve the parameter relevant to hashing by a polynomial factor. Consider subsets of of size , and regard every affine line as having length . If is a perfect square, the construction of Alon et al. [ADM 99] gives a set of size such that, for every line direction, some affine line in that direction intersects in at least points. Thus all directions are good, and the average density satisfies
By contrast, an arbitrary q-element subset of can contain a complete line in at most one direction, resulting in . The density relaxation therefore improves precisely the relevant objective by a factor of . We do not know an analogous separation for bounded cyclic progressions in , which is the setting required for linear hashing. Nevertheless, this vector-space example shows that such a separation is possible in principle and supports the possibility of obtaining polynomial hashing lower bounds without improving ordinary arithmetic Kakeya constructions.
4 Lower Bound for Linear Hashing
In this section we prove our main lower bound, for linear hashing. We do so by plugging a construction of Green and Ruzsa [GR19] in the reduction of Section 3. We begin by presenting and repackaging the Green-Ruzsa construction, as we need to use it with slightly different parameter choices than those they choose in their paper, as well as to explicitly spell out more properties of their construction.
4.1 Digesting a construction of Green and Ruzsa
We use the following parameterized form of the construction in Section 5 of Green and Ruzsa [GR19]. Let be the first odd primes and write
Theorem 4.1 (Green–Ruzsa construction, repeated in Section A). For all integers , there is a set with the following properties.
(i) For every , the set contains a -term arithmetic progression of difference .
(ii) The cardinality of S satisfies
For the first t odd primes, standard prime number estimates (e.g., [MV07]) give
as and .
We next set the parameters in a way that would be useful for our lower bounds.
Corollary 4.2. Fix constants and . For all sufficiently large n, let
For every integer satisfying , there are positive integers and an integer set such that
the set has size at most , and, for every , it contains a -term arithmetic progression of difference .
Proof. Put
For sufficiently large n, we have and .
Let be the minimal integer so that , and take the set from Theorem 4.1. By minimality, as . Since , the prime number estimates above imply
The size estimate in Theorem 4.1 gives
As and , it follows that
Thus for all sufficiently large . Finally, , so the progression property in Theorem 4.1 gives the required progressions for every difference at most .
4.2 Hashing lower bound
We now prove the main lower bound.
Theorem 4.3 (Lower bound for linear hashing). Fix constants and . For all sufficiently large n, let
For every integer satisfying and every prime , there is a set of size such that
Proof. Let be supplied by Theorem 4.2. Since and , we have .
Reduce modulo , and call the resulting set . Reduction can only decrease its size. It preserves a -term cyclic progression of every integer difference : we have and , so the terms within each such progression remain distinct.
Set
It follows that
By Theorem 3.4, is -rich in differences. Moreover,
Pad with arbitrary elements to a set of exactly keys. Theorem 3.2 now gives
as required.
Taking to zero sufficiently slowly gives the form stated in the introduction. We further remark that the proof of Theorem 4.3 is pointwise in the additive shift : every good multiplier has load at least for every . Thus the same lower bound holds if is fixed arbitrarily or drawn from any distribution. In particular, the lower bound holds also for the variant of linear hashing in which we set deterministically.
5 Lower Bound for Multiply-Shift Hashing
We next extend the lower bound to the multiply-shift family of Dietzfelbinger, Hagerup, Katajainen, and Penttonen [DHKP97]. Let and , with , and put
For an odd multiplier , define
The multiply-shift family takes a uniform odd a.
The first modular operation is very similar to that of linear hashing. The final operation though, replacing the mod m reduction, now instead takes the most significant bits of the w-bit product. We call this operation high-bit projection. Its equivalence classes are the m consecutive intervals of length B. We next adapt the lower bound to that different reduction step.
Claim 5.1 (Short cyclic arcs are heavy). Let consist of distinct points contained in a cyclic interval of length at most . Then, at least elements of have the same high-bit projection.
Proof. A cyclic interval of length at most B meets at most two of the B-element buckets, including when it crosses from q - 1 to 0. One of the two buckets contains at least half of its elements. □
Theorem 5.2 (Lower bound for multiply-shift). Fix constants and . For all sufficiently large n, let
For every power of two m satisfying and every power of two , there is a set of size such that, for a uniform odd multiplier ,
Proof. Let be supplied by Theorem 4.2. Since and , we have . Reduce modulo and pad it to a set of size . The progressions of odd difference remain injective after reduction because every odd residue is invertible modulo and .
Let
As before, and . We next recover a variant of Theorem 3.4 that carries despite not working modulo a prime. For every coprime pair of odd integers and , define the admissible odd multiplier
These multipliers are distinct. Equality of and is equivalent to
Both sides are at most , so equality holds over the integers, and uniqueness of reduced fractions gives . A positive proportion of all pairs in are both odd and coprime. Consequently the construction supplies distinct good odd multipliers.
Fix one such pair, and let be the corresponding progression. Multiplication by sends it to the K points
They lie in a cyclic interval of length at most RK, and
By Theorem 5.1, the maximum load is thus at least . Since a constant fraction of the odd multipliers are good, averaging gives .
6 Discussion and Open Problems
We proved that the worst-case expected maximum load of both linear hashing and multiply-shift hashing is super-polylogarithmic. Together with Knudsen's upper bound [Knu19], the remaining gap is
In particular, the main remaining qualitative question is whether the maximum load is polynomial in n.
Open Problem 6.1. Is there an absolute constant such that the worst-case expected maximum load of linear hashing is at least ? Does the same hold for multiply-shift hashing?
Equivalently, up to logarithmic factors, does there exist a bounded cyclic density arithmetic Kakeya set for which the product between the fraction of good differences and the richness in each good difference is ?
It is tempting to try to close the gap from above. Our equivalence reveals, however, that such an improvement would have consequences beyond hashing. As discussed in Section 3.5, an upper bound of holding throughout the relevant parameter range for linear hashing would also improve the best known general bound for ordinary integer sets containing complete arithmetic progressions with many different differences [GP14]. Thus, even after removing both the density relaxation and the modular setting, improving the cube-root exponent would yield new progress on standard arithmetic Kakeya bounds. More strongly, an upper bound would imply Bourgain's arithmetic-progression criterion for the geometric (upper-Minkowski) Kakeya conjecture. This may help explain why the hashing upper bound has resisted improvement. The other possibility is that the cube-root bound is close to the truth. Our lower bound makes polynomial behavior appear plausible.
The situation for lower bounds is quite different. A better lower bound for hashing requires only a better construction for the density variant. Such a construction need not contain any long arithmetic progressions and therefore need not improve the known constructions for ordinary arithmetic Kakeya. There is consequently no analogous arithmetic-Kakeya barrier to obtaining a polynomial hashing lower bound. The vector-space example in Section 3.5 gives evidence that this distinction can be substantial. In particular, it is entirely consistent that the arithmetic Kakeya conjecture is true while the maximum load of linear hashing is . These two conclusions would say that complete arithmetic progressions cannot overlap too efficiently, but arbitrary rich subsets of such progressions can. Establishing such a separation in the bounded arithmetic setting is therefore a natural problem on its own.
This separation may also be informative for the ordinary arithmetic Kakeya problem. If the full and density variants indeed have substantially different answers, then any proof of the arithmetic Kakeya conjecture must, at least implicitly, distinguish a complete progression from an arbitrary collection of many points on the same progression. Understanding where this distinction first becomes usable may therefore provide both a route to stronger hashing lower bounds and a useful guide for the classical arithmetic Kakeya problem.
References
[ADM 99] Noga Alon, Martin Dietzfelbinger, Peter Bro Miltersen, Erez Petrank, and Gábor Tardos. Linear hash functions. Journal of the ACM, 46(5):667–683, 1999.
[Bab18] Martin Babka. A note on the size of largest bins using placement with linear transformations, 2018.
[BCK 26] Ainesh Bakshi, Alex Conway, Hanna Komlós, William Kuszmaul, and Alek Westover. Lower bounds for linear hashing via arithmetic kakeya, 2026.
[Bou91] Jean Bourgain. Remarks on Montgomery’s conjectures on Dirichlet sums. In Joram Lindenstrauss and Vitali D. Milman, editors, Geometric Aspects of Functional Analysis: Israel Seminar (GAFA) 1989–90, volume 1469 of Lecture Notes in Mathematics, pages 153–165. Springer, Berlin, 1991.
[Bou93] Jean Bourgain. On the distribution of Dirichlet sums. Journal d'Analyse Mathématique, 60:21–32, 1993.
[CW79] J. Lawrence Carter and Mark N. Wegman. Universal classes of hash functions. Journal of Computer and System Sciences, 18(2):143–154, 1979.
[DD24] Manik Dhar and Zeev Dvir. Linear hashing with guarantees and two-sided kakeya bounds. TheoretiCS, 3, 2024.
[DDL21] Manik Dhar, Zeev Dvir, and Ben Lund. Simple proofs for furstenberg sets over finite fields. Discrete Analysis, 2021, 2021.
[DHKP97] Martin Dietzfelbinger, Torben Hagerup, Jyrki Katajainen, and Martti Penttonen. A reliable randomized algorithm for the closest-pair problem. Journal of Algorithms, 25(1):19–51, 1997.
[GP14] Shoni Gilboa and Rom Pinchasi. On the union of arithmetic progressions. SIAM Journal on Discrete Mathematics, 28(3):1062–1073, 2014.
[GR19] Ben Green and Imre Z. Ruzsa. On the arithmetic Kakeya conjecture of Katz and Tao. Periodica Mathematica Hungarica, 78:135–151, 2019.
[JKZ25] Michael Jaber, Vinayak M. Kumar, and David Zuckerman. Linear hashing is optimal. In Proceedings of the 57th Annual ACM Symposium on Theory of Computing, pages 245–255, 2025.
[Knu19] Mathias Bæk Tejs Knudsen. Linear hashing is awesome. SIAM Journal on Computing, 48(2):736–741, 2019.
[KT02] Nets Hawk Katz and Terence Tao. New bounds for Kakeya problems. Journal d'Analyse Mathématique, 87:231–263, 2002.
[LC22] Hua Luan and Lei Chang. An experimental study of group-by and aggregation on CPU-GPU processors. Journal of Engineering and Applied Science, 69(1):54, 2022.
[MV07] Hugh L. Montgomery and Robert C. Vaughan. Multiplicative Number Theory I: Classical Theory, volume 97 of Cambridge Studies in Advanced Mathematics. Cambridge University Press, 2007.
[RAD15] Stefan Richter, Victor Alvarez, and Jens Dittrich. A seven-dimensional analysis of hashing methods and its implications on query processing. Proceedings of the VLDB Endowment, 9(3):96–107, 2015.
[Tho15] Mikkel Thorup. High speed hashing for integers and strings. arXiv preprint arXiv:1504.06804, 2015.
[Wes24] Alek Westover. On the relationship between several variants of the linear hashing conjecture. arXiv:2307.13016, 2024.
A The Green–Ruzsa Construction
We give the full proof of Theorem 4.1. This is the construction of Green and Ruzsa [GR19, Section 5], with the number of primes t left as a free parameter.
Let be the first distinct odd primes and denote the primordial
For every , let be the unique integer in such that
Define
For every , the corresponding set in the union is a K-term arithmetic progression of difference . Moreover,
so . This proves the progression and diameter parts of the theorem.
It remains to bound the size of the union. For each , define the j-th layer
Modulo Q, this layer is the image of
Fix one of the odd primes . Since 2 is invertible modulo , we may complete the square:
Translation of the input and output does not change image size, and the square map on has one value coming from 0 and one value for each pair of nonzero inputs. It therefore has exactly
values. Hence the image of modulo has this same cardinality, independently of j.
The Chinese remainder theorem identifies with , and the map acts coordinate-wise. It follows that the image of modulo has exactly
residues.
Finally, , and thus every residue modulo has at most representatives in this interval. Combining this with the layer count gives
Summing over the K layers yields
which is the required size bound.