Modern data science often deals with "Big Sparse Data"—massive datasets where the vast majority of entries are zero. While classical dimensionality reduction techniques like the Johnson-Lindenstrauss transform or Singular Value Decomposition (SVD) are designed to compress data, they frequently suffer from a "density explosion." By mixing sparse input features into dense linear combinations, these methods can paradoxically increase memory consumption and destroy the computational advantages of the original sparse format.
A growing body of research focuses on sketching and sampling techniques that preserve the inherent sparsity of the data throughout the compression process.
The Problem of Density Explosion
Standard randomized projections, such as those using Gaussian matrices, transform sparse input vectors into dense representations. As noted by Michael W. Mahoney in his Lecture Notes on Randomized Linear Algebra, this loss of sparsity can negate the benefits of sketching by increasing the memory footprint and processing time of downstream solvers.
In fields like face recognition, this densification is even more damaging. John Wright and colleagues demonstrate in Sparsity and Robustness in Face Recognition that dense projections "smear" localized errors (like occlusions) across all dimensions. This destroys the spatial sparsity that algorithms need to identify and ignore corrupted data regions.
Row Sampling and Coresets
The most direct way to preserve sparsity is to avoid linear combinations entirely. Instead of creating synthetic features, researchers use importance sampling to select a representative subset of the original data.
- Leverage Score Sampling: Yin Tat Lee and Christopher Musco show in Uniform Sampling for Matrix Approximation that one can use fast uniform sampling to estimate "leverage scores," which identify the most influential rows. By reweighting these original rows, the sketch maintains the exact sparsity pattern of the input.
- Coresets: Dan Feldman and Daniela Rus extend this to Dimensionality Reduction of Massive Sparse Datasets Using Coresets. They produce small, weighted subsets of the original data where the size of the "coreset" is independent of the original dimensions, ensuring that the compressed version is just as memory-efficient as the source.
Sparse Sketching and Hashing
When sampling is insufficient, researchers use "sparse sketches" that limit the number of non-zero entries in the projection matrix itself.
The "hashing trick," popularized by Kilian Q Weinberger and John Langford in Feature hashing for large scale multitask learning, uses signed hash functions to map high-dimensional features into a lower-dimensional space. Because each input feature maps to only one (or a few) output dimensions, the sparsity of the data is largely maintained.
Recent advancements have moved toward learned sketches. In Extending and Improving Learned CountSketch, David Woodruff and Ali Vakilian demonstrate that optimizing the location of non-zero entries in a sketch matrix—rather than just the weights—can prevent collisions between heavy hitters in the data, further improving accuracy without increasing density.
Sparsity-Aware Optimization
Finally, the benefits of these sketches are only realized if the optimization solvers can handle them. Zhao Song and Zheng Yu introduced the Oblivious Sketching-based Central Path Method for Linear Programming, which uses Coordinate-wise Embedding (OCE). This allows linear programming solvers to maintain the inherent sparsity of the problem throughout the "central path" of the optimization, ensuring that the computational speedups of dimensionality reduction aren't lost to dense intermediate matrix-vector multiplications.