Space lower bounds for linear prediction

Yuval Dagan, Gil Kur, Ohad Shamir

Abstract

We demonstrate that fundamental learning tasks, such as finding an approximate linear separator or performing linear regression, require memory at least quadratic in the dimension ($\Omega(d^2)$) within a natural streaming setting. This implies that these problems cannot be solved by scalable, memory-efficient streaming algorithms that use space linear in the dimension. Our results are derived from a memory lower bound for a core linear-algebraic problem—finding orthogonal vectors—and utilize estimates on the packing of the Grassmannian manifold.

1. Introduction

Classical learning theory has traditionally focused on sample complexity: the number of examples required to achieve a certain generalization error. However, in the era of massive datasets, the primary constraint has shifted toward computational memory. Ideally, we seek "scalable" algorithms where memory usage grows linearly with the dimension ($d$). While popular methods like Stochastic Gradient Descent (SGD) achieve this by storing only a single weight vector, they often struggle with precision or stability requirements in a single pass over the data.

This research addresses a fundamental question: In a streaming model—where each data point is seen once and cannot be stored—is it possible to solve linear prediction tasks using sub-quadratic memory? The authors prove that for a wide class of these problems, the answer is a resounding no.

2. Methodology: From Geometry to Information Theory

The proof strategy relies on a hierarchical reduction combined with geometric arguments involving high-dimensional manifolds.

2.1 The Approximate Null Vector (ANV) Problem

The authors first identify a foundational task called the Approximate Null Vector (ANV) problem. Given a stream of vectors, the goal is to find a unit vector that is nearly orthogonal to all of them. The researchers mathematically prove that if an algorithm could solve linear regression or find a linear separator with low memory, it could also solve the ANV problem. This makes ANV the "hard core" of linear prediction memory bounds.

2.2 Grassmannian Packing

To establish the lower bound for ANV, the researchers analyze the geometry of the Grassmannian—the manifold of all linear subspaces of a fixed dimension. By showing that there exist exponentially many subspaces that are "far apart" (a geometric packing argument), they demonstrate that any algorithm must distinguish between these configurations to succeed. To do so based on a stream of data, the algorithm must essentially "remember" which region of the Grassmannian the data inhabits.

2.3 Information-Theoretic Lower Bounds

The authors prove that storing enough information to distinguish between these exponentially many configurations requires at least $\Omega(d^2)$ bits of memory. This bound is remarkably robust; it holds even for randomized algorithms that only need to succeed with an exponentially small probability. This implies that one cannot simply "get lucky" with a low-memory approach.

3. Key Results

The paper establishes tight lower bounds across several fundamental domains using synthetic hard distributions, such as Gaussian streams and unit vectors with spherical constraints:

  • Linear Regression: Finding a weight vector $\hat{w}$ that achieves low squared error in a single pass requires $\Omega(d^2)$ memory.
  • Linear Separators: Even if a dataset is perfectly separable by a margin $\gamma \approx 1/\sqrt{d}$, any one-pass algorithm requires $\Omega(d^2)$ memory to find a separator that classifies the majority of points correctly. More generally, the memory requirement is linked to the margin, scaling as $\Theta(1/\gamma^4)$.
  • Tightness of the Bound: The authors note that the $\Omega(d^2)$ bound is "tight." Because these problems can be solved by storing $O(d)$ vectors (occupying $O(d^2)$ space) and solving the system offline, we now know that $d^2$ is both the necessary and sufficient memory cost for these tasks.

4. Discussion and Limitations

While these results establish a "quadratic wall," they apply specifically to the one-pass streaming model. The authors acknowledge that the landscape changes if an algorithm is permitted multiple passes over the data (e.g., multi-epoch training).

Furthermore, the research suggests that the "condition number" of the data—a measure of how well-behaved the distribution is—might play a role. If the data is exceptionally well-conditioned, more efficient one-pass algorithms might yet be possible. Exploring the relationship between data "niceness" and memory remains a promising path for future research.

5. Conclusion

This work provides a rigorous theoretical foundation for why memory is often a limiting factor in high-dimensional linear prediction. By proving that $\Omega(d^2)$ memory is a fundamental requirement, it clarifies the inherent trade-offs between space, precision, and dimensionality in modern streaming algorithms.

Summary updated

BibTeX
@inproceedings{dagan2019space,
  author = {Yuval Dagan and Gil Kur and Ohad Shamir},
  title = {{Space lower bounds for linear prediction}},
  booktitle = {Conference on Learning Theory},
  year = {2019},
  url = {https://openreview.net/forum?id=z3l7D6dFb1},
}
Figure