arXiv:2609.10196cs.LGSep 2026

Manuscript Offprint

arXiv:2609.10196

An Exponential Deterministic--Randomized Gap in ERM-Oracle Complexity for Thresholds on an Unknown Order

Xuan Li

Abstract

Attias, Hanneke and Ramaswami (NeurIPS 2025) asked whether randomization provably reduces the oracle calls needed for online learning when the class is accessible only through an oracle. We study the instance they singled out: transductive online learning of thresholds on an unknown total order of T instances, with a consistency-type ERM oracle that returns a full concept consistent with a queried labeled set (or reports non-realizability). Our main result is a separation for a fixed natural oracle. When the oracle is the minimal-prefix rule (or the maximal-prefix rule), every deterministic learner makes M mistakes and Q calls with M+Q≥T−εM+Q \geq T-\varepsilon on some instance (ε∈{0,1}\varepsilon \in \{0,1\}, according to whether the empty prefix is a concept), and the constant is exact; hence O(log⁡T)O(\log T) mistakes cost T−ε−O(log⁡T)T-\varepsilon-O(\log T) calls, whereas that paper's randomized learner achieves O(log⁡T)O(\log T) expected calls and mistakes under the same rule. The randomized order is optimal: on an explicit hard distribution under the minimal-prefix rule, every learner has expected mistakes at least (T+1−ε)128−E[Q]−1)/2(T+1-\varepsilon)128^{-\mathbb{E}[Q]}-1)/2, so Ω(log⁡T)\Omega(\log T) expected calls are necessary for polylogarithmic mistakes. The separation is governed by the oracle's selection rule, not by the class alone: for a legal feasible-median ERM rule a deterministic learner achieves O(log⁡T)O(\log T) calls and mistakes, while a global-median rule again forces linear total cost. The same linear bound holds when the oracle's answers are chosen adversarially and then frozen into a memoryless oracle. We add partial tradeoff results for fixed query budgets (the middle regime is open) and an interface contrast: with only a weak consistency oracle, returning a realizability bit, both deterministic and randomized learners need Θ(T)\Theta(T) calls.

1 Introduction

In oracle-based online learning the learner does not see the concept class directly. It interacts with the class only through an oracle, and two resources are then distinguished: the number of prediction mistakes, which measures statistical difficulty, and the number of oracle calls, which measures how much of the class the learner must actually inspect. A class of small Littlestone dimension may be learnable with few mistakes and yet require many oracle calls, and the calls themselves can be the expensive part. Which oracle interface is offered, and how the oracle chooses among many legal answers, then becomes part of the problem specification.

Attias, Hanneke and Ramaswami [1] (henceforth AHR25) study online and transductive online learning with two such interfaces: a consistency-type ERM oracle, which given a labeled finite set SS returns some concept of the class consistent with SS (as a full label vector) or reports that SS is not realizable, and a weak consistency oracle, which returns only the realizability bit. For the family of threshold classes on an unknown total order of the instances they prove (their Theorem 4.5) that a deterministic learner can achieve O(log⁡T)O(\log T) mistakes with O(T)O(T) ERM calls, and that a randomized learner can achieve O(log⁡T)O(\log T) mistakes with O(log⁡T)O(\log T) expected ERM calls. They write that the latter “represents an exponential improvement over deterministic algorithms" (AHR25, §1.1); no lower bound for deterministic learners on this family is proved there, and their concluding section asks:

"Are randomized algorithms provably more powerful than deterministic ones for online learning with oracles?"

(The abstract of AHR25 states that “O(log T) ERM queries suffice” for thresholds on an unknown ordering; the algorithm in question is randomized and the bound is in expectation.)

A separation for a fixed natural oracle. Our main result answers this question for the instance the authors singled out, and it does so for a single oracle that is announced before the learner. Let the ERM oracle be the minimal-prefix rule: on a realizable sample it returns the smallest consistent prefix of the unknown order. This is arguably the most natural consistency-type ERM oracle for thresholds, it is memoryless, and it is public. Theorem 3.1 states that for every deterministic learner there are an order and a target on which the number of mistakes plus the number of calls is at least T−εT - \varepsilon, where ε∈{0,1}\varepsilon \in \{0,1\} records whether the empty prefix counts as a concept; the constant is exact, and the same holds for the maximal-prefix rule and for any sample-dependent choice between the two. Consequently a deterministic learner with O(log⁡T)O(\log T) mistakes must make T−ε−O(log⁡T)T - \varepsilon - O(\log T) calls, whereas the randomized learner of AHR25, which works for every legal oracle, makes O(log⁡T)O(\log T) expected calls with O(log⁡T)O(\log T) mistakes under the very same rule. In the Littlestone dimension d=Θ(log⁡T)d = \Theta(\log T) of the class this is a gap of O(d+1)O(d + 1) versus 2Ω(d)2^{\Omega(d)}.

Why a full concept does not help a deterministic learner. The oracle returns a complete label vector, so one call can reveal the relative order of many instances at once, and the sorting-based deterministic algorithm of AHR25 does exploit this. The lower bound nevertheless charges each call for at most one point. The reason is a one-pin common-value property of the extremal rules: the adversary maintains a block L≺F≺RL \prec F \prec R of instances with F freely permutable, and for every query it can move at most one point of F to an endpoint of the block so that the minimal-prefix answer is the same full vector on every remaining order. Every prediction on a still-free point is then forced to be wrong, and since only calls remove free points without a mistake, mistakes plus calls add up to the number of free points. Because the rule is fixed in advance, the final instance is simply one of the retained orders and the declared oracle needs no record of past answers.

