Linear Hashing with $ell_infty$ guarantees and two-sided Kakeya bounds

    Read original: arXiv:2204.01665 - Published 4/3/2024 by Manik Dhar, Zeev Dvir
    Total Score

    0

    🖼️

    Sign in to get full access

    or

    If you already have an account, we'll log you in

    Overview

    • The paper shows that randomly chosen linear maps over a finite field can act as good hash functions, in the sense that the resulting values are close to uniformly distributed.
    • This complements the Leftover Hash Lemma, which proves a similar result but for a broader class of functions and under a different distance measure.
    • The authors also show that their results are tight, meaning linear hash functions are as effective as truly random functions, up to a constant factor in the entropy loss.

    Plain English Explanation

    Hashing is a way to convert data into a shorter, fixed-size output called a hash value. Hash functions are an important tool in computer science, with applications in areas like cryptography, data storage, and databases. A good hash function should distribute the hash values uniformly, meaning each possible output value is equally likely.

    In this paper, the researchers looked at using simple linear functions as hash functions. Linear functions are easy to compute and have other desirable properties, but it's not obvious that they would hash data effectively. The researchers showed that randomly chosen linear functions actually do a great job of hashing, in the sense that the resulting hash values are close to being uniformly distributed.

    This is an important result because it means you can get the benefits of good hashing without the complexity of more sophisticated hash functions. The linear hash functions are almost as good as truly random hash functions, losing only a small amount of "entropy" or randomness in the process.

    Technical Explanation

    The researchers consider a finite field 𝔽_q, which is a mathematical structure with a fixed number of elements q. They take a set S of n-dimensional vectors over 𝔽_q, and a randomly chosen linear map L that converts these n-dimensional vectors into t-dimensional vectors over 𝔽_q, where t is chosen to be smaller than the size of S.

    The main result shows that, with high probability over the choice of the linear map L, the distribution of the hash values L(U_S) (where U_S is a uniformly random element of S) is close to the uniform distribution on 𝔽_q^t in the ℓ_∞ norm. This means that every possible hash value has about the same number of elements from S mapped to it.

    This complements prior work on the Leftover Hash Lemma, which shows a similar result but under the ℓ_1 (statistical) distance for a broader class of hash functions. The authors also show that their bounds are tight, meaning linear hash functions are optimal up to a constant factor in the entropy loss.

    The proof of this result relies on connections to the finite field Kakeya problem and uses techniques from the polynomial method in theoretical computer science.

    Critical Analysis

    The paper provides a strong theoretical foundation for using simple linear functions as hash functions, showing that they can be as effective as more complex hash functions. This is an important result with practical implications, as linear functions are easy to compute and have other desirable properties.

    One potential limitation of the work is that it focuses solely on the ℓ_∞ norm as the measure of distribution quality, whereas the Leftover Hash Lemma considers the stronger ℓ_1 (statistical) distance. It would be interesting to see if similar tight results could be obtained for the ℓ_1 distance as well.

    Additionally, the paper does not consider the performance of these linear hash functions in real-world applications, such as the distribution of hash values in a hash table. Further empirical analysis could provide valuable insights into the practical effectiveness of this approach.

    Overall, the paper makes an important theoretical contribution to the understanding of linear hash functions, and the techniques developed could potentially be applied to other areas of computer science and mathematics.

    Conclusion

    This paper demonstrates that randomly chosen linear maps can serve as effective hash functions, with the resulting hash values being close to uniformly distributed. This is a significant result, as linear functions are simple to compute and have other desirable properties, but it was not obvious that they would hash data effectively.

    The researchers' analysis shows that linear hash functions are nearly as good as truly random hash functions, losing only a small amount of entropy in the process. This means that you can enjoy the benefits of good hashing without the complexity of more sophisticated approaches.

    While the paper focuses on the theoretical aspects of this problem, the insights gained could have important practical implications for the design and implementation of hash-based data structures and algorithms. As such, this work represents an important contribution to the field of computer science and may inspire further research into the properties and applications of linear hash functions.



    This summary was produced with help from an AI and may contain inaccuracies - check out the links to read the original source documents!

    Follow @aimodelsfyi on 𝕏 →

    Related Papers

    🖼️

    Total Score

    0

    Linear Hashing with $ell_infty$ guarantees and two-sided Kakeya bounds

    Manik Dhar, Zeev Dvir

    We show that a randomly chosen linear map over a finite field gives a good hash function in the $ell_infty$ sense. More concretely, consider a set $S subset mathbb{F}_q^n$ and a randomly chosen linear map $L : mathbb{F}_q^n to mathbb{F}_q^t$ with $q^t$ taken to be sufficiently smaller than $ |S|$. Let $U_S$ denote a random variable distributed uniformly on $S$. Our main theorem shows that, with high probability over the choice of $L$, the random variable $L(U_S)$ is close to uniform in the $ell_infty$ norm. In other words, {em every} element in the range $mathbb{F}_q^t$ has about the same number of elements in $S$ mapped to it. This complements the widely-used Leftover Hash Lemma (LHL) which proves the analog statement under the statistical, or $ell_1$, distance (for a richer class of functions) as well as prior work on the expected largest 'bucket size' in linear hash functions [ADMPT99]. By known bounds from the load balancing literature [RS98], our results are tight and show that linear functions hash as well as trully random function up to a constant factor in the entropy loss. Our proof leverages a connection between linear hashing and the finite field Kakeya problem and extends some of the tools developed in this area, in particular the polynomial method.

    Read more

    4/3/2024

    🎯

    Total Score

    0

    Gaussian kernel expansion with basis functions uniformly bounded in $mathcal{L}_{infty}$

    Mauro Bisiacco, Gianluigi Pillonetto

    Kernel expansions are a topic of considerable interest in machine learning, also because of their relation to the so-called feature maps introduced in machine learning. Properties of the associated basis functions and weights (corresponding to eigenfunctions and eigenvalues in the Mercer setting) give insight into for example the structure of the associated reproducing kernel Hilbert space, the goodness of approximation schemes, the convergence rates and generalization properties of kernel machines. Recent work in the literature has derived some of these results by assuming uniformly bounded basis functions in $mathcal{L}_infty$. Motivated by this line of research, we investigate under this constraint all possible kernel expansions of the Gaussian kernel, one of the most widely used models in machine learning. Our main result is the construction on $mathbb{R}^2$ of a Gaussian kernel expansion with weights in $ell_p$ for any $p>1$. This result is optimal since we also prove that $p=1$ cannot be reached by the Gaussian kernel, nor by any of the other radial basis function kernels commonly used in the literature. A consequence for this kind of kernels is also the non-existence of Mercer expansions on $mathbb{R}^2$, with respect to any finite measure, whose eigenfunctions all belong to a closed ball of $mathcal{L}_infty$.

    Read more

    10/3/2024

    A new Linear Time Bi-level $ell_{1,infty}$ projection ; Application to the sparsification of auto-encoders neural networks
    Total Score

    0

    A new Linear Time Bi-level $ell_{1,infty}$ projection ; Application to the sparsification of auto-encoders neural networks

    Michel Barlaud, Guillaume Perez, Jean-Paul Marmorat

    The $ell_{1,infty}$ norm is an efficient-structured projection, but the complexity of the best algorithm is, unfortunately, $mathcal{O}big(n m log(n m)big)$ for a matrix $ntimes m$. In this paper, we propose a new bi-level projection method, for which we show that the time complexity for the $ell_{1,infty}$ norm is only $mathcal{O}big(n m big)$ for a matrix $ntimes m$. Moreover, we provide a new $ell_{1,infty}$ identity with mathematical proof and experimental validation. Experiments show that our bi-level $ell_{1,infty}$ projection is $2.5$ times faster than the actual fastest algorithm and provides the best sparsity while keeping the same accuracy in classification applications.

    Read more

    7/24/2024

    Total Score

    0

    R'enyi-infinity constrained sampling with $d^3$ membership queries

    Yunbum Kook, Matthew S. Zhang

    Uniform sampling over a convex body is a fundamental algorithmic problem, yet the convergence in KL or R'enyi divergence of most samplers remains poorly understood. In this work, we propose a constrained proximal sampler, a principled and simple algorithm that possesses elegant convergence guarantees. Leveraging the uniform ergodicity of this sampler, we show that it converges in the R'enyi-infinity divergence ($mathcal R_infty$) with no query complexity overhead when starting from a warm start. This is the strongest of commonly considered performance metrics, implying rates in ${mathcal R_q, mathsf{KL}}$ convergence as special cases. By applying this sampler within an annealing scheme, we propose an algorithm which can approximately sample $varepsilon$-close to the uniform distribution on convex bodies in $mathcal R_infty$-divergence with $widetilde{mathcal{O}}(d^3, text{polylog} frac{1}{varepsilon})$ query complexity. This improves on all prior results in ${mathcal R_q, mathsf{KL}}$-divergences, without resorting to any algorithmic modifications or post-processing of the sample. It also matches the prior best known complexity in total variation distance.

    Read more

    7/19/2024