Xiaol.x
A three-block algorithm combining hypercube orientation, suffix averaging, and nested-threshold validation eliminates extraneous logarithmic penalties to achieve the minimax-optimal excess risk across every noise regime.
AI-assisted summary of Why the optimal PAC rate is a sandwich — An Optimal Agnostic PAC Algorithm (arXiv 2608.06363) — original source. Check the original for full context.
Source published:
Key ideas
- A paper by Mathiasen, Qian, and Zhivotovskiy (arXiv:2608.06363) resolves a thirty-year open problem in PAC learning by matching the Devroye–Györfi–Lugosi agnostic lower bound across all noise levels. (0:00)
- The learner eliminates all extraneous logarithmic factors present in empirical risk minimization and recent 2024 bounds, bridging the clean d/n and noisy sqrt(d/n) regimes. (2:25)
- The algorithm combines Boolean hypercube edge orientation via Hall's Marriage Theorem, martingale suffix averaging for high-probability bounds, and nested-threshold validation. (5:05)
- The resulting classifier is fully parameter-free, adapting automatically without requiring knowledge of the noise level L* or target confidence delta, despite an unoptimized constant of order 7e8. (7:43)
Detailed notes
## Background Published by Xiaol.x on YouTube on August 17, 2026, this blackboard lecture unpacks the paper 'An Optimal Agnostic PAC Algorithm' (arXiv:2608.06363) by Markus Engelund Mathiasen, Jian Qian, and Nikita Zhivotovskiy. The show notes explain how the work settles a thirty-year open problem in PAC learning theory by closing the interpolation gap between the clean $d/n$ rate and the noisy $\sqrt{d/n}$ regime, matching the classical Devroye–Györfi–Lugosi lower bound up to a universal constant.
## TL;DR For decades, learning theorists understood the excess risk limits for clean data ($d/n$) and heavily noisy agnostic data ($\sqrt{d/n}$), but lacked an algorithm that achieved the optimal high-probability interpolation across all intermediate noise levels $L^*$. Previous methods like Empirical Risk Minimization or existing one-inclusion graphs suffered from superfluous logarithmic factors or inflated coefficients on $L^*$. The authors resolve this challenge using a three-stage pipeline: orienting edges of the Boolean hypercube via Hall's Marriage Theorem with an exact leading coefficient of one, employing suffix averaging and martingales to obtain exponential tail bounds, and applying nested-threshold validation to bypass error-doubling majority votes. The result is an adaptive, parameter-free binary classifier that hits the optimal excess risk lower bound across all noise levels.
## Atmosphere & style The presentation has the rigorous, unhurried feel of an elite chalk-talk seminar. Starting from a completely blank blackboard, the speaker methodically defines every foundational object before introducing any theorems, building mathematical structures with quiet confidence. The delivery is focused, precise, and pedagogically deliberate, turning an intricate technical achievement—complete with huge, unoptimized theoretical constants—into an elegant, visually intuitive geometric narrative on the hypercube.
## Bulletin - [00:00](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=0s) A paper by Mathiasen, Qian, and Zhivotovskiy (arXiv:2608.06363) resolves a thirty-year open problem in PAC learning by matching the Devroye–Györfi–Lugosi agnostic lower bound across all noise levels. - [02:25](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=145s) The learner eliminates all extraneous logarithmic factors present in empirical risk minimization and recent 2024 bounds, bridging the clean d/n and noisy sqrt(d/n) regimes. - [05:05](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=305s) The algorithm combines Boolean hypercube edge orientation via Hall's Marriage Theorem, martingale suffix averaging for high-probability bounds, and nested-threshold validation. - [07:43](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=463s) The resulting classifier is fully parameter-free, adapting automatically without requiring knowledge of the noise level L* or target confidence delta, despite an unoptimized constant of order 7e8.
## Key takeaways - [00:00](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=0s) PAC learning theory has long understood the extreme regimes of clean data (d/n) and noisy agnostic data (sqrt(d/n)), but high-probability interpolation across intermediate noise levels L* remained open for thirty years. - [00:41](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=41s) The learning setting evaluates an improper predictor against a hypothesis class of VC dimension d, with the objective of minimizing excess risk above the best-in-class risk L*. - [01:38](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=98s) The Devroye–Györfi–Lugosi lower bound dictates that any agnostic PAC learner must suffer an excess risk scaling with both sqrt(L*(d + log(1/delta))/n) and (d + log(1/delta))/n. - [02:25](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=145s) Empirical Risk Minimization incurs extra logarithmic penalties, while recent state-of-the-art work by Hanneke, Larsen, and Zhivotovskiy (2024) still retained an unwanted log^5(n/d) factor. - [02:25](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=145s) Existing near-realizable one-inclusion rules place a coefficient strictly greater than 1 on L*, making them unusable for a unified agnostic theorem valid across all noise levels. - [03:13](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=193s) Leave-one-out prediction can be represented geometrically as directing edges on the Boolean hypercube {-1, +1}^n, where prediction error on held-out coordinates corresponds to vertex out-degree. - [04:04](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=244s) A novel class-dependent edge isoperimetric lemma uses random restrictions to bound edge capacity by the Hamming distance plus a localized Rademacher width of 60*sqrt(dm), where VC dimension d enters the proof. - [05:05](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=305s) Applying Hall's Marriage Theorem directs cube edges within allocated vertex capacities, securing a leave-one-out bound that preserves an exact leading coefficient of 1 on empirical risk. - [05:57](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=357s) Because one-inclusion rules can exhibit heavy tails, suffix averaging across intermediate training steps is introduced to convert expected bounds into exponential tail bounds with log(1/delta) dependence. - [05:57](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=357s) Forward and reverse martingales couple leave-one-out errors with true population excess risk, allowing martingale variance to scale cleanly with the noise level L*. - [06:53](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=413s) Majority voting cannot be used to convert real-valued suffix scores into binary predictions, as doubling the error would replace the critical leading coefficient of 1 on L* with 2. - [06:53](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=413s) The authors instead use nested-threshold validation on an independent holdout set, utilizing the low metric entropy of nested sets to avoid paying any log(n) penalty. - [07:43](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=463s) The complete algorithm partitions n samples into thirds (k = floor(n/3)), using 2k - 1 points for suffix-averaged training and k points for validation thresholding. - [07:43](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=463s) The learner achieves the minimax-optimal bound without needing L* or delta as inputs, matching the theoretical lower bound up to a universal constant bounded by 7e8.
## Detailed walkthrough ### [00:00](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=0s) The Missing Middle Rate
The lecture opens on a completely blank blackboard to resolve a thirty-year open question in PAC (Probably Approximately Correct) learning theory. On the left side of the board stands the clean, realizable world where at least one hypothesis in the class makes zero mistakes. On the right side stands the noisy, agnostic world where even the best possible rule in the class is wrong a constant fraction of the time. The standard sample complexity and excess risk extremes for these two worlds have long been understood: clean data requires an excess risk scaling around the VC dimension divided by the sample size ($d/n$), whereas noisy data incurs a much slower square-root rate ($\sqrt{d/n}$).
The catch that confounded researchers for three decades is that no known learning algorithm could interpolate between those two regimes across every intermediate noise level with high probability. That exact gap is settled by the paper under discussion (arXiv:2608.06363, *An Optimal Agnostic PAC Algorithm* by Markus Engelund Mathiasen, Jian Qian, and Nikita Zhivotovskiy).
[00:41](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=41s) Four Core Objects Before Any Theorems
Before diving into formulas, four fundamental mathematical objects must be established on the board: 1. **Hypothesis class $\mathcal{H}$:** A family of allowed binary classification rules, where each rule maps inputs to $\{+1, -1\}$. 2. **VC dimension $d$:** The combinatorial complexity of $\mathcal{H}$, defined as the largest number of points that the class can shatter (label in every possible combination). 3. **Training sample:** An i.i.d. dataset consisting of $n$ labeled pairs. 4. **Risk and optimal risk $L^*$:** The risk of any rule $h$ is simply the probability that it disagrees with the true label on a random draw. The absolute lowest risk achievable by any function within the class $\mathcal{H}$ is denoted as $L^*$.
The algorithm produces a predictor $\hat{h}$, which is allowed to be improper (it does not necessarily have to belong to $\mathcal{H}$). The entire objective of the theory centers on the excess risk—the gap between the risk of $\hat{h}$ and the best-in-class risk $L^*$. Every subsequent equation is strictly a statement bounding this excess risk gap.
[01:38](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=98s) The Devroye–Györfi–Lugosi Sandwich
A common but false initial intuition is that a single uniform rate should govern excess risk across all regimes. In reality, nature enforces two distinct behaviors depending on noise: - When $L^* = 0$, the minimax excess risk is $\mathcal{O}(d/n)$. - When $L^*$ is bounded away from zero by a constant, the minimax excess risk scales as $\mathcal{O}(\sqrt{d/n})$.
Luc Devroye, László Györfi, and Gábor Lugosi established a matching lower bound showing that any learner can be forced, with probability at least $\delta$, to suffer an excess risk of at least:
$$\Omega\left(\sqrt{\frac{L^*(d + \log(1/\delta))}{n}} + \frac{d + \log(1/\delta)}{n}\right)$$
Because this lower bound dictates the best possible performance at any noise level, "the sandwich is the truth." The longstanding open problem was discovering an algorithm whose performance matches this lower bound from above, without paying unnecessary penalty factors.
[02:25](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=145s) Why Existing Learners Miss the Target
Standard and state-of-the-art algorithms repeatedly fail to hit this exact sandwich: - **Empirical Risk Minimization (ERM):** The textbook strategy of choosing the hypothesis with the fewest training errors incurs suboptimal overheads. It pays an extra $\sqrt{\log(1/L^*)}$ factor in the slow square-root term and an extraneous $\log(n/d)$ factor in the fast rate term. - **Recent progress (Hanneke, Larsen, and Zhivotovskiy, 2024):** While getting significantly closer, their bound still carried an unwanted $\log^5(n/d)$ factor on the fast term. - **Near-realizable One-Inclusion Rules:** Other variants achieve optimal rates only in the tiny corner where $L^* \le d/n$. Crucially, they place a leading coefficient strictly greater than $1$ directly on $L^*$. While that constant multiplier is harmless when $L^*$ is vanishingly small, having any coefficient larger than one on $L^*$ completely destroys the bound when trying to prove a single agnostic theorem valid across all noise levels.
The mission of the paper is to eliminate every single one of these extraneous logarithmic factors and oversized leading coefficients.
[03:13](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=193s) Leave-One-Out Prediction on the Boolean Cube
To build the proof, the continuous or high-dimensional input space is temporarily set aside in favor of a purely discrete combinatorial structure: the Boolean hypercube $\{-1, +1\}^n$. The vector of $n$ observed labels forms a single vertex on this cube. The hypothesis class $\mathcal{H}$ traces out a restricted subset of vertices, labeled $F$. For any arbitrary label vector $v$, walking to the nearest vertex in $F$ flips a certain number of coordinates; this count is the Hamming distance $\rho(v)$.
Leave-one-out cross-validation translates directly into graph geometry on the cube: - To leave out coordinate $i$, hide coordinate $i$ and consider the unique cube edge connecting the two labelings that differ only at index $i$. - Predicting the missing label corresponds to directing that edge. - The predictor makes an error precisely when the true completion corresponds to the tail of the directed edge. - Consequently, counting leave-one-out prediction errors across all coordinates is mathematically identical to measuring the out-degree of the vertex.
[04:04](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=244s) Class-Dependent Edge Isoperimetry via Random Restrictions
Classical edge isoperimetric inequalities on the Boolean cube bound how many edges a subset can contain purely as a function of the subset's volume. That standard tool operates at the wrong scale here, because subsets located far away from the hypothesis set $F$ should naturally be permitted to contain more edges.
The authors resolve this by developing a new lemma based on fractional edge weights generated through random restrictions: - Let $T$ be a random restriction where each coordinate is independently observed or hidden with probability $1/2$. - On the visible coordinates, fit the nearest hypothesis in $F$. - The hidden coordinate will disagree with that fitted hypothesis on exactly one of the edge's two endpoints, meaning the fractional weights assigned to the two endpoints sum to exactly $1$. - Summing these weights toward any vertex costs at most the Hamming distance $\rho$ to $F$ plus the Rademacher width of the projected class. - The projection's Rademacher width is bounded by at most $60\sqrt{d \cdot m}$, where $m$ is the number of coordinates. This localized width calculation is the only place in the entire proof where the VC dimension $d$ actually enters.
[05:05](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=305s) Cube Orientation via Hall's Marriage Theorem
Once it is established that every induced subgraph contains at most as many edges as the sum of its Hamming distances and localized Rademacher widths, Hall's Marriage Theorem provides an orientation of the cube edges: - Imagine each vertex as a bucket with an allocated capacity of $\rho + 120\sqrt{d\rho} + 7200d$. - Hall's theorem guarantees that every internal edge can be directed into an endpoint's bucket without overflowing any bucket's capacity. - Dividing through by the sample size $n$ directly yields the long-sought leave-one-out risk bound:
$$\text{Leave-one-out risk} \le \hat{L}^* + 120\sqrt{\frac{d\hat{L}^*}{n}} + \mathcal{O}\left(\frac{d}{n}\right)$$
where $\hat{L}^*$ is the empirical optimal risk. The pivotal feature of this formula is the leading term: the coefficient on $\hat{L}^*$ is exactly $1$. Preserving that exact coefficient of one without any inflation is the single reason the agnostic interpolation survives.
[05:57](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=357s) Suffix Averaging for High-Probability Guarantees
Although the cube orientation establishes an optimal bound in expectation, it does not complete the task. Certain one-inclusion prediction rules that achieve optimal expected risk have heavy tails that decay no faster than Markov's inequality, preventing a naive leave-one-out bound from yielding the required logarithmic confidence term $\log(1/\delta)$.
To convert expected guarantees into exponential tail bounds, the paper adopts *suffix averaging*: 1. For every index $t$ ranging from $k$ through $2k - 1$, train a symmetrized score function using the first $t$ data points. 2. Average these intermediate scoring functions together. 3. Apply a reverse martingale that removes sample points backward; permutation invariance converts the leave-one-out guarantees into realized held-out test errors. 4. Apply a forward martingale that adds points forward to couple those held-out errors with the true population excess risk.
Because the variance of these martingales is allowed to scale directly with the underlying noise $L^*$, the full interpolation emerges equipped with a clean $\log(1/\delta)$ dependency.
[06:53](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=413s) Nested-Threshold Validation Over Majority Voting
A subtle hurdle remains: the suffix-averaged score outputs a real-valued prediction in $[-1, +1]$ rather than a crisp binary label. In realizable PAC learning ($L^* = 0$), taking a majority vote of real-valued ensemble predictions at most doubles the total error, which is completely benign when zero doubled is still zero. In the agnostic setting where $L^* > 0$, however, doubling the error would replace the leading coefficient of $1$ with a $2$, destroying the optimal rate.
The paper bypasses majority voting using a quieter validation technique: - Reserve an independent validation block of data. - Sweep a scalar threshold across the real-valued suffix scores. - The resulting candidate binary classifiers form two nested families of sets: predictions strictly above a reference cut, and predictions strictly below it. - Because nested disagreement sets possess very small local metric entropy, running Empirical Risk Minimization across this one-dimensional family incurs zero extra $\log n$ penalty. - The outcome is a fully deterministic binary predictor in $\{+1, -1\}$.
```mermaid flowchart TD accTitle: Three-Block Optimal PAC Learner Architecture accDescr: Pipeline showing data split into three blocks followed by suffix averaging, nested thresholding, and final binary predictor.
subgraph DataSplit["Data Partitioning (Sample size n)"] D1["Block 1 & 2: First 2k - 1 points\n(k = floor(n/3))"] D2["Block 3: Next k points\n(Validation set)"] end
subgraph Block1["Cube Orientation & Suffix Averaging"] O["Orient Cube via Hall's Theorem\n(Leave-one-out out-degree)"] S["Suffix Averaging over t = k to 2k - 1\n(Scores in [-1, +1])"] O --> S end
subgraph Block2["Threshold Validation"] T["Nested Threshold Cuts\n(Low local entropy class)"] ERM["ERM Validation over Cuts\n(Avoids majority vote doubling)"] T --> ERM end
Out["Deterministic Classifier\nOptimal excess risk rate"]
D1 --> Block1 Block1 --> T D2 --> ERM ERM --> Out ```
[07:43](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=463s) The Interpolation Closes as a Theorem
The overall learning pipeline operates by splitting the total sample of size $n$ into thirds, setting $k = \lfloor n/3 \rfloor$: - The first $2k - 1$ samples train the suffix-averaged real-valued score via the cube orientation mechanism. - The subsequent $k$ samples serve exclusively as the holdout validation set to select the optimal threshold.
Remarkably, this learner requires no prior knowledge of the true noise level $L^*$ and does not need to know the target failure probability $\delta$. With probability at least $1 - \delta$, the risk of the learned classifier satisfies:
$$\text{Risk}(\hat{h}) \le L^* + C \left(\sqrt{\frac{L^*(d + \log(1/\delta))}{n}} + \frac{d + \log(1/\delta)}{n}\right)$$
The explicit constant $C$ produced in the constructive proof is roughly $2 \times 10^8$ (simplified in the paper's abstract to $7 \times 10^8$ after absorbing log factors). While that constant is astronomically large and completely unoptimized, the functional shape of the bound matches the lower bound down to the universal constant. The intermediate rate between clean and noisy learning is not an artificial compromise; it is a fundamental sandwich, and theory now possesses an explicit algorithm achieving it.
- **Sample partition:** $k = \lfloor n/3 \rfloor$; $2k - 1$ points for training, $k$ points for threshold selection. - **Explicit constants:** Bucket out-degree capacity includes $120\sqrt{d\rho}$ and constant $7200d$; overall excess risk constant is bounded by $7 \times 10^8$. - **Parameter-free:** The learner adapts automatically without receiving $L^*$ or $\delta$ as inputs.
## Notable quotes > [00:00](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=0s) PAC stands for Probably Approximately Correct. Leslie Valiant introduced the name in 1984 as a model of what it means to learn from a finite sample. — Xiaol.x
> [00:00](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=0s) For thirty years the missing piece was the interpolation between them: a high-probability bound that tracks the best-in-class risk L* at every noise level. — Xiaol.x
> [01:38](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=98s) the sandwich is the truth. — Xiaol.x
> [03:13](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=193s) To leave out coordinate i, hide coordinate i and consider the unique cube edge connecting the two labelings that differ only at index i. — Xiaol.x
> [03:13](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=193s) counting leave-one-out prediction errors across all coordinates is mathematically identical to measuring the out-degree of the vertex. — Xiaol.x
> [04:04](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=244s) This localized width calculation is the only place in the entire proof where the VC dimension d actually enters. — Xiaol.x
> [05:05](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=305s) Preserving that exact coefficient of one without any inflation is the single reason the agnostic interpolation survives. — Xiaol.x
> [06:53](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=413s) In realizable PAC learning (L* = 0), taking a majority vote of real-valued ensemble predictions at most doubles the total error, which is completely benign when zero doubled is still zero. — Xiaol.x
> [06:53](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=413s) Because nested disagreement sets possess very small local metric entropy, running Empirical Risk Minimization across this one-dimensional family incurs zero extra log n penalty. — Xiaol.x
> [07:43](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=463s) The learner never needs L* or delta. The constant is huge and unoptimized. The shape is optimal. — Xiaol.x
> [07:43](https://www.youtube.com/watch?v=RGbnAsZlp5I&t=463s) The intermediate rate between clean and noisy learning is not an artificial compromise; it is a fundamental sandwich, and theory now possesses an explicit algorithm achieving it. — Xiaol.x
## Mentioned Leslie Valiant, Markus Engelund Mathiasen, Jian Qian, Nikita Zhivotovskiy, Luc Devroye, László Györfi, Gábor Lugosi, Steve Hanneke, Kasper Green Larsen, Philip Hall, Xiaol.x, An Optimal Agnostic PAC Algorithm (arXiv:2608.06363), Aarhus University, University of Hong Kong (HKU), UC Berkeley
## Video description PAC stands for Probably Approximately Correct. Leslie Valiant introduced the name in 1984 as a model of what it means to learn from a finite sample. Approximately correct means the classifier’s error is close to the best rule in the class. Probably means that guarantee holds with high probability over the random sample, at least 1 minus delta. A PAC bound is not “this rule is always perfect.” It is: with high probability, the excess risk is at most some function of the sample size n, the VC dimension d, and the noise level L*.
PAC theory already knew two extremes. In a clean world, excess risk is about d/n. In a noisy world, it is about sqrt(d/n). For thirty years the missing piece was the interpolation between them: a high-probability bound that tracks the best-in-class risk L* at every noise level.
This blackboard lesson teaches arXiv 2608.06363, An Optimal Agnostic PAC Algorithm, by Markus Engelund Mathiasen, Jian Qian, and Nikita Zhivotovskiy. Empirical risk minimization pays extra logs. A 2024 bound still carries log^5(n/d). Near-realizable one-inclusion rules put a coefficient larger than one on L*. This paper closes the gap, matching the Devroye–Györfi–Lugosi lower bound up to a universal constant.
The board starts blank. We name every object before any theorem, then build three classroom objects: a risk thermometer, a Boolean cube whose hidden edge is leave-one-out, and a three-block learner — cube orientation, suffix averaging, nested-threshold validation.
Paper: https://arxiv.org/abs/2608.06363 Authors: Markus Engelund Mathiasen (Aarhus), Jian Qian (HKU), Nikita Zhivotovskiy (Berkeley)
Chapters 00:00 The missing middle rate 00:41 Name every object before any theorem 01:38 The sandwich you are not allowed to beat 02:25 Why nearby algorithms miss 03:13 Leave-one-out is a cube edge 04:04 Class-dependent edge isoperimetry 05:05 Hall orients the cube with coefficient one 05:57 Suffix averaging for high probability 06:53 Do not majority-vote the noise away 07:43 The interpolation is now a theorem
The learner never needs L* or delta. The constant is huge and unoptimized. The shape is optimal.
[Source](https://www.youtube.com/watch?v=RGbnAsZlp5I)