cs.LGNov 21, 2026

How many mistakes does it take to learn an interval? Exact Littlestone dimensions of intervals and their unions

Authors: Miit Daga, Swarna Priya Ramu

Organizations: School of Computer Science Engineering and Information Systems, Vellore Institute of Technology, Vellore 632014, Tamil Nadu, India

Abstract

The Littlestone dimension of a hypothesis class equals the smallest number of mistakes an online learner can guarantee against an adaptive adversary. For discrete intervals and unions of jj intervals on mm points, only its order of growth was known. We determine it exactly. For every switch budget kk (with both end labels fixed when kk is odd), the smallest size on which dd mistakes can be forced follows a three-regime law: d+1d+1 while d≤kd\le k, then 2d−k+12d-k+1, and beyond d=⌈3k/2⌉+k−1d=\lceil 3k/2\rceil+k-1 doubling the size adds exactly kk mistakes. Unions of jj intervals on mm points correspond to k=2jk=2j and size m+1m+1, and a single interval gives the thresholds 1,2,3,5,7,10,14,20,…1,2,3,5,7,10,14,20,\dots. The natural learner that waits for a positive example and binary-searches both endpoints is not optimal: it can be forced into one extra mistake for 50,847 of the domain sizes below 10510^5. Upper bounds come from a gap potential and a block-pairing learner, and lower bounds from adversary strategies and a refinement step. These tools give an explicit optimal learner with O(log⁡m)O(\log m) time per round, which on random streams makes more mistakes on average than the natural learner. For randomised learners, we compute the randomised Littlestone dimension of thresholds exactly and prove that a greedy adversary forces an explicit closed-form number of expected mistakes on intervals; this bound is within 0.640.64 of optimal and, we conjecture, exact (confirmed for m≤70m\le70). Exact computation tests every result, and the formulas for every switch budget are machine-checked in Lean 4.

Figures & tables

Explore similar work

Sep 18, 2026

Optimal Randomized Proper Online Learning

We prove that the optimal expected mistake bound of online learning a function class H\mathcal{H} by a randomized proper learning algorithm is O(L(H)log⁡T)O(\mathtt{L}(\mathcal{H}) \log T), where L(H)\mathtt{L}(\mathcal{H}) is the Littlestone dimension of H\mathcal{H} and TT is the time horizon. Our result improves upon the previously best known bound of O(L(H)log⁡6T)O(\mathtt{L}(\mathcal{H}) \log^6 T) given by Daskalakis and Golowich (STOC 2022), and is optimal up to a universal constant for worst-case classes.
Oct 5, 2026

Private online learning and prediction for Littlestone classes

We study mistake bounds for differentially private online learning and online prediction under oblivious realisable adversaries. Online learning requires the learner to release a hypothesis at each time step whereas in online prediction, the learner only needs to make predictions without releasing a hypothesis. Using a novel lower bound for private online learning and an upper bound for private prediction, we show that the sample complexity of these two problems are separated by a factor that grows with the time horizon for every class of finite Littlestone dimension dd. First, we prove that every (ε,δ)(ε,δ)-private online learner has a deterministic realisable stream of length TT on which the mistake bound is at least E[MT]=O(dεlog⁡2/3T)\mathbb E [M_T]= O\left(\frac dε\log^{2/3} T\right). In particular, this is the first non-trivial lower in the range 1/T<δ<1/log⁡T)1/T<δ<1/\log T) left open in earlier works[SR22,DSS24,LWY24]. Second, we prove that for every class of of Littlestone dimension dd, there exists an (ε,δ)(ε,δ)-jointly private predictor with at most 22cd2ε−2log⁡2(2/(εδ))2^{2^{cd^2}}ε^{-2}\log^2(2/(εδ)) expected mistakes, independently of TT, for some absolute constant c>0c>0. Thus, for every fixed class of finite Littlestone dimension when δ=Θ(1/log⁡T)δ=Θ(1/\log T), private learning requires O(log⁡2/3T)O\left(\log^{2/3} T\right) expected mistakes, whereas private prediction admits O(log⁡log⁡T2)O(\log\log T^2).
Aug 6, 2026

Optimal Rates for Learning with Monotone Adversaries

A monotone adversary observes an i.i.d. labeled sample and appends a finite number of further examples of its choice, every one of them labeled correctly by the target hypothesis. The learner sees a uniform shuffle of the combined sample and is scored on the original distribution. Every example is correctly labeled, but the insertions depend on the clean sample, so the combined sample is not exchangeable. Larsen, Pabbaraju, and Shetty, who introduced this model, showed that empirical risk minimization attains expected error O((d/n)log⁡(n/d))O((d/n)\log(n/d)) for classes of VC dimension dd, and that every known optimal learner can be pushed away from the Θ(d/n)Θ(d/n) rate, optimal for PAC learning. They asked whether the extra logarithm is an artifact of those particular algorithms or an inherent consequence of the lack of exchangeability. We show that this additional cost is inherent beyond VC dimension one. In the worst case over classes of VC dimension dd and over known finite insertion budgets, the minimax expected error is Θ(1/n)Θ(1/n) at d=1d=1 and Θ((d/n)log⁡(n/d))Θ((d/n)\log(n/d)) for d≥2d\geq 2. The same rates hold with Littlestone dimension dLd_{\mathrm L} in place of dd, so the clean online-to-batch rate O(dL/n)O(d_{\mathrm L}/n) is unattainable as well. Thus, somewhat counterintuitively, adding correctly labeled examples can make learning harder by a logarithmic factor, even for classes that admit finite mistake bounds in online learning. The dimension-one upper bound is achieved by a simple improper learner whose analysis adapts the leave-one-out argument underlying the one-inclusion graph. All of our lower bounds are elementary and come from a single construction: an explicit class and prior on which two target hypothesis, which differ a point of nonnegligible mass, produce the same sample.