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 · DOI

Abstract

A central problem in data streams is to characterize which functions of an underlying frequency vector can be approximated efficiently. Recently there has been considerable effort in extending this problem to that of estimating functions of a matrix that is presented as a data-stream. This setting generalizes classical problems to the analogous ones for matrices. For example, instead of estimating frequent-item counts, we now wish to estimate "frequent-direction" counts. A related example is to estimate norms, which now correspond to estimating a vector norm on the singular values of the matrix. Despite recent efforts, the current understanding for such matrix problems is considerably weaker than that for vector problems. We study a number of aspects of estimating matrix norms in a stream that have not previously been considered: (1) multi-pass algorithms, (2) algorithms that see the underlying matrix one row at a time, and (3) time-efficient algorithms. Our multi-pass and row-order algorithms use less memory than what is provably required in the single-pass and entrywise-update models, and thus give separations between these models (in terms of memory). Moreover, all of our algorithms are considerably faster than previous ones. We also prove a number of lower bounds, and obtain for instance, a near-complete characterization of the memory required of row-order algorithms for estimating Schatten $p$-norms of sparse matrices.

Introduction

In the era of massive datasets, many matrices are too large to store in memory and must be processed as streams. Estimating the Schatten $p$-norm—defined as the $\ell_p$ norm of the matrix's singular values—is a fundamental task, as these norms serve as proxies for rank, condition number, and principal components. While vector streaming is well-understood, matrix streaming presents unique challenges in terms of memory and computational efficiency.

This paper addresses these challenges by exploring three key dimensions: multi-pass algorithms, row-order streaming models, and time-efficient updates. The authors demonstrate that the constraints of single-pass, entry-wise updates often lead to pessimistic memory requirements that can be bypassed in more structured streaming models.

Methods: Bilinear Sketching and Sparse Updates

The core technical innovation is a new unbiased estimator for the trace of $A^p$. For positive semidefinite (PSD) matrices, this trace is equivalent to the Schatten $p$-norm raised to the $p$-th power.

  • Bilinear Sketching: Previous state-of-the-art methods relied on complex "cycle sums." This work introduces a simpler chain of random sketches: $X = \text{Tr}(G_1 A G_2^T G_2 A G_3^T \dots G_p A G_1^T)$. By carefully selecting the random matrices $G_i$, the authors simplify the mathematical analysis and improve query times.
  • Sparse ZD-Sketches: To address the high computational cost of Gaussian sketches, the authors utilize sparse matrices where each column contains only one non-zero entry. This enables $O(1)$ update time per entry, making the algorithms suitable for high-speed data streams.

Multi-Pass and Row-Order Advantages

A significant finding of this research is the "separation" between vector and matrix streams. In vector streams, multiple passes rarely provide substantial memory savings for norm estimation. However, for matrices, the authors prove that taking $\lceil p/2 \rceil$ passes can reduce memory requirements from linear to sublinear.

Furthermore, the paper investigates row-order streams, where the matrix arrives one full row at a time. This model is common in database applications. The authors show that for sparse matrices in this model, the problem can be reduced to a turnstile stream of a much smaller matrix, significantly lowering the space complexity.

Comparison of algorithms for Schatten p-norm estimation of PSD matrices, highlighting the trade-offs between passes, space, and time.

Key Results

The paper provides a comprehensive set of upper and lower bounds for Schatten $p$-norm estimation:

  1. Computational Speedup: The transition to sparse sketches allows for $O(1)$ update times, a massive improvement over previous polynomial-time updates.
  2. Space Efficiency: For $p > 2$, the multi-pass algorithm achieves $O(n^{1-1/(p-1)})$ space, outperforming the $O(n^{2-4/p})$ required by single-pass models.
  3. Row-Order Characterization: The authors provide a near-complete characterization of the memory required for sparse matrices in row-order streams, identifying a sharp distinction between even integer $p$ and non-integer $p$.
Summary of algorithms and lower bounds for Schatten p-norm estimation of sparse matrices in row-order streams.

Conclusion and Future Work

By introducing bilinear sketching and structured streaming models, this work bridges the efficiency gap between vector and matrix streaming. While the results are most robust for even integer $p$ and PSD matrices, they lay the groundwork for future exploration into dense matrices in row-order and closing the remaining polynomial gaps in specific complexity bounds.

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