Online Sparse Linear Regression

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

Abstract

In the online sparse linear regression problem, a learner must sequentially predict labels while observing only a limited subset of features in each round. The objective is to minimize regret relative to the best sparse linear regressor in hindsight. This paper establishes a fundamental "no-free-lunch" theorem: while achieving sublinear regret is mathematically possible, doing so with a computationally efficient (polynomial-time) algorithm is NP-hard. Notably, this hardness persists even when the learner is permitted to observe significantly more features than the target model.

Introduction

Modern machine learning often operates under constraints where data acquisition is the primary bottleneck. In scenarios such as medical diagnostics or real-time web ranking, observing every available feature for every prediction is often prohibitively expensive or slow. This necessitates a "sparse" approach where only a small subset of features is selected for the model.

The problem of Online Sparse Linear Regression models this constraint. Unlike batch settings where all data is available for analysis, the online setting requires the learner to make decisions on the fly. This paper, originally presented at JMLR, investigates whether an algorithm can efficiently learn to perform as well as the best $k$-sparse model when it can only "see" a limited number of features per round.

The Online Sparse Linear Regression Framework

In this setting, an algorithm encounters examples sequentially. For each example with $d$ potential features, the learner is restricted to observing only $k$ features before making a prediction. The performance metric is regret—the cumulative difference between the learner's loss and the loss of the best $k$-sparse linear regressor identified in hindsight.

Prior to this work, a significant gap existed in our understanding of this problem. While batch sparse regression was well-understood, the feasibility of a computationally efficient online algorithm that achieves sublinear regret (meaning the average error vanishes over time) remained an open question.

Theoretical Contributions

1. The Upper Bound: Statistical Possibility

The authors first demonstrate that the problem is solvable if computational complexity is ignored. They propose an algorithm based on the Hedge algorithm, treating every possible subset of $k$ features as an "expert."

  • Gradient Estimation: To update the weights of these experts without seeing all features, the learner observes $k'$ features (where $k' > k$) to construct an unbiased estimate of the gradient for the entire feature space.
  • Performance: This approach achieves a regret bound of $\tilde{O}(\sqrt{T})$, ensuring that the learner eventually matches the performance of the best sparse model. However, the runtime scales with $\binom{d}{k}$, making it exponential and impractical for large feature sets.

2. The Lower Bound: Computational Hardness

The core contribution of the paper is the proof that the exponential runtime of the upper bound is likely unavoidable. Using a reduction from 3SAT via a variation of the Set Cover problem, the authors prove that achieving a regret of $O(T^{1-\delta})$ for any $\delta > 0$ in polynomial time is NP-hard.

This result is particularly striking because it holds even under improper learning. In many contexts, allowing a learner to use a more complex model than the target (e.g., seeing more features) makes a problem easier. Here, the authors show that even if the learner is allowed to observe $D \ln(d)k$ features—a significant increase over the $k$ features used by the optimal model—the problem remains computationally intractable.

Key Insights

  • The Price of Curiosity: The research identifies that at least $k+2$ features must be observed to even generate an unbiased estimate of the performance of unobserved features. This "peeking" is a prerequisite for any strategy attempting to minimize regret.
  • Resolving the COLT Open Problem: This work provides a definitive answer to an open problem posed at the 2014 Conference on Learning Theory (COLT), confirming that a general-purpose, efficient, sparse online regressor does not exist under standard complexity assumptions ($NP \not\subseteq BPP$).
  • Synthetic Hard Instances: To prove these bounds, the authors constructed specific "hard instances" of data sequences. These mathematical constructions demonstrate that an adversary can always present data in a way that forces an efficient learner to fail.

Conclusion and Future Directions

The findings establish that Online Sparse Linear Regression is fundamentally hard. For practitioners, this means that without additional assumptions about the data distribution, there is no "silver bullet" algorithm that is both fast and guarantees low regret.

However, the paper opens several avenues for future research:

  • Distributional Assumptions: The NP-hardness relies on adversarial data. If the data is assumed to follow specific distributions (e.g., Gaussian) or possesses favorable geometric properties, efficient learning may become possible.
  • Heuristic Development: While worst-case guarantees are impossible for efficient algorithms, this work provides a theoretical foundation for developing and testing heuristics that may perform well on real-world, non-adversarial datasets.

Citation: Foster, D., Kale, S., & Karloff, H. (2016). Online Sparse Linear Regression. JMLR: Workshop and Conference Proceedings, 49:1–11.

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