Agnostic Online Learning with Reliable Abstention

Omar MontasserNeurIPS 2026

TL;DR

Imagine trying to classify incoming data streams in real time, knowing an adversary is secretly slipping traps into your feed—and even worse, there is no "perfect" rule that gets every label right. This paper introduces an online learning algorithm that knows when to say "I don't know" on suspicious inputs without becoming overly cautious on normal data. Remarkably, it pulls this off in noisy, arbitrary environments without any prior knowledge of what "normal" data looks like.

What Problem Does This Paper Address?

In machine learning theory, there is a massive gulf between two worlds. In the friendly stochastic world, data arrives randomly from a fixed distribution (i.i.d.), and learning is relatively easy—governed by a standard complexity measure called the VC dimension. In the cutthroat adversarial world, an opponent hand-picks every data point to trip you up, making even simple tasks (like learning a basic 1D threshold) mathematically impossible.

To bridge this gap, researchers study the adversarial injection model. At each step, nature either hands you a clean i.i.d. data point from an unknown distribution, or an adversary injects a trap. You aren't told which is which, but you are allowed to abstain ("pass"). Passing on an adversarial trap is free, while passing on clean data—or misclassifying anything you actually predict on—costs you.

Until now, solutions for this model relied on the realizable assumption: that some magical classifier in your toolkit achieves zero error on everything. Real life is rarely so neat. Author Omar Montasser tackles the agnostic setting, where labels can be noisy or completely arbitrary, and your goal is simply to compete with the best-available classifier in your class while keeping clean-data abstentions low.

Methods

Previous approaches to unknown distributions tried to "guess" which historical data points were clean by running exponentially many sub-algorithms—a strategy that blows up the error rate when labels are noisy. Montasser bypasses this entirely using the mathematical concept of brackets.

A bracket is a pair of functions $(b^-, b^+)$ that "sandwiches" a target classifier $h$, meaning $b^-(x) \le h(x) \le b^+(x)$ everywhere. The paper turns brackets into abstaining experts:

  • If $b^-(x)$ and $b^+(x)$ agree on an input, the expert predicts that value.
  • If they disagree, the expert abstains ($\perp$).

Because the target $h$ is trapped between $b^-$ and $b^+$, whenever the expert makes a prediction, it is guaranteed to match $h$!

To deal with an unknown distribution, the algorithm chops time into blocks. At the start of each block, it builds a fresh set of brackets directly from the entire observed history—adversarial poison and all—at a tight empirical disagreement scale. Within each block, it uses a standard Multiplicative Weights algorithm to Favor experts that make fewer mistakes. It also adapts this setup to a censored variant, where the learner only sees the true label if it chooses not to abstain.

Datasets

Not discussed in the paper. (This is a purely theoretical learning paper proving mathematical guarantees rather than evaluating on empirical benchmarks.)

Key Insights and Ideas

  • Contaminated history still builds clean brackets: You don't need to filter out adversarial injections before building your brackets. If you force a bracket's disagreement rate on the entire contaminated sequence to be tiny (less than $\frac{1}{2n}$ for $n$ points), its disagreement on the hidden clean i.i.d. subsequence is forced to be strictly zero. Uniform convergence then guarantees the expert will rarely abstain on future clean data.
  • Defeating adaptive adversaries: Because bracket construction relies on uniform convergence over low-complexity classes rather than fragile assumptions about the adversary's future moves, the algorithm naturally withstands adaptive adversaries (who tailor traps based on your past predictions).
  • Composing complex models: The author proves a neat structural lemma: if you feed the outputs of bracketable functions (like linear halfspaces) into any function class with finite VC dimension, the whole composition remains cleanly bracketable. This immediately unlocks guarantees for multi-layer threshold neural networks.

Key Results

Over $T$ rounds, the algorithm achieves sublinear excess misclassification error (regret) and sublinear clean-data abstention error, governed by a tunable trade-off parameter $\alpha \in [0,1]$:

Summary of theoretical error bounds across agnostic, realizable, and censored settings.
  • Agnostic Trade-off: Setting $\alpha = 1/3$ yields roughly $O(T^{2/3})$ excess misclassification error and $O(T^{2/3})$ abstention error (up to logarithmic and class-dependent factors).
  • Realizable Trade-off: When a perfect classifier exists ($\text{OPT}=0$), setting $\alpha = 1/2$ recovers optimal $O(\sqrt{T})$ rates for both errors.
  • Concrete Improvements: Instantiated on $d$-dimensional linear classifiers (halfspaces) against adaptive adversaries in the realizable setting, this slashes prior bounds from $O(T^{3\alpha})$ mistakes and $\tilde{O}(d^{4.67}T^{1-\alpha})$ abstentions down to $\tilde{O}(d T^\alpha)$ mistakes and $\tilde{O}(d^2 T^{1-\alpha})$ abstentions—while extending to agnostic labels and neural networks with threshold activations for the first time.

Limitations and Future Work

  • VC Dimension vs. Bracketing: Having a finite VC dimension does not universally guarantee well-behaved bracketing numbers—some weird VC-2 classes have arbitrarily large bracketing numbers. While geometric classes like halfspaces and neural nets behave nicely, achieving sublinear agnostic guarantees against adaptive adversaries for every VC class remains an open problem.
  • Computational Efficiency: While running in $n^{O(d)}$ time for halfspaces is a massive leap forward from prior doubly-exponential "subsequence-guessing" methods, it is still not polynomial in dimension $d$. Designing oracle-efficient algorithms (e.g., using standard empirical risk minimization) is a ripe direction for future work.

Summary updated

Abstract

We study online learning in the adversarial injection model [GHMS23], where each instance is either drawn i.i.d. from an unknown distribution or is an arbitrary adversarial injection. The learner never knows which rounds are adversarial, but may abstain without penalty on adversarial injections. The learner's goal is to make few total misclassifications and few abstentions on i.i.d. instances. This model lies between classical statistical learning, governed by the VC dimension, and adversarial online learning, governed by the Littlestone dimension. Unlike prior work, which has largely focused on the realizable setting, we consider an agnostic formulation that allows arbitrary labels. We present an online algorithm that guarantees sublinear excess misclassification error and sublinear abstention error, against oblivious and adaptive adversaries, for function classes that admit bounded bracketing number witnessed by brackets of bounded VC dimension. Our algorithm is distribution-independent and does *not* require prior knowledge of the distribution. As corollaries, we obtain new learning guarantees for halfspaces (linear classifiers) and richer classes such as feed-forward neural networks with threshold activations.
BibTeX
@inproceedings{montasser2026agnostic,
  author = {Omar Montasser},
  title = {{Agnostic Online Learning with Reliable Abstention}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=UPw8Xoj7Wo},
}
Figure