Online Sparse Linear Regression

Dean P. Foster, Satyen Kale, Howard J. Karloff

TL;DR

This paper proves that Online Sparse Linear Regression—the task of making sequential predictions while only observing a tiny fraction of available features—is computationally "hard." The authors provide a theoretically optimal algorithm that achieves $O(\sqrt{T})$ regret, but show that any algorithm running in polynomial time is doomed to fail (achieving near-linear regret) unless $NP \subseteq BPP$.

What Problem Does This Paper Address?

In standard online linear regression, a learner receives a vector of features, makes a prediction, and then sees the true label. However, in many real-world scenarios, features are expensive. Think of a doctor who must diagnose a patient: every "feature" is a medical test that costs time and money. The doctor can only afford $k$ tests out of $d$ possible ones.

The challenge is to minimize regret: the difference between the learner's total loss and the loss of the best $k$-sparse linear model (a model that uses only the $k$ most informative features) in hindsight. The authors tackle two main questions:

  1. Is there an algorithm that achieves low regret in this "limited observation" setting?
  2. Can such an algorithm run efficiently (in polynomial time)?

Methods

The paper approaches the problem from two sides: an upper bound (a constructive algorithm) and a lower bound (a complexity proof).

The Inefficient Algorithm

The authors propose an algorithm that treats every possible subset of $k$ features as an "expert." * Hedge + SGD: It uses the Hedge algorithm to maintain a probability distribution over all $\binom{d}{k}$ possible feature subsets. Inside each expert, it runs Stochastic Gradient Descent (SGD) to learn the best weights for those specific features. * The Probing Trick: To update the weights, the learner needs to estimate the gradient of the loss. Since the learner only sees $k$ features, they use a clever sampling strategy: they query $k' \geq k+2$ features. The extra features allow them to construct an unbiased estimator of the full covariance matrix and gradient, which is essential for the SGD updates to converge.

The Hardness Reduction

To prove efficiency is impossible, the authors reduce the Set Cover problem to Online Sparse Linear Regression. They show that if an efficient, low-regret algorithm existed, it could be used to distinguish between a 3CNF formula that is satisfiable and one that is not, effectively solving an NP-hard problem in randomized polynomial time.

Datasets

Not discussed in the paper. As a theoretical work in computational learning theory, the authors focus on mathematical proofs and worst-case analysis rather than empirical evaluation on specific datasets.

Key Insights and Ideas

  • The "Improper" Learning Barrier: In many machine learning problems, "improper learning"—allowing the learner to use a more complex model than the one it's competing against—makes a hard problem easy. Surprisingly, this paper shows that even if the learner is allowed to look at significantly more features than the $k$-sparse competitor (up to a logarithmic factor more), the problem remains computationally hard.
  • Variance vs. Budget: The requirement of $k' \geq k+2$ features for the algorithm is a subtle but vital insight. It highlights that to learn effectively from partial information, you need just a tiny bit of extra "slack" in your budget to build the statistical estimators required for optimization.
  • Resolving a COLT Open Problem: This work formally answers an open question posed at the Conference on Learning Theory (COLT) in 2014 regarding the existence of efficient algorithms for this specific sparse setting.

Key Results

  • Regret Bound: The proposed (inefficient) algorithm achieves an expected regret of $\tilde{O}(\sqrt{T})$. This matches the optimal rate for standard online learning, proving that the limited feature budget doesn't necessarily prevent low regret, provided you have infinite computing power.
  • Computational Hardness: The authors prove that no algorithm running in polynomial time per iteration can achieve regret better than $O(T^{1-\delta})$ for any $\delta > 0$, unless $NP \subseteq BPP$. In the world of online learning, $O(T)$ regret is considered a total failure, as it means the learner isn't getting smarter over time.

Limitations and Future Work

The primary limitation is the computational gap. The algorithm provided is purely theoretical because it must track an exponential number of feature combinations ($\binom{d}{k}$).

The authors suggest that the main open question is identifying what extra assumptions are needed to make the problem tractable. For instance, if the examples are not chosen by an adversary but instead come from a nice probability distribution (i.e., they are i.i.d.), could an efficient algorithm exist? The hardness proof uses a very specific, adversarial construction, leaving the door open for practical algorithms in more benign, real-world environments.

Summary updated

BibTeX
@inproceedings{foster2016online,
  author = {Dean P. Foster and Satyen Kale and Howard J. Karloff},
  title = {{Online Sparse Linear Regression}},
  booktitle = {Conference on Learning Theory},
  year = {2016},
  url = {https://openreview.net/forum?id=autio1a5A1Q},
}
Figure