Manuscript Offprint
arXiv:2610.32339Optimal Multiclass Online Regret with Arbitrary Label Spaces
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 , we prove a regret upper bound of over 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 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 , they also proved an agnostic regret upper bound of over rounds for finite label spaces, and a lower bound of for . The dependence of their upper bound on 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 for 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 , 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 for .
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.
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 , 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 rounds have mass at least , for a universal constant [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 [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 . For finite label spaces, Hanneke et al. [HMR 23, Theorem 9] also obtain regret through the sequential graph dimension, under their minimax assumption. This removes the extra logarithmic dependence on , 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].
An online learning algorithm A is specified by a sequence of maps
These maps do not take earlier sampled predictions as additional inputs, matching the convention in . On round , the adversary presents , the learner announces , and the adversary then chooses . The learner incurs loss . We allow the adversary to be adaptive, so its choices may depend on all earlier play. Define the regret on this sequence by
The minimum exists because the cumulative losses of hypotheses in form a nonempty subset of . Following Hanneke et al. [HMR 23], we define the regret of at horizon by
(2.2)
We abbreviate the regret on a given sequence by when the algorithm and sequence are clear. Thus is equivalent to on every labeled sequence.
Our regret bound is expressed in terms of the multiclass Littlestone dimension, which we define next.
Definition 2.1 (Littlestone dimension [Lit88, DSBDSS15]). A multiclass Littlestone tree of depth is a complete binary tree with an instance at each internal node and a label in on each outgoing edge. The two edges leaving any one node have distinct labels. A class shatters the tree if, for every root-to-leaf path, some maps each internal node's instance to the label of the edge taken along that path. The Littlestone dimension is the supremum of the depths of trees shattered by . We set and use when shatters trees of arbitrarily large depth.
The tree has binary branching even when is infinite, and the two outgoing labels may vary across nodes. Throughout, let . The following theorem establishes the optimal regret bound in terms of and .
Theorem 2.2 (Main result: optimal multiclass online regret). There is a universal constant such that, for every nonempty with and every horizon , there is an online learning algorithm with finitely supported prediction distributions satisfying
One may also sample using fresh randomness after is chosen. Appendix A relates expected sampled regret to , including against adaptive adversaries.
Together with the lower bounds of Daniely et al. [DSBDSS15, Theorems 24 and 26], Theorem 2.2 shows that the optimal regret is .
Remark 2.3 (Measurability). Our regret bound holds on every labeled sequence and requires no measurability assumptions.
3 Preliminaries: SOA and finite expert covers
3.1 Version spaces and SOA
A labeled sequence is realizable by if some agrees with all its labels. If, in addition, , then . For an instance-label pair, define
For nonempty V, the Standard Optimal Algorithm [Lit88, DSBDSS15] predicts
The maximum exists because the dimensions lie in . Fix all tie-breaking choices and a default label for . When SOA is run conservatively, it replaces V by after a mistake with observed label y, and leaves V unchanged after a correct prediction. The following lemma shows that a mistake from a nonempty version space reduces its dimension. We include a short proof for completeness.
Lemma 3.1 (Rank drop [Lit88, DSBDSS15]). If is nonempty and , then .
Proof. Let and . If for , maximality implies as well. Attaching depth-k trees shattered by and below a root labeled , with outgoing edges labeled and , yields a depth- tree shattered by . This contradicts the definition of Littlestone dimension. Therefore, a mistake must reduce the dimension.
On a sequence realizable by V, the version space remains nonempty and each SOA mistake drops its dimension. Thus conservative SOA makes at most mistakes [Lit88, DSBDSS15].
3.2 A finite family of experts
A deterministic expert is specified by prediction maps . On round , it predicts . For every with , define
Let be the indexed family of these experts. Distinct update sets are counted separately, even when they define the same prediction rule. Thus,
This is the expert family used by Hanneke et al. [HMR 23].
For a fixed labeled sequence and , define
(3.2)
We call the deficit of relative to . It counts the deficit rounds, on which is correct and is not. The quantity counts the expert's extra correct predictions. The difference is the expert's excess number of mistakes relative to . The sum is the number of rounds on which their correctness indicators disagree.
The earlier expert constructions [BDPSS09, DSBDSS15] guarantee that, for every and instance sequence, some expert agrees with on every round. Hanneke et al. [HMR 23] showed that controlling only the deficit suffices to obtain agnostic regret bounds independent of the size of the label space. We state this one-sided guarantee in the following proposition and include a short proof for completeness.
Proposition 3.2 (One-sided guarantee; cf. [HMR 23, proof of Theorem 4]). For every labeled sequence and every , there is an expert such that . Consequently,
Proof. Fix the sequence and . Starting from , scan the rounds and update exactly when and . Let be the set of these rounds. Every update preserves in the version space and decreases its dimension by Lemma 3.1, so . The expert maintains exactly these version spaces, and its deficit rounds are precisely the rounds in . Finally, its excess mistakes equal .
Hanneke et al. [HMR 23, Theorem 4] apply exponential weights to this expert family. For , the standard expert-advice guarantee [CBL06] and yield regret at most
This bound is independent of . Our proof removes the factor by using fractional covers at multiple scales.
3.3 New component: one-sided fractional covers
Alon et al. [ABED 21] removed the extra logarithmic factor in the binary regret bound of Ben-David et al. [BDPSS09] by introducing fractional covers and combining them with chaining. A fractional cover replaces a bound on the number of experts by a lower bound on the prior mass of experts that approximate each . Inspired by this approach, we extend the one-sided cover of Hanneke et al. [HMR 23] to a fractional cover in which approximation is measured by the deficit .
Definition 3.3 (One-sided fractional cover). Fix a finite indexed family of experts, a scale , and . A prior is a one-sided fractional cover of at scale with size if
Proposition 3.2 provides such a cover at scale with size by taking the uniform prior. For , Lemma 5.1 constructs a prior on the same expert family at each scale , with size at most . This bound decreases as the permitted deficit increases and provides the estimates needed for chaining.
A symmetric prediction cover controls . In binary classification, where predictions and outcomes share a two-label alphabet, this is exactly the number of correctness disagreements. The binary covers used in [BDPSS09, ABED 21] provide this type of guarantee. Proposition 3.2 controls only , leaving unrestricted. In Section 7, we obtain the additional control on needed for chaining.
4 Proof overview
We describe the three steps of the proof in the nontrivial regime . The expert family is always the one defined in (3.1). The cover priors below are tools for the analysis; they are not the mixture weights played by the learner.
Step 1: construction of one-sided fractional covers. Section 5 strengthens Proposition 3.2 from existence of one expert to a lower bound on the mass of suitable experts. For each we construct a prior on such that, on every sequence,
For simplicity, first assume for an integer . We assign expert prior mass proportional to , with normalizing constant .
Let us briefly describe how we find a set of good experts for a fixed and labeled sequence. We inductively construct a tree whose nodes at depth are tuples of update times in increasing order. The root is the empty tuple, and we set . If the expert has fewer than deficit rounds after , we declare it a leaf. Otherwise, we add children , where is the th deficit round after , for . Each selected update agrees with and occurs on an SOA mistake. Thus the version space keeps and its dimension drops at every edge, so the tree is finite and has depth at most .
Each branch simulates SOA, updating its version space only on selected deficit rounds. Choosing child skips updates on the first deficit rounds and updates after predicting on the th. Since , a branch ending at depth corresponds to an expert that has incurred at most deficits through round . If , the leaf condition allows at most further deficits, giving a total of at most . If , its version space only contains , so there are no further deficits. Hence every leaf corresponds to an expert with deficit at most .
Finally, every internal node has exactly children. Starting at the root and choosing each child uniformly reaches leaf with probability , and therefore . Distinct leaves correspond to distinct update sets, so their total prior mass is . For general , take and use this prior as . Since , the experts corresponding to leaves have deficit at most , and their total prior mass is at least , as required.
Step 2: the finite-expert dual game. Section 6 restricts the learner to mixtures over E and derives a dual expression for the value of this game [AABR09, RST15a]. Since E is finite, the simplex is compact and convex. Furthermore, the one-round payoff is continuous and affine in each player's distribution. Sion's minimax theorem [Sio58] therefore applies at each fixed history and instance. Backward induction then gives the following dual description. At each history, the adversary chooses an instance and a finitely supported distribution . The learner observes both and chooses weights , after which is drawn. The learner's conditional correctness reward is . Thus, a best response is to put all weight on an expert maximizing . Let
We show that the value of the restricted game is , where specifies the adversary's choices at every history. Restricting the learner to mixtures over can only increase the minimax value relative to the original game. Thus, to prove our theorem, it suffices to upper bound the value of this restricted game.
Step 3: bounding the dual value by chaining. Section 7 fixes an arbitrary dual tree and bounds by chaining. For , let and define
Since , we have . For every and every realization of the labeled sequence, if , then
Combining the cover at scale with the single-expert concentration bound leaves an extra logarithmic factor. To remove it, we use chaining, choosing approximating experts at progressively finer scales and controlling the differences between their martingale sums. To this end, take scales for , so . For a chain with , we obtain by telescoping
It remains to show that, on a common high-probability event, every admits such a chain with controlled initial term and increments. We construct this event using martingale concentration to control, simultaneously at all scales, the masses of experts and pairs violating their concentration bounds under and , respectively.
For , Step 1 gives
On the common event, the bounds on the violating masses ensure that, after conditioning each prior on , the failure probabilities for all single-expert and adjacent-pair bounds sum to less than one. Independent draws from these conditional priors therefore satisfy all the bounds with positive probability, proving that such a chain exists.
The increment bounds depend on the correctness distances , which the deficit bounds alone do not control. For with , we use
The left-hand side counts correctness disagreements between and h. Thus the bounds on also control these disagreements, and consequently the distances between adjacent experts.
Substituting into the increment bounds and summing yields a high-probability bound on . Integrating the resulting tail bound gives , uniformly over dual trees. Step 2 then completes the proof.
5 One-sided fractional covers for Littlestone classes
Assume and use the expert family from (3.1). Proposition 3.2 guarantees an expert with deficit at most . We now construct one-sided fractional covers using the same expert family.
Lemma 5.1 (Weighted coverage). For an integer m with , set
For every labeled sequence and every ,
Consequently, for every real there is a prior on the same expert family , independent of the sequence and of , satisfying
Proof. Fix a labeled sequence and . We will construct a set of good experts with the desired mass under . We inductively define a rooted tree whose nodes are tuples of update times in increasing order. The root is the empty tuple. A node with has version space
Then . Set . All updates selected below agree with , so at every node. Assume all nodes at depth have been defined and fix any such node of length . Consider the deficit rounds after when SOA uses the fixed version space . That is,
If , declare this node a leaf. Otherwise, add exactly children to this node: . Choosing child skips updates on deficit rounds and updates after predicting on the th.
At a chosen time , the defining conditions in (5.4) say that and that SOA predicted a different label. The child's version space therefore contains , and Lemma 3.1 applies:
Each update decreases the Littlestone dimension by at least one, while the version space remains nonempty. Thus each branch has at most updates. At depth , the dimension is zero, so and SOA incurs no further deficit rounds.
We now show that each expert corresponding to a leaf has deficit at most . Take any such leaf . The expert before its first update has version space . It then updates on and continues with and so on. By the above arguments, it has deficit at most on rounds . After its last update, if , it incurs at most further deficits.
by the leaf condition. If , it incurs no further deficit since and . Therefore,
This shows that every leaf corresponds to a good expert. It remains to show that their total prior mass under satisfies the desired bound. Starting at the root, choose a child uniformly at each internal node until reaching a leaf. Each leaf then has probability of being reached. Since the process will eventually reach a leaf, we have . Distinct leaves correspond to distinct update sets, since each set has a unique increasing ordering. Hence,
(5.7)
This proves the coverage part of (5.2). To bound , set . Since for , we have
Dividing by gives , completing (5.2). Finally, fix and let . Then and . Set . The preceding bounds yield
This prior is independent of the labeled sequence and of h, proving (5.3).
6 A finite-expert minimax reduction
We adapt the stochastic minimax duality argument of Abernethy et al. [AABR09, Theorem 1] and Rakhlin et al. [RST15a, Theorem 1 and Section 5.1] to mixtures over a finite family of experts. We include the proof to verify the minimax and attainment claims for arbitrary label spaces.
Fix any nonempty finite indexed family of deterministic experts. At a fixed history and current instance, let denote the prediction of expert .
A learner chooses weights , inducing the following label distribution with support size at most :
We express regret using correctness rewards. For a complete labeled sequence , define
For the learner A induced by a mixture rule w, the regret in (2.1) is then
Let be the minimax value of this regret when the learner must use such mixtures. Explicitly,
where ranges over deterministic mixture rules , and on the given sequence.
To state the duality lemma, we first define the adversary's stochastic trees. A stochastic tree specifies deterministic maps and for . At a node with label history , let
The next label is drawn from , and the children of the node correspond to the labels in . Along the tree, let and . Every tree has finitely many reachable nodes up to the horizon . Expectations below are taken under its induced finite probability law.
On round , define as the largest expected correctness reward achievable by a mixture of the experts' current predictions against the adversary's distribution .
Lemma 6.1 (Finite-expert duality). For every nonempty finite indexed family E of deterministic experts,
where the supremum is over the stochastic trees defined above. Moreover, there exists a deterministic mixture rule whose regret is at most on every labeled sequence.
Proof. We first prove a one-round identity and then apply backward induction to obtain (6.3). Fix a labeled history and a current instance , so that the predictions are fixed. For any bounded function , with , we claim the following one-round identity:
First, observe that
since an average cannot exceed the supremum over labels, while point masses can approach that supremum arbitrarily closely. By Sion's minimax theorem [Sio58, p. 174],
Indeed, is compact and convex, and is a convex subset of . Equip the latter set with the inherited topology. Since is bounded, the payoff is continuous and affine in each argument, so the theorem applies. For fixed , linearity of expectation gives
and . Since this is a convex combination of the finitely many values , its supremum over equals , attained by putting all weight on a maximizing expert. Therefore,
Substituting this equality into the preceding minimax identity proves (6.4).
We now apply this identity recursively. Set and, for , define
where uses the expert predictions at . The order of the operations follows the order of play. Since and , backward induction gives , so every continuation value is bounded.
Applying (6.4) with gives the recursion
For any fixed stochastic tree , its choices at each reached node therefore satisfy
Taking expectations and summing over t gives
Conversely, fix . At every reached node, choose within of the supremum in (6.6). Each has finite support, so these choices define a finite tree of depth . At each of its nodes,
Taking expectations and summing over the rounds, we obtain an expected payoff of at least . Letting tend to zero, we obtain
We next show that . Fix any deterministic mixture rule and any stochastic tree. Since and the expert predictions are determined before is drawn,
Hence, taking expectations and summing over the rounds,
Therefore,
For the reverse inequality, fix a history and an instance . The inner supremum in (6.5) is continuous in : changing to changes every term by at most , since uniformly over . Compactness of therefore ensures that a minimizing mixture exists. Fix one such mixture at every history and instance, and let . For every labeled sequence, we have
The first inequality takes the supremum over labels, the equality uses the minimizing choice of , and the last inequality takes the supremum over instances in (6.5). Summing over and using gives
Thus , with a deterministic mixture rule achieving this bound on every sequence.
Together with , this proves (6.3). The rule constructed above attains this value.
7 Bounding the dual game by localized chaining
The last step is to bound the dual value using the one-sided fractional covers. We first select suitable chains on a common event, then use the benchmark to control correctness disagreements and sum the centered increments.
7.1 Concentration and simultaneous chain selection
We return to the expert family of Lemma 5.1 and assume . In this subsection, we establish concentration estimates and a simultaneous chain-selection result that will be used to bound the dual game value in Lemma 6.1, uniformly over stochastic trees. Fix one such tree . Throughout this section, and refer to its label draws, and , with trivial. The current instance , distribution , and each expert's prediction are -measurable, and the conditional law of is .
For , define
(7.1)
Thus is the centered cumulative correctness of , while counts rounds on which exactly one of the two experts is correct. Since , the partial sums defining form a martingale. Moreover, gives
For , let and . To bound , we will use chains of experts with small deficits and controlled centered increments. The experts in these chains may depend on the realized sequence, so concentration bounds for fixed experts cannot be applied directly to them.
Following the fractional-cover method of , we first control, with high probability, the prior masses of experts and pairs that violate the concentration bounds. For each , we then condition each prior on experts with small deficit relative to . Using the cover guarantees, we show that a chain drawn from these conditional priors has positive probability of satisfying all the concentration bounds. Such a chain therefore exists for every on the same event, without a union bound over .
Lemma 7.1 (Concentration for fixed experts). For every fixed and every ,
For every fixed ordered pair , every , and every ,
Lemma 7.1 follows from the conditional Hoeffding bound and an exponential-supermartingale argument. Its proof is given in Appendix B.
Mass of experts violating the concentration bounds. We now consider fractional covers at different scales. On a single high-probability event, we will control the prior mass of experts violating the concentration bounds at each scale, and the product-prior mass of violating expert pairs at adjacent scales.
Set scales for . These scales decrease from to . For each , take the prior given in Lemma 5.1, and define
By ,
Fix a tail parameter and let . Define
(7.6)
We also fix numbers for , whose values will be specified later. We will bound the following random variables under the tree's label law:
Lemma 7.2 (Simultaneous control of violating masses). For every fixed and every fixed choice of , the event
satisfies
Proof. By definition, . Using Lemma 7.1, we obtain
Similarly, . By Markov's inequality,
and
A union bound completes the proof, since .
Good experts at all scales. We now show that on , for each h there exists a chain of “good” experts at all scales.
Lemma 7.3 (Simultaneous chain selection). On the event from Lemma 7.2, every admits a tuple satisfying
Proof. Fix a realized sequence and . Define the conditional priors
These are well-defined since . We use the probabilistic method: it suffices to show that the tuples satisfying the lemma's conditions have positive probability under . Let denote this auxiliary probability. Let be independent draws with . For every ,
where the last inequality follows from .
Similarly, independence of and gives, for every ,
The first inequality bounds the mass of violating pairs in by their total product-prior mass . The remaining inequalities use (7.5) and .
Since almost surely, the deficit bounds hold automatically. By a union bound, the auxiliary probability that any of the single-expert or adjacent-pair concentration bounds fails is at most
Thus the tuples satisfying all the lemma's conditions have positive auxiliary probability, so at least one such tuple exists. The sequence and were arbitrary, proving the simultaneous statement.
7.2 Controlling disagreements and completing the bound
We now use the selected chains to bound uniformly over stochastic trees. Fix and set, for ,
These parameters depend only on and are fixed. Let be the event in Lemma 7.2 for this choice of parameters. The remaining proof consists of the following steps.
Controlling correctness disagreements. On , fix with and take the chain provided by Lemma 7.3. We show that
Indeed, the definitions in (3.2) yield
Moreover,
where we used , , and Lemma 7.3. Consequently,
Since the correctness indicators take values in , whenever , at least one of them differs from . Thus, for ,
Telescoping and summing. By (7.10) and the distance bound just proved,
If , then and the right-hand side equals . Otherwise, and it is . Thus, in either case,
Moreover,
Using and telescoping along the chain gives
(7.11)
We derived this bound for . Since the right-hand side is nonnegative, it also bounds when . Therefore it bounds on .
We now estimate the sum in (7.11). The calculation in Appendix C shows that its right-hand side is at most for a universal constant C. Consequently,
From the tail bound to regret. By (7.12), the event is contained in . Lemma 7.2 therefore gives
Let and . Since can be negative, we integrate the tail of its positive part . Splitting the integral at gives
Here the second inequality bounds the probability by one on , the next line substitutes , and the last line uses (7.13).
The bound holds uniformly over stochastic trees. Taking the supremum over trees and applying Lemma 6.1, we conclude that
The same lemma provides a deterministic mixture rule whose regret is at most this value on every labeled sequence. Taking the supremum over labeled sequences yields the same bound on . This proves Theorem 2.2 when .
If , consists of a single function. Predicting this function gives zero regret on every sequence. If , any strategy has regret at most , since its cumulative loss is at most and the minimum cumulative loss over is nonnegative. These cases establish the stated bound for all finite .
AI disclosure
The main result of this paper was obtained using OpenAI's GPT-6 Astra model. In a separate, unpublished project, we had introduced the notion of one-sided covers, inspired by Hanneke et al. [HMR 23]. While developing that project, we studied Hanneke et al. [HMR 23] and Alon et al. [ABED 21] extensively with the model. We then asked it to develop a fractional version of our one-sided cover, following Alon et al. [ABED 21], and use it to remove the extra logarithmic factor from the regret upper bound. The model produced the proof that forms the basis of this paper. We subsequently checked, summarized, and rewrote the proof. We also used AI to assist with writing and editing the manuscript. The authors take full responsibility for the paper's content and correctness.
References
[AABR09] Jacob Abernethy, Alekh Agarwal, Peter L. Bartlett, and Alexander Rakhlin. A stochastic view of optimal regret through minimax duality. In Proceedings of the 22nd Annual Conference on Learning Theory, 2009. https://www.learningtheory.org/colt2009/papers/026.pdf. 2, 6, and 9
[ABED 21] Noga Alon, Omri Ben-Eliezer, Yuval Dagan, Shay Moran, Moni Naor, and Eylon Yogev. Adversarial laws of large numbers and optimal regret in online classification. In Proceedings of the 53rd Annual ACM SIGACT Symposium on Theory of Computing, pages 447–455, 2021. Full version: https://arxiv.org/abs/2101.09054. 1, 2, 5, 6, 13, and 17
[BDPSS09] Shai Ben-David, Dávid Pál, and Shai Shalev-Shwartz. Agnostic online learning. In Proceedings of the 22nd Annual Conference on Learning Theory, 2009. https://www.cs.mcgill.ca/~colt2009/papers/032.pdf. 1, 5, and 6
[BDR21] Adam Block, Yuval Dagan, and Alexander Rakhlin. Majorizing measures, sequential complexities, and online learning. In Proceedings of the 34th Conference on Learning Theory, volume 134 of Proceedings of Machine Learning Research, pages 587–590, 2021. Extended abstract; full version: https://arxiv.org/abs/2102.01729. 2 and 13
[CBL06] Nicolò Cesa-Bianchi and Gábor Lugosi. Prediction, Learning, and Games. Cambridge University Press, 2006. 5
[DSBDSS15] Amit Daniely, Sivan Sabato, Shai Ben-David, and Shai Shalev-Shwartz. Multiclass learnability and the ERM principle. Journal of Machine Learning Research, 16(72):2377–2404, 2015. https://jmlr.org/papers/v16/daniely15a.html. 1, 3, 4, and 5
[HMR 23] Steve Hanneke, Shay Moran, Vinod Raman, Unique Subedi, and Ambuj Tewari. Multiclass online learning and uniform convergence. In Proceedings of the 36th Conference on Learning Theory, volume 195 of Proceedings of Machine Learning Research, pages 5682–5696, 2023. https://proceedings.mlr.press/v195/hanneke23b.html. 1, 2, 3, 4, 5, and 17
[HRSS24] Steve Hanneke, Vinod Raman, Amirreza Shaeiri, and Unique Subedi. Multiclass transductive online learning. In Advances in Neural Information Processing Systems, volume 37, pages 60403–60428, 2024. 2
[Lit88] Nick Littlestone. Learning quickly when irrelevant attributes abound: A new linear-threshold algorithm. Machine Learning, 2:285–318, 1988. 1, 3, and 4
[PMBD26] Alireza F. Pour, Farnam Mansouri, and Shai Ben-David. Learning with multiple correct answers—regret bounds under different feedback models, 2026. arXiv:2602.09402, version 2. https://arxiv.org/abs/2602.09402. 2
[RST10] Alexander Rakhlin, Karthik Sridharan, and Ambuj Tewari. Online learning: Random averages, combinatorial parameters, and learnability. In Advances in Neural Information Processing Systems, volume 23, pages 1984–1992, 2010. 1
[RST15a] Alexander Rakhlin, Karthik Sridharan, and Ambuj Tewari. Online learning via sequential complexities. Journal of Machine Learning Research, 16(6):155–186, 2015. https://jmlr.org/papers/v16/rakhlin15a.html. 1, 2, 6, and 9
[RST15b] Alexander Rakhlin, Karthik Sridharan, and Ambuj Tewari. Sequential complexities and uniform martingale laws of large numbers. Probability Theory and Related Fields, 161:111–153, 2015. 1
[RST25] Vinod Raman, Unique Subedi, and Ambuj Tewari. A unified theory of supervised online learnability. In Proceedings of the 36th International Conference on Algorithmic Learning Theory, volume 272 of Proceedings of Machine Learning Research, pages 985–1007, 2025. https://proceedings.mlr.press/v272/raman25a.html. 2
[Sio58] Maurice Sion. On general minimax theorems. Pacific Journal of Mathematics, 8(1):171–176, 1958. https://doi.org/10.2140/pjm.1958.8.171. 2, 6, and 10
A Expected sampled regret
For sampled predictions , define the sampled regret by
The adversary may use and earlier sampled predictions to choose , but cannot observe the current draw .
Lemma A.1. Let A be an online learning algorithm interacting with an adaptive adversary, possibly randomized. Sample each prediction from using fresh randomness after is chosen. Assume that all losses and the minimum cumulative loss over H are measurable. If denotes the information available before this draw, then
Then
Proof. Let . The tower property gives
where the inequality follows from the definition of .
Taking the supremum over adaptive adversaries whose interactions satisfy the lemma's assumptions gives
The upper bound follows from the lemma. For the reverse inequality, every fixed labeled sequence can be played by an adversary, and on that sequence . Thus Theorem 2.2 also bounds worst-case expected sampled regret.
B Proof of the concentration lemma
Proof of Lemma 7.1. Fix . Conditional on , the variable is Bernoulli with mean . The conditional Hoeffding bound therefore gives, for every fixed ,
Iterating conditional expectations over the rounds yields . Hence, by Markov's inequality, for every ,
Taking gives . Setting proves (7.3).
For (7.4), fix and , and let
We use the elementary inequality
Indeed, satisfies and , so its minimum on this interval is zero. Since , applying (B.1) with gives
Consequently,
is a nonnegative supermartingale. In particular,
Another application of Markov's inequality gives
which proves (7.4). The realized distance appears inside the exponential throughout the argument, while remains fixed.
C Estimating the chain sum
Assume and , and retain the notation of Subsection 7.2. Define
We show that for a universal constant .
Substituting and into (7.6) gives
where the second line applies to . Both bounds use and . Consequently,
Since , for we obtain
Multiplying this bound by and using for yields
The second term decreases geometrically with the scale. The first comes from the individual bounds used to control correctness disagreements and has the smaller power .
The sums appearing in satisfy
Together with and , these bounds yield
(C.1)
It remains to check that the powers of do not introduce an extra logarithmic factor. Let . Then and , so
Both factors involving are uniformly bounded for : they are continuous and tend to zero as . The other two terms satisfy and . Since both and are at most , it follows from (C.1) that, for a universal constant ,