How many mistakes does it take to learn an interval? Exact Littlestone dimensions of intervals and their unions
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 intervals on points, only its order of growth was known. We determine it exactly. For every switch budget (with both end labels fixed when is odd), the smallest size on which mistakes can be forced follows a three-regime law: while , then , and beyond doubling the size adds exactly mistakes. Unions of intervals on points correspond to and size , and a single interval gives the thresholds . 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 . 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 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 of optimal and, we conjecture, exact (confirmed for ). Exact computation tests every result, and the formulas for every switch budget are machine-checked in Lean 4.
Figures & tables
| Work | Setting | Key finding | Evaluation | Gap addressed here |
| Maass and Turán [32] | Half-intervals, boxes on a grid | Half-intervals on points: exactly mistakes | Proofs | Boxes, hence intervals, bounded only up to constants. |
| Chen and Maass [11] | Boxes in | Efficient learner with mistakes from per-endpoint searches | Algorithm, proofs | Exact optimum open even for one interval. |
| Bshouty et al. [8] | Unions of boxes, queries | At most counterexamples; equivalence-only learning for constant | Algorithm, proofs | Optimal count for unions of intervals not determined. |
| Kimber and Long [26] | Smooth real functions on | Optimal total -th power error exactly for | Proofs | Exact values only for real-valued, not binary, classes. |
| Auer and Long [4] | Mistakes with and without queries | Membership queries lower the optimum by at most a factor ; tight | Proofs | Optimal bound of a given class not evaluated. |
| Alon et al. [1] | Differentially private PAC learning | A class is privately learnable if and only if its Littlestone dimension is finite | Proofs | Finite versus infinite only; values for concrete classes not computed. |
| Case | Quantity | Range | Bound |
|---|---|---|---|
| Odd : , , , | |||
| (i) | |||
| (ii) | |||
| (iii) | |||
| Claim | Range | Move |
|---|---|---|
| (i) at | (a) shattering | |
| (i) at | (d) query at distance two | |
| (i) at | (e) refinement | |
| (ii), | (c) adjacent query | |
| (ii), | , | (d) or (e), as for (i) |
| Trials | Optimal learner | Natural learner | ||||
|---|---|---|---|---|---|---|
| Mean (SD) | Max | Mean (SD) | Max | |||
| Statement | Check | Range |
|---|---|---|
| Theorems 1 and 2 | Recursion of Fact 7 on explicit classes; second implementation | : ( ); : ( ) |
| Theorems 1 , 2 and 4 ; identities of Corollary 5 ; Proposition 6 | Formal proof in Lean 4 with Mathlib, checked by the Lean kernel | every ; every , ; every , ; every , odd |
| Theorems 2 and 4 , Proposition 6 | Compressed dynamic program over labelled samples of | : ; : |
| Theorem 2 | Reduction to | ; |
| Lemma 13 | Segment recursion | |
| Propositions 17 and 18 | Minimum root measure of admissible trees | ( ) |