In the ideal world of machine learning, if a problem is solvable offline, it should be learnable online. We assume that given enough data and a bit of trial and error, an algorithm can eventually converge to the best possible strategy. However, a growing body of research reveals a "computational-statistical gap": a regime where a perfect solution exists mathematically, but finding it in polynomial time is impossible.
This research direction explores the fundamental boundaries where the complexity of optimization crashes into the requirements of online learning.
The Statistical Computational Gap
The most intuitive way to understand this is through the lens of sparse linear regression. In theory, if you have a few relevant features hidden among many irrelevant ones, a perfect model exists. However, Yuchen Zhang, Martin J. Wainwright, and Michael I. Jordan demonstrated in Lower bounds on the performance of polynomial-time algorithms for sparse linear regression that there is a hard limit.
They showed that for certain regression tasks, an algorithm with infinite time could find a near-perfect solution, but any algorithm restricted to polynomial time is doomed to fail. This isn't a failure of the algorithm's design, but a fundamental property of the problem's geometry.
When Offline Ease Becomes Online Impossibility
A striking discovery in this field is that offline tractability does not guarantee online learnability. Usually, we think of online learning as "repeated offline optimization." If you can solve the problem once, you should be able to solve it every day.
Taihei Oki and Shinsaku Sakaue challenged this in No-Regret M-Concave Function Maximization. They looked at $M^{\natural}$-concave functions—a class of functions that are easy to maximize in an offline setting. Yet, they proved that in an adversarial online environment, achieving sub-linear regret (meaning, learning to perform as well as the best fixed strategy) is NP-hard. This marks a rare and counter-intuitive case where the "online" version of a "simple" problem becomes computationally intractable.
Hiding Hard Problems in Learning Tasks
How do researchers prove these limits? The standard technique is a reduction. They take a known NP-hard problem—like Boolean Satisfiability (SAT) or the Feedback Arc Set problem—and "map" it onto a learning task.
For example, Christian Igel and Søren Frejstrup Maibing showed in Computational Complexity of Linear Large Margin Classification With Ramp Loss that minimizing certain generalization bounds is as hard as solving SAT. If you could find the "perfect" model that minimizes these bounds, you would have inadvertently solved one of the hardest problems in computer science.
Similarly, in the "Sleeping Experts" problem—where the set of available choices changes every round—Robert Kleinberg and colleagues found that finding the optimal ranking of actions is equivalent to solving the Feedback Arc Set problem. As they detail in Regret Bounds for Sleeping Experts and Bandits, this creates a hard barrier: you must either accept higher regret or settle for an algorithm that takes an exponential amount of time to run.
The Power of the Adversary
The difficulty often stems from the adversarial setting. In stochastic settings, where the world follows a consistent probability distribution, learning is often efficient. But when an adversary can choose the worst possible sequence of rewards or availability, the learner's task becomes a search for a needle in a haystack of NP-hard configurations.
Elad Hazan and Tomer Koren formalized this tension in The Computational Power of Optimization in Online Learning. They explored whether the ability to solve an optimization problem offline provides a "shortcut" to learning it online. Their work suggests that for many complex tasks, there is no such shortcut; the computational cost of finding a local optimum in high dimensions effectively caps how fast we can learn.
The Open Frontier
The current frontier of this research, as framed by Paul F. Christiano in Online Local Learning, focuses on whether we can achieve optimal prediction accuracy even when finding the underlying "global" structure is NP-hard. By linking the difficulty of low-regret learning to "planted" constraint satisfaction problems, this field suggests that the next breakthroughs in machine learning efficiency might actually require breakthroughs in fundamental computational complexity.