Manuscript Offprint
arXiv:2610.34750Linear Hashing Is Poissonesque
Abstract
The Poisson approximation theorem states that when m balls are tossed uniformly and randomly into n bins, the distribution of the bin loads can sometimes be approximated by n independent Poisson random variables of mean m/n. We show that when the balls are tossed via a random -linear map, the load distribution is still governed by this Poisson distribution, albeit in a (necessarily) weaker manner. This allows us to show that a random linear map behaves like a fully random map in the following ways:
• Expected loads. We show that the expected value of the th largest bin is governed by the th largest value among independent Poisson random variables of mean . Specializing to the canonical setting of and , our bounds show that the expected maximum load when balls are hashed into bins by a random -linear map is no more than the corresponding expectation for a fully random map plus , drastically improving on bounds derived by the framework of Jaber, Zuckerman, and the author (STOC 2025). Specializing to , we positively resolve a question of Pathegama and Barg (TIT 2025) over , who had asked whether the expected max load is in this regime.
• Concentration. When balls are tossed into bins randomly, we expect with 0.99 probability that every density- subset of bins will contain a -fraction of the balls. We show that this remains the case if the balls are tossed using a random linear map, and our bound matches the -factor produced by the fully random case. This gives a stronger version of the Leftover Hash Lemma for linear maps. An implication of this is that all bins have load with probability 0.99, which strictly improves the two-sided bounds of Dhar and Dvir (FOCS 2022) over , and quantitatively matches the order of deviation for constant failure probability of fully random hashing.
To obtain these results, we first show that the average of a log-potential on the bin loads is upper bounded by the cumulant generating function of a Poisson random variable of mean m/n. Expectation and tail bounds then easily fall out of this inequality, similar to how Chernoff tail bounds fall out of moment generating function inequalities.
*Simons Institute for the Theory of Computing, UC Berkeley. vmkumar@berkeley.edu. Supported by a Simons Institute Research Fellowship. A preliminary version of this work appears in the author's thesis, written at UT Austin with support from a Jane Street Fellowship and a UT Austin Dean's Prestigious Fellowship Supplement.
1 Introduction
How random is a random linear map? This fundamental question has been studied for more than seventy years, perhaps originating with the question of how random linear codes compare to fully random codes [Eli55]. Since then, this question has been studied extensively within coding theory [ZP81, GHSZ02, GHK11, CGV13, Woo13, RW14, LW21, GLM+22, AGG+25, DLM+26, Sil26, YZ26, KM26], as well as in other contexts such as linear-seeded extractors [DW11, Woo14, Rao09, Li16, CZ18, CGL22, CL22] and linear hash functions [CW79, MCW78, MV84, ADM+97, Bab18, DD22, PB25, JKZ25, Bsh26, Lun26, KM26]. Although a basic object, random linear maps have been proven to be tricky to analyze in all of these contexts. The main reason is because of the copious amounts of correlations they induce. Linear maps are not even 3-wise independent, since the output of vectors x and y dictate the output of . In general, any subset of linearly dependent inputs induce correlations among their outputs. In this paper, we focus on the hashing properties of a random -linear map.
Consider tossing m balls independently and uniformly into n bins. An extremely useful idea, dating back to the 1970s [Hol77], was to analyze this random process using Poisson random variables. After more decades of development, this culminated in the celebrated Poisson approximation theorem [MU05, Section 5.4]. This theorem states that for tail events, the distribution of the loads of the n bins behaves like that of n independent Poisson random variables with mean (denoted ). Therefore, many monotone events and occupancy statistics can be analyzed using independent Poisson variables, and the vast literature on the Poisson distribution can be used to analyze this random process.
It is then natural to ask whether an analogous tool can be developed if balls are tossed into bins using a random linear map instead. More formally, let be an arbitrary subset of size in some extremely large -vector space , and let be an -vector space of size . A random linear map consequently “tosses” the balls, , into the bins, . For each we define to be the load of bin . For any and random linear , we are asking whether
for tail events. This would imply an exact analog of the Poisson approximation theorem for random linear maps. For linearly independent , the problem reduces to fully random hashing; if consists of linearly independent vectors, tosses in an independent and uniform manner and the standard Poisson approximation theorem kicks in. Unfortunately, if we make no assumptions about , the approximation is false. Consider . By a Chernoff bound, one single Pois(1) variable has sharply decaying tails: [MU05, Theorem 5.4]. However, Bshouty showed that when is a subspace, the load of a fixed bin has exponentially worse tails: [Bsh26].
Thus, asking for the same tail bounds between these two distributions is too strong, but could it be the case that coarser statistics of these two distributions are in sync?
In other words, it is the log-average-exp of the centered bin loads. Similarly to how the moment and cumulant generating functions capture statistics of its corresponding distribution, the potential function captures (coarser) statistics of the load distribution of . The key inequality we show is that for all real and all of size , the expectation of this potential, over a random linear , is upper bounded by the cumulant generating function of a centered Poisson random variable with mean .
The proof of this inequality is surprisingly simple. Furthermore, this inequality is quite versatile and can demonstrate various Poissonesque behaviors of the bin loads using the following three-fold recipe:
-
Find statistics of the bin loads that are governed by the potential.
-
Use Equation (1) to derive expectation bounds or tail bounds on the aforementioned statistics in terms of .
-
Optimize the setting of to produce the tightest bounds.
This is analogous to how Chernoff-type bounds are derived from the moment generating function. That framework is not applicable here because the moment generating function for the loads of random linear maps can be extremely large for certain choices of (a simple example is when is a subspace). Despite this, we show that the logarithmic potential can be effectively bounded, and that this potential bound can be harnessed to provide tight expectation and tail bounds on various load statistics.
To demonstrate the versatility of this method, we instantiate this recipe to yield a collection of results. With respect to the first step of the recipe, we show that the average of the heaviest/lightest r bins is governed by the potential function. Applying the second and third steps then allows us to derive sharp expectation and tail bounds on these statistics.
1.2 Results
We prove a variety of results on the load distribution of linear hashing. Previously, these results had their respective family of techniques. Our method provides a simplification and unification of these directions. We also believe that the following are just a few examples of this technique, and there are more applications to be discovered. We also mention that the following results hold for any hash family for which Equation (1) holds (see the end of Section 1.3 for other examples of such hash families).
1.2.1 Expected Loads
Let be the average load of the heaviest bins (i.e., the average of the largest values among the multiset ), and let be the average load of the lightest bins.
Among independent Pois variables, define and to be what the Chernoff upper and lower tail bound predicts the th largest and smallest value is, respectively. We show the following theorem.
Theorem 1. Let , , , and be integers, and let be an arbitrary set of cardinality . For a uniformly random linear ,
In other words, the average loads of the heaviest and lightest bins are governed by the corresponding quantities over independent Pois variables. The proof is a straightforward execution of our recipe.
To concretely display how strong these expectation bounds are, we specialize to the canonical setting of and . Jaber, Kumar, and Zuckerman recently showed that when hashing balls into bins, random linear maps have expected maximum load [JKZ25]. This matches fully random hashing up to a constant factor in expectation and resolves a question of Alon, Dietzfelbinger, Miltersen, Petrank, and Tardos [JKZ25, ADM97]. Bshouty subsequently refined this approach and obtained an upper bound matching the dominant second-order term of fully random hashing [Bsh26]. A corollary of Theorem 1 is that the expected max load when balls are tossed into bins via a random -linear map is at most the corresponding fully random expectation plus 1.5.
Theorem 2. Let be integers, and . Let be a uniformly random linear map, and let be a fully random map. There exists such that for every of cardinality ,
Furthermore, there is an increasing sequence such that .
Hence, the expected max load of linear hashing exceeds that of fully random hashing by at most for sufficiently large , and by at most for infinitely many . The fully random expectation term is unavoidable: when and consists of linearly independent vectors, is a uniformly random map. It is possible that the additive term could be improved.
Theorem 1 provides very tight max load bounds in any regime of m balls and n bins. For example, the constant-additive comparison holds when the number of balls is sufficiently sparse compared to the number of bins (see Remark 1). In the dense regime of balls into n bins, the expected max load for a fully random map is extremely close to m/n. Unfortunately, the previous expected max load upper bound in this regime was only 16m/n, suffering a large constant-factor loss [JKZ25]. This loss arises from the aforementioned tail-bound approach: in this regime, available tail bounds are too weak to integrate and yield a sharp expectation. By bypassing tail bounds, our argument places the expected maximum and minimum loads within second-order correction terms of the mean. This resolves a question explicitly posed by Pathegama and Barg over [PB25, Remark 6].
See Definition 1 for the formal definition.
The precise quantity achieved is .
Table 1: Comparison of deviation bounds when hashing a set of balls into bins via a random -linear map . We denote and . The results marked were obtained independently.
| Ball/bin regime | Bound on | Failure probability | |
|---|---|---|---|
| Fully random maps | |||
| Chernoff bound | |||
| Random -linear maps | |||
| [DD22] | |||
| [JKZ25] | |||
1.2.2 Concentration Bounds
When balls are uniformly and independently tossed into bins, the dream scenario is if each bin ends up with exactly balls. When , a proxy for this dream happens with high probability using simple Chernoff bounds.
Theorem 3 (Informal Chernoff Estimate). Let be integers. Let be a random function. We have
The regime is when the deviation term starts to become smaller than the mean for a fully random map.
Can a guarantee like Theorem 3 be obtained with random -linear maps? This question was first studied in depth by Dhar and Dvir [DD22]. They achieve the first such bounds by using probabilistic tools to reduce the problem to rank-2 Furstenberg set lower bounds, and then applying a tailored version of the polynomial method. Later works of Jaber, Kumar, and Zuckerman [JKZ25] and of Doron, Leonov, Mosheiff, Navas, Resch, and Ribeiro [DLM26], showed incomparable bounds using an exponential and quadratic potential function, respectively.
Our method provides the following bound with a simple proof.
Theorem 4. Let , , be integers, and be an arbitrary set of cardinality . For every , a uniformly random linear map satisfies
For constant , the deviation has the same order in and as for a fully random map. Our deviation bounds kick in once , just like as in the fully random case. The dependence on is worse here than for a fully random map: we achieve probability 0.99 whereas Theorem 3 achieves probability . We prove that this dependence is necessary for random linear maps (see Theorem 11). We note that independent work of Lund [Lun26] achieves bounds of weaker, but similar shape. They follow a similar framework of Dhar and Dvir, but imports stronger Furstenberg set lower bounds established by Kumar and Mon [KM26].
We actually show a more general phenomenon than the two-sided bounds above. Consider random linear and arbitrary of size . If behaved like a truly random function, then for every subset of density , would map about a -fraction of to . A collision probability argument akin to that of the Leftover Hash Lemma [BBR88, ILL89] (e.g., a straightforward application of [CMV13, Lemma 4.2]) provides the following concentration guarantee.
Theorem 5. Let , be integers, let be of size . Let and . For a uniformly random linear , we have
By passing from to its complement in , it suffices to consider .
For simplicity, take constant. If , this is indeed the best deviation bound one can obtain. However, the bound degrades for , and when , the deviation bound is larger than the average density itself. We show the following sharpening.
Theorem 6. Let and be integers. Let and . Let be of size , and let be a random linear map. If , we have
Similarly to Theorem 4, for constant, the deviation bound matches the guarantees of a fully random map up to constants. While the deviation bound for a fully random map has a much better dependence on , the dependence can be shown to be nearly optimal by taking A to be linearly independent shifts of a subspace (see Theorem 11).
We remark that plugging in into Theorem 6 yields Theorem 4.
1.3 Proof Technique
We focus on how our framework gives a simpler proof of optimal expected max load, and compare it to previous approaches.
First consider random surjective linear maps. We follow a structure similar to previous potential-based approaches to random linear codes and linear hashing [GHSZ02, LW21, JKZ25, Bsh26], where we inspect how a potential evolves as the hash function is revealed “one kernel vector at a time”. This potential serves as a proxy for the max load. We would thus like to show the final potential is likely small, which then implies the max load is likely small. The hashing analyses of [JKZ25, Bsh26] use an exponential potential satisfying the conditional squaring inequality
where denotes the kernel vectors revealed so far. This readily gives an existence argument: at each step, some choice of the next kernel vector makes the potential at most square. Hence, kernel vectors can be fixed such that . However, passing from this existence argument to a high probability bound requires additional work. It is tempting to compose the squaring recurrence to deduce an expectation bound of , but this “freshman’s dream” is false in general. One can construct a sequence of three variables satisfying conditional squaring in which the third random variable has infinite expectation. The most technically involved part of the arguments in [LW21, JKZ25, Bsh26] was to use conditional squaring, along with other strong monotonicity properties of these potentials, to establish high probability guarantees on the final potential.
Departing from these works, we instead use the logarithm of the exponential potential. Setting , conditional squaring and Jensen's inequality give
By linearity of expectation, this linear recurrence can indeed be composed to bound . Hence, we obtain an expectation bound on the final potential almost immediately. Together with an estimate of the initial potential, this yields Equation (1). The max load is bounded by a linear function of the log-potential, so the potential bound directly yields an expected max load bound. A conceptual contribution of ours is that Equation (1) can be used to obtain a broader collection of results than just expected max load.
To remove the surjectivity assumption, we show that a broad range of load statistics on random surjective linear maps can be lifted losslessly to unrestricted random linear maps (see Lemma 1). This is a bit counterintuitive in light of the fact that a random linear map has some chance of mapping all the balls into a very small number of bins.
We note that the exponential potential used in previous work [JKZ25, Bsh26] provides stronger tail bounds when hashing balls into bins, versus using our logarithmic potentials. However, our log-potentials provide stronger tail bounds in the dense regime when . We also note that recent work [DLM 26] uses a quadratic potential to show near-optimal concentration bounds in the regime and over for any prime . Our approach gives optimal concentration bounds for as small as , but only works over .
The proof of Equation (1) extends to hash families beyond random linear maps. Fix integers and , and consider the following hashing procedure mapping to . First, start with bins, where each of the universe elements are in their own bin. For iterations, pseudorandomly partition the bins into groups of , and merge each group into one bin. A pseudorandom partition is one where the groupmates of any fixed bin form a uniformly random -subset of the other current bins (no independence between distinct groups are required). Each iteration reduces the number of bins by a factor of , leaving bins at the end. For , this framework includes the load distribution of uniformly random surjective -linear maps [JKZ25, Section 1.3]. The same potential argument proves Equation (1) for any hash family generated by this procedure with , yielding all expectation and concentration bounds derived from that inequality. Unfortunately, this hash family class for does not capture -linear maps.
2 Preliminaries
All logarithms are base unless otherwise specified. For integer we denote , and for real we denote . For a list of vectors , we will denote the tuple and (by convention, ). is the finite field of two elements. For a set , we write to denote that is sampled uniformly at random from . We will use the inequality for all . For a set , we will denote
Load Statistics For and , define to be the load of bin . For , denote by the th element of the multiset when sorted in increasing order. Thus, is the number of balls in the th lightest bin when is used to hash . We now define
and
to be the average of the r heaviest and r lightest bins, respectively. These will be key quantities used later.
Poisson Random Variables We will denote Pois( ) to be a Poisson random variable with mean . We will denote to be the Kullback-Leibler divergence between Pois( ) and Pois( ) (see, e.g., [Kul68]), with the convention . We will use the following basic estimate.
Proposition 1. For and ,
Proof. Using the integral of , we see
2.1 Removing Surjectivity For Free
Intuitively, one may expect that surjectivity can be assumed in exchange for a small loss in parameters, as random linear maps are surjective with decent probability. However, to prove our extremely tight bounds, we cannot withstand even the smallest parameter degradation. We prove that bounds on functions of the loads of random surjective linear maps can be lifted to general linear maps with absolutely no loss of parameters. We believe this lemma to be interesting in its own right.
Lemma 1. Let be a prime power, and and be integers. For any function and of size , denote
Let be an arbitrary function, and assume there exists such that for infinitely many domain dimensions , every of size , and uniformly random surjective linear map , we have
Then for every , of size , and a uniformly random linear map ,
Because f may be an arbitrary nonnegative function of the entire load vector, Lemma 1 applies to a wide range of statistics. For example, it transfers bounds on expected order statistics, polynomial or exponential moments, and tail probabilities, the latter by taking f to be the indicator of the relevant event. Lower bounds for a bounded real-valued statistic g can likewise be transferred by applying the lemma to M - g, where
In this paper, we will use Lemma 1 to transfer upper bounds on a carefully designed potential of the load vector.
We note that weaker variants of this lemma have been established in [JKZ25, Bsh26, KM26], but incurred losses in parameters. Our proof contains ingredients from them, along with a new “limit trick.”
Proof of Lemma 1. Consider arbitrary and set of size . There are infinitely many satisfying the lemma's assumption (call such good). Consider some good and take an arbitrary -dimensional subspace . There is an isomorphism . Denote . Since , we have for any and that
Therefore, . For uniformly random , will be a uniform random linear map. Consequently,
Let be the event that is surjective. When viewed as a random -matrix, this is equal to the event all rows are linearly independent. Hence
Let . We use the fact that bounds the surjective expectation to deduce
Recalling that there are infinitely many good satisfying the lemma's assumption, we can take through an increasing sequence of good integers, yielding the desired statement.
3 The Potential Function Bound
For , of size , and , consider the following potential function, which is the logarithm of a centered version of the potential function used in prior works [GHSZ02, LW21, JKZ25, Bsh26].
Taking logarithms is the key difference from prior works that allows us to obtain quantitatively tighter results with a simpler argument. Centering the loads gives us tighter control on concentration bounds in the regime where the number of balls is much larger than the number of bins.
We now prove that the average value of this potential is upper bounded by the cumulant generating function of a centered Poisson random variable. This is the main engine behind all our results.
Theorem 7. Let , , be integers and denote . Let be a uniformly random linear map. For any and subset of cardinality ,
In order to prove this inequality, we will consider sampling a random surjective linear map “one kernel vector at a time”, and track the potential. Consider linearly independent vectors and a subset . Recall . For each define
Note that is the mean-centered indicator of , and when is hashed according to cosets of , is the number of balls in 's bin, centered by the average load.
For arbitrary , define the sequence of exponential potential functions
We now show that is controlled in conditional expectation. This was shown in prior work for the uncentered potential [JKZ25], and the proof is essentially the same.
Lemma 2 ([JKZ25, Lemma 3 modified]). Let be a tuple of linearly independent vectors, and let . We have
Proof. Fix an arbitrary choice of . Denote the following quantities:
Note that . For any , and partition and so . Hence, for any such , . Thus, for ,
Hence it suffices to show that
To do so, we will first show the average of over all of is , and then show that for all . By an averaging argument, this implies the average of outside is at most as desired.
To prove the first claim, note that for uniform and independent , so is . Hence,
We now show the second claim. Since is constant over cosets of , it follows for any . Therefore for all ,
where the last inequality follows from Jensen's inequality. Both claims are now proven and we conclude.
We are now ready to prove the main inequality.
Proof of Theorem 7. We will first assume is a uniformly random surjective linear map, and then use Lemma 1 to remove the surjection assumption. Denote . Using the vectors and set , define , the potentials , and the log-potentials . We note . Therefore, proving the theorem statement is equivalent to proving
By Jensen's inequality and Lemma 2, we deduce for each ,
Therefore, we can repeatedly apply the linearity of expectation and law of total expectation to deduce
(2)
We now focus on bounding . As , we can compute
Hence, by taking logarithms, we deduce
Combining with Equation (2) yields the bound
Thus, the inequality for random surjective linear maps is proved.
For , define . Note that by Jensen's inequality,
Hence, maps . Applying Lemma 1 to and noting , we deduce that the inequality also follows for random linear as well.
4 Following the Recipe
The main inequality is proved. We recall the three-step plan to establishing linear hashing bounds:
-
Find load statistics that can be extracted from .
-
Use expectation and tail bounds on to obtain bounds on such properties.
-
Optimize the choice of .
Stitched together, these steps will obtain sharp information regarding the load distribution when hashing with a random -linear map.
4.1 Extracting Statistics out of
We show that the top-r and bottom-r load averages can be bounded by a linear function of .
Lemma 3. Let , , be integers, and let be a function. For any , we have
Proof. We can lower bound
and
where the last step in each display is Jensen's inequality on the convex function . Taking logarithms yields the desired result.
4.2 Bounds on Load Statistics
We will now combine Theorem 7 and Lemma 3 to obtain expectation and tail bounds on the top-r and bottom-r load averages.
Corollary 1. Let , , , be integers and denote . Let be a uniformly random linear map. For any subset of cardinality and , we have
Proof. By Lemma 3, we have
Therefore, by Theorem 7 and linearity of expectation, we have
For any , it follows by isolating that
and for any , it follows
The corollary follows.
We now derive upper and lower tail bounds.
Corollary 2. Let , , , and denote . Let be a uniformly random linear map, and be a subset of cardinality . For any , and ,
and for any we have
Proof. We will apply Markov's inequality on . We first verify is nonnegative. Indeed, by Jensen's inequality, we have
Hence, by Markov's inequality and Theorem 7, we have that for any ,
Condition on this event. By Lemma 3, it follows that for all ,
For any , this simplifies to
and for any , the flipped inequality holds.
4.3 Optimizing
We have now established expectation and tail bounds in terms of the free variable . It now remains to set optimally. For the proofs, we will plug in the optimal values of and have things “magically” work out. Afterwards, we will explain how the value is derived using the Cramér transform.
In order to express these optimal values, we need to formally define some Poisson threshold quantities. Recall is the Kullback-Leibler divergence between Pois( ) and Pois( ).
Definition 1 (Poisson thresholds). Let be real, let and be integers, and put . We define to be the unique real such that
We define to be 0 if , and otherwise to be the unique real such that Equation (3) holds.
The threshold is well defined: at the left-hand side of Equation (3) equals 0, and it increases continuously to infinity on . The lower threshold is also well defined: at , the left-hand side of Equation (3) is 0, and as approaches 0, the left-hand side increases continuously to . Hence, when there is a unique solution.
Intuitively, the quantity is the load level at which the standard Poisson Chernoff bound predicts heavy bins when hashing balls randomly into bins. Each bin's load can be approximated by a Poisson random variable with mean . The upper tail Poisson Chernoff bound states that for , [MU05, Theorem 5.4]. Thus, the Chernoff bound predicts of the bins will have load when , which is equivalent to . Analogously, since the lower tail Poisson Chernoff bound states that for , it follows that is the load level at which the Poisson Chernoff bound predicts light bins.
In summary, and are the expectation threshold estimates for the th largest and th smallest load in the fully random hash setting, respectively. We show that the th largest and th smallest loads of linear hashing are bounded by these expectation thresholds as well. In fact, we actually show something stronger: the top- and bottom- load averages are controlled by these Poisson thresholds.
Theorem 8 (Poisson Approximation in Expectation). Let , , , and be integers, and let be an arbitrary set of cardinality . For a uniformly random linear ,
Proof. Denote . It suffices to show for all . If , then for every , and the result follows. Hence, we can assume , and therefore . Fix arbitrary such , and for , denote .
By setting , we observe that by Corollary 1 that
where the last equality follows from the fact . Now if , then we trivially have . Otherwise, , and so . Upon setting , we see
These computations, along with Corollary 1, prove the theorem.
We now give sharp tail bounds on the top-r and bottom-r load averages.
Theorem 9 (Poisson Approximation Tail Bounds). Let , , , be integers and denote . Let be a uniformly random linear map. For any subset of cardinality and , we have
and
Proof. For , let . If , then and , so the theorem follows. Hence, assume from which we have . We note that when ,
where the last equality follows from . Therefore the upper tail follows by setting in Corollary 2.
If , plugging into Corollary 2 and applying the same reasoning yields the lower tail. If , then
Since for every , the lower-tail event is empty, and the bound follows.
At this point, the reader interested in getting tight explicit estimates on tail bounds or expectation bounds on the loads in any ball/bin regime can simply disregard linear maps and analyze or directly using Taylor approximations of the Lambert W function [CGH 96]. For example, in the canonical setting of , is the real such that . This solves to . Taylor expanding W and gathering the first few terms of the reciprocal series yields
This sharpens the prior expectation bound of [Bsh26]. Similar calculations can be done for any m and n and to any fixed asymptotic order.
4.4 On Finding the Optimal
As promised, we now mention how the expressions in Theorem 8 and Theorem 9 are derived. We will only focus on the upper bounds; the lower bounds are analogous. We rely on the Cramér transform, a standard tool in the Chernoff method.
Definition 2 (Cramér transform). Let be a convex function. The Cramér transform of , denoted as , is defined by
We will use the following standard lemma about Cramér transforms, provable using calculus.
Lemma 4 ([BLM13, Lemma 2.4]). For a function , define the generalized inverse
For a convex and continuously differentiable function such that and , we have
From this lemma, we can solve the infimum optimization problems in Corollary 1 and Corollary 2. Letting , we see that , and thus by Lemma 4,
is the centered cumulant generating function of Pois( ), and it is known from the literature that for , [BLM13, Section 2.2]. Hence, by Definition 1,
which gives the upper bound in Theorem 8. For the upper bound in Theorem 9, observe that . Applying the same argument to the threshold in Corollary 2 gives
5 Applications
In this section, we present some interesting consequences of Theorem 8 and Theorem 9. The first consequence showcases how tight of expectation bounds we can derive from Theorem 8. The second consequence gives a strong concentration theorem on bin loads. Optimal two-sided bounds pop out of this lemma as a simple corollary.
5.1 Additively Optimal Expected Max Load
We show that in the canonical setting of balls into bins, the expected max load of a random linear map is extremely close to the expected max load of a fully random map. To start, we first bound how close is to the max load of a fully random map in the sparse regime. As the number of balls decreases with respect to the number of bins, the Chernoff threshold grows with respect to the average load. Letting be the average load, and be the Chernoff threshold, we show in the sparse regime where grows sufficiently fast, is within of the expected max load of a fully random map. The proof is inspired by the classic max load lower bounds established via the Poisson Approximation theorem [MU05, Lemma 5.12].
Lemma 5. Let be integers, , and . Define , where is a uniformly random function. If , then we have
Proof. Let and set . If , then since , it follows that . Henceforth, assume , which also implies .
Let be independent Pois( ) random variables. By the Poisson approximation theorem for monotonically decreasing events [MU05, Corollary 5.11],
where the last inequality used . We can crudely bound
It remains to show . Using Stirling's formula [Rob55], we estimate
We now use the definition of t to lower bound
where the last inequality follows from Proposition 1. As and , it follows . Hence, by the limit assumption,
Therefore,
☐
We can now deduce Theorem 2.
Proof of Theorem 2. Denote . Let . We see as long as . Indeed, implies
Hence, we can invoke Lemma 5 and Theorem 8 with m = n to get that
where . Denote , , and , whence . Notice that to show a subsequence of goes to 0, it suffices to show that is monotone increasing, , and . With these three claims, for each integer we can take the first at which crosses that integer; since the increments are , the overshoot (and hence the corresponding fractional parts) approach 0. The first two claims are true as monotonically increases to and monotonically decreases to 0. For the final claim, we first observe
by Proposition 1. Therefore,
since . With the three claims proven, we now conclude.
Remark 1. We note that the same gap can be derived for small enough m relative to n (as dictated by the limit condition in Lemma 5). We do not include the explicit calculations here.
5.2 Concentration
In this section, we use Theorem 8 to prove sharp load concentration and uniformity in the dense regime when . First, we will need some estimates on and in the dense regime.
Proposition 2. Let be a positive real, be integers, and . When , we have
and
Proof. Let , . We first bound since it is easier. By using Proposition 1, we estimate
Thus . We now use a similar calculation to bound . Set . Since , we have . By noting for , and using Proposition 1, we see
Because is increasing and , it follows that .
Remark 2. By combining Proposition 2 with Theorem 8, we obtain that the expected max load for is bounded by , strongly resolving a question of Pathegama and Barg over (see Remark 6 and the preceding paragraph of [PB25]).
We now prove our concentration result: the number of balls in any density- subset of bins will not deviate far from expectation.
Theorem 10. Let , be integers, , such that , and be an arbitrary subset of size . Assume . For a uniform random linear , we have
Proof. Denote and . Notice that is maximized when consists of the heaviest bins. In this case, we will have
Similarly, the minimum value of the expression is obtained when B consists of the r lightest bins, whence
Therefore, for all of size ,
We know from Theorem 9 and a union bound is that for each ,
Therefore, with probability at least , we have simultaneously for all of density that
where we used Proposition 2 in the second inequality.
A corollary of this result is tight two-sided bounds.
Corollary 3. Let , , be integers, and be an arbitrary set of cardinality . For every , a uniformly random linear map satisfies
Proof. The corollary follows by considering all singleton sets in Theorem 10. With probability we have
for all . Multiplying both sides by gives
for all , giving the desired result.
By a Chernoff bound followed by a union bound over all sets of density , it is not hard to see that for constant , Theorem 10 matches the performance of a fully random function. A formal lower bound can be obtained by considering a random set of size and using the probabilistic method. However, the deviation of a random map has a much better dependence on , so it is natural to ask if the dependence on is tight. We show that this is the case up to a log factor.
Theorem 11. Let be powers of two, , . For every sufficiently large (in terms of ), there exists of cardinality such that for uniformly random linear , we have
Proof. We will take to be linearly independent translates of one vector space of size , where is a power of two to be chosen later. More formally, let and . Since , we have . For sufficiently large , we can write and take to be distinct standard basis vectors of . Let . These translates are disjoint, so . We will show that with probability at least , has dimension . Conditioned on this, we show with constant probability that . Setting then yields the desired result.
The probability has dimension is equal to the probability a random element of has rank . This is lower bounded by the probability the first rows are linearly independent, and the last row is in the span of the previous ones. By iteratively looking at the probability the next vector is good given previous ones, we get the lower bound
Conditioning on this event, we denote the hyperplane . Let be the one other coset of (so that ). For each , for some , depending on whether or not. Furthermore, will hash uniformly into . This is seen by noting is a linear map mapping uniformly into . Since , and affine shifts do not change the load distribution of a linear map, it follows hashes evenly into .
Picking uniform is equivalent to picking uniform , and then picking uniform . Hence, for fixed , picking for can be thought of as picking uniform , and then picking uniform . Equivalently, this is the same as randomly picking where with probability , and then picking uniformly from . This latter perspective is what we will adopt.
Since are linearly independent of , are uniform and independent vectors in , even when conditioned on . Hence are independent coin flips. By the fourth-moment method [Ber97, Corollary 3.7] and symmetry, we have with probability at least 1/11. Condition on this event, which intuitively forces the random variable to be biased towards 1.
Let be an arbitrary subset of of size . The probability for is equivalent to the probability , multiplied by the probability a uniform element of is in . The former probability is at least and the latter probability is . Therefore,
We now recap the events we conditioned on. With probability , is of codimension 1. Conditioning on this, with probability at least we have , from which it follows that there exists with density such that . Hence, we have shown that for our constructed ,
Set to be the smallest power of two not less than , making . Thus and
Since , , and is a power of two, we also have , giving the desired result.
Acknowledgements
We thank Nader H. Bshouty, who observed that our initial bound of in Theorem 2 could be improved to the oscillatory bound presented. We thank David Zuckerman for discussions and directing us to the textbook of Boucheron-Lugosi-Massart [BLM13]. We thank Venkatesan Guruswami for asking about more general properties of bins that potentials can handle, which spurred us to consider top-r averages. We also thank Dean Doron and Jesse Goodman for various discussions. We thank Geoffrey Mon and Amit Rajaraman for advice regarding the presentation of this work.
AI Methodology
All mathematical ideas and writing are due to the author. Following the completion of an initial draft, the author used ChatGPT 6 to verify proofs, copyedit prose, and help interpret the results in Lund's manuscript [Lun26].
References
[ADM 97] Noga Alon, Martin Dietzfelbinger, Peter Bro Miltersen, Erez Petrank, and Gábor Tardos. Is linear hashing good? In Proceedings of the Twenty-Ninth Annual ACM Symposium on Theory of Computing (STOC), page 465–474, 1997. doi:10.1145/258533.258639. [pp. 2, 4]
[AGG 25] Omar Alrabiah, Zeyu Guo, Venkatesan Guruswami, Ray Li, and Zihan Zhang. Random Reed-Solomon Codes Achieve List-Decoding Capacity With Linear-Sized Alphabets. Advances in Combinatorics, oct 3 2025. doi:10.19086/aic.2025.8. [p. 2]
[Bab18] Martin Babka. A note on the size of largest bins using placement with linear transformations. 2018. arXiv:1810.04161. [p. 2]
[BBR88] Charles H. Bennett, Gilles Brassard, and Jean-Marc Robert. Privacy amplification by public discussion. SIAM Journal on Computing, 17(2):210–229, 1988. arXiv:https://doi.org/10.1137/0217014, doi:10.1137/0217014. [p. 6]
[Ber97] Bonnie Berger. The fourth moment method. SIAM Journal on Computing, 26(4):1188–1207, 1997. arXiv:https://doi.org/10.1137/S0097539792240005, doi:10.1137/S0097539792240005. [p. 21]
[BLM13] Stéphane Boucheron, Gábor Lugosi, and Pascal Massart. Concentration Inequalities: A Nonasymptotic Theory of Independence. Oxford University Press, 02 2013. doi:10.1093/acprof:oso/9780199535255.001.0001. [pp. 16, 22]
[Bsh26] Nader H. Bshouty. A note on second-order expected maximum-load bounds for binary linear hashing, 2026. URL: https://arxiv.org/abs/2605.18335, arXiv:2605.18335. [pp. 2, 4, 6, 7, 9, 10, 16]
[CGH 96] Robert M. Corless, G. H. Gonnet, D. E. G. Hare, D. J. Jeffrey, and D. E. Knuth. On the lambert w function. Advances in Computational Mathematics, 5(1):329–359, 1996. doi:10.1007/BF02124750. [p. 16]
[CGL22] Eshan Chattopadhyay, Jesse Goodman, and Jyun-Jie Liao. Affine extractors for almost logarithmic entropy. In 2021 IEEE 62nd Annual Symposium on Foundations of Computer Science (FOCS), pages 622–633, 2022. doi:10.1109/FOCS52979.2021.00067. [p. 2]
[CGV13] Mahdi Cheraghchi, Venkatesan Guruswami, and Ameya Velingker. Restricted isometry of fourier matrices and list decodability of random linear codes. SIAM Journal on Computing, 42(5):1888–1914, 2013. arXiv:https://doi.org/10.1137/120896773, doi:10.1137/120896773. [p. 2]
[CL22] Eshan Chattopadhyay and Jyun-Jie Liao. Extractors for sum of two sources. In Proceedings of the 54th Annual ACM SIGACT Symposium on Theory of Computing, STOC 2022, page 1584–1597, New York, NY, USA, 2022. Association for Computing Machinery. doi:10.1145/3519935.3519963. [p. 2]
[CMV13] Kai-Min Chung, Michael Mitzenmacher, and Salil Vadhan. Why simple hash functions work: Exploiting the entropy in a data stream. Theory of Computing, 9(30):897–945, 2013. doi:10.4086/toc.2013.v009a030. [p. 6]
[CW79] J.Lawrence Carter and Mark N. Wegman. Universal classes of hash functions. Journal of Computer and System Sciences, 18(2):143–154, 1979. doi:10.1016/0022-0000(79)90044-8. [p. 2]
[CZ18] Xue Chen and David Zuckerman. Existence of simple extractors. Electronic Colloquium on Computational Complexity (ECCC), 25:116, 2018. URL: https://eccc.weizmann.ac.il/report/2018/116/. [p. 2]
[DD22] Manik Dhar and Zeev Dvir. Linear hashing with guarantees and two-sided kakeya bounds. In 2022 IEEE 63rd Annual Symposium on Foundations of Computer Science (FOCS), pages 419–428, 2022. doi:10.1109/FOCS54457.2022.00047. [pp. 2, 5]
[DLM 26] Dean Doron, Tal Leonov, Jonathan Mosheiff, Henrique Navas, Nicolas Resch, and João Ribeiro. Discrepancy for random linear codes, 2026. URL: https://arxiv.org/abs/2606.24471, arXiv:2606.24471. [pp. 2, 5, 7]
[DW11] Anindya De and Thomas Watson. Extractors and lower bounds for locally samplable sources. In Leslie Ann Goldberg, Klaus Jansen, R. Ravi, and José D. P. Rolim, editors, Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques, pages 483–494, Berlin, Heidelberg, 2011. Springer Berlin Heidelberg. [p. 2]
[Eli55] Peter Elias. Coding for noisy channels. IRE Convention Record, 3(4):37–46, 1955. URL: https://archive.computerhistory.org/resources/access/text/2022/08/102805040-05-037-acc.pdf. [p. 2]
[GHK11] Venkatesan Guruswami, Johan Håstad, and Swastik Kopparty. On the list-decodability of random linear codes. IEEE Transactions on Information Theory, 57(2):718–725, 2011. doi:10.1109/TIT.2010.2095170. [p. 2]
[GHSZ02] V. Guruswami, J. Hastad, M. Sudan, and D. Zuckerman. Combinatorial bounds for list decoding. IEEE Transactions on Information Theory, 48(5):1021–1034, 2002. doi:10.1109/18.995539. [pp. 2, 6, 10]
[GLM 22] Venkatesan Guruswami, Ray Li, Jonathan Mosheiff, Nicolas Resch, Shashwat Silas, and Mary Wootters. Bounds for list-decoding and list-recovery of random linear codes. IEEE Transactions on Information Theory, 68(2):923–939, 2022. doi:10.1109/TIT.2021.3127126. [p. 2]
[Hol77] Lars Holst. Some Asymptotic Results for Occupancy Problems. The Annals of Probability, 5(6):1028 – 1035, 1977. doi:10.1214/aop/1176995671. [p. 2]
[ILL89] R. Impagliazzo, L. A. Levin, and M. Luby. Pseudo-random generation from one-way functions. In Proceedings of the Twenty-First Annual ACM Symposium on Theory of Computing, STOC '89, page 12–24, New York, NY, USA, 1989. Association for Computing Machinery. doi:10.1145/73007.73009. [p. 6]
[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, STOC '25, page 245–255, New York, NY, USA, 2025. Association for Computing Machinery. doi:10.1145/3717823.3718208. [pp. 2, 4, 5, 6, 7, 9, 10]
[KM26] Vinayak M. Kumar and Geoffrey Mon. List decoding, linear hashing, and furstenberg over , 2026. URL: https://arxiv.org/abs/2609.17020, arXiv:2609.17020. [pp. 2, 6, 9]
[Kul68] Solomon Kullback. Information Theory and Statistics. Dover Publications, New York, 1968. [p. 8]
[Li16] Xin Li. Improved two-source extractors, and affine extractors for polylogarithmic entropy. In 2016 IEEE 57th Annual Symposium on Foundations of Computer Science (FOCS), pages 168–177, 2016. doi:10.1109/FOCS.2016.26. [p. 2]
[Lun26] Ben Lund. Two-sided linear hashing and quadratic density bounds for smooth lattice coverings, 2026. URL: https://arxiv.org/abs/2609.20351, arXiv:2609.20351. [pp. 2, 5, 6, 22]
[LW21] Ray Li and Mary Wootters. Improved list-decodability of random linear binary codes. IEEE Transactions on Information Theory, 67(3):1522–1536, 2021. doi:10.1109/TIT.2020.3041650. [pp. 2, 6, 7, 10]
[MCW78] George Markowsky, J. Lawrence Carter, and Mark N. Wegman. Analysis of a universal class of hash functions. In Mathematical Foundations of Computer Science 1978, volume 64 of Lecture Notes in Computer Science, pages 345–354. Springer, 1978. doi:10.1007/3-540-08921-7_82. [p. 2]
[MU05] Michael Mitzenmacher and Eli Upfal. Probability and Computing: Randomized Algorithms and Probabilistic Analysis. Cambridge University Press, Cambridge, 2005. doi:10.1017/CB09780511813603. [pp. 2, 14, 17]
[MV84] Kurt Mehlhorn and Uzi Vishkin. Randomized and deterministic simulations of prams by parallel machines with restricted granularity of parallel memories. Acta Informatica, 21(4):339–374, 1984. doi:10.1007/BF00264615. [p. 2]
[PB25] Madhura Pathegama and Alexander Barg. Rényi divergence guarantees for hashing with linear codes. IEEE Transactions on Information Theory, 71(8):5809–5819, 2025. doi:10.1109/TIT.2025.3577765. [pp. 2, 4, 19]
[Rao09] Anup Rao. Extractors for low-weight affine sources. In 2009 24th Annual IEEE Conference on Computational Complexity, pages 95–101, 2009. doi:10.1109/CCC.2009.36. [p. 2]
[Rob55] Herbert Robbins. A remark on stirling's formula. The American Mathematical Monthly, 62(1):26–29, 1955. URL: http://www.jstor.org/stable/2308012. [p. 17]
[RW14] Atri Rudra and Mary Wootters. Every list-decodable code for high noise has abundant near-optimal rate puncturings. In Proceedings of the Forty-Sixth Annual ACM Symposium on Theory of Computing, STOC '14, page 764–773, New York, NY, USA, 2014. Association for Computing Machinery. doi:10.1145/2591796.2591797. [p. 2]
[Sil26] Shashwat Silas. The list size of random linear codes at capacity, 2026. URL: https://arxiv.org/abs/2609.06570, arXiv:2609.06570. [p. 2]
[Woo13] Mary Wootters. On the list decodability of random linear codes with large error rates. In Proceedings of the Forty-Fifth Annual ACM Symposium on Theory of Computing, STOC '13, page 853–860, New York, NY, USA, 2013. Association for Computing Machinery. doi:10.1145/2488608.2488716. [p. 2]
[Woo14] Mary Katherine Wootters. Any Errors in This Dissertation Are Probably Fixable: Topics in Probability and Error Correcting Codes. Ph.d. dissertation, University of Michigan, 2014. URL: https://deepblue.lib.umich.edu/handle/2027.42/108844. [p. 2]
[YZ26] Chen Yuan and Ruiqi Zhu. Asymptotically optimal list size of random linear codes, 2026. URL: https://arxiv.org/abs/2609.01070, arXiv:2609.01070. [p. 2]
[ZP81] V. V. Zyablov and M. S. Pinsker. List cascade decoding. Problems of Information Transmission, 17(4):236–240, 1981. URL: https://www.mathnet.ru/eng/ppi1415. [p. 2]