Learning the Positions in CountSketch
Yi Li, Honghao Lin, Simin Liu, Ali Vakilian, David P. Woodruff
Abstract
We consider sketching algorithms which first compress data by multiplication with a random sketch matrix, and then apply the sketch to quickly solve an optimization problem, e.g., low-rank approximation and regression. In the learning-based sketching paradigm proposed by [IVY19], the sketch matrix is found by choosing a random sparse matrix, e.g., CountSketch, and then the values of its non-zero entries are updated by running gradient descent on a training data set. Despite the growing body of work on this paradigm, a noticeable omission is that the locations of the non-zero entries of previous algorithms were fixed, and only their values were learned. In this work, we propose the first learning-based algorithms that also optimize the locations of the non-zero entries. Our first proposed algorithm is based on a greedy algorithm. However, one drawback of the greedy algorithm is its slower training time. We fix this issue and propose approaches for learning a sketching matrix for both low-rank approximation and Hessian approximation for second order optimization. The latter is helpful for a range of constrained optimization problems, such as LASSO and matrix estimation with a nuclear norm constraint. Both approaches achieve good accuracy with a fast running time. Moreover, our experiments suggest that our algorithm can still reduce the error significantly even if we only have a very limited number of training matrices.
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.
Cited by top-tier papers14
- HyperAttention: Long-context Attention in Near-Linear TimeInsu Han, Rajesh Jayaram, Amin Karbasi, Vahab Mirrokni et al.ICLR 2024 · 104 citations
- Improved Frequency Estimation Algorithms with and without PredictionsAnders Aamand, Justin Y. Chen, Huy Lê Nguyen, Sandeep Silwal et al.NeurIPS 2023 · 16 citations
- Sample complexity of data-driven tuning of model hyperparameters in neural networks with structured parameter-dependent dual functionMaria-Florina Balcan, Anh Nguyen, Dravyansh SharmaNeurIPS 2025 · 14 citations
- Generalization Bound and Learning Methods for Data-Driven Projections in Linear ProgrammingShinsaku Sakaue, Taihei OkiNeurIPS 2024 · 13 citations
- Clustering the Sketch: Dynamic Compression for Embedding TablesHenry Ling-Hei Tsang, Thomas D. AhleNeurIPS 2023 · 5 citations
Builds on2
Related papers
- Few-Shot Data-Driven Algorithms for Low Rank ApproximationPiotr Indyk, Tal Wagner, David P. WoodruffNeurIPS 2021 · 12 citations
- Newton-LESS: Sparsification without Trade-offs for the Sketched Newton UpdateMichal Derezinski, Jonathan Lacotte, Mert Pilanci, Michael W. MahoneyNeurIPS 2021 · 32 citations
- Sketching for Convex and Nonconvex Regularized Least Squares with Sharp GuaranteesYingzhen Yang, Ping LiICLR 2025
- Optimal Iterative Sketching Methods with the Subsampled Randomized Hadamard TransformJonathan Lacotte, Sifan Liu, Edgar Dobriban, Mert PilanciNeurIPS 2020 · 15 citations
- Can Gaussian Sketching Converge Faster on a Preconditioned Landscape?Yilong Wang, Haishan Ye, Guang Dai, Ivor W. TsangICML 2024 · 1 citation
