More data speeds up training time in learning halfspaces over sparse vectors

Amit Daniely, Nati Linial, Shai Shalev-Shwartz

Introduction

In the traditional paradigm of machine learning, large datasets are often viewed as a double-edged sword. While more data typically leads to better generalization and higher accuracy, it also imposes a significant burden on storage and computational processing. However, recent research from The Hebrew University challenges this conventional wisdom. Their work explores a fascinating, counter-intuitive phenomenon: in certain contexts, having "too much" data can actually make a problem computationally easier to solve.

The researchers formally establish a tradeoff where extra examples serve as a "computational resource," allowing algorithms to bypass hardness barriers that exist in data-starved regimes. This study focuses on the natural problem of learning halfspaces over sparse vectors, providing a rigorous proof of a "computational-statistical gap."

The Problem: Learning Sparse Halfspaces

The paper addresses the problem of Agnostic PAC (Probably Approximately Correct) learning of halfspaces over sparse vectors. Specifically, it considers vectors in $\{-1, 1, 0\}^n$ where only a small number of features $k$ (e.g., $k=3$) are active at any given time. This scenario is highly relevant to real-world applications like ad targeting or document classification, where the total feature space is vast, but only a few features are relevant to any single instance.

In classical statistical learning theory, the primary metric is sample complexity—the minimum number of examples required to achieve a certain level of accuracy. For the class of $k$-sparse halfspaces, the sample complexity is $O(n)$. However, this metric ignores computational complexity: how long it takes to find the optimal hypothesis given those examples.

Methodology and Hardness Reductions

To investigate this gap, the authors utilize a combination of algorithmic design and complexity theory:

  1. Non-Cryptographic Hardness Reductions: Unlike previous work that relied on synthetic problems constructed from cryptographic primitives (like one-way functions), this paper bases its lower bounds on Feige’s Hypothesis. This is a widely accepted assumption in theoretical computer science stating that it is hard to refute random 3CNF (3-Satisfiability) formulas. The authors show that if an algorithm could efficiently learn sparse halfspaces with only $O(n)$ data, it would imply a solution to this "impossible" 3SAT problem.
  2. Improper Learning: The results are particularly strong because they apply to "improper" learners. These are algorithms allowed to output any hypothesis, not just a halfspace. This demonstrates that the computational wall is fundamental to the problem structure, regardless of the model representation used.
  3. Matrix Decomposition: For the positive results, the authors employ the theory of $\beta$-decomposable matrices. They demonstrate that the hypothesis class can be embedded into a space where the problem simplifies into a linear learning task, provided the sample size is large enough to "cover" the underlying structure.

Key Insights and the Tradeoff Curve

The most profound insight of this work is the formalization of a "Tradeoff Curve" between data and time.

The tradeoff between runtime and the number of examples for learning sparse halfspaces.

As illustrated in the figure, there are distinct regimes:

  • The Information-Theoretic Limit: With $O(n)$ examples, learning is mathematically possible but requires exponential time ($2^{O(n)}$).
  • The Intermediate Regime: Between $n$ and $n^{1.5}$ examples, the problem remains computationally hard (greater than polynomial time).
  • The Big Data Regime: Once the number of examples reaches $O(n^2)$, the problem suddenly becomes efficiently solvable in polynomial time ($n^{O(1)}$).

This breaks the "ignore extra data" logic. Typically, one might assume that if $n$ examples are sufficient, any additional data can be discarded. This paper proves that by utilizing the extra data, one can switch from a complex, hard optimization problem to a simpler, "naive" learning approach that generalizes perfectly due to the sheer volume of samples.

Key Results and Tipping Points

The research identifies specific thresholds for computational tractability:

  • Hardness Barrier: With $O(n/\epsilon^2)$ examples, efficient learning is impossible under Feige's assumption.
  • The Speedup: A new algorithm is presented that achieves polynomial-time learning when given $\tilde{\Omega}(n^2/\epsilon^2)$ examples.
  • Stronger Hardness: The authors suggest that even with $O(n^{1.499}/\epsilon^2)$ examples, the problem remains hard, pointing toward a specific "tipping point" at $n^{1.5}$ where the complexity landscape shifts.

Furthermore, the authors found that the sparsity level $k$ is a critical factor. While 2-sparse vectors are relatively easy to handle, a massive computational gap opens up as soon as 3-sparsity ($k=3$) is introduced.

Conclusion and Future Directions

This work provides a rigorous theoretical foundation for the idea that data can be traded for computation. While the study focuses on linear models (halfspaces), the implications for deep learning are significant. The "computational-statistical gap" is a major area of interest in modern AI, and applying these non-cryptographic reduction techniques to neural networks could yield important insights into why large-scale models often converge more easily than smaller ones.

Future work remains to close the gap between the current lower bound ($n^{1.5}$) and upper bound ($n^2$), and to explore how these tradeoffs scale when sparsity $k$ is not a constant but grows with the dimensionality $n$.

Summary updated

BibTeX
@inproceedings{daniely2013more,
  author = {Amit Daniely and Nati Linial and Shai Shalev-Shwartz},
  title = {{More data speeds up training time in learning halfspaces over sparse vectors}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2013},
  url = {https://openreview.net/forum?id=BkVC8u-dbB},
}
Figure