Randomized calls are optimal in order. Theorem 3.2 shows that the randomized O(log⁡T)O(\log T) of AHR25 cannot be improved in order: on an explicit distribution over orders and targets, under the minimal-prefix rule, every randomized learner satisfies E[M]≥((T+1−ε)128−E[Q]−1)/2\mathbb{E}[M] \geq ((T+1-\varepsilon)128^{-\mathbb{E}[Q]}-1)/2, so polylogarithmic expected mistakes require Ω(log⁡T)\Omega(\log T) expected calls. Here a single call may legitimately reveal a linear number of labels, so a one-point charging argument is unavailable; instead a logarithmic potential (“paid predictions plus remaining hidden points”) decreases by at most 7ln⁡27\ln 2 per call in expectation. The natural uniform-random-order distribution provably cannot yield such a bound.

The oracle’s selection rule is a complexity axis. The linear deterministic bound is not a property of the threshold class alone. Theorem 3.4 exhibits a legal, memoryless “feasible-median” ERM rule under which a deterministic learner achieves ⌈log⁡2T⌉\lceil \log_2 T \rceil calls and ⌈log⁡2T⌉\lceil \log_2 T \rceil mistakes (for T≥2T \geq 2), while a “global-median” rule again forces linear total cost. The exponential advantage of randomization is therefore an advantage against unfavourable selection (extremal or adversarial), and randomization substitutes for it: the randomized learner is indifferent to how the oracle selects, whereas a deterministic learner is at the mercy of the rule. We regard this as the conceptual content of the paper: for oracle-based online learning, the selection behaviour of the oracle is a complexity parameter alongside the interface and the class.

Contributions. Throughout, TT is the number of instances, MM the number of mistakes, QQ the number of oracle calls, and ε=0\varepsilon = 0 under convention E (the empty prefix on the instances is a concept) and ε=1\varepsilon = 1 under convention N (it is not); see Section 2.

  1. Fixed-natural-oracle separation (Theorem 3.1). Under the pre-declared minimal-prefix rule (or the maximal-prefix rule, or any sample-dependent choice between the two), every deterministic learner has M+Q≥T−εM + Q \geq T - \varepsilon on some instance, and inf⁡Asup⁡(M+Q)=T−ε\inf_{\mathcal{A}} \sup(M + Q) = T - \varepsilon exactly. Only the order and the target are chosen adversarially; the oracle precedes the learner, matching the literal reading of “an ERM oracle for CC”.

  2. Matching randomized lower bound (Theorem 3.2). On an explicit finite distribution under the minimal-prefix rule, every randomized learner satisfies E[M]≥((T+1−ε)128−E[Q]−1)/2\mathbb{E}[M] \geq ((T + 1 - \varepsilon) 128^{-\mathbb{E}[Q]} - 1)/2. With AHR25, the randomized ERM query complexity of O(log⁡T)O(\log T) mistakes is Θ(log⁡T)\Theta(\log T).

  3. Selection-rule dependence (Theorem 3.4). The linear bound does not extend to every legal pre-declared rule: the feasible-median rule admits deterministic ⌈log⁡2T⌉\lceil \log_2 T \rceil calls and mistakes for T≥2T \geq 2, whereas the global-median rule forces M+Q≥T−⌊(ε+T)/2⌋M + Q \geq T - \lfloor (\varepsilon + T)/2 \rfloor. Every linear deterministic ERM lower bound in this paper is a statement about the extremal rules of Theorem 3.1 and about worst-case legal oracles; it is not uniform over all legal pre-declared selection rules.

Three further results support and refine the picture. Theorem 4.1 shows that the bound M+Q≥T−εM + Q \geq T - \varepsilon also holds when the oracle's answers are chosen adversarially after the learner and then frozen into a memory-less oracle, which is the operational form of the lower bounds in AHR25. Theorem 7.1 gives deterministic lower and upper bounds for fixed query budgets, with exact values in the small- and large-budget regimes and finite counterexamples showing that the naive exact formula fails in between. Theorem 7.2 contrasts interfaces: with only a weak consistency oracle, both deterministic and randomized learners need Θ(T)\Theta(T) calls for O(log⁡T)O(\log T) mistakes, so the exponential advantage of randomization is tied to the oracle returning an evaluable concept.

Techniques and what is portable. Two lower-bound templates carry the paper. The deterministic template (Section 4) is a common-value argument: a partial commitment on the order, a lemma showing that one endpoint pin per query stabilizes the oracle's full answer, an additive charging of free points, and a fixation step that turns the adaptive construction into one fixed instance. Only the one-pin lemma uses the threshold structure and the extremal rule; the commitment, charging and fixation steps apply verbatim to any pre-declared rule with the one-pin common-value property (Appendix A, §6), and, with an answer cache, to adversarial oracles (Appendix B). The randomized template (Section 5) is a hard-distribution potential argument: a hidden-center interval-tree distribution, an auxiliary oracle that reveals strictly more than the real one, a posterior-invariance lemma, and a bound of O(1)O(1) on the expected decrease of a logarithmic potential per call. The interval-tree geometry is threshold-specific; the device of paying for revealed labels with already-made predictions is not. Neither template uses the general lower-bound theorem of AHR25 (their Theorem 4.4); Remark 4.3 explains once why it does not apply here.

Organization. Section 2 fixes the model, the default convention and the quantifier forms. Section 3 states the three headline results. Sections 4 and 5 sketch the deterministic and randomized lower bounds, and Section 4 also states the adversarial-then-frozen theorem. Section 6 discusses selection-rule dependence. Section 7 states the fixed-budget tradeoff bounds and the weak-consistency interface contrast. Section 8 lists open problems. Complete proofs are in Appendices A–E.