Sparse Dimensionality Reduction Revisited

Mikael Møller Høgsgaard, Lior Kamma, Kasper Green Larsen, Jelani Nelson, Chris Schwiegelshohn

Introduction

Dimensionality reduction is often considered the "Swiss Army Knife" of big data processing. The goal is to project high-dimensional data into a much lower-dimensional space while preserving the pairwise distances between points. For over a decade, the theoretical limits of sparse dimensionality reduction appeared to have plateaued. However, this paper breaks that plateau by demonstrating that faster embeddings are possible when the data's original dimension ($d$) is significantly smaller than the number of points ($n$). By providing new, tighter upper and lower bounds for the sparsity of Johnson-Lindenstrauss (JL) matrices, the authors offer the first sparsity improvement for optimal-dimension subspace embeddings.

The Problem: Sparsity in the JL Transform

The gold standard for dimensionality reduction is the Johnson-Lindenstrauss (JL) Lemma, which states that we can project $n$ points into just $m = O(\varepsilon^{-2} \log n)$ dimensions while only distorting distances by a factor of $(1 \pm \varepsilon)$.

To make this projection computationally efficient, practitioners use Sparse JL transforms. Instead of a dense projection matrix, they use a matrix $A$ where each column has only $s$ non-zero entries. The computation time for embedding a vector $x$ then becomes $O(s \|x\|_0)$. Naturally, minimizing $s$ is critical for speeding up the transform.

For years, the state-of-the-art sparsity was bounded at $s = O(\varepsilon^{-1} \log n)$. However, this bound was derived under the worst-case assumption that the original dimension $d$ is at least as large as $n$. In many real-world applications—such as natural language processing (bag-of-words) or clickstream analysis—the original dimension $d$ is actually much smaller than the number of points $n$.

To motivate this $d \ll n$ regime, the authors point to real-world datasets like Sentiment140 (1.6 million tweets with a vocabulary of ~37,000, making $n \approx 43d$) and Kosarak (~900,000 clickstream transactions with ~41,000 distinct items, making $n \approx 22d$). This paper asks a fundamental question: Can we exploit a smaller $d$ to achieve even better sparsity?

Methodology: Exploiting the $d \ll n$ Regime

The authors revisit the standard CountSketch-based construction, introducing a more refined analysis of how random matrices interact with vectors. Their primary innovation is a "Head-Tail" split strategy:

  1. The Head-Tail Split: Every input vector $x$ is decomposed into a "head" (the largest entries) and a "tail" (the remaining small entries).
  2. Exploiting $d$ for the Head: Because $d \ll n$, there are fewer possible "positions" for the heavy entries in the head. This structural constraint allows the authors to use a tighter union bound over an $\varepsilon$-net of possible head configurations, drastically reducing the required sparsity.
  3. Concentration for the Tail: For the tail, they leverage existing "Feature Hashing" results, which demonstrate that vectors with small entries (a low $\ell_\infty/\ell_2$ ratio) are inherently easier to embed.
  4. Subspace Combinatorics: For subspace embeddings, the authors utilize a combinatorial lemma to prove that in any $k$-dimensional subspace, the "heavy" coordinates of all unit vectors must be concentrated within a relatively small set of indices.

Key Results

By looking past the "near-optimal" illusion of previous lower bounds (which only held for $d \geq n$), the authors uncovered significant room for improvement.

  • New Sparsity Bound: For $d \ll n$, they achieved a new sparsity bound: $$s = O\left(\frac{1}{\varepsilon} \left( \frac{\log n}{\log(1/\varepsilon)} + \log^{2/3} n \log^{1/3} d \right)\right)$$ This is strictly better than the previous $O(\varepsilon^{-1} \log n)$ bound when $d$ is small.

  • Subspace Breakthrough: In subspace embeddings, there is typically a trade-off where high sparsity requires a larger target dimension $m$. This paper provides the first proof that one can achieve $o(k/\varepsilon)$ sparsity without increasing $m$ beyond the optimal $O(k/\varepsilon^2)$. They proved a sparsity bound for $k$-dimensional subspaces: $$s = O\left(\frac{1}{\varepsilon} \left( \frac{k}{\log(1/\varepsilon)} + k^{2/3} \log^{1/3} k \right)\right)$$

  • Tightness: The authors didn't just improve the upper bounds; they also strengthened the lower bounds to show that their new sparsity results are essentially tight for the first term of the complexity, providing a nearly complete theoretical picture.

Limitations and Future Work

While this work represents a major theoretical leap, a few challenges remain:

  • The Gap in Subspaces: The subspace result is a breakthrough, but it is still far from the conjectured optimal sparsity of $O(\varepsilon^{-1} \log k)$. Closing this specific gap remains an open challenge for the field.
  • Asymptotic Focus: The paper focuses heavily on Big-O notation and asymptotic improvements. In practice, the constant factors hidden in these bounds will ultimately determine whether the new method is faster for a specific dataset.
  • Regime Specificity: The benefits of this approach are most pronounced when $d$ is significantly smaller than $n$. If $d \approx n$, the results naturally revert to the classical bounds.

Summary updated

BibTeX
@inproceedings{hgsgaard2024sparse,
  author = {Mikael Møller Høgsgaard and Lior Kamma and Kasper Green Larsen and Jelani Nelson and Chris Schwiegelshohn},
  title = {{Sparse Dimensionality Reduction Revisited}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=ufgVvFmUom},
}
Figure