Random matrices in service of ML footprint: ternary random features with no performance loss
Hafiz Tiomoko Ali, Zhenyu Liao, Romain Couillet
Abstract
In this article, we investigate the spectral behavior of random features kernel matrices of the type K = E w [σ(w T x i )σ(w T x j )] n i,j=1 , with nonlinear function σ(•), data x 1 , . . . , x n ∈ R p , and random projection vector w ∈ R p having i.i.d. entries. In a high-dimensional setting where the number of data n and their dimension p are both large and comparable, we show, under a Gaussian mixture model for the data, that the eigenspectrum of K is independent of the distribution of the i.i.d. (zero-mean and unit-variance) entries of w, and only depends on σ(•) via its (generalized) Gaussian moments E z∼N (0,1) [σ ′ (z)] and E z∼N (0,1) [σ ′′ (z)]. As a result, for any kernel matrix K of the form above, we propose a novel random features technique, called Ternary Random Feature (TRF), that (i) asymptotically yields the same limiting kernel as the original K in a spectral sense and (ii) can be computed and stored much more efficiently, by wisely tuning (in a data-dependent manner) the function σ and the random vector w, both taking values in -1, 0, 1. The computation of the proposed random features requires no multiplication, and a factor of b times less bits for storage compared to classical random features such as random Fourier features, with b the number of bits to store full precision values. Besides, it appears in our experiments on real data that the substantial gains in computation and storage are accompanied with somewhat improved performances compared to state-of-the-art random features compression/quantization methods. Published as a conference paper at ICLR 2022 Laplacian kernel for Cauchy distributed w with the same choice of σ) (Rahimi & Recht, 2008) ; for σ(x) = max(x, 0), one approximates the first order Arc-cosine kernel; and the zeroth order Arc-cosine kernel (Cho, 2012) with σ(x) = (1 + sign(x))/2, etc. As shall be seen subsequently, (random) neural networks are, to a large extent, connected to kernel matrices of the form (1). More specifically, the classification or regression performance at the output of random neural networks are functionals of random matrices that fall into the wide class of kernel random matrices. Perhaps more surprisingly, this connection still exists for deep neural networks which are (i) randomly initialized and (ii) trained with gradient descent, as testified by the recent works on neural tangent kernels (Jacot et al., 2018) , by considering the "infinitely many neurons" limit, that is, the limit where the network widths of all layers go to infinity simultaneously. This close connection between neural networks and kernels has triggered a renewed interest for the theoretical investigation of deep neural networks from various perspectives, including optimization (
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 2c08a63f-df12-4065-8acc-344b3cf5cd78Cited by top-tier papers4
- "Lossless" Compression of Deep Neural Networks: A High-dimensional Neural Tangent Kernel ApproachLingyu Gu, Yongqi Du, Yuan Zhang, Di Xie et al.NeurIPS 2022 · 9 citations
- Random Matrix Analysis to Balance between Supervised and Unsupervised Learning under the Low Density Separation AssumptionVasilii Feofanov, Malik Tiomoko, Aladin VirmauxICML 2023 · 8 citations
- Deep Equilibrium Models are Almost Equivalent to Not-so-deep Explicit Models for High-dimensional Gaussian MixturesZenan Ling, Longbo Li, Zhanbo Feng, Yixuan Zhang et al.ICML 2024 · 6 citations
- Eigen Analysis of Conjugate Kernel and Neural Tangent KernelXiangchao Li, Xiao Han, Qing YangICML 2025
Builds on7
- A random matrix analysis of random Fourier features: beyond the Gaussian kernel, a precise phase transition, and the corresponding double descentZhenyu Liao, Romain Couillet, Michael W. MahoneyNeurIPS 2020 · 102 citations
- Spectra of the Conjugate Kernel and Neural Tangent Kernel for linear-width neural networksZhou Fan, Zhichao WangNeurIPS 2020 · 101 citations
- Implicit Regularization of Random Feature ModelsArthur Jacot, Berfin Simsek, Francesco Spadaro, Clément Hongler et al.ICML 2020 · 83 citations
- Exact expressions for double descent and implicit regularization via surrogate random designMichal Derezinski, Feynman T. Liang, Michael W. MahoneyNeurIPS 2020 · 81 citations
- Random Matrix Theory Proves that Deep Learning Representations of GAN-data Behave as Gaussian MixturesMohamed El Amine Seddik, Cosme Louart, Mohamed Tamaazousti, Romain CouilletICML 2020 · 78 citations
Related papers
- Quantization Algorithms for Random Fourier FeaturesXiaoyun Li, Ping LiICML 2021 · 15 citations
- Two-way kernel matrix puncturing: towards resource-efficient PCA and spectral clusteringRomain Couillet, Florent Chatelain, Nicolas Le BihanICML 2021 · 11 citations
- General Graph Random FeaturesIsaac Reid, Krzysztof Marcin Choromanski, Eli Berger, Adrian WellerICLR 2024 · 11 citations
- Sparse Quantized Spectral ClusteringZhenyu Liao, Romain Couillet, Michael W. MahoneyICLR 2021 · 18 citations
- Analysis of one-hidden-layer neural networks via the resolvent methodVanessa Piccolo, Dominik SchröderNeurIPS 2021 · 14 citations
