Abstract
We show that fundamental learning tasks, such as finding an approximate linear separator or linear regression, require memory at least quadratic in the dimension, in a natural streaming setting. This implies that such problems cannot be solved (at least in this setting) by scalable memory-efficient streaming algorithms. Our results build on a memory lower bound for a simple linear-algebraic problem – finding approximate null vectors – and utilize the estimates on the packing of the Grassmannian, the manifold of all linear subspaces of fixed dimension.
Introduction
In classical learning theory, the primary focus is often sample complexity—the number of data points required to learn a concept. However, in the era of Big Data, the bottleneck has shifted toward memory complexity: how much space is required to process a massive stream of data?
Most scalable algorithms, such as Stochastic Gradient Descent (SGD), are designed to be memory-efficient, typically requiring $O(d)$ space to store a single weight vector. This paper investigates whether such memory-efficient algorithms can solve fundamental problems like linear regression or classification to high precision in a single pass over the data. The authors establish a theoretical "no-go" zone, proving that these tasks require memory that scales quadratically with the data dimension ($\Omega(d^2)$) in a single-pass streaming setting.
Methodology and Reductions
The authors employ a reduction-based approach rooted in communication complexity to derive these lower bounds. The proof strategy centers on a core linear-algebraic challenge:
- The Approximate Null Vector (ANV) Problem: Given $d-1$ vectors in $d$ dimensions, the task is to find a unit vector approximately orthogonal to all of them. By analyzing the Grassmannian—the manifold of all linear subspaces of a fixed dimension—the authors demonstrate that there exist exponentially many subspaces that are "pairwise far apart." To distinguish between these possibilities, any algorithm must store a large number of bits, leading to the $\Omega(d^2)$ requirement.
- Reduction to Prediction: The paper shows that if an algorithm could solve linear regression or classification with low memory, it could be used to solve the ANV problem. Since ANV is hard, regression and classification must also be hard.
Synthetic Hard Distributions
To prove these bounds, the authors define specific "hard" synthetic distributions:
- Gaussian Streams: Vectors sampled i.i.d. from $\mathcal{N}(0, I_d)$ for the ANV problem.
- Separable Sets: Distributions with a margin $\gamma = \Theta(1/\sqrt{d})$ for linear separators.
- Regression Pairs: Pairs $(A_i, b_i)$ where the optimal solution $w^*$ resides within a unit ball.
Key Insights: The $d^2$ Barrier
The $\Omega(d^2)$ bound is significant because it represents the space needed to store a full covariance matrix. The research suggests that in a single pass, essential information cannot be compressed into anything smaller than the second-order statistics of the data.
Notably, this barrier persists even under favorable conditions:
- Randomness is Not a Cure: Even randomized algorithms with an exponentially small success probability require quadratic memory.
- Data Order: For regression, the quadratic bound holds even if the data arrives in a random (shuffled) order rather than an adversarial one.
- The Margin Connection: For classification, the memory bound is linked to the margin $\gamma$. The authors show that a memory of $\Theta(1/\gamma^4)$ is both necessary and sufficient, matching previous upper bounds for certain hard distributions.
Main Results
The paper establishes several key lower bounds for one-pass streaming algorithms:
- Linear Regression: Any one-pass algorithm minimizing the squared loss to a small constant requires $\Omega(d^2)$ memory.
- Linear Separators: Finding a separator for a dataset with margin $\gamma \approx 1/\sqrt{d}$ requires $\Omega(d^2)$ memory, even if the algorithm is allowed to misclassify a small constant fraction of points.
These bounds are essentially tight. Since these problems can be solved by simply storing all the data (which takes $O(d^2)$ space for $d$ samples), the results show that no clever streaming "sketch" can significantly outperform simple data storage in a single pass.
Discussion and Future Directions
These results are strictly applicable to one-pass algorithms. In practice, many practitioners use multiple epochs (passes), which may bypass these lower bounds. Furthermore, the authors suggest that if data is "well-conditioned" (i.e., features are not highly correlated), more efficient one-pass algorithms might exist. Future research could extend these quadratic lower bounds to the "statistical learning" setting, focusing on generalization to unseen data rather than fitting a fixed stream.
Summary updated