arXiv:2610.32339cs.LGOct 2026

Manuscript Offprint

arXiv:2610.32339

Optimal Multiclass Online Regret with Arbitrary Label Spaces

Sajad Ashkezari, Shai Ben-David

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We determine the optimal regret in agnostic multiclass online learning with arbitrary, possibly infinite, label spaces. For every hypothesis class of multiclass Littlestone dimension d<∞d < \infty, we prove a regret upper bound of O(min⁡{T,dT})O(\min\{T, \sqrt{dT}\}) over TT rounds, matching the known lower bound. This resolves a question of Hanneke et al. [HMR +^{+}23] and extends the optimal binary regret bound of Alon et al. [ABED +^{+}21]. Our proof strengthens the one-sided expert cover of Hanneke et al. [HMR +^{+}23] to a fractional cover. We combine this cover with a minimax reduction to a finite expert game, whose best-response rewards provide the disagreement bounds needed for chaining.

1 Introduction

We study multiclass agnostic online classification, where a learner predicts labels from a possibly infinite label space Y\mathcal{Y} and competes with the best hypothesis in a given class. The study of multiclass online learnability was initiated by Daniely et al. [DSBDSS15], who introduced the multiclass Littlestone dimension and showed that it characterizes learnability in the realizable setting. For a class of Littlestone dimension dd, they also proved an agnostic regret upper bound of O(dTlog⁡(T∣Y∣))O(\sqrt{dT\log(T|\mathcal{Y}|)}) over TT rounds for finite label spaces, and a lower bound of Ω(dT)\Omega(\sqrt{dT}) for 1≤d≤T1 \leq d \leq T. The dependence of their upper bound on ∣Y∣|\mathcal{Y}| left open whether finite Littlestone dimension suffices for agnostic online learnability when the label space is infinite.

Hanneke et al. [HMR +^{+}23] resolved this question by proving an upper bound of O(dTlog⁡(eT/d))O(\sqrt{dT\log(eT/d)}) for 1≤d≤T1 \leq d \leq T that does not depend on the cardinality of the label space. Their result establishes that finite Littlestone dimension characterizes agnostic online learnability over arbitrary label spaces. However, a logarithmic gap remained between their upper bound and the known lower bound. They explicitly asked whether the optimal regret is Θ(dT)\Theta(\sqrt{dT}), as established for binary classification by Alon et al. [ABED +^{+}21]. In this work, we answer this question affirmatively.

Theorem 1.1 (Main result, informal). The optimal regret in agnostic multiclass online learning with arbitrary, possibly infinite, label spaces is Θ(dT)\Theta(\sqrt{dT}) for T≥dT \geq d.

Related work. Online learning in the binary setting begins with the characterization of realizable learnability by Littlestone [Lit88]. Ben-David et al. [BDPSS09] extended this characterization to agnostic learning, but their regret upper bound contained an extra logarithmic factor. Subsequent work connected regret to sequential Rademacher complexity and developed covering and chaining methods for bounding this complexity [RST10, RST15a, RST15b]. Building on this connection,

∗^{*}University of Waterloo, sajad.ashkezari@uwaterloo.ca.

†^{\dagger}University of Waterloo, shai@uwaterloo.ca.

Alon et al. [ABED +^{+}21] removed the logarithmic factor and obtained the optimal regret bound in the binary setting.

The main ingredient in the proof of Alon et al. [ABED +^{+}21] is their notion of fractional covers. For each scale 0<α≤10 < \alpha \leq 1, they construct a distribution over predictors such that, for every hypothesis in the class and every labeled-data sequence, the predictors that disagree with that hypothesis on at most αT\alpha T rounds have mass at least (α/C)d(\alpha/C)^d, for a universal constant CC [ABED +^{+}21, full version, Definition 9.4 and Lemma 9.5]. They then approximate each hypothesis at successively finer scales. Two successive approximations are close to each other because both are close to that hypothesis. This controls the differences between successive terms of the chain. Together with the mass bound, summing these estimates over scales yields the sharp complexity bound [ABED +^{+}21, full version, Lemma 9.7]. Related fractional-cover and majorizing-measure bounds for real-valued classes were developed by Block et al. [BDR21].

The difficulty in extending this argument to multiclass learning is that the available cover provides a different kind of approximation. The covers of Alon et al. [ABED +^{+}21] count every disagreement with the hypothesis being approximated. When predictions and labels are binary, this is also the number of rounds on which exactly one of the two predictions is correct. The expert family of Hanneke et al. [HMR +^{+}23] guarantees, for each hypothesis, an expert that is wrong on at most d rounds on which that hypothesis is correct. We call these the expert's deficit rounds. This guarantee places no restriction on rounds where the expert is correct and the hypothesis is wrong. These extra correct predictions reduce the expert's loss, but they can make its correctness sequence very different from that of the hypothesis. Thus two experts satisfying this one-sided guarantee need not be close to each other, and the guarantee alone does not provide the distance bounds needed for chaining.

One might instead apply the binary result to the class of binary losses of the multiclass hypotheses. However, the Littlestone dimension of this binary class, called the sequential graph dimension, can be infinite even when the original multiclass class has dimension d=1d = 1 [HMR +^{+}23, Example 1]. It is this larger dimension that determines the sequential Rademacher complexity of the loss class [HMR +^{+}23, Theorem 7]. A bound on that complexity therefore cannot in general yield a regret bound in terms of dd. For finite label spaces, Hanneke et al. [HMR +^{+}23, Theorem 9] also obtain regret O(dTlog⁡∣Y∣)O(\sqrt{dT\log|\mathcal{Y}|}) through the sequential graph dimension, under their minimax assumption. This removes the extra logarithmic dependence on TT, but retains a dependence on the size of the label space.

Our proof starts from the finite expert family of Hanneke et al. [HMR +^{+}23] and strengthens their one-sided guarantee to a fractional cover. We then study the regret of a learner that predicts with mixtures over this family. Using minimax duality, as in [AABR09, RST15a], we express the value of this game so that the adversary chooses a distribution on labels before the learner responds. The learner's best response on each round is then the expert with the largest probability of being correct. The finite family lets us justify this minimax step without topological assumptions on H: the learner's weights lie in a compact simplex, and the one-round game satisfies Sion's theorem [Sio58]. The additional minimax assumption noted in [HMR +^{+}23, Footnote 4] is therefore unnecessary here.

We use the best-response reward to control the extra correct predictions of the experts selected in our chain. This gives the disagreement bounds that the one-sided cover alone does not provide and leads to the optimal regret bound. Section 4 explains the proof in more detail.

Other related work considers general bounded losses [RST25], transductive learning, where the learner sees all instances before the first round [HRSS24], and learning with multiple correct answers [PMBD26].