Matrix Norms in Data Streams: Faster, Multi-Pass and Row-Order

Vladimir Braverman, Stephen R. Chestnut, Robert Krauthgamer, Yi Li, David P. Woodruff, Lin F. Yang

Overview

In modern machine learning, datasets are often too massive to fit into memory and must be processed on the fly as a "stream." A fundamental task in this setting is characterizing a large matrix by its Schatten $p$-norms (the $L_p$ norms of the matrix's singular values), which serve as crucial surrogates for properties like rank, condition number, and principal components.

This paper introduces a new suite of algorithms for estimating Schatten $p$-norms of large matrices in data streams. By leveraging a novel bilinear sketching estimator and sparse random projections, the authors achieve significant speedups in update and query times. Furthermore, they prove that multi-pass and row-order processing can drastically reduce memory requirements compared to traditional single-pass models.

The Challenge of Streaming Matrix Norms

Existing streaming algorithms for Schatten norms have historically faced three major hurdles:

  1. Efficiency: Slow "update times" (processing a new entry) or "query times" (outputting the final estimate).
  2. Memory: Single-pass algorithms often require nearly as much memory as storing the matrix itself.
  3. Access Patterns: Most research has focused on "entry-wise" updates (randomly ordered entries), ignoring the "row-order" model (reading the matrix one row at a time), which is standard when data is read from disk.

A Faster, Sparser Approach

To overcome these limitations, the authors introduce a new unbiased estimator for the trace of $A^p$, which is equivalent to the $p$-th power of the Schatten $p$-norm for Positive Semidefinite (PSD) matrices.

  • Bilinear Sketching: Instead of a single large sketch, the method uses a sequence of sketches. This decoupled structure allows for more flexible and efficient processing.
  • Sparse ZD-Sketches: To solve the speed problem, dense Gaussian sketching matrices are replaced with "Sparse ZD-sketches." These matrices have only one non-zero entry per column, reducing the update time from a function of the matrix size to a constant $O(1/\epsilon^2)$.
Update time comparison showing Sparse ZD Sketch is orders of magnitude faster than Gaussian Sketch.
  • Multi-Pass Strategy: If the algorithm can pass over the data $p/2$ times, a "peeling" technique can significantly reduce the memory footprint to sublinear levels ($O(n^{1-1/(p-1)})$).
  • Row-Order Reduction: For sparse matrices, row-order access allows the algorithm to form $A^T A$ "on the fly," effectively reducing the problem of estimating a Schatten $p$-norm to a simpler Schatten $(p/2)$-norm problem.

Key Insights and Results

The paper evaluates these algorithms using synthetic datasets (Gaussian and Bernoulli matrices) to represent extreme cases, comparing accuracy and update speed against previous state-of-the-art methods.

  • Massive Speedups: The new algorithms achieve an update time of $O(1/\epsilon^2)$, orders of magnitude faster than previous dense Gaussian sketches that required at least $\Theta(n^{2-4/p})$ operations per update. Query time is also reduced from $O(n^{p-2})$ to roughly the time of a standard matrix multiplication.
  • Decoupling for Sparsity: A major technical challenge was that sparse sketches lack the "rotational invariance" of Gaussian matrices. The authors used a clever "symmetrization-and-decoupling" argument to prove that sparse sketches are just as accurate as dense ones.
Schatten-norm estimation accuracy comparing Sparse Sketch and Gaussian Sketch against the True Value.
  • Memory Separation: The authors proved that multi-pass algorithms can use strictly less memory than what is provably required for single-pass algorithms, providing a formal "separation" between these streaming models.
  • The PSD Advantage: If a matrix is known to be PSD, the lower bounds for memory are much more forgiving than for general matrices, allowing for more efficient algorithms. Conversely, they proved that for non-integer $p$, even PSD matrices require nearly linear memory in a single pass.

Limitations and Future Work

While the theoretical speedups are massive, the experimental section is limited to relatively small synthetic matrices ($n=200$). Testing these on real-world, billion-row datasets is the next logical step for practitioners. Additionally, many of the most efficient upper bounds apply specifically to integer values of $p \ge 2$; extending these high-efficiency results to non-integer $p$ remains an open challenge. Finally, while near-optimal bounds are provided for row-order streams, a small polynomial gap remains for the specific case where $p \equiv 2 \pmod 4$.

Summary updated

BibTeX
@inproceedings{braverman2018matrix,
  author = {Vladimir Braverman and Stephen R. Chestnut and Robert Krauthgamer and Yi Li and David P. Woodruff and Lin F. Yang},
  title = {{Matrix Norms in Data Streams: Faster, Multi-Pass and Row-Order}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
  url = {https://openreview.net/forum?id=Hy-G73bdbr},
}
Figure