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

Amit Daniely, Nati Linial, Shai Shalev-Shwartz

TL;DR

Can having "too much" data actually be a good thing for your processor? This paper proves that for certain natural learning tasks—specifically learning halfspaces over sparse vectors—there is a formal tradeoff between sample size and clock cycles. While a small amount of data is theoretically enough to learn the task, it makes the computation intractable; providing significantly more data allows for a new class of efficient algorithms, effectively using data as a "computational resource."

The Problem: Data as a Computational Resource

In classical statistical learning theory, we usually ask: "What is the minimum number of examples needed to learn a concept?" This is known as sample complexity. However, in the era of "Big Data," we often have far more data than the information-theoretic minimum.

The authors investigate a provocative question: Can redundant data be leveraged to speed up computation time?

They focus on a "natural" supervised learning problem: agnostic PAC learning of halfspaces over $k$-sparse vectors. In plain English, this means trying to find a linear classifier (a halfspace) when your input data consists of vectors where only a few features (like 3 out of $n$) are active at any time. While this sounds simple, "agnostic" learning means the data might be noisy and not perfectly separable by any halfspace, which makes the problem significantly harder.

Methodology

The paper employs two main strategies: establishing a computational "lower bound" (proving the problem is hard) and providing an "upper bound" (an efficient algorithm).

  1. Hardness via 3CNF Refutation: Instead of using standard cryptographic assumptions (which often result in very "artificial" learning problems), the authors rely on Feige’s Hypothesis. This is a widely believed assumption in complexity theory stating that it is hard to "refute" random 3-SAT formulas (proving a random formula is unsatisfiable). They develop a novel reduction showing that if you could efficiently learn 3-sparse halfspaces with a minimal amount of data, you could also solve this notoriously hard 3-SAT problem.
  2. Improper Learning: The authors analyze "improper" learning, where the algorithm is allowed to output a hypothesis that isn't itself a halfspace, as long as it predicts as well as the best halfspace. This is a much more flexible (and realistic) model, but it makes proving hardness much more difficult because you have to rule out all possible algorithms, not just linear ones.
  3. Algorithmic Tradeoff: They present a new algorithm that becomes efficient only when the number of examples exceeds the information-theoretic limit.

Key Insights and Results

  • Data as a Computational Resource: The most profound insight is the formalization of the "Statistical-Computational Gap." The paper shows that there is a regime where a problem is "statistically" solvable (the information is there) but "computationally" impossible. Adding more data bridges this gap.
  • The "Naturalness" of the Problem: Previous proofs of these tradeoffs relied on highly artificial "cryptographic" constructions. This paper shows the tradeoff exists in a very common machine learning building block: learning with sparse features (common in text processing or ad-click prediction).
  • The $k=2$ vs. $k=3$ Threshold: The authors show that learning halfspaces over 2-sparse vectors is relatively easy. However, as soon as you move to 3-sparse vectors, the computational complexity explodes, necessitating the extra data to maintain efficiency.

The Formal Tradeoff

Under Feige’s assumption, it is impossible to efficiently learn the class of 3-sparse halfspaces using only $O(n/\epsilon^2)$ examples (the information-theoretic limit). However, the authors demonstrate that with $\tilde{\Omega}(n^2/\epsilon^2)$ examples—significantly more than the minimum—the problem can be solved by an efficient, polynomial-time algorithm.

Tradeoff between runtime and number of examples

This establishes the first formal tradeoff for a natural supervised learning task. The graph above illustrates this "phase transition": as the number of examples increases from $n$ to $n^{1.5}$ to $n^2$, the required runtime drops from exponential ($2^{O(n)}$) to polynomial ($n^{O(1)}$).

Limitations and Future Work

  • Closing the Gap: There is still a gap between the lower bound (where the problem is proven hard) and the upper bound (where the new algorithm works). The authors conjecture that the "true" threshold for efficiency might be around $O(n^{1.5}/\epsilon^2)$ examples.
  • Other Learning Tasks: While this paper covers sparse halfspaces, it remains to be seen how many other "natural" learning problems (like training neural networks of a specific architecture) exhibit this same "more data = faster training" property.
  • Dependence on Hardness Assumptions: The results are "conditional," meaning they are only true if the underlying assumption about 3CNF formulas is correct (though most experts believe it is).

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