Oracle-Efficient Online Learning for Beyond Worst-Case Adversaries

Nika Haghtalab, Yanjun Han, Abhishek Shetty, Kunhe YangarXiv 2022

Abstract

In this paper, we study oracle-efficient algorithms for beyond worst-case analysis of online learning. We focus on two settings. First, the smoothed analysis setting of [RST11,HRS22] where an adversary is constrained to generating samples from distributions whose density is upper bounded by $1/\sigma$ times the uniform density. Second, the setting of $K$-hint transductive learning, where the learner is given access to $K$ hints per time step that are guaranteed to include the true instance. We give the first known oracle-efficient algorithms for both settings that depend only on the pseudo (or VC) dimension of the class and parameters $\sigma$ and $K$ that capture the power of the adversary. In particular, we achieve oracle-efficient regret bounds of $ \widetilde{O} ( \sqrt{T d\sigma^{-1}} ) $ and $ \widetilde{O} ( \sqrt{T dK} ) $ for learning real-valued functions and $ O ( \sqrt{T d\sigma^{-\frac{1}{2}} } )$ for learning binary-valued functions. For the smoothed analysis setting, our results give the first oracle-efficient algorithm for online learning with smoothed adversaries [HRS22]. This contrasts the computational separation between online learning with worst-case adversaries and offline learning established by [HK16]. Our algorithms also achieve improved bounds for worst-case setting with small domains. In particular, we give an oracle-efficient algorithm with regret of $O ( \sqrt{T(d |\mathcal{X}|)^{1/2} })$, which is a refinement of the earlier $O ( \sqrt{T|\mathcal{X}|})$ bound by [DS16].

Introduction

In the standard model of online learning, a learner faces a "worst-case" adversary who can pick the most difficult possible sequence of data. This leads to a pessimistic theory: to learn effectively, a hypothesis class must have a finite Littlestone dimension, which is often much larger (or even infinite) compared to the VC dimension used in offline (PAC) learning. Furthermore, even when learning is statistically possible, it is often computationally intractable to achieve low regret.

This work addresses the "statistical-computational gap" by investigating two "beyond worst-case" settings:

  1. Smoothed Analysis: The adversary is constrained; they cannot pick a single point but must generate samples from a distribution that isn't "too concentrated" (its density is bounded relative to a uniform distribution).
  2. $K$-hint Transductive Learning: The learner receives $K$ "hints" (unlabeled instances) at each step, one of which is guaranteed to be the true next instance.

The central challenge is to build efficient online algorithms using only an offline optimization "oracle" (an Empirical Risk Minimization or ERM solver).

Methods

The authors introduce two primary algorithmic frameworks to bridge the gap between offline and online learning:

  • Poissonized Follow-the-Perturbed-Leader (FTPL): This is the paper's most significant technical innovation. Standard FTPL adds a fixed amount of random noise to the history. Here, the algorithm generates a Poisson-distributed number of "hallucinated" samples from a uniform distribution. The choice of a Poisson distribution is crucial for stability; because of the properties of Poisson variables (specifically their behavior under subsampling), it ensures that the learner’s distribution doesn't change too much between rounds.
  • Relax-and-Randomize with Hints: For real-valued functions, the authors adapt the "admissible relaxation" framework. The algorithm "plays out" the future by using the provided hints (or self-generated ones) and randomly labeling them to regularize the current decision.
  • Self-Generation of Hints: In the smoothed setting, the learner doesn't actually receive hints. Instead, the authors show that because the adversary is "smooth," the learner can generate its own set of uniform random hints that—with high probability—will "cover" whatever the adversary chooses.

Theoretical Results

The paper provides the first oracle-efficient algorithms for these settings, establishing a new set of upper and lower bounds for regret. The results demonstrate that under these slightly relaxed adversarial models, the complexity of online learning is governed by the VC dimension (or pseudo-dimension), mirroring offline learning.

Summary of regret bounds and methods for smoothed and transductive online learning.

Key findings include:

  • Smoothed Binary Classification: An oracle-efficient regret bound of $O(\sqrt{Td\sigma^{-1/2}})$, matching the authors' own computational lower bounds.
  • Smoothed Real-valued Regression: A bound of $O(\sqrt{Td\sigma^{-1}})$.
  • $K$-hint Transductive Learning: A bound of $O(\sqrt{TdK})$.
  • Small Domain Improvement: For domains of size $|\mathcal{X}|$, the authors achieve $O(\sqrt{T(d|\mathcal{X}|)^{1/2}})$, refining previous bounds that were $O(\sqrt{T|\mathcal{X}|})$.

Discussion and Limitations

A fundamental insight of this work is the identification of a "statistical-computational gap." While statistically optimal (but inefficient) algorithms can achieve regret that is logarithmic in the adversary's power ($1/\sigma$), any efficient algorithm using an ERM oracle seems to require a polynomial dependence (like $\sigma^{-1/2}$).

Despite these advances, several questions remain:

  • Bridging the Gap: Can any efficient algorithm bridge the gap between the statistical optimum and the computational upper bound? The authors provide lower bounds suggesting this might be unavoidable for "proper" learners using ERM oracles.
  • Oracle Dependence: The algorithms require an exact ERM oracle. While results extend to oracles with small additive errors, practical performance on non-convex problems remains a challenge.
  • High-Dimensional Smoothness: Extending smoothed analysis to more complex, high-dimensional base measures while maintaining oracle efficiency is a promising direction for future research.

Summary updated

BibTeX
@misc{haghtalab2022oracle,
  author = {Nika Haghtalab and Yanjun Han and Abhishek Shetty and Kunhe Yang},
  title = {{Oracle-Efficient Online Learning for Beyond Worst-Case Adversaries}},
  year = {2022},
  eprint = {2202.08549},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.08549},
}
Figure