Low-Rank Thinning

Annabelle Michael Carrell, Albert Gong, Abhishek Shetty, Raaz Dwivedi, Lester Mackey

Introduction

In the era of "Big Data," the ability to compress massive datasets into small, representative subsets—a process known as thinning—is essential for scalable machine learning. While uniform subsampling is the standard approach, it is often mathematically noisy, requiring a large number of points to maintain signal integrity. Advanced "sub-Gaussian" thinning algorithms, such as Kernel Halving, offer better empirical performance but have historically lacked robust theoretical guarantees, often falling victim to the "curse of dimensionality."

This research introduces a novel low-rank theoretical framework for thinning. By demonstrating that thinning performance depends on the underlying low-rank structure of data rather than its raw dimensionality, the authors provide a bridge between theory and practice. This framework leads to new, faster methods for Transformer attention, Stochastic Gradient Descent (SGD) training, and statistical testing.

The Low-Rank Analysis of Thinning

The core innovation of this work is the shift from analyzing raw data dimensions ($d$) to analyzing the eigenvalues of the kernel matrix. The authors prove that if the eigenvalues of a kernel decay quickly—indicating that the data is "nearly low-rank"—the error associated with thinning is significantly reduced.

This "dimension-free" guarantee explains why sub-Gaussian thinning algorithms perform exceptionally well on high-dimensional neural network embeddings. Furthermore, the authors show that algorithms like Kernel Halving and Compress are not merely heuristics but are minimax rate-optimal under these low-rank conditions.

Practical Applications

1. Thinformer: Efficient Transformer Attention

Traditional Transformer attention scales quadratically ($n^2$) with sequence length. Thinformer utilizes a specialized attention kernel to select a representative subset of key-value pairs. This reduces computational complexity to sub-quadratic ($n^{1+a}$) levels while maintaining high performance. On ImageNet 2012, Thinformer achieved 82.18% accuracy, nearly matching the 82.55% of exact attention, while outperforming other efficient variants like KDEformer, Performer, and Reformer.

2. LKH-SGD: Optimized Data Reordering

In neural network training, the order in which data points are presented to the model matters. Linear Kernel Halving SGD (LKH-SGD) uses the thinning framework to reorder data points more intelligently than standard random shuffling. Unlike previous theoretical reordering rules that were too computationally expensive for practical use, LKH-SGD is both mathematically fast in terms of convergence and cheap to implement. In tests on the Home Mortgage Disclosure Act (HMDA) dataset, LKH-SGD significantly outperformed random reshuffling.

3. CTT: Near-Linear Time Statistical Testing

Two-sample testing—determining if two datasets originate from the same distribution—is often computationally intensive. The Compress Then Test (CTT) approach uses deep learning kernels to compress data before testing. On the Higgs Boson dataset, CTT matched the statistical power of an "exact" Maximum Mean Discrepancy (MMD) test but ran in a fraction of the time, proving that heavy compression does not necessarily sacrifice the ability to detect subtle distribution shifts.

Key Insights and Results

The research highlights that the effective rank of data is the primary driver of thinning quality. This insight allows for the application of thinning to high-dimensional tasks where traditional methods fail.

Key results include:

  • Scalability: Thinformer provides a viable path for scaling Transformers to longer sequences without the typical memory overhead.
  • Convergence: LKH-SGD provides a solid theoretical foundation for data reordering without requiring hyperparameter tuning.
  • Efficiency: CTT demonstrates that near-linear time statistical testing is possible even with complex, high-dimensional datasets.

Limitations and Future Directions

The primary limitation of this framework is its dependency on the low-rank structure of the kernel matrix. In scenarios where data is extremely high-rank (such as pure white noise), the advantages over uniform subsampling diminish. Additionally, selecting the optimal kernel for a specific task still requires domain expertise.

Future research may extend this low-rank thinning framework to Bayesian inference for summarizing posterior distributions and to active learning, where selecting the most representative points is critical for model performance.

Summary updated

BibTeX
@inproceedings{carrell2025low,
  author = {Annabelle Michael Carrell and Albert Gong and Abhishek Shetty and Raaz Dwivedi and Lester Mackey},
  title = {{Low-Rank Thinning}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=iAkg2nVmvN},
}
Figure