Relatively Smart II: Tractable or Semi-Supervised Instance-Optimal Learning
Summary
This paper resolves whether Empirical Risk Minimization is relatively smart for binary classification, explores semi-supervised learning with quadratic blowup in unlabeled data, and proves intractability results for certain learners.
View Cached Full Text
Cached at: 09/11/26, 08:22 AM
# Tractable or Semi-Supervised Instance-Optimal Learning
Source: [https://arxiv.org/html/2609.10886](https://arxiv.org/html/2609.10886)
## Relatively Smart II: Tractable or Semi\-Supervised Instance\-Optimal Learning
Shaddin Dughmi††thanks:shaddin@usc\.edu\. Supported by NSF Grant CCF\-2432219\. Part of this work was done while the author was on sabbatical as the Carter and Tania Neild visiting professor at Northwestern University, as well as a visiting professor in the Data Science Institute at the University of Chicago\.Alireza F\. Pour††thanks:alireza\.fathollahpour@uwaterloo\.ca\. Supported by a David Cheriton Scholarship and a Vector Institute Research Grant\.Affiliation:University of Waterloo
###### Abstract
We continue the study of relatively smart learning as introduced by\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\], which asks a supervised learner to compete, marginal by marginal, with every distribution\-fixed error guarantee that can be soundly certified from unlabeled data\. They showed that the One\-Inclusion Graph \(OIG\) learner is relatively smart with a quadratic blowup in sample complexity, and no relatively\-smart learner can achieve better sample complexity\. However, it was left open whether Empirical Risk Minimization \(ERM\), or another natural or tractable learner, enjoys comparable guarantees\. Moreover, whether the blowup in sample complexity can be restricted to unlabeled data—leading to a relatively smart semi\-supervised learner—was also left as a tantalizing possibility\.
Our first result resolves the first question positively: We show that ERM—and in fact any proper consistent learner—is relatively smart for binary classification in the distribution\-free setting\. Our proof shows that a small certifiable error when allowedmmsamples implies a similarly small error on the uniform distribution over a random sample of sizeO\(m2\)O\(m^\{2\}\)\. This yields the existence of a cover of size at most2m\+12^\{m\+1\}on that sample, which suffices to control the error of every consistent learner when givenO\(m2\)O\(m^\{2\}\)samples\.
We then explore the semi\-supervised question: whether adding only unlabeled data suffices for relatively smart learning, and how this affects the tractability/simplicity of learning\. We show a positive result for the information\-theoretic question: there is a semi\-supervised relatively smart learner provided a quadratic blowup only in unlabeled sample complexity, whereas the labeled sample complexity suffers no blowup\. The learner is based on a natural generalization of the one\-inclusion\-graph to a leave\-most\-out transductive problem, in which the labels of a subset of a finite pool are revealed and the learner predicts the labels of the remaining points\.
Finally, we show that—in contrast to our first result on ERM—this information\-theoretic label efficiency comes at the cost of simplicity and tractability of the learner: When a learner can only access the hypothesis class through calls to an agnostic ERM oracle, we prove that any semi\-supervised relatively smart learner with substantially sub\-quadratic blowup in labeled sample complexity must make super\-polynomially many oracle calls\. This holds even when the marginal distribution is given explicitly, and therefore implies a similar intractability result for distribution\-fixed learning which may be of independent interest\.
## 1Introduction
The classical PAC model seeks*fully supervised*learning guarantees that hold uniformly over both the marginal distribution of unlabeled data as well as the labeling hypothesis, and consequently measures performance in the worst case over all admissible instances\. However, the difficulty of learning can vary substantially from one marginal distribution to another, even when the hypothesis is still chosen adversarially\. The*distribution\-fixed*model of learning, studied by\[[5](https://arxiv.org/html/2609.10886#bib.bib21)\], captures this by giving the learner complete knowledge of the marginal distribution𝒟\\mathcal\{D\}, allowing its learning strategy to be tailored specifically to𝒟\\mathcal\{D\}\. Distribution\-fixed learning can therefore be viewed as an idealized form of semi\-supervised learning, in which the learner has access not merely to additional unlabeled samples but to the marginal itself\[[4](https://arxiv.org/html/2609.10886#bib.bib7)\]\.
One may then ask whether the advantages of distribution\-fixed learning can be recovered without giving the learner full knowledge of the marginal distribution\.*Smart PAC learning*, introduced by\[[7](https://arxiv.org/html/2609.10886#bib.bib14)\], seeks a single supervised learner whose error rate on each marginal approaches that of the optimal distribution\-fixed learner for that marginal, despite not being given the marginal distribution itself\. In this sense, smart learning seeks an instance\-optimal guarantee with respect to the marginal distribution\.\[[7](https://arxiv.org/html/2609.10886#bib.bib14)\]show that such a learner exists for “most” marginals, where “most” is quantified with respect to an arbitrary fixed prior distribution over marginals that is known in advance\. However, this qualification cannot in general be removed:\[[6](https://arxiv.org/html/2609.10886#bib.bib24)\], strengthening a result of\[[9](https://arxiv.org/html/2609.10886#bib.bib23)\], show that there are hypothesis classes and families of marginals for which the optimal distribution\-fixed error rates converge rapidly and uniformly to zero, yet for every supervised learner that is not given the marginal and every finite sample size, there exists a marginal on which its error remains essentially that of random guessing\.
In a recent work,\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\]identify the obstruction behind this impossibility as an indistinguishability phenomenon: a learner𝒜𝒟\\mathcal\{A\}\_\{\\mathcal\{D\}\}tailored to a marginal𝒟\\mathcal\{D\}may perform much worse on another marginal𝒟′\\mathcal\{D\}^\{\\prime\}that is indistinguishable from𝒟\\mathcal\{D\}using unlabeled data\. In such settings, the learner cannot reliably identify whether the observed data comes from a marginal on which its distribution\-specific learning strategy remains valid, or from another statistically similar marginal on which that strategy fails\. Thus, unlabeled data may be insufficient to determine whether the favorable error guarantee associated with𝒟\\mathcal\{D\}can actually be trusted\.
Inspired by this,\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\]introduce*relatively smart learning*\. Rather than competing with arbitrary distribution\-fixed error rates, they require a learner to compete only with error guarantees that can be*soundly certified from unlabeled data*\. Informally, a learner𝒜𝒟\\mathcal\{A\}\_\{\\mathcal\{D\}\}tailored to𝒟\\mathcal\{D\}is paired with a certifier𝒞\\mathcal\{C\}that observes an unlabeled sample and estimates its error\. Although𝒜𝒟\\mathcal\{A\}\_\{\\mathcal\{D\}\}may be designed specifically for𝒟\\mathcal\{D\}, soundness requires the expected value of the certifier to upper bound the error of𝒜𝒟\\mathcal\{A\}\_\{\\mathcal\{D\}\}under*every*admissible marginal𝒟′\\mathcal\{D\}^\{\\prime\}\. Thus, if𝒟\\mathcal\{D\}is difficult to distinguish from a marginal on which𝒜𝒟\\mathcal\{A\}\_\{\\mathcal\{D\}\}has substantially larger error, the certifier is forced to account for this ambiguity\. The resulting*certifiable error rates*capture precisely the distribution\-dependent guarantees that can be justified from unlabeled data, and relatively smart learning asks for a single learner that competes with all such guarantees, marginal by marginal\.
In the distribution\-free setting,\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\]establish an essentially tight information\-theoretic characterization\. They show that the One\-Inclusion Graph \(OIG\) learner is relatively smart, up to a constant blow\-up in error and a quadratic blow\-up in sample complexity\. They further show that every relatively smart learner must suffer a near\-quadratic blow\-up in the sample complexity\.
The positive result of\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\]relies on the One\-Inclusion Graph \(OIG\) learner and, more specifically, on its dataset\-by\-dataset optimality for the leave\-one\-out transductive problem\. Standard learning rules such as Empirical Risk Minimization \(ERM\) do not share this property: there are datasets on which ERM and OIG have very different leave\-one\-out behavior, despite their closely related guarantees in PAC learning\. It is therefore natural to ask whether the transductive optimality underlying the OIG analysis is essential for relatively smart learning with quadratic \(or even bounded\) blow\-up, or whether a simpler and more standard learning rule can obtain a comparable guarantee\.
###### Question 1\.1\(Open Question 3\.3 of\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\]\)\.
Is ERM, or another natural and typically tractable learner, relatively smart?
A second question concerns the role of unlabeled data in relatively smart learning\. Since distribution\-fixed learning can be viewed as an idealized form of semi\-supervised learning, it is natural to ask whether access to additional unlabeled samples can help a learner compete with certifiable error rates\. The lower bound of\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\]applies to fully supervised learners and therefore does not determine how much of the required sample\-complexity blow\-up must remain in labeled data once unlabeled samples are available\. This leaves open the possibility that unlabeled data may substantially reduce the number of labels needed, perhaps even eliminating the blow\-up in labeled sample complexity altogether\.
###### Question 1\.2\.
Can unlabeled data substantially reduce the labeled sample complexity of relatively smart learning? More specifically, are there semi\-supervised relatively smart learners with no blow\-up in labeled sample complexity?
Our first question asks whether relatively smart learning can be achieved by a simple and typically\-tractable supervised learning rule such as ERM\. The semi\-supervised question above raises a different possibility: using unlabeled data to reduce the labeled sample complexity may require a substantially more complicated learning procedure, even if the corresponding information\-theoretic guarantee is achievable\. Thus, beyond asking whether unlabeled data can reduce the number of labels, it is natural to ask whether this improvement can be achieved by a tractable learner\.
###### Question 1\.3\.
Can a semi\-supervised relatively smart learner with substantially improved labeled sample complexity be implemented tractably?
A positive answer to the second question coupled with a negative answer to the third would reveal a separation between the information\-theoretic and algorithmic value of unlabeled data\. It would mean that, although unlabeled data may be sufficient to eliminate the blow\-up in labeled sample complexity, exploiting this advantage can require a substantially more complex learning procedure\. In particular, the obstacle would no longer be obtaining information about the marginal, but rather converting that information into an effective learning strategy\.
### 1\.1Results and Techniques
We answer the first two questions in the affirmative and give a strong negative answer to the third in a natural oracle model\.
#### ERM is relatively smart\.
Our first result resolves the open question of\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\]concerning ERM\. We show that, in the distribution\-free setting, ERM is relatively smart with a quadratic blow\-up in sample complexity\. In fact, the same guarantee holds for every proper consistent learner: with quadratically more labeled samples, any such learner can approximately compete, up to a constant\-factor loss, with the best certifiable error guarantee at the original sample size\.
The reason is fundamentally different from the one underlying the OIG result\. In\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\], sound certification implies a lower bound on the certifiable error rate in terms of the optimal learning error on uniform distributions over random finite samples\. The dataset\-by\-dataset leave\-one\-out optimality of OIG then provides a direct way to compete with this lower bound\. ERM has no comparable transductive optimality; indeed, there are finite samples on which its leave\-one\-out behavior is substantially worse than that of OIG\. Our result therefore shows that leave\-one\-out optimality is sufficient for relatively smart learning, but not necessary\.
Our proof instead derives a different consequence of a small certifiable error rate\. As in the original argument, for a marginal𝒟\\mathcal\{D\}and sample sizemm, we first show that on average over a random sampleSSof sizeO\(m2\)O\(m^\{2\}\), the error of the𝒟\\mathcal\{D\}\-fixed learner𝒜𝒟\\mathcal\{A\}\_\{\\mathcal\{D\}\}on the uniform distribution overSS, denoted by𝒟S\\mathcal\{D\}\_\{S\}, is not much larger than the certifiable error rate\. We then show that if𝒜𝒟\\mathcal\{A\}\_\{\\mathcal\{D\}\}achieves small error on𝒟S\\mathcal\{D\}\_\{S\}, then the hypothesis class cannot contain too many hypotheses that are pairwise well separated under𝒟S\\mathcal\{D\}\_\{S\}\. Equivalently, the relevant packing number on𝒟S\\mathcal\{D\}\_\{S\}is small, which yields a small cover of the class\. Finally, a double\-sampling argument shows that to bound the error of a consistent learner on𝒟\\mathcal\{D\}, it is sufficient to prove that any hypothesis consistent with a random half ofSShas small error on the other half\. The cover of𝒟S\\mathcal\{D\}\_\{S\}is small enough for any hypothesis in the cover to enjoy similar error on both halves, and we exploit the coverage to show that this extends to every hypothesis in class\.
#### Semi\-supervised relatively smart learning with no labeled sample\-complexity blow\-up\.
Our second result answers the semi\-supervised question in the strongest possible form\. We introduce the notion of relatively smart semi\-supervised learning that separately tracks unlabeled and labeled sample complexity, and show that the entire sample\-complexity blow\-up can be shifted to unlabeled data\. In particular, we show a semi\-supervised learner that can approximately compete with the best certifiable error guarantee at a given sample size while using only the same number of labeled samples, together with quadratically more unlabeled samples\. Thus, unlike the fully supervised setting, relatively smart semi\-supervised learning requires no blow\-up at all in labeled sample complexity\.
The construction again builds on the connection between certifiable error rates and learning under a uniform distribution over a large random sample\. Given the unlabeled sample, the labeled sample, and a test point, we form their unionTTand consider the uniform distribution𝒟T\\mathcal\{D\}\_\{T\}overTT\. The learner then uses an optimal𝒟T\\mathcal\{D\}\_\{T\}\-fixed learner𝒜T∗\\mathcal\{A\}^\{\*\}\_\{T\}, trained only on the available labeled sample, to predict the test point\. Let𝒜𝒟\\mathcal\{A\}\_\{\\mathcal\{D\}\}be the𝒟\\mathcal\{D\}\-fixed learner witnessing the certifiable error rate on𝒟\\mathcal\{D\}\. We show that, on average overTT, the error of𝒜𝒟\\mathcal\{A\}\_\{\\mathcal\{D\}\}on𝒟T\\mathcal\{D\}\_\{T\}when givenmmlabeled samples serves as a lower bound on the certifiable error rate\. The optimality of𝒜T∗\\mathcal\{A\}^\{\*\}\_\{T\}for𝒟T\\mathcal\{D\}\_\{T\}then shows that our learner’s error is competitive with the certifiable error rate\.
The semi\-supervised construction also admits a natural transductive interpretation\. The learner above induces a problem in which only a small subset of a finite pool is labeled and the learner must predict the labels of the remaining points\. We refer to this as a*leave\-most\-out*problem\. We define a natural generalization of the OIG for this setting and show that an appropriate “orientation” achieves the optimal leave\-most\-out error\. Hence, the information\-theoretically optimal semi\-supervised learner can be realized through a corresponding Inclusion Graph construction, paralleling the role of OIG in the leave\-one\-out setting\.
#### A tractability barrier for relatively smart learning with no blow\-up\.
The semi\-supervised learner above is highly intractable: it requires computing the optimal distribution\-fixed learner, or equivalently an optimal leave\-most\-out orientation, for the observed sample, and there is no general recipe for carrying this out efficiently\. To study whether the same improvement in labeled sample complexity can be achieved by a tractable algorithm, we formalize access to the hypothesis class through an*agnostic ERM oracle*\. Given any finite labeled sample, such an oracle returns a hypothesis in the class minimizing empirical error\. We otherwise place no restriction on the learner’s computation, and call it efficient if it makes only polynomially many oracle calls\.
We show that no efficient oracle learner can be relatively smart with any substantially subquadratic blow\-up in labeled sample complexity, regardless of the amount of unlabeled data available to it\. The lower bound continues to hold even when the marginal distribution itself is given to the learner\. As a consequence, our construction also yields a tractability barrier for distribution\-fixed learning itself: even with complete knowledge of the marginal, polynomially many agnostic ERM queries do not suffice to approach the optimal distribution\-fixed error with substantially subquadratic sample overhead\. This stands in contrast to PAC learning, where optimal sample complexity can be attained by learners constructed from aggregations of ERM solutions\[[18](https://arxiv.org/html/2609.10886#bib.bib17),[21](https://arxiv.org/html/2609.10886#bib.bib16),[1](https://arxiv.org/html/2609.10886#bib.bib19),[2](https://arxiv.org/html/2609.10886#bib.bib20),[23](https://arxiv.org/html/2609.10886#bib.bib1)\]\.
At a high level, our construction starts from the lopsided classes used in the lower bounds of\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\]defined as follows: on a domain of sizennconsider all hypotheses that assign a minority label to at mosto\(n\)o\(n\)points\. Under the uniform distribution on the domain, every hypothesis in such a class is nearly constant, with only a vanishing fraction of points receiving the minority label\. We augment this class with an additional random hypothesisf∈\{0,1\}nf\\in\\\{0,1\\\}^\{n\}\. Ifffis explicitly known, a learner can simply choose betweenffand the two constant predictors and thereby achieve vanishing error ofo\(n\)/no\(n\)/non nearly uniform distributions; moreover, this performance can be soundly certified for sample sizesm≈nm\\approx\\sqrt\{n\}by exploiting techniques from uniformity testing\. An oracle learner, however, must discoverffthrough its ERM queries\. We construct a valid oracle that breaks ties in favor of the lopsided class and show that, for any fixed query, only an exponentially small fraction of choices off∈\{0,1\}nf\\in\\\{0,1\\\}^\{n\}can force the oracle to reveal it\. To extend this to adaptively chosen queries, supposeffis ever returned and consider the first roundttat which this happens\. By the oracle’s tie\-breaking rule, in every preceding round the oracle returns a member of the lopsided class according to a rule that is independent of the unseen labels offf\. Hence, after fixing the observed labels and the learner’s internal randomness, the interaction before roundtt, and therefore the query made at roundtt, is fixed with respect to the remaining randomness offf\. The fixed\-query bound can therefore be applied for roundtt, and a union bound over polynomially many rounds shows that the oracle revealsffwith only exponentially small probability\. Consequently, with high probability over the random choice offf, the oracle never revealsff, so the learner gains no information about its unseen labels beyond those already contained in the labeled sample\. Its prediction on an unseen test point is therefore essentially independent of the corresponding label offf, forcing error close to1/21/2\. Since this occurs with high probability over the random choice offf, there must exist a fixed hypothesisf∗f^\{\*\}on which the learner fails to approach the vanishing certifiable error rate\.
### 1\.2Related Work
Distribution\-fixed and semi\-supervised learning\.Distribution\-fixed learning, where the learner is given the full knowledge of marginal, was studied by\[[5](https://arxiv.org/html/2609.10886#bib.bib21)\]\. They show that the optimal distribution\-fixed learning rate is intimately related to finite covers of the hypothesis class, at every error scale, with respect to the disagreement metric induced by the marginal\. Distribution\-fixed learning can be viewed as an idealized form of semi\-supervised learning, in which the learner has complete access to the marginal rather than only finitely many unlabeled samples\[[4](https://arxiv.org/html/2609.10886#bib.bib7)\]\. A large literature studies more realistic formulations of semi\-supervised settings and asks when finite unlabeled data can improve learning, and by how much\[[4](https://arxiv.org/html/2609.10886#bib.bib7),[3](https://arxiv.org/html/2609.10886#bib.bib6),[6](https://arxiv.org/html/2609.10886#bib.bib24),[11](https://arxiv.org/html/2609.10886#bib.bib25),[17](https://arxiv.org/html/2609.10886#bib.bib22),[16](https://arxiv.org/html/2609.10886#bib.bib4),[22](https://arxiv.org/html/2609.10886#bib.bib5)\]\. At a high level, unlabeled data cannot improve worst\-case minimax rates in the fully distribution\-free PAC setting, but it can yield substantial improvements on particular marginals, as well as under restrictions on the family of marginals or suitable compatibility assumptions between the marginal and the hypothesis class\.
#### Smart and relatively smart learning\.
Smart PAC learning, introduced by\[[7](https://arxiv.org/html/2609.10886#bib.bib14)\], asks for a supervised learner that competes, marginal by marginal, with the optimal distribution\-fixed learner\. While they show that smart learning is possible for most marginals with respect to a known prior, it is impossible more generally\[[9](https://arxiv.org/html/2609.10886#bib.bib23),[6](https://arxiv.org/html/2609.10886#bib.bib24)\]\.\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\]attribute this impossibility to an indistinguishability phenomenon and introduce relatively smart learning, which restricts the benchmark to distribution\-dependent guarantees that can be soundly certified from unlabeled data\.\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\]show that OIG is relatively smart with a quadratic sample\-complexity blow\-up and that no substantially subquadratic blow\-up is possible in general\. We continue this line by showing that ERM, and more generally every proper consistent learner, is relatively smart\. We then introduce a semi\-supervised formulation of relative smartness and show that unlabeled data can eliminate the blow\-up in labeled sample complexity entirely\. Finally, we prove that this label efficiency cannot be achieved by tractable general\-purpose learners; that is, learners which can only access the hypothesis class by making polynomially many agnostic ERM\-oracle calls\.
#### Testable learning\.
Relatively smart learning is also closely related to the framework of testable learning introduced by\[[24](https://arxiv.org/html/2609.10886#bib.bib12)\]and developed further in, e\.g\.,\[[14](https://arxiv.org/html/2609.10886#bib.bib13),[15](https://arxiv.org/html/2609.10886#bib.bib11),[8](https://arxiv.org/html/2609.10886#bib.bib8),[20](https://arxiv.org/html/2609.10886#bib.bib10),[13](https://arxiv.org/html/2609.10886#bib.bib9)\]\. The certifiers in relatively smart learning are real\-valued analogues to the testers in testable learning and the soundness requirement is similar to the requirement in testable learning that the marginals that satisfy the assumption must pass the test\. Testable learning is concerned with the design of learner/tester pairs for a given distributional property, whereas in relatively smart learning those are given as the benchmarks for every distribution separately and a a relatively smart learner with which must compete with them\.
There are also several differences in emphasis\. Testable learning has primarily focused on computational efficiency, with\[[14](https://arxiv.org/html/2609.10886#bib.bib13)\]as a notable information\-theoretic exception\. Its testers are allowed to use labeled data, although many existing results do not require this\. Finally, the framework has largely been studied in the agnostic setting; in the realizable setting, access to labeled data makes the analogous testing problem trivial, except in settings such as distribution shift\[[20](https://arxiv.org/html/2609.10886#bib.bib10)\]\.
## 2Preliminaries
Notation\.For a domain𝒳\\mathcal\{X\}, we useΔ\(𝒳\)\\Delta\(\\mathcal\{X\}\)to denote the family of probability distributions supported on𝒳\\mathcal\{X\}\. For a distribution𝒟∈Δ\(𝒳\)\\mathcal\{D\}\\in\\Delta\(\\mathcal\{X\}\)and an eventY⊆𝒳Y\\subseteq\\mathcal\{X\}, we use𝒟\[Y\]=ℙ𝒟\[Y\]\\mathcal\{D\}\[Y\]=\\mathop\{\\mathbb\{P\}\}\_\{\\mathcal\{D\}\}\\\!\\left\[Y\\right\]as shorthand for the probability ofYY, and𝒟\|Y=ℙ𝒟\[\.\|Y\]\\mathcal\{D\}\_\{\|Y\}=\\mathop\{\\mathbb\{P\}\}\_\{\\mathcal\{D\}\}\\\!\\left\[\\ \.\\ \|Y\\right\]as shorthand for the conditional distribution of𝒟\\mathcal\{D\}givenYY\. When the domain𝒳\\mathcal\{X\}is countable we use𝒟\[x\]=ℙ𝒟\[x\]\\mathcal\{D\}\[x\]=\\mathop\{\\mathbb\{P\}\}\_\{\\mathcal\{D\}\}\\\!\\left\[x\\right\]to denote the probability ofx∈𝒳x\\in\\mathcal\{X\}, and use𝗌𝗎𝗉𝗉\(𝒟\)=\{x∈𝒳:𝒟\[x\]\>0\}\\mathsf\{supp\}\(\\mathcal\{D\}\)=\\\{x\\in\\mathcal\{X\}:\\mathcal\{D\}\[x\]\>0\\\}to denote the support of𝒟\\mathcal\{D\}\. For a finite multisetSSwe use𝒟S\\mathcal\{D\}\_\{S\}to denote the uniform distribution onSS\. Moreover, for any finite multisetT∈\(𝒳×\{0,1\}\)∗T\\in\(\\mathcal\{X\}\\times\\\{0,1\\\}\)^\{\*\}, we denote by𝖽𝗈𝗆\(T\)∈𝒳∗\\mathsf\{dom\}\(T\)\\in\\mathcal\{X\}^\{\*\}the unlabeled part ofTT\. Given a functionhhdefined on some domain𝒳\\mathcal\{X\}, we useh\|Yh\|Yto denote its restriction to someY⊆𝒳Y\\subseteq\\mathcal\{X\}\. Moreover, for a hypothesis classℋ⊆\{0,1\}𝒳\\mathcal\{H\}\\subseteq\\\{0,1\\\}^\{\\mathcal\{X\}\}we denoteℋ\|Y=\{h\|Y:h∈ℋ\}\\mathcal\{H\}\|Y=\\\{h\|Y:h\\in\\mathcal\{H\}\\\}\. For a set𝒳\\mathcal\{X\}we use𝒳∗\\mathcal\{X\}^\{\*\}to denote the family of finite sequences over𝒳\\mathcal\{X\}\. For a predicate or probability eventEEwe use𝟙\[𝔼\]∈\{𝟘,𝟙\}\\bbold\{1\}\[E\]\\in\\\{0,1\\\}to denote the indicator ofEE\. Finally, we use standard order\-of\-growth \(big\-Oh\) notation, though for functionsf\(η,m\)f\(\\eta,m\)andg\(m\)g\(m\)we writef=Oη\(g\)f=O\_\{\\eta\}\(g\)to indicate thatf=O\(g\)f=O\(g\)wheneverη\\etais a fixed constant\.
We work in the setting of binary PAC learning\. There is a data domain𝒳\\mathcal\{X\}and a hypothesis classℋ⊆\{0,1\}𝒳\\mathcal\{H\}\\subseteq\\\{0,1\\\}^\{\\mathcal\{X\}\}\. The unlabeled data comes from a marginal distribution𝒟\\mathcal\{D\}on𝒳\\mathcal\{X\}and is labeled by a hypothesis fromℋ\\mathcal\{H\}\. A marginal distribution𝒟\\mathcal\{D\}on𝒳\\mathcal\{X\}together with a targeth∈ℋh\\in\\mathcal\{H\}induces the joint distribution𝒟h\\mathcal\{D\}\_\{h\}on labeled data\(x,y\)\(x,y\)withx∼𝒟x\\sim\\mathcal\{D\}andy=h\(x\)y=h\(x\)\. In this work, we focus on the*distribution\-free setting*where𝒟\\mathcal\{D\}can be arbitrary, whereas relatively smart learning can be defined for a*distribution\-class*too; see\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\]\. For a predictorf:𝒳→\{0,1\}f:\\mathcal\{X\}\\to\\\{0,1\\\}and data distribution𝒟h\\mathcal\{D\}\_\{h\}, the loss or error offfon𝒟h\\mathcal\{D\}\_\{h\}is defined asL\(f,𝒟h\)=𝔼\(x,y\)∼𝒟h\[𝟙\[𝕗\(𝕩\)≠𝕪\]\]L\(f,\\mathcal\{D\}\_\{h\}\)=\\mathop\{\\mathbb\{E\}\}\_\{\(x,y\)\\sim\\mathcal\{D\}\_\{h\}\}\\\!\\left\[\\bbold\{1\}\[f\(x\)\\neq y\]\\right\]\. For a finite multisetTTof labeled data we overload notation and denoteL\(f,T\)=L\(f,𝒟T\)=1\|T\|∑\(x,y\)∈T𝟙\[𝕗\(𝕩\)≠𝕪\]L\(f,T\)=L\(f,\\mathcal\{D\}\_\{T\}\)=\\frac\{1\}\{\|T\|\}\\sum\_\{\(x,y\)\\in T\}\\bbold\{1\}\[f\(x\)\\neq y\]\. For marginals𝒟,𝒟′\\mathcal\{D\},\\mathcal\{D\}^\{\\prime\}on a countable space we write𝖽𝖳𝖵\(𝒟,𝒟′\)\\mathsf\{d\_\{TV\}\}\(\\mathcal\{D\},\\mathcal\{D\}^\{\\prime\}\)for total variation distance\. For predictorsf,gf,gand a marginal𝒟\\mathcal\{D\}, write𝖽𝒟\(f,g\)=ℙx∼𝒟\[f\(x\)≠g\(x\)\]\\mathsf\{d\}\_\{\\mathcal\{D\}\}\(f,g\)=\\mathop\{\\mathbb\{P\}\}\_\{x\\sim\\mathcal\{D\}\}\\\!\\left\[f\(x\)\\neq g\(x\)\\right\]\. Forγ\>0\\gamma\>0, let the*γ\\gamma\-packing number*𝗉𝖺𝖼𝗄γ\(ℋ,𝒟\)\\mathsf\{pack\}\_\{\\gamma\}\(\\mathcal\{H\},\\mathcal\{D\}\)be the largest cardinality of a subset ofℋ\\mathcal\{H\}whose distinct members have pairwised𝒟d\_\{\\mathcal\{D\}\}\-distance strictly larger thanγ\\gamma\.
### 2\.1Relatively Smart Learning
A*\(fully\-supervised\) learner*𝒜\\mathcal\{A\}takes as input a sequenceS=\(x1,y1\),…,\(xm,ym\)S=\(x\_\{1\},y\_\{1\}\),\\ldots,\(x\_\{m\},y\_\{m\}\)of labeled samples—often referred to as*training data*—drawn i\.i\.d\. from𝒟h\\mathcal\{D\}\_\{h\}, and outputs a predictor𝒜\(S\):𝒳→\{0,1\}\\mathcal\{A\}\(S\):\\mathcal\{X\}\\to\\\{0,1\\\}\. We measure learner’s error as a function of the marginal𝒟\\mathcal\{D\}\. This permits marginal by marginal comparison of learners catered to a marginal, referred to as*𝒟\\mathcal\{D\}\-fixed learners*, to learners which are provided no such knowledge\.
###### Definition 2\.1\.
A*distribution\-dependent error rate*is a functionϵ:Δ\(𝒳\)×ℕ→\[0,1\]\\epsilon:\\Delta\(\\mathcal\{X\}\)\\times\\mathbb\{N\}\\to\[0,1\], whereϵ\(𝒟,m\)\\epsilon\(\\mathcal\{D\},m\)is an error associated with a distribution𝒟∈Δ\(𝒳\)\\mathcal\{D\}\\in\\Delta\(\\mathcal\{X\}\)and a number of samplesmm\.
###### Definition 2\.2\.
For a learner𝒜\\mathcal\{A\}, let its distribution\-dependent error rateϵ𝒜\(𝒟,m\)\\epsilon\_\{\\mathcal\{A\}\}\(\\mathcal\{D\},m\)be the worst\-case, over hypothesesh∈ℋh\\in\\mathcal\{H\}, of its expected error with respect to𝒟h\\mathcal\{D\}\_\{h\}when givenmmi\.i\.d\. samples from𝒟h\\mathcal\{D\}\_\{h\}, i\.e\.,ϵ𝒜\(𝒟,m\)=suph∈ℋ𝔼S∼𝒟hm\[L\(𝒜\(S\),𝒟h\)\]\.\\epsilon\_\{\\mathcal\{A\}\}\(\\mathcal\{D\},m\)=\\sup\_\{h\\in\\mathcal\{H\}\}\\mathop\{\\mathbb\{E\}\}\_\{S\\sim\\mathcal\{D\}\_\{h\}^\{m\}\}\\\!\\left\[L\\left\(\\mathcal\{A\}\(S\),\\mathcal\{D\}\_\{h\}\\right\)\\right\]\.
We recall the definitions of sound certifier, certifiable error rate, and relatively smart learning from\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\]\.
###### Definition 2\.3\(Sound certifier\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\]\)\.
Let𝒜\\mathcal\{A\}be a learner\. We say a function𝒞:𝒳∗→\[0,1\]\\mathcal\{C\}:\\mathcal\{X\}^\{\*\}\\to\[0,1\]is a*sound certifier*for𝒜\\mathcal\{A\}if for every distribution𝒟\\mathcal\{D\},m∈ℕm\\in\\mathbb\{N\}, andS∼𝒟mS\\sim\\mathcal\{D\}^\{m\}we have𝔼\[𝒞\(S\)\]≥ϵ𝒜\(𝒟,m\)\\mathop\{\\mathbb\{E\}\}\\\!\\left\[\\mathcal\{C\}\(S\)\\right\]\\geq\\epsilon\_\{\\mathcal\{A\}\}\(\\mathcal\{D\},m\)\.
###### Definition 2\.4\(Certifiable error rate\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\]\)\.
A distribution\-dependent error rateϵ\(\.,\.\)\\epsilon\(\.,\.\)is*certifiable*if for evry distribution𝒟\\mathcal\{D\}, there exists a𝒟\\mathcal\{D\}\-fixed learner𝒜\\mathcal\{A\}and a sound certifier𝒞\\mathcal\{C\}for𝒜\\mathcal\{A\}such that for eachm∈ℕm\\in\\mathbb\{N\}andS∼𝒟mS\\sim\\mathcal\{D\}^\{m\}, we have𝔼\[𝒞\(S\)\]≤ϵ\(𝒟,m\)\\mathop\{\\mathbb\{E\}\}\\\!\\left\[\\mathcal\{C\}\(S\)\\right\]\\leq\\epsilon\(\\mathcal\{D\},m\)\.
###### Definition 2\.5\(Relatively Smart Learning\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\]\)\.
For a functionσ:ℕ×\(0,1\)→ℕ\\sigma:\\mathbb\{N\}\\times\(0,1\)\\to\\mathbb\{N\}and constantα\>0\\alpha\>0, we call a learner𝒜\\mathcal\{A\}*relatively\(α,σ\)\(\\alpha,\\sigma\)\-smart*if
ϵ𝒜\(𝒟,σ\(m,η\)\)≤αϵ\(𝒟,m\)\+η\\epsilon\_\{\\mathcal\{A\}\}\(\\mathcal\{D\},\\sigma\(m,\\eta\)\)\\leq\\alpha\\epsilon\(\\mathcal\{D\},m\)\+\\etafor every certifiable distribution\-dependent error rateϵ\\epsilon, every distribution𝒟\\mathcal\{D\}, every sample sizem∈ℕm\\in\\mathbb\{N\}, and every additive error parameterη∈\(0,1\)\\eta\\in\(0,1\)\. We also say𝒜\\mathcal\{A\}is*relatively smart*if there existα\\alphaandσ\\sigmasuch that it is relatively\(α,σ\)\(\\alpha,\\sigma\)\-smart\.
We note that our negative results hold for countable domains, and our positive results hold more generally for domains, hypothesis classes, and distributions jointly satisfying standard measurability assumptions\[[25](https://arxiv.org/html/2609.10886#bib.bib18)\]\. As is common in learning theory, we take a hands\-off approach to the measure\-theoretic details\.
## 3ERM is relatively smart
We prove a positive resolution of Open Question 3\.3 of\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\]\. We show that every proper consistent learner is relatively smart withO\(m2\)O\(m^\{2\}\)samples\.
###### Theorem 3\.1\.
For every domain and hypothesis class, we have that every proper consistent learner is relatively\(128,⌈256\(m\+1\)2η⌉\)\(128,\\left\\lceil\\frac\{256\(m\+1\)^\{2\}\}\{\\eta\}\\right\\rceil\)\-smart in the distribution\-free setting\.
We formally prove Theorem[3\.1](https://arxiv.org/html/2609.10886#S3.Thmtheorem1)in Section but we give a high\-level idea as follows\. Fix a learner𝒜𝒟\\mathcal\{A\}\_\{\\mathcal\{D\}\}tailored to a marginal distribution𝒟\\mathcal\{D\}, together with its sound certifier𝒞\\mathcal\{C\}\. For sample sizemm, letTTconsist ofmmi\.i\.d draws from𝒟\\mathcal\{D\}, and letϵ=𝔼\[𝒞\(T\)\]\\epsilon=\\mathop\{\\mathop\{\\mathbb\{E\}\}\}\\\!\\left\[\\mathcal\{C\}\(T\)\\right\]be the certified error onmmsamples\. Now letSSbe a multiset ofM=cm2M=cm^\{2\}i\.i\.d\. draws from𝒟\\mathcal\{D\}, for a sufficiently large constantcc, and let𝒟S\\mathcal\{D\}\_\{S\}denote the uniform distribution overSS\. The first observation is that𝒞\\mathcal\{C\}is unable to reliably tell whether its input samplesTTwere drawn from𝒟\\mathcal\{D\}or from𝒟S\\mathcal\{D\}\_\{S\}\. The underlying intuition is the Birthday paradox and this observation is used in the proof of Theorem 3\.2 in\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\]to show OIG is relatively smart\. Therefore, soundness entails that𝒜𝒟\\mathcal\{A\}\_\{\\mathcal\{D\}\}’s expected error on𝒟S\\mathcal\{D\}\_\{S\}is someγ=O\(ϵ\)\\gamma=O\(\\epsilon\), on average overSS\.
We then show that if there is a learner that when givenmmsamples achieves error at mostγ\\gammaon the uniform distribution𝒟S\\mathcal\{D\}\_\{S\}, then there cannot be many hypotheses that are pairwise4γ4\\gamma\-far from each other with respect to𝒟S\\mathcal\{D\}\_\{S\}\. In particular, we show that the4γ4\\gamma\-packing number ofℋ\\mathcal\{H\}with respect to𝒟S\\mathcal\{D\}\_\{S\}is upper bounded by roughly2m2^\{m\}\. This essentially follows from the fact that, for the typical unlabeled sample of sizemm, there are at most2m2^\{m\}different labelings and therefore at most2m2^\{m\}different predictors in the range of the learner\.𝒜𝒟\\mathcal\{A\}\_\{\\mathcal\{D\}\}then implies the existence of a cover𝒦\\mathcal\{K\}ofℋ\\mathcal\{H\}with respect to𝒟S\\mathcal\{D\}\_\{S\}with\|𝒦\|≈2m\|\\mathcal\{K\}\|\\approx 2^\{m\}and cover radius4γ=O\(ϵ\)4\\gamma=O\(\\epsilon\)\.
Finally, we use a standard double\-sampling argument to bound the error of a consistent proper learner𝒜𝖼𝗈𝗇𝗌\\mathcal\{A\}\_\{\\mathsf\{cons\}\}, such as ERM, on samples of sizeM/2=cm2/2M/2=cm^\{2\}/2\. LetSSbe an unlabeled sample from𝒟\\mathcal\{D\}of sizeMMas before, partitioned uniformly at random into two equal halvesS1S\_\{1\}andS2S\_\{2\}, and fix a ground truth hypothesish∗h^\{\*\}\. Standard tail bounds and the union bound establish that every hypothesis in𝒦\\mathcal\{K\}has similar error \(relative toh∗h^\{\*\}\) on𝒟S1\\mathcal\{D\}\_\{S\_\{1\}\}and𝒟S2\\mathcal\{D\}\_\{S\_\{2\}\}— withinO\(ϵ\)O\(\\epsilon\)with high probability\. This extends to every hypothesish∈ℋh\\in\\mathcal\{H\}; To see this, note that ifhhhad very different errors on𝒟S1\\mathcal\{D\}\_\{S\_\{1\}\}and𝒟S2\\mathcal\{D\}\_\{S\_\{2\}\}, then so would its nearest neighbour in𝒦\\mathcal\{K\}, at a distance ofO\(ϵ\)O\(\\epsilon\)with respect to𝒟S\\mathcal\{D\}\_\{S\}\. Now letS1S\_\{1\}be the sample given to𝒜𝖼𝗈𝗇𝗌\\mathcal\{A\}\_\{\\mathsf\{cons\}\}and leth∈ℋh\\in\\mathcal\{H\}be its output, withh\|S1=h∗\|S1h\{\|S\_\{1\}\}=h^\{\*\}\{\|S\_\{1\}\}by definition and therefore zero error onDS1D\_\{S\_\{1\}\}\. It follows that the error ofhhon𝒟S2\\mathcal\{D\}\_\{S\_\{2\}\}isO\(ϵ\)O\(\\epsilon\)\. Since the error on𝒟S2\\mathcal\{D\}\_\{S\_\{2\}\}is an unbiased estimate of the error on𝒟\\mathcal\{D\}, this completes the proof\.
### 3\.1Formal Proof of Theorem[3\.1](https://arxiv.org/html/2609.10886#S3.Thmtheorem1)
Letϵ\(\.,\.\)\\epsilon\(\.,\.\)be any certifiable error rate\. Fix a distribution𝒟\\mathcal\{D\}, and sample sizemm\. By definition of certifiable erorr rate, there exists a learner𝒜=𝒜𝒟\\mathcal\{A\}=\\mathcal\{A\}\_\{\\mathcal\{D\}\}that is catered to𝒟\\mathcal\{D\}that together with its sound certifier𝒞=𝒞𝒟\\mathcal\{C\}=\\mathcal\{C\}\_\{\\mathcal\{D\}\}witnesses the certifiable error rateϵ\(𝒟,m\)\\epsilon\(\\mathcal\{D\},m\)\. In other words,𝒜\\mathcal\{A\}and𝒞\\mathcal\{C\}satisfy \(i\)ϵ𝒜\(𝒟,m\)≤𝔼S∼𝒟m\[𝒞\(S\)\]≤ϵ\(𝒟,m\)\\epsilon\_\{\\mathcal\{A\}\}\(\\mathcal\{D\},m\)\\leq\\mathop\{\\mathbb\{E\}\}\_\{S\\sim\\mathcal\{D\}^\{m\}\}\\\!\\left\[\\mathcal\{C\}\(S\)\\right\]\\leq\\epsilon\(\\mathcal\{D\},m\)and \(ii\) for any distribution𝒟′\\mathcal\{D\}^\{\\prime\},ϵ𝒜\(𝒟′,m\)≤𝔼S∼𝒟′m\[𝒞\(S\)\]\\epsilon\_\{\\mathcal\{A\}\}\(\\mathcal\{D\}^\{\\prime\},m\)\\leq\\mathop\{\\mathbb\{E\}\}\_\{S\\sim\{\\mathcal\{D\}^\{\\prime\}\}^\{m\}\}\\\!\\left\[\\mathcal\{C\}\(S\)\\right\]\.
We first show thatϵ\(𝒟,m\)\\epsilon\(\\mathcal\{D\},m\)can be turned into an upper bound on the error of𝒜\\mathcal\{A\}on the uniform distribution over a random sample from𝒟\\mathcal\{D\}\. This observation is used in the proof of Theorem 3\.2 in\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\]to show OIG is relatively smart\. We include a proof here for completeness\.
###### Lemma 3\.2\.
For anyM≥mM\\geq m, denoteΓM,m:=M\(M−1\)…\(M−m\+1\)Mm\\Gamma\_\{M,m\}:=\\frac\{M\(M\-1\)\\ldots\(M\-m\+1\)\}\{M^\{m\}\}\. We have
𝔼S∼𝒟M\[ϵ𝒜\(𝒟S,m\)\]≤ΓM,mϵ\(𝒟,m\)\+1−ΓM,m\.\\mathop\{\\mathbb\{E\}\}\_\{S\\sim\\mathcal\{D\}^\{M\}\}\\\!\\left\[\\epsilon\_\{\\mathcal\{A\}\}\(\\mathcal\{D\}\_\{S\},m\)\\right\]\\leq\\Gamma\_\{M,m\}\\epsilon\(\\mathcal\{D\},m\)\+1\-\\Gamma\_\{M,m\}\.
###### Proof\.
Since𝒞\\mathcal\{C\}is a sound certifier for𝒜\\mathcal\{A\}we have by definition thatϵ\(𝒟,m\)≥𝔼S∼𝒟m\[C\(S\)\]\\epsilon\(\\mathcal\{D\},m\)\\geq\\mathop\{\\mathbb\{E\}\}\_\{S\\sim\\mathcal\{D\}^\{m\}\}\\\!\\left\[C\(S\)\\right\]\. Observe that drawingmmi\.i\.d\. samples from𝒟\\mathcal\{D\}is equivalent to drawing a larger multi\-setSSof sizeM≥mM\\geq mand then drawing a uniformly random multi\-setT∼𝗇𝗋𝒟SmT\\sim\_\{\\mathsf\{nr\}\}\\mathcal\{D\}\_\{S\}^\{m\}ofmminstances fromSS*without replacement*\. Hence, we have𝔼S∼𝒟m\[C\(S\)\]=𝔼S∼𝒟M𝔼T∼𝗇𝗋𝒟Sm\[𝒞\(T\)\]\\mathop\{\\mathbb\{E\}\}\_\{S\\sim\\mathcal\{D\}^\{m\}\}\\\!\\left\[C\(S\)\\right\]=\\mathop\{\\mathbb\{E\}\}\_\{S\\sim\\mathcal\{D\}^\{M\}\}\\mathop\{\\mathbb\{E\}\}\_\{T\\sim\_\{\\mathsf\{nr\}\}\\mathcal\{D\}\_\{S\}^\{m\}\}\\\!\\left\[\\mathcal\{C\}\(T\)\\right\]\. Finally, note thatΓ\\Gammais the probability of observing no duplicates when makingmmindependent with replacement draws from a uniform distribution onMMpoints\. Therefore,
𝔼S∼𝒟M𝔼T∼𝗇𝗋𝒟Sm\[𝒞\(T\)\]≥1Γ𝔼S∼𝒟M𝔼T∼𝒟Sm\[𝒞\(T\)\]\+1−1Γ≥1Γ𝔼S∼𝒟M\[ϵ𝒜\(𝒟S,m\)\]\+1−1Γ,\\mathop\{\\mathbb\{E\}\}\_\{S\\sim\\mathcal\{D\}^\{M\}\}\\mathop\{\\mathbb\{E\}\}\_\{T\\sim\_\{\\mathsf\{nr\}\}\\mathcal\{D\}\_\{S\}^\{m\}\}\\\!\\left\[\\mathcal\{C\}\(T\)\\right\]\\geq\\frac\{1\}\{\\Gamma\}\\mathop\{\\mathbb\{E\}\}\_\{S\\sim\\mathcal\{D\}^\{M\}\}\{\\mathop\{\\mathbb\{E\}\}\_\{T\\sim\\mathcal\{D\}\_\{S\}^\{m\}\}\\\!\\left\[\\mathcal\{C\}\(T\)\\right\]\}\+1\-\\frac\{1\}\{\\Gamma\}\\geq\\frac\{1\}\{\\Gamma\}\\mathop\{\\mathbb\{E\}\}\_\{S\\sim\\mathcal\{D\}^\{M\}\}\\\!\\left\[\\epsilon\_\{\\mathcal\{A\}\}\(\\mathcal\{D\}\_\{S\},m\)\\right\]\+1\-\\frac\{1\}\{\\Gamma\},concluding the proof\. ∎
We now show that the bound on learner’s error with respect to the uniform distribution over a random sample, can be turned into a bound on the packing number of such distributions\. Particularly, we show that a bounded error on*any*distribution𝒬\\mathcal\{Q\}implies a bound on the packing number of the class with respect to𝒬\\mathcal\{Q\}\.
###### Lemma 3\.3\.
Let𝒬\\mathcal\{Q\}be any marginal distribution\. If𝗉𝖺𝖼𝗄γ\(ℋ,𝒬\)≥2m\+1\\mathsf\{pack\}\_\{\\gamma\}\(\\mathcal\{H\},\\mathcal\{Q\}\)\\geq 2^\{m\+1\}, then for every \(randomized\) learnerℬ\\mathcal\{B\}we have
ϵℬ\(𝒬,m\)≥γ4\.\\epsilon\_\{\\mathcal\{B\}\}\(\\mathcal\{Q\},m\)\\geq\\frac\{\\gamma\}\{4\}\.
###### Proof\.
Fix a learnerℬ\\mathcal\{B\}\. ChooseK=2m\+1K=2^\{m\+1\}hypothesesh1,…,hKh\_\{1\},\\ldots,h\_\{K\}that are pairwise more thanγ\\gammaapart under𝒬\\mathcal\{Q\}, i\.e\.,∀i,j∈\[K\],𝖽Q\(hi,hj\)\>γ\\forall i,j\\in\[K\],\\mathsf\{d\}\_\{Q\}\(h\_\{i\},h\_\{j\}\)\>\\gamma\. Let the target hypothesis be chosen uniformly at random from\[K\]\[K\]\. For a multi\-setX=\(xi\)i=1mX=\(x\_\{i\}\)\_\{i=1\}^\{m\}, we also denote byXJ=\(xi,hJ\(xi\)\)i=1mX\_\{J\}=\(x\_\{i\},h\_\{J\}\(x\_\{i\}\)\)\_\{i=1\}^\{m\}the mulit\-set that is obtained by labelingXXwithhJh\_\{J\}\. Moreover, we will abuse the notation and writeQJQ\_\{J\}to denote the joint distribution of\(x,hJ\(x\)\)\(x,h\_\{J\}\(x\)\)withx∼Qx\\sim Q\.
We can write the expected error of the learnerℬ\\mathcal\{B\}as
𝔼J∼\[K\]𝔼X∼Qm\[L\(ℬ\(XJ\),QJ\)\]=𝔼X∼Qm𝔼J∼\[K\]\[𝖽Q\(ℬ\(XJ\),hJ\)\]\\mathop\{\\mathbb\{E\}\}\_\{J\\sim\[K\]\}\\mathop\{\\mathbb\{E\}\}\_\{X\\sim Q^\{m\}\}\\\!\\left\[L\(\\mathcal\{B\}\(X\_\{J\}\),Q\_\{J\}\)\\right\]=\\mathop\{\\mathbb\{E\}\}\_\{X\\sim Q^\{m\}\}\\mathop\{\\mathbb\{E\}\}\_\{J\\sim\[K\]\}\\\!\\left\[\\mathsf\{d\}\_\{Q\}\(\\mathcal\{B\}\(X\_\{J\}\),h\_\{J\}\)\\right\]
Fix a setXX\. SinceXXhas sizemm, there are at mostR≤2mR\\leq 2^\{m\}many distinct labelings thath1,…,hKh\_\{1\},\\ldots,h\_\{K\}can induce onXX\. Let\(Ai\)i=1R\(A\_\{i\}\)\_\{i=1\}^\{R\}denote the equivalence classes induced by the labelings\. Observe that for anyAiA\_\{i\}the output of the learner is fixed and can be within distance ofγ/2\\gamma/2of at most one hypotheses inAiA\_\{i\}\. Otherwise, by the triangle inequality there would exists two hypothesesh,h′∈Aih,h^\{\\prime\}\\in A\_\{i\}with𝖽Q\(h,h′\)≤γ\\mathsf\{d\}\_\{Q\}\(h,h^\{\\prime\}\)\\leq\\gamma, contradicting the assumption thath1,…,hkh\_\{1\},\\ldots,h\_\{k\}are pairwiseγ\\gamma\-apart\. Hence,
𝔼J∼\[K\]\[𝖽Q\(ℬ\(XJ\),hJ\)\]\>1K∑i∈R\(\|Ai\|−1\)γ/2=γ2K∑i∈R\(\|Ai\|−1\)=γ\(K−R\)2K≥γ4\.\\mathop\{\\mathbb\{E\}\}\_\{J\\sim\[K\]\}\\\!\\left\[\\mathsf\{d\}\_\{Q\}\(\\mathcal\{B\}\(X\_\{J\}\),h\_\{J\}\)\\right\]\>\\frac\{1\}\{K\}\\sum\_\{i\\in R\}\(\|A\_\{i\}\|\-1\)\\gamma/2=\\frac\{\\gamma\}\{2K\}\\sum\_\{i\\in R\}\(\|A\_\{i\}\|\-1\)=\\frac\{\\gamma\(K\-R\)\}\{2K\}\\geq\\frac\{\\gamma\}\{4\}\.
This proves that for any \(randomized\) learnerℬ\\mathcal\{B\}we have that𝔼J∼\[K\]𝔼X∼Qm\[L\(ℬ\(XJ\),QJ\)\]≥γ/4\\mathop\{\\mathbb\{E\}\}\_\{J\\sim\[K\]\}\\mathop\{\\mathbb\{E\}\}\_\{X\\sim Q^\{m\}\}\\\!\\left\[L\(\\mathcal\{B\}\(X\_\{J\}\),Q\_\{J\}\)\\right\]\\geq\\gamma/4\. Therefore, for any \(randomized\)ℬ\\mathcal\{B\}there existshi∗h\_\{i^\{\*\}\}with𝔼X∼Qm\[L\(ℬ\(Xi∗\),Qi∗\)\]≥γ/4\\mathop\{\\mathbb\{E\}\}\_\{X\\sim Q^\{m\}\}\\\!\\left\[L\(\\mathcal\{B\}\(X\_\{i^\{\*\}\}\),Q\_\{i^\{\*\}\}\)\\right\]\\geq\\gamma/4, completing the proof\. ∎
We have so far argued that from the certifiable error rateϵ\(𝒟,m\)\\epsilon\(\\mathcal\{D\},m\)we can conclude an upper bound on the error of𝒜\\mathcal\{A\}on𝒟S\\mathcal\{D\}\_\{S\}when givenmmsamples, on average over randomS∼𝒟MS\\sim\\mathcal\{D\}^\{M\}of sizeMM\. We then proved that bound on the error of𝒜\\mathcal\{A\}on𝒟S\\mathcal\{D\}\_\{S\}can be used to control the packing number of the class with respect to𝒟S\\mathcal\{D\}\_\{S\}\. We now use a double\-sampling argument to show that the bound on the packing number with respect to𝒟S\\mathcal\{D\}\_\{S\}can be used to bound the error of a consistent hypothesis withM/2M/2samples\. The following lemma formalizes this claim and its proof can be found in Appendix[A](https://arxiv.org/html/2609.10886#A1)\.
###### Lemma 3\.4\.
Letγ∈\(0,1\)\\gamma\\in\(0,1\), andnnbe any integer withnγ≥8ln2n\\gamma\\geq 8\\ln 2\. For every integerK≥1K\\geq 1,
ℙS∼𝒟n\[\{∃h∈ℋ:L\(h,S\)=0,L\(h,𝒟\)≥γ\}\]≤2ℙZ∼𝒟2n\[𝗉𝖺𝖼𝗄γ/16\(ℋ,𝒟Z\)≥K\]\+2Kexp\(−nγ96\)\.\\mathop\{\\mathbb\{P\}\}\_\{S\\sim\\mathcal\{D\}^\{n\}\}\\\!\\left\[\\\{\\exists h\\in\\mathcal\{H\}:L\(h,S\)=0,\\,L\(h,\\mathcal\{D\}\)\\geq\\gamma\\\}\\right\]\\leq 2\\mathop\{\\mathbb\{P\}\}\_\{Z\\sim\\mathcal\{D\}^\{2n\}\}\\\!\\left\[\\mathsf\{pack\}\_\{\\gamma/16\}\(\\mathcal\{H\},\\mathcal\{D\}\_\{Z\}\)\\geq K\\right\]\+2K\\exp\\\!\\left\(\-\\frac\{n\\gamma\}\{96\}\\right\)\.
We are now ready to finish the proof\. For any consistent learner𝒜𝖼𝗈𝗇𝗌\\mathcal\{A\}\_\{\\mathsf\{cons\}\}, we can write its expected error when given samples of sizennas
ϵ𝒜𝖼𝗈𝗇𝗌\(𝒟,n\)=𝔼S∼𝒟n\[L\(𝒜𝖼𝗈𝗇𝗌\(S\),𝒟\)\]≤∫01ℙS∼𝒟n\[∃h∈ℋ:L\(h,S\)=0,L\(h,𝒟\)≥γ\]dγ\.\\epsilon\_\{\\mathcal\{A\}\_\{\\mathsf\{cons\}\}\}\(\\mathcal\{D\},n\)=\\mathop\{\\mathbb\{E\}\}\_\{S\\sim\\mathcal\{D\}^\{n\}\}\\\!\\left\[L\(\\mathcal\{A\}\_\{\\mathsf\{cons\}\}\(S\),\\mathcal\{D\}\)\\right\]\\leq\\int\_\{0\}^\{1\}\\mathop\{\\mathbb\{P\}\}\_\{S\\sim\\mathcal\{D\}^\{n\}\}\\\!\\left\[\\exists h\\in\\mathcal\{H\}:L\(h,S\)=0,\\,L\(h,\\mathcal\{D\}\)\\geq\\gamma\\right\]d\\gamma\.
Now letK=2m\+1K=2^\{m\+1\}andτ=96ln2Kn=96\(m\+2\)ln2n\\tau=\\frac\{96\\ln 2K\}\{n\}=\\frac\{96\(m\+2\)\\ln 2\}\{n\}\. We can verify thatnτ≥8ln2n\\tau\\geq 8\\ln 2\. Therefore, applying Lemma[3\.4](https://arxiv.org/html/2609.10886#S3.Thmtheorem4), we get that
ϵ𝒜𝖼𝗈𝗇𝗌\(𝒟,n\)\\displaystyle\\epsilon\_\{\\mathcal\{A\}\_\{\\mathsf\{cons\}\}\}\(\\mathcal\{D\},n\)≤τ\+∫τ1ℙS∼𝒟n\[∃h∈ℋ:L\(h,S\)=0,L\(h,𝒟\)≥γ\]dγ\\displaystyle\\leq\\tau\+\\int\_\{\\tau\}^\{1\}\\mathop\{\\mathbb\{P\}\}\_\{S\\sim\\mathcal\{D\}^\{n\}\}\\\!\\left\[\\exists h\\in\\mathcal\{H\}:L\(h,S\)=0,\\,L\(h,\\mathcal\{D\}\)\\geq\\gamma\\right\]d\\gamma\(1\)≤τ\+2∫τ1ℙZ∼𝒟2n\[𝗉𝖺𝖼𝗄γ/16\(ℋ,𝒟Z\)≥2m\+1\]dγ\+2∫τ12m\+1exp\(−nγ96\)dγ\\displaystyle\\leq\\tau\+2\\int\_\{\\tau\}^\{1\}\\mathop\{\\mathbb\{P\}\}\_\{Z\\sim\\mathcal\{D\}^\{2n\}\}\\\!\\left\[\\mathsf\{pack\}\_\{\\gamma/16\}\(\\mathcal\{H\},\\mathcal\{D\}\_\{Z\}\)\\geq 2^\{m\+1\}\\right\]\\,d\\gamma\+2\\int\_\{\\tau\}^\{1\}2^\{m\+1\}\\exp\\\!\\left\(\-\\frac\{n\\gamma\}\{96\}\\right\)\\,d\\gammaFrom Lemma[3\.3](https://arxiv.org/html/2609.10886#S3.Thmtheorem3), we know that for anyγ≥0\\gamma\\geq 0, we have
ℙZ∼𝒟2n\[𝗉𝖺𝖼𝗄γ/16\(ℋ,𝒟Z\)≥2m\+1\]≤ℙZ∼𝒟2n\[ϵ𝒜\(𝒟Z,m\)≥γ/64\]\.\\mathop\{\\mathbb\{P\}\}\_\{Z\\sim\\mathcal\{D\}^\{2n\}\}\\\!\\left\[\\mathsf\{pack\}\_\{\\gamma/16\}\(\\mathcal\{H\},\\mathcal\{D\}\_\{Z\}\)\\geq 2^\{m\+1\}\\right\]\\leq\\mathop\{\\mathbb\{P\}\}\_\{Z\\sim\\mathcal\{D\}^\{2n\}\}\\\!\\left\[\\epsilon\_\{\\mathcal\{A\}\}\(\\mathcal\{D\}\_\{Z\},m\)\\geq\\gamma/64\\right\]\.Therefore,
2∫τ1ℙZ∼𝒟2n\[𝗉𝖺𝖼𝗄γ/16\(ℋ,𝒟Z\)≥2m\+1\]\\displaystyle 2\\int\_\{\\tau\}^\{1\}\\mathop\{\\mathbb\{P\}\}\_\{Z\\sim\\mathcal\{D\}^\{2n\}\}\\\!\\left\[\\mathsf\{pack\}\_\{\\gamma/16\}\(\\mathcal\{H\},\\mathcal\{D\}\_\{Z\}\)\\geq 2^\{m\+1\}\\right\]≤2∫01ℙZ∼𝒟2n\[ϵ𝒜\(𝒟Z,m\)≥γ/64\]\\displaystyle\\leq 2\\int\_\{0\}^\{1\}\\mathop\{\\mathbb\{P\}\}\_\{Z\\sim\\mathcal\{D\}^\{2n\}\}\\\!\\left\[\\epsilon\_\{\\mathcal\{A\}\}\(\\mathcal\{D\}\_\{Z\},m\)\\geq\\gamma/64\\right\]=128∫01/64ℙZ∼𝒟2n\[ϵ𝒜\(𝒟Z,m\)≥β\]dβ\\displaystyle=128\\int\_\{0\}^\{1/64\}\\mathop\{\\mathbb\{P\}\}\_\{Z\\sim\\mathcal\{D\}^\{2n\}\}\\\!\\left\[\\epsilon\_\{\\mathcal\{A\}\}\(\\mathcal\{D\}\_\{Z\},m\)\\geq\\beta\\right\]d\\beta≤128𝔼Z∼𝒟2n\[ϵ𝒜\(𝒟Z,m\)\]\.\\displaystyle\\leq 128\\mathop\{\\mathbb\{E\}\}\_\{Z\\sim\\mathcal\{D\}^\{2n\}\}\\\!\\left\[\\epsilon\_\{\\mathcal\{A\}\}\(\\mathcal\{D\}\_\{Z\},m\)\\right\]\.Moreover,
2m\+2∫τ1exp\(−nγ96\)𝑑γ≤96⋅2m\+2nexp\(−nτ96\)=96n\.2^\{m\+2\}\\int\_\{\\tau\}^\{1\}\\exp\\left\(\-\\frac\{n\\gamma\}\{96\}\\right\)\\,d\\gamma\\leq\\frac\{96\\cdot 2^\{m\+2\}\}\{n\}\\exp\\left\(\-\\frac\{n\\tau\}\{96\}\\right\)=\\frac\{96\}\{n\}\.Combining the above with Equation \([1](https://arxiv.org/html/2609.10886#S3.E1)\), we get
ϵ𝒜𝖼𝗈𝗇𝗌\(𝒟,n\)≤128𝔼Z∼𝒟2n\[ϵ𝒜\(𝒟Z,m\)\]\+96n\+96\(m\+2\)ln2n\.\\epsilon\_\{\\mathcal\{A\}\_\{\\mathsf\{cons\}\}\}\(\\mathcal\{D\},n\)\\leq 128\\mathop\{\\mathbb\{E\}\}\_\{Z\\sim\\mathcal\{D\}^\{2n\}\}\\\!\\left\[\\epsilon\_\{\\mathcal\{A\}\}\(\\mathcal\{D\}\_\{Z\},m\)\\right\]\+\\frac\{96\}\{n\}\+\\frac\{96\(m\+2\)\\ln 2\}\{n\}\.\(2\)We now apply Lemma[3\.2](https://arxiv.org/html/2609.10886#S3.Thmtheorem2)withM=2nM=2n, to conclude
𝔼Z∼𝒟2n\[ϵ𝒜\(𝒟S,m\)\]≤Γ2n,mϵ\(𝒟,m\)\+1−Γ2n,m≤ϵ\(𝒟,m\)\+m\(m−1\)4n,\\mathop\{\\mathbb\{E\}\}\_\{Z\\sim\\mathcal\{D\}^\{2n\{\}\}\}\\\!\\left\[\\epsilon\_\{\\mathcal\{A\}\}\(\\mathcal\{D\}\_\{S\},m\)\\right\]\\leq\\Gamma\_\{2n,m\}\\epsilon\(\\mathcal\{D\},m\)\+1\-\\Gamma\_\{2n,m\}\\leq\\epsilon\(\\mathcal\{D\},m\)\+\\frac\{m\(m\-1\)\}\{4n\},where we used the fact that1−Γ2n,m≤m\(m−1\)/4n1\-\\Gamma\_\{2n,m\}\\leq m\(m\-1\)/4n\. Therefore, we can continue Equation \([2](https://arxiv.org/html/2609.10886#S3.E2)\) and write
ϵ𝒜𝖼𝗈𝗇𝗌\(𝒟,n\)≤128ϵ\(𝒟,m\)\+32m\(m−1\)n\+96\+96\(m\+2\)ln2n≤128ϵ\(𝒟,m\)\+256\(m\+1\)2n,\\epsilon\_\{\\mathcal\{A\}\_\{\\mathsf\{cons\}\}\}\(\\mathcal\{D\},n\)\\leq 128\\epsilon\(\\mathcal\{D\},m\)\+\\frac\{32m\(m\-1\)\}\{n\}\+\\frac\{96\+96\(m\+2\)\\ln 2\}\{n\}\\leq 128\\epsilon\(\\mathcal\{D\},m\)\+\\frac\{256\(m\+1\)^\{2\}\}\{n\},where the last inequality is due to32m\(m−1\)\+96\+96\(m\+2\)ln2≤256\(m\+1\)232m\(m\-1\)\+96\+96\(m\+2\)\\ln 2\\leq 256\(m\+1\)^\{2\}\. Lettingn≥256\(m\+1\)2ηn\\geq\\frac\{256\(m\+1\)^\{2\}\}\{\\eta\}, we get that
ϵ𝒜𝖼𝗈𝗇𝗌\(𝒟,n\)≤128ϵ\(𝒟,m\)\+η,\\epsilon\_\{\\mathcal\{A\}\_\{\\mathsf\{cons\}\}\}\(\\mathcal\{D\},n\)\\leq 128\\epsilon\(\\mathcal\{D\},m\)\+\\eta,concluding the proof\. ∎
## 4Relatively Smart Semi\-Supervised Learners
We know that the ERM and OIG learners are relatively smart withσ\(m,η\)=Oη\(m2\)\\sigma\(m,\\eta\)=O\_\{\\eta\}\(m^\{2\}\)\(Theorem[3\.1](https://arxiv.org/html/2609.10886#S3.Thmtheorem1)and Thereom 3\.2 of\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\]\) and that for every pair of constantsα\\alphaandβ\\betaand every functionσ\(m,η\)=Oη\(m2−β\)\\sigma\(m,\\eta\)=O\_\{\\eta\}\(m^\{2\-\\beta\}\), no*fully supervised*learner is relatively\(α,σ\)\(\\alpha,\\sigma\)\-smart \(Theorem 4\.1 of\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\]\)\. This shows that there is no hope in significantly improving the sample complexity needed for relatively smart learning beyondO\(m2\)O\(m^\{2\}\), even with any complicated learner\. We, therefore, move beyond the supervised setting and ask whether access to unlabeled data can reduce the number of labeled samples required for relatively smart learning\.
*Are there semi\-supervised learners that are relatively smart withσ\(m,η\)\\sigma\(m,\\eta\)significantly better thanOη\(m2\)O\_\{\\eta\}\(m^\{2\}\)? If so, can such improvements be achieved by tractable semi\-supervised learners?*
We answer the first question in the affirmative\. We show that there exists a semi\-supervised relatively smart learner that usesOη\(m2\)O\_\{\\eta\}\(m^\{2\}\)unlabeled samples while achievingσ\(m,η\)=m\\sigma\(m,\\eta\)=m\. However, this learner is highly intractable, and there is no general recipe for implementing it efficiently\. Indeed, we obtain a strong negative answer for the second question\. We prove that, even if the marginal distribution is given, for every pair of constantsα\\alphaandβ\\betaand every functionσ\(m,η\)=Oη\(m2−β\)\\sigma\(m,\\eta\)=O\_\{\\eta\}\(m^\{2\-\\beta\}\), no semi\-supervised learner can be relatively smart with labeled sample complexityσ\(m,η\)\\sigma\(m,\\eta\)if it only makes polynomially many \(inmm\) calls to an agnostic ERM oracle\.
We formally define relatively smart learning for semi\-supervised learners\.
###### Definition 4\.1\.
For a semi\-supervised learner𝒜\\mathcal\{A\}, we define its distribution\-dependent error rateϵ𝒜𝖲𝖲\(𝒟,u,ℓ\)\\epsilon^\{\\mathsf\{SS\}\}\_\{\\mathcal\{A\}\}\(\\mathcal\{D\},u,\\ell\)be the worst\-case, over hypothesesh∈ℋh\\in\\mathcal\{H\}, of its expected error with respect to𝒟h\\mathcal\{D\}\_\{h\}when givenuui\.i\.d\. unlabeled samples from𝒟\\mathcal\{D\}andℓ\\elli\.i\.d\. labaled samples from𝒟h\\mathcal\{D\}\_\{h\}, i\.e\.,ϵ𝒜𝖲𝖲\(𝒟,u,ℓ\)=suph∈ℋ𝔼U∼𝒟u,S∼𝒟hℓ\[L\(𝒜\(U,S\),𝒟h\)\]\.\\epsilon^\{\\mathsf\{SS\}\}\_\{\\mathcal\{A\}\}\(\\mathcal\{D\},u,\\ell\)=\\sup\_\{h\\in\\mathcal\{H\}\}\\mathop\{\\mathbb\{E\}\}\_\{U\\sim\\mathcal\{D\}^\{u\},S\\sim\\mathcal\{D\}\_\{h\}^\{\\ell\}\}\\\!\\left\[L\\left\(\\mathcal\{A\}\(U,S\),\\mathcal\{D\}\_\{h\}\\right\)\\right\]\.
###### Definition 4\.2\(Relatively Smart Semi\-Supervised Learning\)\.
For functionsσu,σℓ:ℕ×\(0,1\)→ℕ\\sigma\_\{u\},\\sigma\_\{\\ell\}:\\mathbb\{N\}\\times\(0,1\)\\to\\mathbb\{N\}and constantα\>0\\alpha\>0, we call a semi\-supervised learner𝒜\\mathcal\{A\}*relatively\(α,σu,σℓ\)\(\\alpha,\\sigma\_\{u\},\\sigma\_\{\\ell\}\)\-smart*if
ϵ𝒜𝖲𝖲\(𝒟,σu\(m,η\),σℓ\(m,η\)\)≤αϵ\(𝒟,m\)\+η\\epsilon^\{\\mathsf\{SS\}\}\_\{\\mathcal\{A\}\}\(\\mathcal\{D\},\\sigma\_\{u\}\(m,\\eta\),\\sigma\_\{\\ell\}\(m,\\eta\)\)\\leq\\alpha\\epsilon\(\\mathcal\{D\},m\)\+\\etafor every certifiable distribution\-dependent error rateϵ\\epsilon, every distribution𝒟∈𝔻\\mathcal\{D\}\\in\\mathbb\{D\}, every sample sizem∈ℕm\\in\\mathbb\{N\}, and every additive error parameterη∈\(0,1\)\\eta\\in\(0,1\)\.
### 4\.1A Relatively Smart Semi\-Supervised Learner with No Blow\-Up in Labeled Sample Complexity
We construct a learner that is relatively semi\-supervised smart with no blow\-up in labeled sample complexity, i\.e\., withσℓ\(m,η\)=m\\sigma\_\{\\ell\}\(m,\\eta\)=m,*independent ofη\\eta\.*The construction is inspired by the idea that certifiable error rates cannot be much smaller than the error of the learner that is witnessing it on uniform distributions over a random sample\. This idea appears in Lemma[3\.2](https://arxiv.org/html/2609.10886#S3.Thmtheorem2)and is also exploited by\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\]to prove that OIG is relatively smart\.
In more detail, we show that a certifiable error rate must be close to the error of the optimal distribution\-fixed learner for the uniform distribution over a random unlabled sample of sizeO\(m2\)O\(m^\{2\}\), when allowedO\(m\)O\(m\)labeled samples\. This shows that for functionsσu\(m,η\)=Oη\(m2\)\\sigma\_\{u\}\(m,\\eta\)=O\_\{\\eta\}\(m^\{2\}\),σℓ\(m,η\)=O\(m\)\\sigma\_\{\\ell\}\(m,\\eta\)=O\(m\), the semi\-supervised learner𝒜𝖲𝖲\\mathcal\{A\}\_\{\\mathsf\{SS\}\}defined as follows is relativelyσu,σ\(ℓ\)\\sigma\_\{u\},\\sigma\(\\ell\)\-smart: given unlabeled dataUU, labeled dataSS, and test pointxx,𝒜𝖲𝖲\\mathcal\{A\}\_\{\\mathsf\{SS\}\}computes an optimal learner for the uniform distribution over the pooled sampleT=U∪𝖽𝗈𝗆\(S\)∪xT=U\\cup\\mathsf\{dom\}\(S\)\\cup x, runs this learner onSSand outputs its prediction onxx\. Note thatℋ\|T\\mathcal\{H\}\|Tis finite and the “optimal learner” is well\-defined\. This learner is described in Algorithm[4\.1](https://arxiv.org/html/2609.10886#S4.SS1)and its guarantee is summarized in the following theorem\.
Algorithm 1\.Learner𝒜𝖲𝖲\(U,S\)\(x\)\\mathcal\{A\}\_\{\\mathsf\{SS\}\}\(U,S\)\(x\)trained on unlabeled and labeled samplesU,SU,Sgiven test pointxx:1\.LetT=U∪𝖽𝗈𝗆\(S\)∪xT=U\\cup\\mathsf\{dom\}\(S\)\\cup x\. Let𝒜T∗\\mathcal\{A\}^\{\*\}\_\{T\}be an optimal*supervised*learner for the uniform distribution onTTwhen givenℓ:=\|S\|\\ell:=\|S\|labeled samples, i\.e\.,𝒜T∗∈argmin𝒜ϵ𝒜\(𝒟T,ℓ\)\\mathcal\{A\}^\{\*\}\_\{T\}\\in\\arg\\mathop\{min\}\_\{\\mathcal\{A\}\}\\epsilon\_\{\\mathcal\{A\}\}\(\\mathcal\{D\}\_\{T\},\\ell\)\.2\.Return𝒜T∗\(S\)\(x\)\\mathcal\{A\}^\{\*\}\_\{T\}\(S\)\(x\)\.###### Theorem 4\.3\.
For every domain and hypothesis class, the semi\-supervised learner𝒜𝖲𝖲\\mathcal\{A\}\_\{\\mathsf\{SS\}\}defined in Algorithm[4\.1](https://arxiv.org/html/2609.10886#S4.SS1)is relatively\(1,2m\(m\+1\)η,m\)\(1,\\frac\{2m\(m\+1\)\}\{\\eta\},m\)\-smart in the distribution\-free setting\.
###### Proof\.
Letϵ\(\.,\.\)\\epsilon\(\.,\.\)be a certifiable error rate\. Fix a distribution𝒟\\mathcal\{D\}and sample sizemm\. For a finite unlabeled multisetU∈𝒳∗U\\in\\mathcal\{X\}^\{\*\}, we will use the shorthand notationUhU\_\{h\}to refer toh\|Uh\|U\. We write the expected error of𝒜𝖲𝖲\\mathcal\{A\}\_\{\\mathsf\{SS\}\}on𝒟\\mathcal\{D\}when givenuuunlabeled andℓ\\elllabeled samples as
ϵ𝒜𝖲𝖲𝖲𝖲\(𝒟,u,ℓ\)\\displaystyle\\epsilon^\{\\mathsf\{SS\}\}\_\{\\mathcal\{A\}\_\{\\mathsf\{SS\}\}\}\(\\mathcal\{D\},u,\\ell\)=suph∈ℋ𝔼U∼𝒟u𝔼S∼𝒟hℓ\[L\(𝒜𝖲𝖲\(U,S\),𝒟h\)\]\\displaystyle=\\sup\_\{h\\in\\mathcal\{H\}\}\\mathop\{\\mathbb\{E\}\}\_\{U\\sim\\mathcal\{D\}^\{u\}\}\\mathop\{\\mathbb\{E\}\}\_\{S\\sim\\mathcal\{D\}\_\{h\}^\{\\ell\}\}\\\!\\left\[L\\left\(\\mathcal\{A\}\_\{\\mathsf\{SS\}\}\(U,S\),\\mathcal\{D\}\_\{h\}\\right\)\\right\]\(3\)=suph∈ℋ𝔼U∼𝒟u𝔼S∼𝒟hℓ𝔼x∼𝒟\[𝟙\{𝒜𝖲𝖲\(𝕌,𝕊\)\(𝕩\)≠𝕙\(𝕩\)\}\]\\displaystyle=\\sup\_\{h\\in\\mathcal\{H\}\}\\mathop\{\\mathbb\{E\}\}\_\{U\\sim\\mathcal\{D\}^\{u\}\}\\mathop\{\\mathbb\{E\}\}\_\{S\\sim\\mathcal\{D\}\_\{h\}^\{\\ell\}\}\\mathop\{\\mathbb\{E\}\}\_\{x\\sim\\mathcal\{D\}\}\\\!\\left\[\\bbold\{1\}\\left\\\{\\mathcal\{A\}\_\{\\mathsf\{SS\}\}\(U,S\)\(x\)\\neq h\(x\)\\right\\\}\\right\]=suph∈ℋ𝔼U∼𝒟u𝔼S∼𝒟hℓ𝔼x∼𝒟\[𝟙\{𝒜∗𝕌∪𝖽𝗈𝗆\(𝕊\)∪𝕩\(𝕊\)\(𝕩\)≠𝕙\(𝕩\)\}\]\\displaystyle=\\sup\_\{h\\in\\mathcal\{H\}\}\\mathop\{\\mathbb\{E\}\}\_\{U\\sim\\mathcal\{D\}^\{u\}\}\\mathop\{\\mathbb\{E\}\}\_\{S\\sim\\mathcal\{D\}\_\{h\}^\{\\ell\}\}\\mathop\{\\mathbb\{E\}\}\_\{x\\sim\\mathcal\{D\}\}\\\!\\left\[\\bbold\{1\}\\left\\\{\\mathcal\{A\}^\{\*\}\_\{U\\cup\\mathsf\{dom\}\(S\)\\cup x\}\(S\)\(x\)\\neq h\(x\)\\right\\\}\\right\]=suph∈ℋ𝔼T∼𝒟M𝔼S∼𝗇𝗋𝒟Tℓ\+1𝔼i∼\[ℓ\+1\]\[𝟙\{𝒜∗𝕋\(𝕊𝕙\(−𝕚\)\)\(𝕩𝕚\)≠𝕙\(𝕩𝕚\)\}\],\\displaystyle=\\sup\_\{h\\in\\mathcal\{H\}\}\\mathop\{\\mathbb\{E\}\}\_\{T\\sim\\mathcal\{D\}^\{M\}\}\\mathop\{\\mathbb\{E\}\}\_\{S\\sim\_\{\\mathsf\{nr\}\}\\mathcal\{D\}\_\{T\}^\{\\ell\+1\}\}\\mathop\{\\mathbb\{E\}\}\_\{i\\sim\[\\ell\+1\]\}\\\!\\left\[\\bbold\{1\}\\left\\\{\\mathcal\{A\}^\{\*\}\_\{T\}\(S\_\{h\}^\{\(\-i\)\}\)\(x\_\{i\}\)\\neq h\(x\_\{i\}\)\\right\\\}\\right\],wherexix\_\{i\}denotes the instance inSSat indexiiandSh\(−i\)S\_\{h\}^\{\(\-i\)\}is the setSSwithoutxix\_\{i\}\. Moreover,∼𝗇𝗋\\sim\_\{\\mathsf\{nr\}\}denotes sampling without replacement\.
LetM=u\+ℓ\+1M=u\+\\ell\+1\. Now observe that the process of samplingSSwithout replacement from𝒟T\\mathcal\{D\}\_\{T\}and then choosingxxuniformly fromSS, is the same as the samplingℓ\\elli\.i\.d\. samples from𝒟T\\mathcal\{D\}\_\{T\}labeled byhhas the training set and an additional i\.i\.d\. sample from𝒟T\\mathcal\{D\}\_\{T\}as the test point, save for the fact that there is no duplicates amongSSandxx\. Recalling thatΓM,ℓ\+1=M\(M−1\)…\(M−ℓ\)Mℓ\+1\\Gamma\_\{M,\\ell\+1\}=\\frac\{M\(M\-1\)\\ldots\(M\-\\ell\)\}\{M^\{\\ell\+1\}\}is the probability of observing no duplicates when makingℓ\+1\\ell\+1independent draws from a uniform distribution onMMpoints, we get from Equation \([3](https://arxiv.org/html/2609.10886#S4.E3)\) that
ϵ𝒜𝖲𝖲𝖲𝖲\(𝒟,u,ℓ\)\\displaystyle\\epsilon^\{\\mathsf\{SS\}\}\_\{\\mathcal\{A\}\_\{\\mathsf\{SS\}\}\}\(\\mathcal\{D\},u,\\ell\)≤1ΓM,ℓ\+1suph∈ℋ𝔼T∼𝒟M𝔼S∼𝒟Tℓ𝔼x∼𝒟T\[𝟙\{𝒜∗𝕋\(𝕊𝕙\)\(𝕩\)≠𝕙\(𝕩\)\}\]\\displaystyle\\leq\\frac\{1\}\{\\Gamma\_\{M,\\ell\+1\}\}\\sup\_\{h\\in\\mathcal\{H\}\}\\mathop\{\\mathbb\{E\}\}\_\{T\\sim\\mathcal\{D\}^\{M\}\}\\mathop\{\\mathbb\{E\}\}\_\{S\\sim\\mathcal\{D\}\_\{T\}^\{\\ell\}\}\\mathop\{\\mathbb\{E\}\}\_\{x\\sim\\mathcal\{D\}\_\{T\}\}\\\!\\left\[\\bbold\{1\}\\left\\\{\\mathcal\{A\}^\{\*\}\_\{T\}\(S\_\{h\}\)\(x\)\\neq h\(x\)\\right\\\}\\right\]≤1ΓM,ℓ\+1𝔼T∼𝒟Msuph∈ℋ𝔼S∼𝒟Tℓ𝔼x∼𝒟T\[𝟙\{𝒜∗𝕋\(𝕊𝕙\)\(𝕩\)≠𝕙\(𝕩\)\}\]\\displaystyle\\leq\\frac\{1\}\{\\Gamma\_\{M,\\ell\+1\}\}\\mathop\{\\mathbb\{E\}\}\_\{T\\sim\\mathcal\{D\}^\{M\}\}\\sup\_\{h\\in\\mathcal\{H\}\}\\mathop\{\\mathbb\{E\}\}\_\{S\\sim\\mathcal\{D\}\_\{T\}^\{\\ell\}\}\\mathop\{\\mathbb\{E\}\}\_\{x\\sim\\mathcal\{D\}\_\{T\}\}\\\!\\left\[\\bbold\{1\}\\left\\\{\\mathcal\{A\}^\{\*\}\_\{T\}\(S\_\{h\}\)\(x\)\\neq h\(x\)\\right\\\}\\right\]=1ΓM,ℓ\+1𝔼T∼𝒟Mϵ𝒜T∗\(𝒟T,ℓ\)\.\\displaystyle=\\frac\{1\}\{\\Gamma\_\{M,\\ell\+1\}\}\\mathop\{\\mathbb\{E\}\}\_\{T\\sim\\mathcal\{D\}^\{M\}\}\\epsilon\_\{\\mathcal\{A\}^\{\*\}\_\{T\}\}\(\\mathcal\{D\}\_\{T\},\\ell\)\.
Sinceϵ\(\.,\.\)\\epsilon\(\.,\.\)is certifiable, by definition, there exists a learner𝒜=𝒜𝒟\\mathcal\{A\}=\\mathcal\{A\}\_\{\\mathcal\{D\}\}and its sound certifier𝒞=𝒞𝒜\\mathcal\{C\}=\\mathcal\{C\}\_\{\\mathcal\{A\}\}such that \(i\)ϵ𝒜\(𝒟,m\)≤𝔼S∼𝒟m\[𝒞\(S\)\]≤ϵ\(𝒟,m\)\\epsilon\_\{\\mathcal\{A\}\}\(\\mathcal\{D\},m\)\\leq\\mathop\{\\mathbb\{E\}\}\_\{S\\sim\\mathcal\{D\}^\{m\}\}\\\!\\left\[\\mathcal\{C\}\(S\)\\right\]\\leq\\epsilon\(\\mathcal\{D\},m\)and \(ii\) for any distribution𝒟′\\mathcal\{D\}^\{\\prime\},ϵ𝒜\(𝒟′,m\)≤𝔼S∼𝒟′m\[𝒞\(S\)\]\\epsilon\_\{\\mathcal\{A\}\}\(\\mathcal\{D\}^\{\\prime\},m\)\\leq\\mathop\{\\mathbb\{E\}\}\_\{S\\sim\{\\mathcal\{D\}^\{\\prime\}\}^\{m\}\}\\\!\\left\[\\mathcal\{C\}\(S\)\\right\]\. Lettingℓ=m\\ell=m, similar to the proof of Lemma[3\.2](https://arxiv.org/html/2609.10886#S3.Thmtheorem2), we can conclude that
𝔼T∼𝒟M\[ϵ𝒜\(𝒟T,m\)\]≤ΓM,mϵ\(𝒟,m\)\+1−ΓM,m\.\\mathop\{\\mathbb\{E\}\}\_\{T\\sim\\mathcal\{D\}^\{M\}\}\\\!\\left\[\\epsilon\_\{\\mathcal\{A\}\}\(\\mathcal\{D\}\_\{T\},m\)\\right\]\\leq\\Gamma\_\{M,m\}\\epsilon\(\\mathcal\{D\},m\)\+1\-\\Gamma\_\{M,m\}\.
We know𝒜T∗\\mathcal\{A\}^\{\*\}\_\{T\}is the optimal \(supervised\) distribution\-fixed learner for𝒟T\\mathcal\{D\}\_\{T\}when givenmmlabeled samples\. Therefore, dataset by dataset, we get thatϵ𝒜T∗\(𝒟T,m\)≤ϵ𝒜\(𝒟T,m\)\\epsilon\_\{\\mathcal\{A\}^\{\*\}\_\{T\}\}\(\\mathcal\{D\}\_\{T\},m\)\\leq\\epsilon\_\{\\mathcal\{A\}\}\(\\mathcal\{D\}\_\{T\},m\)\. Hence, we get from above that
ϵ𝒜𝖲𝖲𝖲𝖲\(𝒟,u,m\)\\displaystyle\\epsilon^\{\\mathsf\{SS\}\}\_\{\\mathcal\{A\}\_\{\\mathsf\{SS\}\}\}\(\\mathcal\{D\},u,m\)≤1ΓM,m\+1𝔼T∼𝒟M\[ϵ𝒜T∗\(𝒟T,m\)\]≤1ΓM,m\+1𝔼T∼𝒟M\[ϵ𝒜\(𝒟T,m\)\]≤ΓM,mΓM,m\+1ϵ\(𝒟,m\)\+1−ΓM,mΓM,m\+1\.\\displaystyle\\leq\\frac\{1\}\{\\Gamma\_\{M,m\+1\}\}\\mathop\{\\mathbb\{E\}\}\_\{T\\sim\\mathcal\{D\}^\{M\}\}\\\!\\left\[\\epsilon\_\{\\mathcal\{A\}^\{\*\}\_\{T\}\}\(\\mathcal\{D\}\_\{T\},m\)\\right\]\\leq\\frac\{1\}\{\\Gamma\_\{M,m\+1\}\}\\mathop\{\\mathbb\{E\}\}\_\{T\\sim\\mathcal\{D\}^\{M\}\}\\\!\\left\[\\epsilon\_\{\\mathcal\{A\}\}\(\\mathcal\{D\}\_\{T\},m\)\\right\]\\leq\\frac\{\\Gamma\_\{M,m\}\}\{\\Gamma\_\{M,m\+1\}\}\\epsilon\(\\mathcal\{D\},m\)\+\\frac\{1\-\\Gamma\_\{M,m\}\}\{\\Gamma\_\{M,m\+1\}\}\.
Letu=2m\(m\+1\)ηu=\\frac\{2m\(m\+1\)\}\{\\eta\}and thusM=2m\(m\+1\)η\+m\+1M=\\frac\{2m\(m\+1\)\}\{\\eta\}\+m\+1\. We know thatΓM,m\+1≥1−m\(m\+1\)2M≥1−m\(m\+1\)2u≥1−η/4\\Gamma\_\{M,m\+1\}\\geq 1\-\\frac\{m\(m\+1\)\}\{2M\}\\geq 1\-\\frac\{m\(m\+1\)\}\{2u\}\\geq 1\-\\eta/4\. Therefore, we get that
ϵ𝒜𝖲𝖲𝖲𝖲\(𝒟,u,m\)≤ϵ\(𝒟,m\)\+η/41−η/4≤ϵ\(𝒟,m\)\+η,\\epsilon^\{\\mathsf\{SS\}\}\_\{\\mathcal\{A\}\_\{\\mathsf\{SS\}\}\}\(\\mathcal\{D\},u,m\)\\leq\\frac\{\\epsilon\(\\mathcal\{D\},m\)\+\\eta/4\}\{1\-\\eta/4\}\\leq\\epsilon\(\\mathcal\{D\},m\)\+\\eta,where the last inequality is due toη∈\(0,1\)\\eta\\in\(0,1\)\. This completes the proof\. ∎
### 4\.2An Inclusion Graph Relatively\(1,O\(m2/η\),m\)\(1,O\(m^\{2\}/\\eta\),m\)\-Smart Learner
In the proof of Theorem[4\.3](https://arxiv.org/html/2609.10886#S4.Thmtheorem3), we formulated Algorithm[4\.1](https://arxiv.org/html/2609.10886#S4.SS1)in terms of an optimal distribution\-fixed learner for the uniform distribution𝒟T\\mathcal\{D\}\_\{T\}, without specifying the form of this learner\. We now show that essentially the same guarantee can be achieved by a natural generalization of the OIG learner\. The key observation is that the semi\-supervised construction naturally induces a*leave\-most\-out*transductive problem: from a finite setTT, the learner observes the labels of a small subset ofmmpoints and must predict the labels of the remaining points\. We define an Inclusion Graph \(IG\) learner for this setting and show that it is optimal for the leave\-most\-out problem, in the same sense that the OIG learner is optimal for the leave\-one\-out transductive problem\.
The inclusion graph is defined on the setTTof sizeM=O\(m2/η\)M=O\(m^\{2\}/\\eta\)unlabeled data\. For any subset of sizemm, there is and edge between all the nodes inℋ\|T\\mathcal\{H\}\|Tthat are consistent on the subset\. Any learner for the transductive leave\-most\-out setting should orient the edges towards vectors in\{0,1\}M−m\\\{0,1\\\}^\{M\-m\}\. The out\-degree of a node is then the average over all its edges of the hamming distance between the node and the orientation of the edge\. It is easy to observe that leave\-most\-out error of every node equals it out\-degree\. An𝖨𝖦T\\mathsf\{IG\}\_\{T\}learner for the setTTis then any \(randomized\) orientation that minimizes the maximum out\-degree\. We can easily see that the IG learner achieves the optimal leave\-most\-out error\. This is reminiscent of the fact that the OIG learner is optimal for the leave\-one\-out transductive setting\.
The learner𝒜𝖲𝖲−𝖨𝖦\\mathcal\{A\}\_\{\\mathsf\{SS\}\-\\mathsf\{IG\}\}is defined as follows: given unlabeled dataUU, labeled dataSS, and test pointxx, predict according to the optimal orientation of𝖨𝖦T\\mathsf\{IG\}\_\{T\}forT=U∪𝖽𝗈𝗆\(S\)∪xT=U\\cup\\mathsf\{dom\}\(S\)\\cup x\. We have
ϵ𝒜𝖲𝖲−𝖨𝖦𝖲𝖲\(𝒟,u,ℓ\)\\displaystyle\\epsilon^\{\\mathsf\{SS\}\}\_\{\\mathcal\{A\}\_\{\\mathsf\{SS\}\-\\mathsf\{IG\}\}\}\(\\mathcal\{D\},u,\\ell\)≤𝔼T∼𝒟Msuph∈ℋ𝔼S∼𝗇𝗋𝒟Tℓ\+1𝔼i∼\[ℓ\+1\]\[𝟙\{𝖨𝖦𝕋\(𝕊𝕙\(−𝕚\)\)\(𝕩𝕚\)≠𝕙\(𝕩𝕚\)\}\]\\displaystyle\\leq\\mathop\{\\mathbb\{E\}\}\_\{T\\sim\\mathcal\{D\}^\{M\}\}\\sup\_\{h\\in\\mathcal\{H\}\}\\mathop\{\\mathbb\{E\}\}\_\{S\\sim\_\{\\mathsf\{nr\}\}\\mathcal\{D\}\_\{T\}^\{\\ell\+1\}\}\\mathop\{\\mathbb\{E\}\}\_\{i\\sim\[\\ell\+1\]\}\\\!\\left\[\\bbold\{1\}\\left\\\{\\mathsf\{IG\}\_\{T\}\(S\_\{h\}^\{\(\-i\)\}\)\(x\_\{i\}\)\\neq h\(x\_\{i\}\)\\right\\\}\\right\]≤𝔼T∼𝒟Msuph∈ℋ𝔼S∼𝗇𝗋𝒟Tℓ\+1𝔼i∼\[ℓ\+1\]\[𝟙\{𝒜\(𝕊𝕙\(−𝕚\)\)\(𝕩𝕚\)≠𝕙\(𝕩𝕚\)\}\]\\displaystyle\\leq\\mathop\{\\mathbb\{E\}\}\_\{T\\sim\\mathcal\{D\}^\{M\}\}\\sup\_\{h\\in\\mathcal\{H\}\}\\mathop\{\\mathbb\{E\}\}\_\{S\\sim\_\{\\mathsf\{nr\}\}\\mathcal\{D\}\_\{T\}^\{\\ell\+1\}\}\\mathop\{\\mathbb\{E\}\}\_\{i\\sim\[\\ell\+1\]\}\\\!\\left\[\\bbold\{1\}\\left\\\{\\mathcal\{A\}\(S\_\{h\}^\{\(\-i\)\}\)\(x\_\{i\}\)\\neq h\(x\_\{i\}\)\\right\\\}\\right\]≤1ΓM,ℓ\+1𝔼T∼𝒟M\[ϵ𝒜\(𝒟T,ℓ\)\],\\displaystyle\\leq\\frac\{1\}\{\\Gamma\_\{M,\\ell\+1\}\}\\mathop\{\\mathbb\{E\}\}\_\{T\\sim\\mathcal\{D\}^\{M\}\}\\\!\\left\[\\epsilon\_\{\\mathcal\{A\}\}\(\\mathcal\{D\}\_\{T\},\\ell\)\\right\],where the second inequality is due to the optimality of the𝖨𝖦\\mathsf\{IG\}in the leave\-most\-out setting\. We can then similar to Theorem[4\.3](https://arxiv.org/html/2609.10886#S4.Thmtheorem3)continue to prove thatϵ𝒜𝖲𝖲−𝖨𝖦𝖲𝖲\(𝒟,O\(m2/η\),m\)≤ϵ\(𝒟,m\)\+η\\epsilon^\{\\mathsf\{SS\}\}\_\{\\mathcal\{A\}\_\{\\mathsf\{SS\}\-\\mathsf\{IG\}\}\}\(\\mathcal\{D\},O\(m^\{2\}/\\eta\),m\)\\leq\\epsilon\(\\mathcal\{D\},m\)\+\\eta, concluding𝒜𝖲𝖲−𝖨𝖦\\mathcal\{A\}\_\{\\mathsf\{SS\}\-\\mathsf\{IG\}\}is relatively\(1,O\(m2/η\),m\)\(1,O\(m^\{2\}/\\eta\),m\)\-smart\.
## 5An Impossibility Result for Tractable Semi\-Supervised Learners
The preceding subsection shows that access to unlabeled data can eliminate the quadratic blow\-up in labeled sample complexity: a relatively smart semi\-supervised learner can useOη\(m2\)O\_\{\\eta\}\(m^\{2\}\)unlabeled samples while requiring onlymmlabeled samples\. We now show that this comes at the cost of the tractability of the learner\.
We formalize tractability through*agnostic ERM oracle*access to the hypothesis class\. An agnostic ERM oracle for a hypothesis classℋ\\mathcal\{H\}takes as input a finite labeled multi\-set and returns a hypothesis inℋ\\mathcal\{H\}minimizing its error on the set\.
###### Definition 5\.1\(Agnostic ERM Oracle\)\.
For a hypothesis classℋ⊆\{0,1\}𝒳\\mathcal\{H\}\\subseteq\\\{0,1\\\}^\{\\mathcal\{X\}\}, an Agnostic ERM Oracle𝒪ℋ\\mathcal\{O\}\_\{\\mathcal\{H\}\}forℋ\\mathcal\{H\}is a function that given any finite setT∈\(𝒳×\{0,1\}\)∗T\\in\(\\mathcal\{X\}\\times\\\{0,1\\\}\)^\{\*\}, outputs a hypothesis inℋ\\mathcal\{H\}with the smallest error onTT, i\.e\.,𝒪ℋ\(T\)∈argminh∈ℋL\(h,T\)\\mathcal\{O\}\_\{\\mathcal\{H\}\}\(T\)\\in\\arg\\mathop\{min\}\_\{h\\in\\mathcal\{H\}\}L\(h,T\)\.
We only consider semi\-supervised learners who do not have the knowledge ofℋ\\mathcal\{H\}and their only access toℋ\\mathcal\{H\}is through calls to such an oracle\. Formally, a \(randomized\) algorithm𝒜\\mathcal\{A\}is said to be an oracle learner if it takes as input an unlabeled setUU\(or the marginal distribution𝒟\\mathcal\{D\}if granted\), a labeled setSSof sizemm, and a test pointxx, adaptively queries an agnostic ERM oracle, then outputs a label forxx\. We say that𝒜\\mathcal\{A\}is an efficient oracle learner if the number of oracle calls it makes is bounded by a polynomial function ofmm\.
We show that no efficient oracle learner can be relatively smart with a substantially sub\-quadraticσℓ\\sigma\_\{\\ell\}\.
###### Theorem 5\.2\.
There exists a countable domain such that for every pair of constantsα,β\\alpha,\\beta, any arbitraryσu\\sigma\_\{u\}, and every functionσℓ\(m,η\)=Oη\(m2−β\)\\sigma\_\{\\ell\}\(m,\\eta\)=O\_\{\\eta\}\(m^\{2\-\\beta\}\)the following holds: there is no \(semi\-supervised\) oracle efficient learner𝒜\\mathcal\{A\}that is relatively\(α,σu,σℓ\)\(\\alpha,\\sigma\_\{u\},\\sigma\_\{\\ell\}\)\-smart for every hypothesis class\. Particularly, this holds even if the learner has full knowledge of the marginal distribution\.
Theorem[5\.2](https://arxiv.org/html/2609.10886#S5.Thmtheorem2)is formally proved in Section[5\.1](https://arxiv.org/html/2609.10886#S5.SS1)\. We now give the high\-level idea of the proof\. Our construction builds on the lopsided hypothesis classes used in the proof of the lower bound for OIG and ERM learners in\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\]\. On a domain of sizenn, the lopsided classℋ\(n\)\\mathcal\{H\}\(n\)is defined as follows: consider all hypotheses for which at mostn1−O\(β\)=o\(n\)n^\{1\-O\(\\beta\)\}=o\(n\)of points have the same minority label and the remainingn−o\(n\)n\-o\(n\)points have the other majority label\. We augment the classℋ\(n\)\\mathcal\{H\}\(n\)with a uniformly random hypothesisf∈\{0,1\}nf\\in\\\{0,1\\\}^\{n\}\. For a \(nearly\) uniform distribution over thennpoints, when the class \(and hence the hypothesisff\) is explicitly given, empirical risk minimization restricted toffand the two constant predictors \(all\-00and all\-11\) has vanishing erroro\(n\)/n=o\(1\)o\(n\)/n=o\(1\)\. Moreover, whenm≈nm\\approx\\sqrt\{n\}this error rate is certifiable by almost the same arguments as in\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\]:m≈nm\\approx\\sqrt\{n\}is sufficiently large for a certifier to identify such a \(nearly\) uniform distribution\. The intuition comes from the Birthday paradox, and to make it formal we rely on uniformity testing\.
A learner with only oracle access to the class, however, must somehow discover the additional hypothesisff\. To show that this is difficult, we prove that, on average over the choice offf, the learner has error1/2−o\(1\)1/2\-o\(1\)whenffis the labeling function\. When the labeled sample size is smaller than the number of minority labels, the sample reveals only a small fraction of the labels offf, leaving the remaining labels uniformly random\. We consider an agnostic ERM oracle that, whenever a hypothesis from the lopsided classℋ\(n\)\\mathcal\{H\}\(n\)is an empirical\-risk minimizer, breaks ties in favor ofℋ\(n\)\\mathcal\{H\}\(n\)\. For this oracle, Agnostic ERM queries reveal essentially no additional information aboutff\. Indeed, for any fixed query, the fraction of hypothesesf∈\{0,1\}nf\\in\\\{0,1\\\}^\{n\}that have strictly smaller empirical loss than every hypothesis in the lopsided classℋ\(n\)\\mathcal\{H\}\(n\)is exponentially small\. To see this, we first show that any two such hypothesesf,f′f,f^\{\\prime\}must agree on at leastn1−O\(β\)n^\{1\-O\(\\beta\)\}points\. Otherwise, consider the two hypotheses that agree withf,f′f,f^\{\\prime\}on their agreement set and are respectively constant00and11on their disagreement set\. Both belong toℋ\(n\)\\mathcal\{H\}\(n\), and one has loss no larger thanfforf′f^\{\\prime\}, contradicting the assumption that both strictly outperform every hypothesis inℋ\(n\)\\mathcal\{H\}\(n\)\. A combinatorial bound then shows that any family of hypotheses with this much pairwise agreement constitutes only an exponentially small fraction of\{0,1\}n\\\{0,1\\\}^\{n\}\.
The same conclusion continues to hold for adaptively chosen queries\. Fix the labeled sample, a test pointxxnot appearing in the sample, and the learner’s internal randomness\. Consider the sequence of oracle queries and responses that the learner generates as long as the oracle never returnsff\. By construction of the oracle and its tie\-breaking rule, every oracle response along such a sequence is determined without using the unseen labels offf\. Hence, conditioned on the observed labels, the resulting sequence of queries and responses is fixed with respect to the remaining randomness offf\. Suppose now that in the actual interaction the oracle eventually returnsff, and letttbe the first round at which this happens\. Sinceffwas not returned in any of the previous rounds, the actual interaction up to roundttcoincides with the sequence described above\. In particular, the query at roundttis fixed with respect to the unseen labels offf\. Moreover, except for the exponentially unlikely event thatf∈ℋnf\\in\\mathcal\{H\}\_\{n\}, the oracle can returnffat this round only ifffhas strictly smaller empirical loss on this query than every member ofℋ\(n\)\\mathcal\{H\}\(n\), by the oracle’s tie\-breaking rule\. We can therefore bound the probability thatffis returned in this round by the above bound for the fixed query\. A union bound over polynomially many oracle calls shows that the oracle returnsffwith probabilityo\(1\)o\(1\), where the probability is over the uniformly random choice offf\.
Finally, consider again the interaction described above in which the oracle never returnsff\. The learner’s resulting prediction onxxis determined independently of the unseen labelf\(x\)f\(x\)\. Sincexxdoes not appear in the labeled sample,f\(x\)f\(x\)remains a uniformly random bit, and hence this prediction has error exactly1/21/2over the randomness offf\. The actual interaction differs from this one only if the oracle returnsff, which happens with probabilityo\(1\)o\(1\)\. Therefore, the learner’s expected error, averaged over the random choice offf, is at least1/2−o\(1\)1/2\-o\(1\)\. Consequently, there must exist a fixed hypothesisf∗∈\{0,1\}nf^\{\*\}\\in\\\{0,1\\\}^\{n\}on which the learner has error at least1/2−o\(1\)1/2\-o\(1\), thereby ruling out any substantially subquadratic labeled sample complexity for matching the certifiable error rate ofo\(1\)o\(1\)\.
### 5\.1Formal Proof of Theorem[5\.2](https://arxiv.org/html/2609.10886#S5.Thmtheorem2)
Let𝒜\\mathcal\{A\}be any oracle efficient learner\. Fix an arbitrary parameterβ∈\(0,18\)\\beta\\in\(0,\\frac\{1\}\{8\}\)\. Consider the domain𝒳⊆⋃n∈ℕ𝒳n\\mathcal\{X\}\\subseteq\\bigcup\_\{n\\in\\mathbb\{N\}\}\\mathcal\{X\}\_\{n\}with𝒳n=\{n\}×\[n\]\\mathcal\{X\}\_\{n\}=\\\{n\\\}\\times\[n\]\. We refer to𝒳n\\mathcal\{X\}\_\{n\}as thenthnthrow of the domain\. For everyn∈ℕn\\in\\mathbb\{N\}, let𝒟\(n\)\\mathcal\{D\}\(n\)denote the uniform distribution overℕ\\mathbb\{N\}\. For everyn∈ℕn\\in\\mathbb\{N\}, we begin with the classℋ\(n\)\\mathcal\{H\}\(n\)constructed by\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\], where the minority label of everyh∈ℋ\(n\)h\\in\\mathcal\{H\}\(n\)has probability at mostn−βn^\{\-\\beta\}under𝒟\(n\)\\mathcal\{D\}\(n\)\. We then augmentℋ\(n\)\\mathcal\{H\}\(n\)by adding random functions on𝒳n\\mathcal\{X\}\_\{n\}\. Define the functionsM,m:ℕ→ℕM,m:\\mathbb\{N\}\\rightarrow\\mathbb\{N\}andξ:→\(0,1\)\\xi:\\rightarrow\(0,1\)as
M\(n\)=⌈n1−β⌉,m\(n\)=⌊n12\+3β⌋,andξ\(n\)=M\(n\)/n≈n−β\.M\(n\)=\\lceil n^\{1\-\\beta\}\\rceil,m\(n\)=\\lfloor n^\{\\frac\{1\}\{2\}\+3\\beta\}\\rfloor,\\,\\text\{and\}\\,\\xi\(n\)=M\(n\)/n\\approx n^\{\-\\beta\}\.\(4\)Forb∈\{0,1\}b\\in\\\{0,1\\\}andn∈ℕn\\in\\mathbb\{N\}, let
ℋ\(b\)\(n\)=\{h∈\{0,1\}𝒳:∀x∈𝒳∖𝒳n,h\(x\)=1and\|\{x∈𝒳n:h\(x\)=b\}\|≤M\(n\)\},\\displaystyle\\mathcal\{H\}^\{\(b\)\}\(n\)=\\\{h\\in\\\{0,1\\\}^\{\\mathcal\{X\}\}:\\forall x\\in\\mathcal\{X\}\\setminus\\mathcal\{X\}\_\{n\},h\(x\)=1\\,\\text\{and\}\\,\|\\\{x\\in\\mathcal\{X\}\_\{n\}:h\(x\)=b\\\}\|\\leq M\(n\)\\\},and defineℋ\(n\)=ℋ\(0\)\(n\)∪ℋ\(1\)\(n\)\\mathcal\{H\}\(n\)=\\mathcal\{H\}^\{\(0\)\}\(n\)\\cup\\mathcal\{H\}^\{\(1\)\}\(n\)\. Note that the functionM\(n\)M\(n\)is an upper bound on the number of points with minority label of everyh∈ℋ\(n\)h\\in\\mathcal\{H\}\(n\)in rownn, whilehhis constant on𝒳∖𝒳n\\mathcal\{X\}\\setminus\\mathcal\{X\}\_\{n\}\. Moreover, under the distribution𝒟\(n\)\\mathcal\{D\}\(n\), the functionξ\(n\)\\xi\(n\)denotes an upper bound on the probability of a minority label for everyh∈ℋ\(n\)h\\in\\mathcal\{H\}\(n\)\. Now we will define a hypothesis class that is a disjoint union ofℋ\(n\)\\mathcal\{H\}\(n\)with \(at most\) one extra labeling for every rownn\. For anygn∈\{0,1\}ng\_\{n\}\\in\\\{0,1\\\}^\{n\}, define\(fn,gn\)n∈ℕ\(f\_\{n,g\_\{n\}\}\)\_\{n\\in\\mathbb\{N\}\}withfn,gn\(x\)=gn\(x\)f\_\{n,g\_\{n\}\}\(x\)=g\_\{n\}\(x\)for allx∈𝒳nx\\in\\mathcal\{X\}\_\{n\}andfn,gn\(x\)=1f\_\{n,g\_\{n\}\}\(x\)=1for allx∈𝒳∖𝒳nx\\in\\mathcal\{X\}\\setminus\\mathcal\{X\}\_\{n\}\. Letℋ\(n,gn\)=ℋ\(n\)∪\{fn,gn\}\\mathcal\{H\}\(n,g\_\{n\}\)=\\mathcal\{H\}\(n\)\\cup\\\{f\_\{n,g\_\{n\}\}\\\}and for any choice of binary labelingsG=\(gn\)n∈ℕG=\(g\_\{n\}\)\_\{n\\in\\mathbb\{N\}\}withgn∈\{0,1\}ng\_\{n\}\\in\\\{0,1\\\}^\{n\}, defineℍ\(G\)=⋃n∈ℕℋ\(n,gn\)\\mathbb\{H\}\(G\)=\\bigcup\_\{n\\in\\mathbb\{N\}\}\\mathcal\{H\}\(n,g\_\{n\}\)\. We show that for everyGG, the error rateO\(ξ\(n\)\)O\(\\xi\(n\)\)is certifiable for the classℍ\(G\)\\mathbb\{H\}\(G\)with respect to𝒟\(n\)\\mathcal\{D\}\(n\)and sample sizesm≥m\(n\)≈n1/2\+3βm\\geq m\(n\)\\approx n^\{1/2\+3\\beta\}\.
Fix someℍ\(G\)\\mathbb\{H\}\(G\)\. Recall that for everyh∈ℋ\(n\)h\\in\\mathcal\{H\}\(n\), predicting its majority label has error at mostO\(ξ\(n\)\)O\(\\xi\(n\)\)unders distributions close to𝒟\(n\)\\mathcal\{D\}\(n\)whereas allh∉ℋ\(n,gn\)h\\notin\\mathcal\{H\}\(n,g\_\{n\}\)are constant11on rownn\. Thus, when the learner has access toℍ\(G\)\\mathbb\{H\}\(G\)and knowsGG, a natural strategy for learning with respect to nearly uniform distributions on rownnis to choose between the majority label of the sample and the label induced byfn,gnf\_\{n,g\_\{n\}\}\. We therefore construct the learner𝒜n,G\\mathcal\{A\}\_\{n,G\}\(Algorithm[5\.1](https://arxiv.org/html/2609.10886#S5.SS1)\) that validates betweenfn,gnf\_\{n,g\_\{n\}\}and the two constant hypothesesh𝟏,h𝟎h\_\{\\mathbf\{1\}\},h\_\{\\mathbf\{0\}\}defined ash𝟏\(x\)=1h\_\{\\mathbf\{1\}\}\(x\)=1andh𝟎\(x\)=0h\_\{\\mathbf\{0\}\}\(x\)=0for allx∈𝒳x\\in\\mathcal\{X\}\. We show that for allm≥m\(n\)m\\geq m\(n\), the learner𝒜n,G\\mathcal\{A\}\_\{n,G\}has errorO\(ξ\(n\)\)O\(\\xi\(n\)\)under𝒟\(n\)\\mathcal\{D\}\(n\)and, importantly, this error rate is certifiable\.
###### Lemma 5\.3\.
There exists an absolute constantC=C\(β\)C=C\(\\beta\)such that for everyn≥C\(β\)n\\geq C\(\\beta\)andGGthe following holds: for the hypothesis classℍ\(G\)\\mathbb\{H\}\(G\), the rate
ϵn\(𝒟,m\)=\{6ξ\(n\),if𝒟=𝒟\(n\)andm≥m\(n\)1otherwise\\epsilon\_\{n\}\(\\mathcal\{D\},m\)=\\begin\{cases\}6\\xi\(n\),&\\text\{if $\\mathcal\{D\}=\\mathcal\{D\}\(n\)$ and $m\\geq m\(n\)$\}\\\\ 1&\\text\{otherwise\}\\end\{cases\}is certifiable for𝒜n,G\\mathcal\{A\}\_\{n,G\}in the distribution\-free setting\.
We prove the above lemma certifying the claimed error rate for𝒜n,G\\mathcal\{A\}\_\{n,G\}\. Note that𝒜n,G\\mathcal\{A\}\_\{n,G\}is specifically designed to perform well on the distributions that are close to being uniform on rownnbut may incur large error on distributions far from𝒟\(n\)\\mathcal\{D\}\(n\)\. Consequently, a sound certifier witnessing the claimed error rate must output small values only when the distributions is close to uniform on rownn\. A certifier with precisely this guarantee is developed in the proof of Theorem 3\.1 of\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\], where uniformity testing is exploited to distinguish the uniform distribution on rownnfrom distributions that are substantially far from it in total variation distance\. We therefore use this construction to define the certifier for𝒜n,G\\mathcal\{A\}\_\{n,G\}\. In particular, for each rownn, we define the certifier𝒞n\\mathcal\{C\}\_\{n\}\(Algorithm[5\.1](https://arxiv.org/html/2609.10886#S5.SS1)\) that relies on the modified uniformity tester𝖬𝖳𝖾𝗌𝗍𝖴𝗇𝗂𝖿\\mathsf\{MTestUnif\}\(Algorithm[B](https://arxiv.org/html/2609.10886#A2)\) developed in\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\], which adapts a standard uniformity tester to also detect distributions with support outside thenthnthrow\. We provide the𝖬𝖳𝖾𝗌𝗍𝖴𝗇𝗂𝖿\\mathsf\{MTestUnif\}\(Algorithm[B](https://arxiv.org/html/2609.10886#A2)\) and the remaining technical arguments for the proof of Lemma[5\.3](https://arxiv.org/html/2609.10886#S5.Thmtheorem3)in Appendix[B\.1](https://arxiv.org/html/2609.10886#A2.SS1)\.
Algorithm 2\.Learner𝒜n,G\(S\)\(x\)\\mathcal\{A\}\_\{n,G\}\(S\)\(x\)trained on sampleSSgiven test pointxx:1\.Leth^∈argminh∈\{fn,gn,h𝟏,h𝟎\}L\(h,S\)\\widehat\{h\}\\in\\mathop\{argmin\}\_\{h\\in\\\{f\_\{n,g\_\{n\}\},h\_\{\\mathbf\{1\}\},h\_\{\\mathbf\{0\}\}\\\}\}L\(h,S\)\.2\.Returnh^\(x\)\\widehat\{h\}\(x\)\.Algorithm 3\.Certifier𝒞n\(S\)\\mathcal\{C\}\_\{n\}\(S\)run on input sampleSS:1\.LetO=𝖬𝖳𝖾𝗌𝗍𝖴𝗇𝗂𝖿𝒳n\(ξ\(n\),ξ\(n\),S\)O=\\mathsf\{MTestUnif\}\_\{\\mathcal\{X\}\_\{n\}\}\(\\xi\(n\),\\xi\(n\),S\)\.⊳\\trianglerightAlgorithm[B](https://arxiv.org/html/2609.10886#A2)for testing against𝒟\(n\)\\mathcal\{D\}\(n\)2\.If\|S\|≥m\(n\)\|S\|\\geq m\(n\)andO=1O=1then return5ξ\(n\)5\\xi\(n\), else return 1\.It remains to show that no semi\-supervised oracle learner can be smart relatively smart with respect to the above certifiable error rate for any labeled sample complexity blow\-upσℓ\(m,η\)=Oη\(m2−β\)\\sigma\_\{\\ell\}\(m,\\eta\)=O\_\{\\eta\}\(m^\{2\-\\beta\}\), regardless of the amount of unlabeled data available\. In fact, we prove the stronger statement in which the learner is given the marginal distribution𝒟\(n\)\\mathcal\{D\}\(n\)itself, rendering unlabeled data entirely unnecessary\.
Fix any oracle learner𝒜\\mathcal\{A\}with access to the marginal distribution𝒟\(n\)\\mathcal\{D\}\(n\)\. We show that with positive probability over a randomly chosengn∈\{0,1\}ng\_\{n\}\\in\\\{0,1\\\}^\{n\},𝒜\\mathcal\{A\}will have error at least1/2\+o\(1\)1/2\+o\(1\)onfn,gnf\_\{n,g\_\{n\}\}with respect to𝒟\(n\)\\mathcal\{D\}\(n\)when the sample size ism<M\(n\)≈n1−βm<M\(n\)\\approx n^\{1\-\\beta\}\. We prove this by defining, for everyGG, an oracle𝒪ℍ\(G\)\\mathcal\{O\}\_\{\\mathbb\{H\}\(G\)\}that always favors the hypotheses from the lopsided class\. Formally, for any labeled setTT, if there existsh∈⋃n∈ℕℋ\(n\)h\\in\\bigcup\_\{n\\in\\mathbb\{N\}\}\\mathcal\{H\}\(n\)withh∈argminh∈ℍ\(G\)L\(h,T\)h\\in\\mathop\{argmin\}\_\{h\\in\\mathbb\{H\}\(G\)\}L\(h,T\)then𝒪ℍ\(G\)\(T\)\\mathcal\{O\}\_\{\\mathbb\{H\}\(G\)\}\(T\)returns a hypothesish∈argminh∈ℍ\(G\)L\(h,T\)h\\in\\mathop\{argmin\}\_\{h\\in\\mathbb\{H\}\(G\)\}L\(h,T\)with a fixed tie\-breaking rule independent ofGG, otherwise, it will returnfi,gif\_\{i,g\_\{i\}\}with the smallest indexiiamong allfi,gi∈argminh∈ℍ\(G\)L\(h,T\)f\_\{i,g\_\{i\}\}\\in\\mathop\{argmin\}\_\{h\\in\\mathbb\{H\}\(G\)\}L\(h,T\)\.
For a row of interestnn, we say that a queryTT*revealsgng\_\{n\}*if the oracle returnsfn,gnf\_\{n,g\_\{n\}\}\. We will prove that with polynomially many queries, with high probability over a randomly chosengng\_\{n\}, the oracle𝒪ℍ\(G\)\\mathcal\{O\}\_\{\\mathbb\{H\}\(G\)\}does not revealfn,gnf\_\{n,g\_\{n\}\}\. We first show that, conditioned on the observed label sample of sizem≤M\(n\)m\\leq M\(n\)withs≤ms\\leq mdistinct instances, a fixed query revealsgng\_\{n\}only with exponentially small probability\. Throughout the remainder of the proof, when probabilities are taken overgng\_\{n\}, all labelings\(gj\)j≠n\(g\_\{j\}\)\_\{j\\neq n\}are considered fixed\.
###### Lemma 5\.4\.
For anyn∈ℕn\\in\\mathbb\{N\},S0⊆𝒳nS\_\{0\}\\subseteq\\mathcal\{X\}\_\{n\}with\|S0\|=s<M\(n\)\|S\_\{0\}\|=s<M\(n\), and any arbitrary labelinga∈\{0,1\}S0a\\in\\\{0,1\\\}^\{S\_\{0\}\}we have for every finite labeled multisetT∈\(𝒳×\{0,1\}\)∗T\\in\(\\mathcal\{X\}\\times\\\{0,1\\\}\)^\{\*\}that,
ℙgn\[L\(fn,gn,T\)<minh∈ℋ\(n\)L\(h,T\)\|gn\|S0=a\]≤exp\(−\(M\(n\)−s\)22\(n−s\)\)\\mathop\{\\mathbb\{P\}\}\_\{g\_\{n\}\}\\\!\\left\[L\(f\_\{n,g\_\{n\}\},T\)<\\mathop\{min\}\_\{h\\in\\mathcal\{H\}\(n\)\}L\(h,T\)\\,\\middle\|\\,g\_\{n\}\|\{S\_\{0\}\}=a\\right\]\\leq\\exp\\left\(\-\\frac\{\(M\(n\)\-s\)^\{2\}\}\{2\(n\-s\)\}\\right\)
The proof of the above lemma can be found in Appendix[B\.2](https://arxiv.org/html/2609.10886#A2.SS2)\. It is based on bounding the number of labelings on𝒳n\\mathcal\{X\}\_\{n\}that can strictly outperform the lopsided class on a fixed query\. Suppose that two labelingsg,g′g,g^\{\\prime\}that are consistent with the observed labels both have strictly smaller empirical loss than every hypothesis inℋ\(n\)\\mathcal\{H\}\(n\)\. Assumeggandg′g^\{\\prime\}are more thann−M\(n\)n\-M\(n\)far apart\. We can construct two hypotheseshhandh′h^\{\\prime\}inℋ\(n\)\\mathcal\{H\}\(n\)as follows: on every pointx∈𝒳nx\\in\\mathcal\{X\}\_\{n\}on whichggandg′g^\{\\prime\}agree, bothh\(x\)h\(x\)andh′\(x\)h^\{\\prime\}\(x\)are equal tog\(x\)=g′\(x\)g\(x\)=g^\{\\prime\}\(x\), while on their disagreement region,hhis constant00andh′h^\{\\prime\}is constant11\. Sinceggandg′g^\{\\prime\}agree on at mostM\(n\)M\(n\)points, we haveh,h′∈ℋ\(n\)h,h^\{\\prime\}\\in\\mathcal\{H\}\(n\)\. Moreover, this construction yieldsh\(x\)\+h′\(x\)=g\(x\)\+g′\(x\)h\(x\)\+h^\{\\prime\}\(x\)=g\(x\)\+g^\{\\prime\}\(x\)for everyx∈𝒳nx\\in\\mathcal\{X\}\_\{n\}\. Consideringg,g′g,g^\{\\prime\}andh,h′h,h^\{\\prime\}are constant11on𝒳∖𝒳n\\mathcal\{X\}\\setminus\\mathcal\{X\}\_\{n\}, the sum of the error ofggandg′g^\{\\prime\}on the queried set equals the sum of the error ofhhandh′h^\{\\prime\}on the same set\. Consequently, it is impossible for bothggandg′g^\{\\prime\}to strictly outperform every member ofℋ\(n\)\\mathcal\{H\}\(n\)\. This bounds the*diameter*of the set of labelings that can be revealed by a fixed query\. We then get from Lemma[B\.3](https://arxiv.org/html/2609.10886#A2.Thmtheorem3)that the size of every subset with diameter at mostn−M\(n\)n\-M\(n\)is exponentially small which concludes that the claimed bound on the probability that a randomgng\_\{n\}is revealed by a query\.
We now extend the fixed\-query bound to polynomially many adaptive oracle calls: if the oracle ever returnsfn,gnf\_\{n,g\_\{n\}\}, there must be a first roundttat which this occurs\. Consider first the case thatfn,gn∉ℋ\(n\)f\_\{n,g\_\{n\}\}\\notin\\mathcal\{H\}\(n\)\. By construction of𝒪ℍ\(G\)\\mathcal\{O\}\_\{\\mathbb\{H\}\(G\)\}and its tie\-breaking rule, up to roundtt, all oracle responses are determined independent of the unseen labels ofgng\_\{n\}; consequently, the query at roundttis fixed with respect to the randomness in the labeling of unobserved points\. Now for the hypothesisfn,gnf\_\{n,g\_\{n\}\}to be returned at roundtt, iffn,gn∉ℋ\(n\)f\_\{n,g\_\{n\}\}\\notin\\mathcal\{H\}\(n\), it must have strictly smaller empirical loss on this query than every member ofℋ\(n\)\\mathcal\{H\}\(n\)\. Since, conditional on the observed labels, this query is independent of the remaining labels ofgng\_\{n\}, Lemma[5\.4](https://arxiv.org/html/2609.10886#S5.Thmtheorem4)shows that this occurs with exponentially small probability for each possiblett\. A union bound over polynomially many oracle calls therefore shows that the probability thatOPENfn,gn∉ℋ\(n\)\)f\_\{n,g\_\{n\}\}\\notin\\mathcal\{H\}\(n\)\)and the oracle nevertheless returnsfn,gnf\_\{n,g\_\{n\}\}iso\(1\)o\(1\)\. Moreover, the probability thatfn,gn∈ℋ\(n\)f\_\{n,g\_\{n\}\}\\in\\mathcal\{H\}\(n\)is itself exponentially small\. Combining these, we conclude that with probability1−o\(1\)1\-o\(1\)the oracle never revealsfn,gnf\_\{n,g\_\{n\}\}, as formalized in the following lemma\. The proof of this lemma appears in Appendix[B\.3](https://arxiv.org/html/2609.10886#A2.SS3)\.
###### Lemma 5\.5\.
For anyn∈ℕn\\in\\mathbb\{N\}, anyS0⊆𝒳nS\_\{0\}\\subseteq\\mathcal\{X\}\_\{n\}with\|S0\|=s<M\(n\)\|S\_\{0\}\|=s<M\(n\), and any arbitrary labelinga∈\{0,1\}S0a\\in\\\{0,1\\\}^\{S\_\{0\}\}, if𝒜\\mathcal\{A\}makes at mostKKadaptive calls to𝒪ℍ\(G\)\\mathcal\{O\}\_\{\\mathbb\{H\}\(G\)\}, then, conditioned on the test pointxxand on the internal randomness of𝒜\\mathcal\{A\}, we have
ℙgn\[𝒪ℍ\(G\)returnsfn,gnin some oracle call\|gn\|S0=a\]≤\(K\+1\)exp\(−\(M\(n\)−s\)22\(n−s\)\)\.\\mathop\{\\mathbb\{P\}\}\_\{g\_\{n\}\}\\\!\\left\[\\text\{$\\mathcal\{O\}\_\{\\mathbb\{H\}\(G\)\}$ returns $f\_\{n,g\_\{n\}\}$ in some oracle call\}\\,\\middle\|\\,g\_\{n\}\|\{S\_\{0\}\}=a\\right\]\\leq\(K\+1\)\\exp\\left\(\-\\frac\{\(M\(n\)\-s\)^\{2\}\}\{2\(n\-s\)\}\\right\)\.
The final piece of the proof is to translate the bound on the probability that the oracle revealsfn,gnf\_\{n,g\_\{n\}\}into a lower bound on the prediction error of𝒜\\mathcal\{A\}\. For a fixed labeled sample, the labelgn\(x\)g\_\{n\}\(x\)of every pointx∈𝒳nx\\in\\mathcal\{X\}\_\{n\}that does not appear in the sample remains a uniformly random bit\. On the other hand, by construction of the oracle, fixing the sample, test point, and internal randomness of𝒜\\mathcal\{A\}determines a unique sequence of oracle responses as long as none of the responses isfn,gnf\_\{n,g\_\{n\}\}\. Hence, along this sequence, the learner makes a unique prediction that is independent of the unseen labels ofgng\_\{n\}, and hence, on a test point not appearing in the sample, it has error exactly1/21/2over the randomness ofgng\_\{n\}\. The actual interaction with the oracle differs from this fixed interaction only iffn,gnf\_\{n,g\_\{n\}\}is revealed\. Lemma[5\.5](https://arxiv.org/html/2609.10886#S5.Thmtheorem5)on the probability thatfn,gnf\_\{n,g\_\{n\}\}is revealed then shows that the expected, over randomness ofgng\_\{n\}, of the error of𝒜\\mathcal\{A\}is at least1/2−o\(1\)1/2\-o\(1\), which proves the existence ofgn∗g\_\{n\}^\{\*\}with the claimed error bound\. This is formally captured in the following lemma, the proof of which is relegated to Appendix[B\.4](https://arxiv.org/html/2609.10886#A2.SS4)\.
###### Lemma 5\.6\.
For anyn∈ℕn\\in\\mathbb\{N\}, andm<M\(n\)m<M\(n\), if𝒜\\mathcal\{A\}makes at mostKKadaptive calls to𝒪ℍ\(G\)\\mathcal\{O\}\_\{\\mathbb\{H\}\(G\)\}, then
𝔼gn\[ϵ𝒜\(𝒟\(n\),m\)\]≥12\(1−mn\)−\(K\+1\)exp\(−\(M\(n\)−m\)22\(n−m\)\)\.\\mathop\{\\mathbb\{E\}\}\_\{g\_\{n\}\}\\\!\\left\[\\epsilon\_\{\\mathcal\{A\}\}\(\\mathcal\{D\}\(n\),m\)\\right\]\\geq\\frac\{1\}\{2\}\\left\(1\-\\frac\{m\}\{n\}\\right\)\-\(K\+1\)\\exp\\left\(\-\\frac\{\(M\(n\)\-m\)^\{2\}\}\{2\(n\-m\)\}\\right\)\.
We can now complete the proof of Theorem[5\.2](https://arxiv.org/html/2609.10886#S5.Thmtheorem2)\. For any sample sizem≤M\(n\)/2m\\leq M\(n\)/2, since𝒜\\mathcal\{A\}is an efficient oracle learner, the numberKKof oracle calls it makes is polynomially bounded inm≤n1−βm\\leq n^\{1\-\\beta\}and we haveK=nO\(1\)K=n^\{O\(1\)\}\. Moreover, sincem≤M\(n\)/2m\\leq M\(n\)/2, we have\(M\(n\)−m\)22\(n−m\)≥M\(n\)28n≥18n1−2β\\frac\{\(M\(n\)\-m\)^\{2\}\}\{2\(n\-m\)\}\\geq\\frac\{M\(n\)^\{2\}\}\{8n\}\\geq\\frac\{1\}\{8\}n^\{1\-2\\beta\}and hence for sufficiently largenn,\(K\+1\)exp\(−\(M\(n\)−m\)22\(n−m\)\)≤nO\(1\)exp\(−18n1−2β\)≤n−β\(K\+1\)\\exp\\left\(\-\\frac\{\(M\(n\)\-m\)^\{2\}\}\{2\(n\-m\)\}\\right\)\\leq n^\{O\(1\)\}\\exp\\left\(\-\\frac\{1\}\{8\}n^\{1\-2\\beta\}\\right\)\\leq n^\{\-\\beta\}\. It follows that, for all sufficiently largenn,
𝔼gn\[ϵ𝒜\(𝒟\(n\),m\)\]≥12−2n−β\.\\mathop\{\\mathbb\{E\}\}\_\{g\_\{n\}\}\\\!\\left\[\\epsilon\_\{\\mathcal\{A\}\}\(\\mathcal\{D\}\(n\),m\)\\right\]\\geq\\frac\{1\}\{2\}\-2n^\{\-\\beta\}\.
The above concludes that for all sufficiently largenn, any sample sizem≤M\(n\)/2m\\leq M\(n\)/2there exists someG∗G^\{\*\}such that forℍ\(G∗\)\\mathbb\{H\}\(G^\{\*\}\)we have thatϵ𝒜\(𝒟\(n\),m\)≥12−2n−β\\epsilon\_\{\\mathcal\{A\}\}\(\\mathcal\{D\}\(n\),m\)\\geq\\frac\{1\}\{2\}\-2n^\{\-\\beta\}as long asm≤M\(n\)/2≈n1−β/2m\\leq M\(n\)/2\\approx n^\{1\-\\beta\}/2\. On the other hand, by Lemma[5\.3](https://arxiv.org/html/2609.10886#S5.Thmtheorem3), for the same classℍ\(G⋆\)\\mathbb\{H\}\(G^\{\\star\}\)we have the certifiable error rateϵn\(𝒟\(n\),m\(n\)\)=O\(n−β\)\\epsilon\_\{n\}\(\\mathcal\{D\}\(n\),m\(n\)\)=O\(n^\{\-\\beta\}\)\. SinceM\(n\)/2=ω\(\(m\(n\)\)2−14β\)M\(n\)/2=\\omega\\left\(\(m\(n\)\)^\{2\-14\\beta\}\\right\), we get that𝒜\\mathcal\{A\}cannot approximate this certifiable error rate within any multiplicative constantα\\alphaand any additive constantη<12\\eta<\\frac\{1\}\{2\}, both independent ofnn\. This concludes that no learner can beσℓ\(m,η\)=Oη\(m2−14β\)\\sigma\_\{\\ell\}\(m,\\eta\)=O\_\{\\eta\}\(m^\{2\-14\\beta\}\)relatively smart\. The above construction was for a fixedβ\\beta\. To obtain a single domain that rules out every substantially subquadratic labeled sample complexity, we take a disjoint union over a sequence of parametersβ\\betatending to zero\. Specifically, for eachβ∈B=\{1/i∈ℕ,i\>8\}\\beta\\in B=\\\{1/i\\in\\mathbb\{N\},\\ i\>8\\\}, let𝒳β\\mathcal\{X\}\_\{\\beta\}be a distinct copy of the domain used in the above construction, and let𝒳=⨄β∈B𝒳β\\mathcal\{X\}=\\biguplus\_\{\\beta\\in B\}\\mathcal\{X\}\_\{\\beta\}\. Now fix any substantially subquadratic labeled sample complexityσℓ\\sigma\_\{\\ell\}\. We can chooseβ∈B\\beta\\in Bsufficiently small, sot that the preceding argument constructs a choiceG∗G^\{\*\}and a hypothesis classℍβ\(G∗\)\\mathbb\{H\}\_\{\\beta\}\(G^\{\*\}\)on𝒳β\\mathcal\{X\}\_\{\\beta\}for which𝒜\\mathcal\{A\}fails to be relatively smart with labeled sample complexityσℓ\\sigma\_\{\\ell\}\. Extending every hypothesis inℍβ\(G∗\)\\mathbb\{H\}\_\{\\beta\}\(G^\{\*\}\)to be constant11outside𝒳β\\mathcal\{X\}\_\{\\beta\}gives a hypothesis class over the common countable domain𝒳\\mathcal\{X\}, thereby proving the claimed impossibility result\. ∎
## 6AI Disclosure
ChatGPT\-5\.6 was used to help with proving some of our results\. The authors asked GPT 5\.6 Pro to prove Theorem[3\.1](https://arxiv.org/html/2609.10886#S3.Thmtheorem1)\. The model first came up with a proof that ERM is relatively\-O\(m2ηlog\(1/η\)\)O\(\\frac\{m^\{2\}\}\{\\eta\}\\log\(1/\\eta\)\)smart\. Subsequent interactions with the model then resulted in the current proof approach for ERM being relativelyO\(m2/η\)O\(m^\{2\}/\\eta\)\-smart\. The definitions, questions, and results of Section 4, posing relatively smart semi\-supervised learning and establishing the associated positive result, were derived by the human authors without any help from AI\.
The question of tractable semi\-supervised learning, and whether gains from unlabeled data can be exploited by a simple learner, was also initiated by the authors\. The authors formalized tractability through access to the hypothesis class only via calls to an agnostic ERM oracle\. With assistance from GPT\-5\.6, the authors generalized the construction from Theorem 3\.1 of\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\]to obtain the class used in Theorem[5\.2](https://arxiv.org/html/2609.10886#S5.Thmtheorem2), which witnesses the impossibility of tractable learning in this model\. GPT\-5\.6 also assisted in developing parts of the proof\. Several of its suggestions contained substantive flaws, which were identified and corrected by the authors\.
All the proofs are written by human authors\. Any contribution by GPT is rederived, formalized, and written by the authors\. The paper was overwhelmingly written by authors\. GPT was only used to marginally sharpen some of the writing in order to improve readability\. The authors take full responsibility for all the content and proofs in this paper\.
## References
- \[1\]I\. Aden\-Ali, Y\. Cherapanamjeri, A\. Shetty, and N\. Zhivotovskiy\(2023\)Optimal PAC Bounds without Uniform Convergence\.InProceedings of the 64th Annual Symposium on Foundations of Computer Science \(FOCS\),pp\. 1203–1223\(English\)\.External Links:ISBN 9798350318944,[Link](https://www.computer.org/csdl/proceedings-article/focs/2023/189400b203/1T971Rnelzi),[Document](https://dx.doi.org/10.1109/FOCS57990.2023.00071)Cited by:[§1\.1](https://arxiv.org/html/2609.10886#S1.SS1.SSS0.Px3.p2.1)\.
- \[2\]I\. Aden\-Ali, M\. M\. Høandgsgaard, K\. G\. Larsen, and N\. Zhivotovskiy\(2024\)Majority\-of\-Three: The Simplest Optimal Learner?\.InProceedings of Thirty Seventh Conference on Learning Theory,pp\. 22–45\(en\)\.Note:ISSN: 2640\-3498External Links:[Link](https://proceedings.mlr.press/v247/aden-ali24a.html)Cited by:[§1\.1](https://arxiv.org/html/2609.10886#S1.SS1.SSS0.Px3.p2.1)\.
- \[3\]M\. Balcan and A\. Blum\(2010\)A discriminative model for semi\-supervised learning\.Journal of the ACM \(JACM\)57\(3\),pp\. 1–46\.Cited by:[§1\.2](https://arxiv.org/html/2609.10886#S1.SS2.p1.1)\.
- \[4\]S\. Ben\-David, T\. Lu, and D\. Pál\(2008\)Does unlabeled data provably help? worst\-case analysis of the sample complexity of semi\-supervised learning\.\.InCOLT,pp\. 33–44\.Cited by:[§1\.2](https://arxiv.org/html/2609.10886#S1.SS2.p1.1),[§1](https://arxiv.org/html/2609.10886#S1.p1.1)\.
- \[5\]G\. M\. Benedek and A\. Itai\(1991\)Learnability with respect to fixed distributions\.Theoretical Computer Science86\(2\),pp\. 377–389\.External Links:ISSN 0304\-3975,[Link](https://www.sciencedirect.com/science/article/pii/030439759190026X),[Document](https://dx.doi.org/10.1016/0304-3975%2891%2990026-X)Cited by:[§1\.2](https://arxiv.org/html/2609.10886#S1.SS2.p1.1),[§1](https://arxiv.org/html/2609.10886#S1.p1.1)\.
- \[6\]M\. Darnstädt, H\. U\. Simon, and B\. Szörényi\(2013\)Unlabeled data does provably help\.In30th International Symposium on Theoretical Aspects of Computer Science \(STACS 2013\),pp\. 185–196\.Cited by:[§1\.2](https://arxiv.org/html/2609.10886#S1.SS2.SSS0.Px1.p1.1),[§1\.2](https://arxiv.org/html/2609.10886#S1.SS2.p1.1),[§1](https://arxiv.org/html/2609.10886#S1.p2.1)\.
- \[7\]M\. Darnstädt and H\. U\. Simon\(2011\)Smart pac\-learners\.Theoretical Computer Science412\(19\),pp\. 1756–1766\.Cited by:[§1\.2](https://arxiv.org/html/2609.10886#S1.SS2.SSS0.Px1.p1.1),[§1](https://arxiv.org/html/2609.10886#S1.p2.1)\.
- \[8\]I\. Diakonikolas, D\. Kane, V\. Kontonis, S\. Liu, and N\. Zarifis\(2023\)Efficient testable learning of halfspaces with adversarial label noise\.Advances in Neural Information Processing Systems36,pp\. 39470–39490\.Cited by:[§1\.2](https://arxiv.org/html/2609.10886#S1.SS2.SSS0.Px2.p1.1)\.
- \[9\]R\.M\. Dudley, S\.R\. Kulkarni, T\. Richardson, and O\. Zeitouni\(1994\)A metric entropy bound is not sufficient for learnability\.IEEE Transactions on Information Theory40\(3\),pp\. 883–885\.Note:Conference Name: IEEE Transactions on Information TheoryExternal Links:ISSN 1557\-9654,[Link](https://ieeexplore.ieee.org/document/335898),[Document](https://dx.doi.org/10.1109/18.335898)Cited by:[§1\.2](https://arxiv.org/html/2609.10886#S1.SS2.SSS0.Px1.p1.1),[§1](https://arxiv.org/html/2609.10886#S1.p2.1)\.
- \[10\]S\. Dughmi and A\. F\. Pour\(2026\)Relatively smart: a new approach for instance\-optimal learning\.InProceedings of Thirty Ninth Conference on Learning Theory,S\. Hanneke and T\. Lattimore \(Eds\.\),Proceedings of Machine Learning Research, Vol\.336,pp\. 2107–2144\.External Links:[Link](https://proceedings.mlr.press/v336/dughmi26a.html)Cited by:[§B\.1](https://arxiv.org/html/2609.10886#A2.SS1.p3.1),[Lemma B\.1](https://arxiv.org/html/2609.10886#A2.Thmtheorem1),[Lemma B\.2](https://arxiv.org/html/2609.10886#A2.Thmtheorem2),[Appendix B](https://arxiv.org/html/2609.10886#A2.p1.1),[§1\.1](https://arxiv.org/html/2609.10886#S1.SS1.SSS0.Px1.p1.1),[§1\.1](https://arxiv.org/html/2609.10886#S1.SS1.SSS0.Px1.p2.1),[§1\.1](https://arxiv.org/html/2609.10886#S1.SS1.SSS0.Px3.p3.1),[§1\.2](https://arxiv.org/html/2609.10886#S1.SS2.SSS0.Px1.p1.1),[Question 1\.1](https://arxiv.org/html/2609.10886#S1.Thmtheorem1),[§1](https://arxiv.org/html/2609.10886#S1.p3.1),[§1](https://arxiv.org/html/2609.10886#S1.p4.1),[§1](https://arxiv.org/html/2609.10886#S1.p5.1),[§1](https://arxiv.org/html/2609.10886#S1.p6.1),[§1](https://arxiv.org/html/2609.10886#S1.p7.1),[§2\.1](https://arxiv.org/html/2609.10886#S2.SS1.p2.1),[Definition 2\.3](https://arxiv.org/html/2609.10886#S2.Thmtheorem3),[Definition 2\.4](https://arxiv.org/html/2609.10886#S2.Thmtheorem4),[Definition 2\.5](https://arxiv.org/html/2609.10886#S2.Thmtheorem5),[§2](https://arxiv.org/html/2609.10886#S2.p2.1),[§3\.1](https://arxiv.org/html/2609.10886#S3.SS1.p2.1),[§3](https://arxiv.org/html/2609.10886#S3.p1.1),[§3](https://arxiv.org/html/2609.10886#S3.p2.1),[§4\.1](https://arxiv.org/html/2609.10886#S4.SS1.p1.1),[§4](https://arxiv.org/html/2609.10886#S4.p1.1),[§5\.1](https://arxiv.org/html/2609.10886#S5.SS1.p1.1),[§5\.1](https://arxiv.org/html/2609.10886#S5.SS1.p3.1),[§5](https://arxiv.org/html/2609.10886#S5.p5.1),[§6](https://arxiv.org/html/2609.10886#S6.p2.1),[Abstract](https://arxiv.org/html/2609.10886#abstract1.1)\.
- \[11\]A\. Globerson, R\. Livni, and S\. Shalev\-Shwartz\(2017\)Effective Semisupervised Learning on Manifolds\.InProceedings of the 2017 Conference on Learning Theory,pp\. 978–1003\(en\)\.Note:ISSN: 2640\-3498External Links:[Link](https://proceedings.mlr.press/v65/globerson17a.html)Cited by:[§1\.2](https://arxiv.org/html/2609.10886#S1.SS2.p1.1)\.
- \[12\]O\. Goldreich and D\. Ron\(2000\)On testing expansion in bounded\-degree graphs\.Electronic Colloquium on Computational Complexity7\(20\)\.Cited by:[Appendix B](https://arxiv.org/html/2609.10886#A2.pic1.1.1.1.1)\.
- \[13\]A\. Gollakota, A\. Klivans, K\. Stavropoulos, and A\. Vasilyan\(2024\)An efficient tester\-learner for halfspaces\.Cited by:[§1\.2](https://arxiv.org/html/2609.10886#S1.SS2.SSS0.Px2.p1.1)\.
- \[14\]A\. Gollakota, A\. R\. Klivans, and P\. K\. Kothari\(2023\)A moment\-matching approach to testable learning and a new characterization of rademacher complexity\.InProceedings of the 55th Annual ACM Symposium on Theory of Computing,pp\. 1657–1670\.Cited by:[§1\.2](https://arxiv.org/html/2609.10886#S1.SS2.SSS0.Px2.p1.1),[§1\.2](https://arxiv.org/html/2609.10886#S1.SS2.SSS0.Px2.p2.1)\.
- \[15\]A\. Gollakota, A\. Klivans, K\. Stavropoulos, and A\. Vasilyan\(2023\)Tester\-learners for halfspaces: universal algorithms\.Advances in Neural Information Processing Systems36,pp\. 10145–10169\.Cited by:[§1\.2](https://arxiv.org/html/2609.10886#S1.SS2.SSS0.Px2.p1.1)\.
- \[16\]A\. Golovnev, D\. Pal, and B\. Szorenyi\(2019\)The information\-theoretic value of unlabeled data in semi\-supervised learning\.InProceedings of the 36th International Conference on Machine Learning,K\. Chaudhuri and R\. Salakhutdinov \(Eds\.\),Proceedings of Machine Learning Research, Vol\.97,pp\. 2328–2336\.External Links:[Link](https://proceedings.mlr.press/v97/golovnev19a.html)Cited by:[§1\.2](https://arxiv.org/html/2609.10886#S1.SS2.p1.1)\.
- \[17\]C\. Göpfert, S\. Ben\-David, O\. Bousquet, S\. Gelly, I\. Tolstikhin, and R\. Urner\(2019\)When can unlabeled data improve the learning rate?\.InProceedings of the Thirty\-Second Conference on Learning Theory,pp\. 1500–1518\(en\)\.Note:ISSN: 2640\-3498External Links:[Link](https://proceedings.mlr.press/v99/gopfert19a.html)Cited by:[§1\.2](https://arxiv.org/html/2609.10886#S1.SS2.p1.1)\.
- \[18\]S\. Hanneke\(2016\)The Optimal Sample Complexity of PAC Learning\.Journal of Machine Learning Research17\(38\),pp\. 1–15\.External Links:ISSN 1533\-7928,[Link](http://jmlr.org/papers/v17/15-389.html)Cited by:[§1\.1](https://arxiv.org/html/2609.10886#S1.SS1.SSS0.Px3.p2.1)\.
- \[19\]D\. J\. Kleitman\(1966\)On a combinatorial conjecture of erdös\.Journal of Combinatorial Theory1\(2\),pp\. 209–214\.Cited by:[§B\.2](https://arxiv.org/html/2609.10886#A2.SS2.p2.1.1)\.
- \[20\]A\. Klivans, K\. Stavropoulos, and A\. Vasilyan\(2024\)Testable learning with distribution shift\.InThe Thirty Seventh Annual Conference on Learning Theory,pp\. 2887–2943\.Cited by:[§1\.2](https://arxiv.org/html/2609.10886#S1.SS2.SSS0.Px2.p1.1),[§1\.2](https://arxiv.org/html/2609.10886#S1.SS2.SSS0.Px2.p2.1)\.
- \[21\]K\. G\. Larsen\(2023\)Bagging is an Optimal PAC Learner\.InProceedings of Thirty Sixth Conference on Learning Theory,pp\. 450–468\(en\)\.Note:ISSN: 2640\-3498External Links:[Link](https://proceedings.mlr.press/v195/larsen23a.html)Cited by:[§1\.1](https://arxiv.org/html/2609.10886#S1.SS1.SSS0.Px3.p2.1)\.
- \[22\]R\. Pukdee, D\. Sam, J\. Z\. Kolter, M\. F\. Balcan, and P\. Ravikumar\(2023\)Learning with explanation constraints\.Advances in neural information processing systems36,pp\. 49883–49926\.Cited by:[§1\.2](https://arxiv.org/html/2609.10886#S1.SS2.p1.1)\.
- \[23\]D\. Rawal and N\. Zhivotovskiy\(2026\)Majority\-of\-three is optimal\.arXiv preprint arXiv:2606\.13614\.Cited by:[§1\.1](https://arxiv.org/html/2609.10886#S1.SS1.SSS0.Px3.p2.1)\.
- \[24\]R\. Rubinfeld and A\. Vasilyan\(2023\)Testing distributional assumptions of learning algorithms\.InProceedings of the 55th Annual ACM Symposium on Theory of Computing,pp\. 1643–1656\.Cited by:[§1\.2](https://arxiv.org/html/2609.10886#S1.SS2.SSS0.Px2.p1.1)\.
- \[25\]S\. Shalev\-Shwartz and S\. Ben\-David\(2014\)Understanding Machine Learning: From Theory to Algorithms\.Cambridge University Press\(en\)\.External Links:ISBN 978\-1\-139\-95274\-3Cited by:[§2\.1](https://arxiv.org/html/2609.10886#S2.SS1.p3.1)\.
## Appendix AMissing Proof from Section[3](https://arxiv.org/html/2609.10886#S3): Proof of Lemma[3\.4](https://arxiv.org/html/2609.10886#S3.Thmtheorem4)
For a labeled setSSofnni\.i\.d\. samples from𝒟\\mathcal\{D\}, denote byASA\_\{S\}the event\{∃h∈ℋ:L\(h,S\)=0,L\(h,𝒟\)≥γ\}\\\{\\exists h\\in\\mathcal\{H\}:L\(h,S\)=0,\\,L\(h,\\mathcal\{D\}\)\\geq\\gamma\\\}\. For anyhhand any finite multisetT∈\(𝒳×\{0,1\}\)∗T\\in\(\\mathcal\{X\}\\times\\\{0,1\\\}\)^\{\*\}denoteN\(h,T\)=∑\(x,y\)∈T𝟙\{𝕙\(𝕩\)≠𝕪\}N\(h,T\)=\\sum\_\{\(x,y\)\\in T\}\\bbold\{1\}\\\{h\(x\)\\neq y\\\}\. We wish to bound the probability ofASA\_\{S\}\. Now consider two \(independent\) setsSSandTTeach ofnni\.i\.d\. draws from𝒟\\mathcal\{D\}\. Denote byBS,TB\_\{S,T\}the event\{∃h∈ℋ:L\(h,S\)=0,L\(h,𝒟\)≥γ,N\(h,T\)≥nγ/2\}\\\{\\exists h\\in\\mathcal\{H\}:L\(h,S\)=0,\\,L\(h,\\mathcal\{D\}\)\\geq\\gamma,\\,N\(h,T\)\\geq n\\gamma/2\\\}\. Fix any setSSfor which there exists somehS∈ℋh\_\{S\}\\in\\mathcal\{H\}withL\(h,S\)=0L\(h,S\)=0andL\(h,𝒟\)≥γL\(h,\\mathcal\{D\}\)\\geq\\gamma\. We haveℙT∼𝒟n\[BS,T\]≥ℙT∼𝒟n\[N\(hS,T\)≥nγ/2\]\\mathop\{\\mathbb\{P\}\}\_\{T\\sim\\mathcal\{D\}^\{n\}\}\\\!\\left\[B\_\{S,T\}\\right\]\\geq\\mathop\{\\mathbb\{P\}\}\_\{T\\sim\\mathcal\{D\}^\{n\}\}\\\!\\left\[N\(h\_\{S\},T\)\\geq n\\gamma/2\\right\]\. By a Chernoff bound and sincen≥8ln2γn\\geq\\frac\{8\\ln 2\}\{\\gamma\}, we have thatℙT∼𝒟n\[N\(hS,T\)≥nγ/2\]≥1/2\\mathop\{\\mathbb\{P\}\}\_\{T\\sim\\mathcal\{D\}^\{n\}\}\\\!\\left\[N\(h\_\{S\},T\)\\geq n\\gamma/2\\right\]\\geq 1/2\. Hence, we get thatℙS∼𝒟n\[AS\]≤2ℙS∼𝒟nℙT∼𝒟n\[BS,T\]\\mathop\{\\mathbb\{P\}\}\_\{S\\sim\\mathcal\{D\}^\{n\}\}\\\!\\left\[A\_\{S\}\\right\]\\leq 2\\mathop\{\\mathbb\{P\}\}\_\{S\\sim\\mathcal\{D\}^\{n\}\}\\mathop\{\\mathbb\{P\}\}\_\{T\\sim\\mathcal\{D\}^\{n\}\}\\\!\\left\[B\_\{S,T\}\\right\]\.
Consider a setZ=\(S,T\)Z=\(S,T\)with\|S\|=\|T\|=n\|S\|=\|T\|=nof2n2ni\.i\.d sample from𝒟\\mathcal\{D\}\. Denote byEZE\_\{Z\}the event\{∃h∈ℋZ,γ/16:N\(h,S\)≤nγ/8,N\(h,T\)≥3nγ/8\}\\\{\\exists h\\in\\mathcal\{H\}\_\{Z,\\gamma/16\}:N\(h,S\)\\leq n\\gamma/8,N\(h,T\)\\geq 3n\\gamma/8\\\}\. For any setZZ, denote byℋZ,γ/16\\mathcal\{H\}\_\{Z,\\gamma/16\}the maximalγ/16\\gamma/16\-packing ofℋ\\mathcal\{H\}under𝒟Z\\mathcal\{D\}\_\{Z\}\. Note thatℋZ,γ/16\\mathcal\{H\}\_\{Z,\\gamma/16\}is also aγ/16\\gamma/16\-cover ofℋ\\mathcal\{H\}under𝒟Z\\mathcal\{D\}\_\{Z\}\. Therefore, we can easily see that for anyZ=\(S,T\)Z=\(S,T\)with\|S\|=\|T\|=n\|S\|=\|T\|=n, the eventBS,TB\_\{S,T\}implies the eventEZE\_\{Z\}\. Hence,ℙS∼𝒟nℙT∼𝒟n\[BS,T\]≤ℙZ=\(S,T\)∼𝒟2n\[EZ\]\\mathop\{\\mathbb\{P\}\}\_\{S\\sim\\mathcal\{D\}^\{n\}\}\\mathop\{\\mathbb\{P\}\}\_\{T\\sim\\mathcal\{D\}^\{n\}\}\\\!\\left\[B\_\{S,T\}\\right\]\\leq\\mathop\{\\mathbb\{P\}\}\_\{Z=\(S,T\)\\sim\\mathcal\{D\}^\{2n\}\}\\\!\\left\[E\_\{Z\}\\right\]\.
Condition onℋZ,γ/16≤K\\mathcal\{H\}\_\{Z,\\gamma/16\}\\leq K\. Observe that the process of sampling two setsSSandTTofnni\.i\.d samples is the same as sampling a setZ∼𝒟2nZ\\sim\\mathcal\{D\}^\{2n\}of size2n2nand randomly splitting it into two sets of sizenn\. For a random subsetI∼\[2n\]I\\sim\[2n\], letZIZ\_\{I\}denote the subset ofZZat indicesII\. Therefore, by a union bound we get
ℙZ=\(S,T\)∼𝒟2n\[EZ\]\\displaystyle\\mathop\{\\mathbb\{P\}\}\_\{Z=\(S,T\)\\sim\\mathcal\{D\}^\{2n\}\}\\\!\\left\[E\_\{Z\}\\right\]≤𝔼Z=\(S,T\)∼𝒟2n\[∑h∈ℋZ,γ/16𝟙\{ℕ\(𝕙,𝕊\)≤𝕟γ𝟠,ℕ\(𝕙,𝕋\)≥𝟛𝕟γ𝟠\}\]\\displaystyle\\leq\\mathop\{\\mathbb\{E\}\}\_\{Z=\(S,T\)\\sim\\mathcal\{D\}^\{2n\}\}\\\!\\left\[\\sum\_\{h\\in\\mathcal\{H\}\_\{Z,\\gamma/16\}\}\\bbold\{1\}\\left\\\{N\(h,S\)\\leq\\frac\{n\\gamma\}\{8\},\\,N\(h,T\)\\geq\\frac\{3n\\gamma\}\{8\}\\right\\\}\\right\]≤𝔼Z=\(S,T\)∼𝒟2n𝔼I∼\[2n\],\|I\|=n\[∑h∈ℋZ,γ/16𝟙\{ℕ\(𝕙,ℤ𝕀\)≤𝕟γ𝟠,ℕ\(𝕙,ℤ\[𝟚𝕟\]∖𝕀\)≥𝟛𝕟γ𝟠\}\]\\displaystyle\\leq\\mathop\{\\mathbb\{E\}\}\_\{Z=\(S,T\)\\sim\\mathcal\{D\}^\{2n\}\}\\mathop\{\\mathbb\{E\}\}\_\{I\\sim\[2n\],\|I\|=n\}\\\!\\left\[\\sum\_\{h\\in\\mathcal\{H\}\_\{Z,\\gamma/16\}\}\\bbold\{1\}\\left\\\{N\(h,Z\_\{I\}\)\\leq\\frac\{n\\gamma\}\{8\},\\,N\(h,Z\_\{\[2n\]\\setminus I\}\)\\geq\\frac\{3n\\gamma\}\{8\}\\right\\\}\\right\]=𝔼Z=\(S,T\)∼𝒟2n∑h∈ℋZ,γ/16𝔼I∼\[2n\],\|I\|=n\[𝟙\{ℕ\(𝕙,ℤ𝕀\)≤𝕟γ𝟠,ℕ\(𝕙,ℤ\[𝟚𝕟\]∖𝕀\)≥𝟛𝕟γ𝟠\}\]\.\\displaystyle=\\mathop\{\\mathbb\{E\}\}\_\{Z=\(S,T\)\\sim\\mathcal\{D\}^\{2n\}\}\\sum\_\{h\\in\\mathcal\{H\}\_\{Z,\\gamma/16\}\}\\mathop\{\\mathbb\{E\}\}\_\{I\\sim\[2n\],\|I\|=n\}\\\!\\left\[\\bbold\{1\}\\left\\\{N\(h,Z\_\{I\}\)\\leq\\frac\{n\\gamma\}\{8\},\\,N\(h,Z\_\{\[2n\]\\setminus I\}\)\\geq\\frac\{3n\\gamma\}\{8\}\\right\\\}\\right\]\.
Now consider someZZand someh∈ℋZ,γ/16h\\in\\mathcal\{H\}\_\{Z,\\gamma/16\}such thatN\(h,Z\)≥3nγ/8N\(h,Z\)\\geq 3n\\gamma/8\. Denote byXhX\_\{h\}the number of errors in the first half of the set after a random split\. We knowXhX\_\{h\}has a hypergeometric distribution with mean𝔼\[Xh\]≥3nγ/16\\mathop\{\\mathop\{\\mathbb\{E\}\}\}\\\!\\left\[X\_\{h\}\\right\]\\geq 3n\\gamma/16\. Therefore, we can apply a Chernoff bound to conclude that
ℙ\[Xh≤nγ8\]≤ℙ\[Xh≤233nγ16\]≤ℙ\[Xh≤\(1−13\)𝔼\[Xh\]\]≤exp\(−118𝔼\[Xh\]\)≤exp\(−nγ96\)\.\\mathop\{\\mathop\{\\mathbb\{P\}\}\}\\\!\\left\[X\_\{h\}\\leq\\frac\{n\\gamma\}\{8\}\\right\]\\leq\\mathop\{\\mathop\{\\mathbb\{P\}\}\}\\\!\\left\[X\_\{h\}\\leq\\frac\{2\}\{3\}\\frac\{3n\\gamma\}\{16\}\\right\]\\leq\\mathop\{\\mathop\{\\mathbb\{P\}\}\}\\\!\\left\[X\_\{h\}\\leq\(1\-\\frac\{1\}\{3\}\)\\mathop\{\\mathop\{\\mathbb\{E\}\}\}\\\!\\left\[X\_\{h\}\\right\]\\right\]\\leq\\exp\\left\(\-\\frac\{1\}\{18\}\\mathop\{\\mathop\{\\mathbb\{E\}\}\}\\\!\\left\[X\_\{h\}\\right\]\\right\)\\leq\\exp\\left\(\-\\frac\{n\\gamma\}\{96\}\\right\)\.
Therefore, conditioned on\|ℋZ,γ/16\|≤K\|\\mathcal\{H\}\_\{Z,\\gamma/16\}\|\\leq K, we have that
ℙZ=\(S,T\)∼𝒟2n\[EZ\]≤Kexp\(−nγ96\)\.\\displaystyle\\mathop\{\\mathbb\{P\}\}\_\{Z=\(S,T\)\\sim\\mathcal\{D\}^\{2n\}\}\\\!\\left\[E\_\{Z\}\\right\]\\leq K\\exp\\left\(\-\\frac\{n\\gamma\}\{96\}\\right\)\.
This concludes that
ℙS∼𝒟n\[AS\]≤2ℙZ∼𝒟2n\[EZ\]≤2ℙZ∼𝒟2n\[𝗉𝖺𝖼𝗄γ/16\(ℋ,𝒟Z\)≥K\]\+2Kexp\(−nγ96\),\\displaystyle\\mathop\{\\mathbb\{P\}\}\_\{S\\sim\\mathcal\{D\}^\{n\}\}\\\!\\left\[A\_\{S\}\\right\]\\leq 2\\mathop\{\\mathbb\{P\}\}\_\{Z\\sim\\mathcal\{D\}^\{2n\}\}\\\!\\left\[E\_\{Z\}\\right\]\\leq 2\\mathop\{\\mathbb\{P\}\}\_\{Z\\sim\\mathcal\{D\}^\{2n\}\}\\\!\\left\[\\mathsf\{pack\}\_\{\\gamma/16\}\(\\mathcal\{H\},\\mathcal\{D\}\_\{Z\}\)\\geq K\\right\]\+2K\\exp\\left\(\-\\frac\{n\\gamma\}\{96\}\\right\),as desired\. ∎
## Appendix BMissing Proofs from Section[5](https://arxiv.org/html/2609.10886#S5)
We use the modified uniformity tester𝖬𝖳𝖾𝗌𝗍𝖴𝗇𝗂𝖿\\mathsf\{MTestUnif\}in the construction of𝒞n\\mathcal\{C\}\_\{n\}to detect distributions that are close to uniform on the row of interest\. The tester𝖬𝖳𝖾𝗌𝗍𝖴𝗇𝗂𝖿\\mathsf\{MTestUnif\}, formally described in Algorithm[B](https://arxiv.org/html/2609.10886#A2), was introduced in\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\]by adding a simple wrapper around the standard uniformity tester𝖳𝖾𝗌𝗍𝖴𝗇𝗂𝖿\\mathsf\{TestUnif\}\(Algorithm[B](https://arxiv.org/html/2609.10886#A2)\), allowing it to detect distributions with support outside the desired row\. The following lemma summarizes the guarantee of𝖬𝖳𝖾𝗌𝗍𝖴𝗇𝗂𝖿\\mathsf\{MTestUnif\}\. The proof this lemma can be found in\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\]\.
###### Lemma B\.1\(Lemma B\.4 in\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\]\)\.
Denotem𝖳𝖾𝗌𝗍\(n,ξ,δ\):=18⋅64nln\(2/δ\)ξ2m\_\{\\mathsf\{Test\}\}\(n,\\xi,\\delta\):=\\frac\{18\\cdot 64\\sqrt\{n\}\\ln\(2/\\delta\)\}\{\\xi^\{2\}\}\. Let𝒳\\mathcal\{X\}be an arbitrary countable set\. For any setY⊆𝒳Y\\subseteq\\mathcal\{X\}of size\|Y\|=n\|Y\|=n, anyξ,δ∈\(0,1\)\\xi,\\delta\\in\(0,1\), any distribution𝒟\\mathcal\{D\}on𝒳\\mathcal\{X\}, and any sample sizem≥m𝖳𝖾𝗌𝗍\(n,ξ/2,δ\)m\\geq m\_\{\\mathsf\{Test\}\}\(n,\\xi/2,\\delta\), the tester𝖬𝖳𝖾𝗌𝗍𝖴𝗇𝗂𝖿Y\(ξ,δ,S\)\\mathsf\{MTestUnif\}\_\{Y\}\(\\xi,\\delta,S\)\(Algorithm[B](https://arxiv.org/html/2609.10886#A2)\) satisfies the following:
- •If𝒟=𝒟Y\\mathcal\{D\}=\\mathcal\{D\}\_\{Y\},𝖬𝖳𝖾𝗌𝗍𝖴𝗇𝗂𝖿Y\(ξ,δ,S\)\\mathsf\{MTestUnif\}\_\{Y\}\(\\xi,\\delta,S\)returns11with probability≥1−δ\\geq 1\-\\deltaoverS∼𝒟mS\\sim\\mathcal\{D\}^\{m\}\.
- •If𝖽𝖳𝖵\(𝒟,𝒟Y\)\>ξ\\mathsf\{d\_\{TV\}\}\(\\mathcal\{D\},\\mathcal\{D\}\_\{Y\}\)\>\\xi,𝖬𝖳𝖾𝗌𝗍𝖴𝗇𝗂𝖿Y\(ξ,δ,S\)\\mathsf\{MTestUnif\}\_\{Y\}\(\\xi,\\delta,S\)returns00with probability≥1−δ\\geq 1\-\\deltaoverS∼𝒟mS\\sim\\mathcal\{D\}^\{m\}\.
Algorithm 4\.Standard Uniformity Tester𝖳𝖾𝗌𝗍𝖴𝗇𝗂𝖿Y\(ξ,δ,S\)\\mathsf\{TestUnif\}\_\{Y\}\(\\xi,\\delta,S\)for a setYYwith input parametersξ,δ∈\(0,1\)\\xi,\\delta\\in\(0,1\)and sampleSS\[[12](https://arxiv.org/html/2609.10886#bib.bib15)\]\.1\.Letn=\|Y\|n=\|Y\|,ℓ=18ln\(2/δ\)\\ell=18\\ln\(2/\\delta\), andm′=\|S\|/ℓm^\{\\prime\}=\|S\|/\\ell\.2\.DivideSSintoℓ\\ellconsecutive sub\-samplesSi=\(xi1,…,xim′\),1≤i≤ℓS\_\{i\}=\(x\_\{i1\},\\ldots,x\_\{im^\{\\prime\}\}\),1\\leq i\\leq\\ell\.3\.Lettr=1\+2ξ2n\\textsc\{tr\}=\\frac\{1\+2\\xi^\{2\}\}\{n\}\.4\.For1≤i≤ℓ1\\leq i\\leq\\elldo:\(a\)LetZi=1\(m′2\)\|\{\(j,k\):j<k,xij=xik\}\|Z\_\{i\}=\\frac\{1\}\{\{m^\{\\prime\}\\choose 2\}\}\|\\\{\(j,k\):j<k,x\_\{ij\}=x\_\{ik\}\\\}\|\.\(b\)IfZi<trZ\_\{i\}<\\textsc\{tr\}then letacci=1\\textsc\{acc\}\_\{i\}=1, else letacci=0\\textsc\{acc\}\_\{i\}=0\.5\.If∑iacci≥ℓ/2\\sum\_\{i\}\\textsc\{acc\}\_\{i\}\\geq\\ell/2then return11, else return00\.Algorithm 5\.Modified uniformity tester𝖬𝖳𝖾𝗌𝗍𝖴𝗇𝗂𝖿Y\(ξ,δ,S\)\\mathsf\{MTestUnif\}\_\{Y\}\(\\xi,\\delta,S\)for setYYwith parameters\(ξ,δ\)∈\(0,1\)\(\\xi,\\delta\)\\in\(0,1\)and input sampleSS:1\.IfS⊆YS\\subseteq Ythen return𝖳𝖾𝗌𝗍𝖴𝗇𝗂𝖿Y\(ξ/2,δ,S\)\\mathsf\{TestUnif\}\_\{Y\}\(\\xi/2,\\delta,S\);⊳\\trianglerightAlgorithm[B](https://arxiv.org/html/2609.10886#A2)for testing against𝒟Y\\mathcal\{D\}\_\{Y\}2\.Else return 0\.### B\.1Proof of Lemma[5\.3](https://arxiv.org/html/2609.10886#S5.Thmtheorem3)
We prove that the the learner𝒜n,G\\mathcal\{A\}\_\{n,G\}and certifier𝒞n\\mathcal\{C\}\_\{n\}together witness the certifiable error rateϵn\(\.,\.\)\\epsilon\_\{n\}\(\.,\.\)\. In other words, we prove that the certifier𝒞n\\mathcal\{C\}\_\{n\}is sound for𝒜n,G\\mathcal\{A\}\_\{n,G\}and is never greater than the certifiable error rate\. Formally, we prove that for all distributions𝒟\\mathcal\{D\}and sample sizemm, we have
ϵ𝒜f\(𝒟,m\)≤𝔼S∼𝒟m\[𝒞n\(S\)\]≤ϵn\(𝒟,m\)\.\\epsilon\_\{\\mathcal\{A\}\_\{f\}\}\(\\mathcal\{D\},m\)\\leq\\mathop\{\\mathbb\{E\}\}\_\{S\\sim\\mathcal\{D\}^\{m\}\}\\\!\\left\[\\mathcal\{C\}\_\{n\}\(S\)\\right\]\\leq\\epsilon\_\{n\}\(\\mathcal\{D\},m\)\.\(5\)This holds trivially whenm<m\(n\)m<m\(n\), since we haveϵ𝒜n,G\(𝒟,m\)≤𝔼S∼𝒟m\[𝒞n\(S\)\]=ϵn\(𝒟,m\)=1\\epsilon\_\{\\mathcal\{A\}\_\{n,G\}\}\(\\mathcal\{D\},m\)\\leq\\mathop\{\\mathbb\{E\}\}\_\{S\\sim\\mathcal\{D\}^\{m\}\}\\\!\\left\[\\mathcal\{C\}\_\{n\}\(S\)\\right\]=\\epsilon\_\{n\}\(\\mathcal\{D\},m\)=1\.
Leth∗∈ℍ\(G\)h^\{\*\}\\in\\mathbb\{H\}\(G\)be the labeling function\. We will use the following guarantee throughout the proof to bound the error of𝒜n,G\\mathcal\{A\}\_\{n,G\}: for any distribution𝒟\\mathcal\{D\}, largennandm≥m\(n\)m\\geq m\(n\), we can conclude from a Chernoff and union bound that
ℙS∼𝒟h∗m\[∃h∈\{fn,gn,h𝟏,h𝟎\},\|L\(h,S\)−L\(h,𝒟h∗\)\|\>ξ\(n\)\]≤6exp\(−mξ\(n\)2\)≤ξ\(n\),\\mathop\{\\mathbb\{P\}\}\_\{S\\sim\\mathcal\{D\}\_\{h^\{\*\}\}^\{m\}\}\\\!\\left\[\\exists h\\in\\\{f\_\{n,g\_\{n\}\},h\_\{\\mathbf\{1\}\},h\_\{\\mathbf\{0\}\}\\\},\\,\\left\|L\(h,S\)\-L\(h,\\mathcal\{D\}\_\{h^\{\*\}\}\)\\right\|\>\\xi\(n\)\\right\]\\leq 6\\exp\\left\(\-m\\xi\(n\)^\{2\}\\right\)\\leq\\xi\(n\),\(6\)where the last inequality is due to the fact that for largemm, we havem≥ln\(6/ξ\(n\)\)ξ\(n\)2m\\geq\\frac\{\\ln\(6/\\xi\(n\)\)\}\{\\xi\(n\)^\{2\}\}\.
We consider three cases based on the underlying distribution𝒟\\mathcal\{D\}and use the following guarantee for𝖬𝖳𝖾𝗌𝗍𝖴𝗇𝗂𝖿\\mathsf\{MTestUnif\}to bound the expected value of the certifier𝒞n\\mathcal\{C\}\_\{n\}; see\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\]for a proof\. We will assume thatnnis always larger than the constant in the lemma for the rest of the proof\.
###### Lemma B\.2\(Lemma C\.6 of\[[10](https://arxiv.org/html/2609.10886#bib.bib3)\]\)\.
There exists an absolute constantC1=C1\(β\)∈ℕC\_\{1\}=C\_\{1\}\(\\beta\)\\in\\mathbb\{N\}such that for anyn≥C1\(β\)n\\geq C\_\{1\}\(\\beta\), we have for anym≥m\(n\)m\\geq m\(n\),
- •If𝒟=𝒟\(n\)\\mathcal\{D\}=\\mathcal\{D\}\(n\),𝖬𝖳𝖾𝗌𝗍𝖴𝗇𝗂𝖿𝒳n\(ξ\(n\),ξ\(n\),S\)\\mathsf\{MTestUnif\}\_\{\\mathcal\{X\}\_\{n\}\}\(\\xi\(n\),\\xi\(n\),S\)returns11with probability at least1−ξ\(n\)1\-\\xi\(n\)overS∼𝒟mS\\sim\\mathcal\{D\}^\{m\}\.
- •If𝖽𝖳𝖵\(𝒟,𝒟\(n\)\)\>ξ\(n\)\\mathsf\{d\_\{TV\}\}\(\\mathcal\{D\},\\mathcal\{D\}\(n\)\)\>\\xi\(n\),𝖬𝖳𝖾𝗌𝗍𝖴𝗇𝗂𝖿𝒳n\(ξ\(n\),ξ\(n\),S\)\\mathsf\{MTestUnif\}\_\{\\mathcal\{X\}\_\{n\}\}\(\\xi\(n\),\\xi\(n\),S\)returns00with probability at least1−ξ\(n\)1\-\\xi\(n\)overS∼𝒟mS\\sim\\mathcal\{D\}^\{m\}\.
We now discuss each case for𝒟\\mathcal\{D\}separately\.
1. 1\.𝒟=𝒟\(n\)\\mathcal\{D\}=\\mathcal\{D\}\(n\)\. We first upper bound the error of𝒞n\\mathcal\{C\}\_\{n\}and show it is never larger thanϵn\(𝒟\(n\),m\)=6ξ\(n\)\\epsilon\_\{n\}\(\\mathcal\{D\}\(n\),m\)=6\\xi\(n\)\. We know from Lemma[B\.2](https://arxiv.org/html/2609.10886#A2.Thmtheorem2)that with probability at least1−ξ\(n\)1\-\\xi\(n\)overS∼𝒟mS\\sim\\mathcal\{D\}^\{m\},𝖬𝖳𝖾𝗌𝗍𝖴𝗇𝗂𝖿S\(ξ\(n\),ξ\(n\),S\)\\mathsf\{MTestUnif\}\_\{S\}\(\\xi\(n\),\\xi\(n\),S\)accepts the underlying distribution as𝒟S\\mathcal\{D\}\_\{S\}and thusO=1O=1\. Therefore, we have𝔼S∼𝒟m\[𝒞S\(T\)\]≤ξ\(n\)\+5ξ\(n\)=6ξ\(n\)\\mathop\{\\mathbb\{E\}\}\_\{S\\sim\\mathcal\{D\}^\{m\}\}\\\!\\left\[\\mathcal\{C\}\_\{S\}\(T\)\\right\]\\leq\\xi\(n\)\+5\\xi\(n\)=6\\xi\(n\)\. We now upper bound the error of the learner𝒜n,G\\mathcal\{A\}\_\{n,G\}\. Two possibilities can happen: eitherh∗∈ℋ\(n,G\)h^\{\*\}\\in\\mathcal\{H\}\(n,G\)orh∗∉ℋ\(n,G\)h^\{\*\}\\notin\\mathcal\{H\}\(n,G\)\. In the first possibility, eitherh∗=fn,gnh^\{\*\}=f\_\{n,g\_\{n\}\}in which casefn,gnf\_\{n,g\_\{n\}\}has zero error orh∗∈ℋ\(n\)h^\{\*\}\\in\\mathcal\{H\}\(n\)in which case the probability of the minority label ofh∗h^\{\*\}isξ\(n\)\\xi\(n\)and eitherh𝟏h\_\{\\mathbf\{1\}\}orh𝟎h\_\{\\mathbf\{0\}\}will have error at mostξ\(n\)\\xi\(n\)on𝒟\\mathcal\{D\}\. In the second possibility whereh∗∉ℋ\(n,G\)h^\{\*\}\\notin\\mathcal\{H\}\(n,G\)we know thath∗\(x\)=1h^\{\*\}\(x\)=1for allx∈𝒳nx\\in\\mathcal\{X\}\_\{n\}\. Hence,𝒟\[\{x:h∗\(x\)=1\}\]=1\\mathcal\{D\}\[\\\{x:h^\{\*\}\(x\)=1\\\}\]=1and therefore𝒟\[\{x:h∗\(x\)≠h𝟏\(x\)\}\]=0\\mathcal\{D\}\[\\\{x:h^\{\*\}\(x\)\\neq h\_\{\\mathbf\{1\}\}\(x\)\\\}\]=0andh𝟏h\_\{\\mathbf\{1\}\}will have zero error\. Leth^∈argminh∈\{fn,gn,h𝟏,h𝟎\}L\(h,𝒟h∗\)\\widehat\{h\}\\in\\arg\\mathop\{min\}\_\{h\\in\\\{f\_\{n,g\_\{n\}\},h\_\{\\mathbf\{1\}\},h\_\{\\mathbf\{0\}\}\\\}\}L\(h,\\mathcal\{D\}\_\{h^\{\*\}\}\)\. We showed that in both cases forh∗h^\{\*\}, there exists someh∈\{fn,gn,h𝟏,h𝟎\}h\\in\\\{f\_\{n,g\_\{n\}\},h\_\{\\mathbf\{1\}\},h\_\{\\mathbf\{0\}\}\\\}such thatL\(h,𝒟h∗\)≤ξ\(n\)L\(h,\\mathcal\{D\}\_\{h^\{\*\}\}\)\\leq\\xi\(n\)\. This implies thatL\(h^,𝒟h∗\)≤ξ\(n\)L\(\\widehat\{h\},\\mathcal\{D\}\_\{h^\{\*\}\}\)\\leq\\xi\(n\)\. From Equation[6](https://arxiv.org/html/2609.10886#A2.E6)and since𝒜n,G\(S\)∈argminh∈\{fn,gn,h𝟏,h𝟎\}L\(h,S\)\\mathcal\{A\}\_\{n,G\}\(S\)\\in\\arg\\mathop\{min\}\_\{h\\in\\\{f\_\{n,g\_\{n\}\},h\_\{\\mathbf\{1\}\},h\_\{\\mathbf\{0\}\}\\\}\}L\(h,S\), we get with probability at least1−ξ\(n\)1\-\\xi\(n\)overS∼𝒟mS\\sim\\mathcal\{D\}^\{m\}that L\(𝒜n,G\(S\),𝒟h∗\)≤L\(𝒜n,G\(S\),S\)\+ξ\(n\)≤L\(h^,S\)\+ξ\(n\)≤L\(h^,𝒟h∗\)\+2ξ\(n\)≤3ξ\(n\)\.L\(\\mathcal\{A\}\_\{n,G\}\(S\),\\mathcal\{D\}\_\{h^\{\*\}\}\)\\leq L\(\\mathcal\{A\}\_\{n,G\}\(S\),S\)\+\\xi\(n\)\\leq L\(\\widehat\{h\},S\)\+\\xi\(n\)\\leq L\(\\widehat\{h\},\\mathcal\{D\}\_\{h^\{\*\}\}\)\+2\\xi\(n\)\\leq 3\\xi\(n\)\.Therefore, noting that𝒞n\(S\)≥5ξ\(n\)\\mathcal\{C\}\_\{n\}\(S\)\\geq 5\\xi\(n\)for allSS, we get that ϵ𝒜S\(𝒟S,m\)=suph∗∈ℋ𝔼S∼𝒟h∗m\[L\(𝒜n,G\(S\),𝒟h∗\)\]≤4ξ\(n\)≤𝔼T∼𝒟m\[𝒞S\(T\)\]≤6ξ\(n\)=ϵn\(𝒟S,m\)\.\\epsilon\_\{\\mathcal\{A\}\_\{S\}\}\(\\mathcal\{D\}\_\{S\},m\)=\\sup\_\{h^\{\*\}\\in\\mathcal\{H\}\}\\mathop\{\\mathbb\{E\}\}\_\{S\\sim\\mathcal\{D\}\_\{h^\{\*\}\}^\{m\}\}\\\!\\left\[L\(\\mathcal\{A\}\_\{n,G\}\(S\),\\mathcal\{D\}\_\{h^\{\*\}\}\)\\right\]\\leq 4\\xi\(n\)\\leq\\mathop\{\\mathbb\{E\}\}\_\{T\\sim\\mathcal\{D\}^\{m\}\}\\\!\\left\[\\mathcal\{C\}\_\{S\}\(T\)\\right\]\\leq 6\\xi\(n\)=\\epsilon\_\{n\}\(\\mathcal\{D\}\_\{S\},m\)\.
2. 2\.𝖽𝖳𝖵\(𝒟,𝒟S\)≤ξ\(n\)\\mathsf\{d\_\{TV\}\}\(\\mathcal\{D\},\\mathcal\{D\}\_\{S\}\)\\leq\\xi\(n\)\. In this case, we show that the error of the certifier can still bound the error of the learner\. We consider the two possibilities that can happen:h∗=fn,gnh^\{\*\}=f\_\{n,g\_\{n\}\}orh∗∈ℍ\(G\)∖\{fn,gn\}h^\{\*\}\\in\\mathbb\{H\}\(G\)\\setminus\\\{f\_\{n,g\_\{n\}\}\\\}\. In the first possibility, we haveL\(fn,gn,𝒟h∗\)=0L\(f\_\{n,g\_\{n\}\},\\mathcal\{D\}\_\{h^\{\*\}\}\)=0\. In the second possibility, letbbdenote the majority label ofh∗h^\{\*\}under𝒟\\mathcal\{D\}and letp=𝒟\[\{x∈𝒳:h∗\(x\)=b\}\]p=\\mathcal\{D\}\[\\\{x\\in\\mathcal\{X\}:h^\{\*\}\(x\)=b\\\}\]\. Sinceh∗≠fn,gnh^\{\*\}\\neq f\_\{n,g\_\{n\}\}, we either haveh∗∈ℋ\(n\)h^\{\*\}\\in\\mathcal\{H\}\(n\)orh∗∉ℋ\(n\)h^\{\*\}\\notin\\mathcal\{H\}\(n\)\. Since𝖽𝖳𝖵\(𝒟,𝒟\(n\)\)≤ξ\(n\)\\mathsf\{d\_\{TV\}\}\(\\mathcal\{D\},\\mathcal\{D\}\(n\)\)\\leq\\xi\(n\), we observe that forb=1b=1, ifh∗∈ℋ\(n\)h^\{\*\}\\in\\mathcal\{H\}\(n\), we have𝒟\(n\)\[\{x∈𝒳n:h∗\(x\)=1\}\]=1−ξ\(n\)\\mathcal\{D\}\(n\)\[\\\{x\\in\\mathcal\{X\}\_\{n\}:h^\{\*\}\(x\)=1\\\}\]=1\-\\xi\(n\)and hencep≥1−2ξ\(n\)p\\geq 1\-2\\xi\(n\)\. This is due to the fact that if by the sake of contradiction, we assume forh∗h^\{\*\}we have𝒟\(n\)\[\{x∈𝒳n:h∗\(x\)=1\}\]=ξ\(n\)\\mathcal\{D\}\(n\)\[\\\{x\\in\\mathcal\{X\}\_\{n\}:h^\{\*\}\(x\)=1\\\}\]=\\xi\(n\), then we would getp<2ξ\(n\)<1/2p<2\\xi\(n\)<1/2, which is a contradiction tob=1b=1being the majority label\. Ifh∗∉ℋ\(n\)h^\{\*\}\\notin\\mathcal\{H\}\(n\), we have𝒟\(n\)\[\{x∈𝒳n:h∗\(x\)=1\}\]=1\\mathcal\{D\}\(n\)\[\\\{x\\in\\mathcal\{X\}\_\{n\}:h^\{\*\}\(x\)=1\\\}\]=1andp≥1−ξ\(n\)p\\geq 1\-\\xi\(n\)\. On the other hand, ifb=0b=0, we haveh∗∈ℋ\(n\)h^\{\*\}\\in\\mathcal\{H\}\(n\)\. To see this, assume by the sake of contradiction thath∗∉ℋ\(n\)h^\{\*\}\\notin\\mathcal\{H\}\(n\)\. Then we get that𝒟\(n\)\[\{x∈𝒳n:h∗\(x\)=0\}\]=0\\mathcal\{D\}\(n\)\[\\\{x\\in\\mathcal\{X\}\_\{n\}:h^\{\*\}\(x\)=0\\\}\]=0and thus𝒟\[\{x∈𝒳n:h∗\(x\)=0\}\]≤ξ\(n\)<1/2\\mathcal\{D\}\[\\\{x\\in\\mathcal\{X\}\_\{n\}:h^\{\*\}\(x\)=0\\\}\]\\leq\\xi\(n\)<1/2which is a contradiction to00being the majority label\. Therefore,𝒟\(n\)\[\{x∈𝒳n:h∗\(x\)=0\}\]=1−ξ\(n\)\\mathcal\{D\}\(n\)\[\\\{x\\in\\mathcal\{X\}\_\{n\}:h^\{\*\}\(x\)=0\\\}\]=1\-\\xi\(n\)andp≥1−2ξ\(n\)p\\geq 1\-2\\xi\(n\)\. Thus, in the second possibility we always have that1−2ξ\(n\)≤p≤11\-2\\xi\(n\)\\leq p\\leq 1\. Moreover, observe thatL\(h𝟏,𝒟h∗\)=𝒟\[\{x:h∗\(x\)≠1\}\]L\(h\_\{\\mathbf\{1\}\},\\mathcal\{D\}\_\{h^\{\*\}\}\)=\\mathcal\{D\}\[\\\{x:h^\{\*\}\(x\)\\neq 1\\\}\]andL\(h𝟎,𝒟h∗\)=𝒟\[\{x:h∗\(x\)≠0\}\]L\(h\_\{\\mathbf\{0\}\},\\mathcal\{D\}\_\{h^\{\*\}\}\)=\\mathcal\{D\}\[\\\{x:h^\{\*\}\(x\)\\neq 0\\\}\]\. Therefore, in the second possibility we haveminh∈\{h𝟏,h𝟎\}L\(h,𝒟h∗\)≤1−p≤2ξ\(n\)\\mathop\{min\}\_\{h\\in\\\{h\_\{\\mathbf\{1\}\},h\_\{\\mathbf\{0\}\}\\\}\}L\(h,\\mathcal\{D\}\_\{h^\{\*\}\}\)\\leq 1\-p\\leq 2\\xi\(n\)\. We proved that in any case, we haveL\(h^,𝒟h∗\)≤2ξ\(n\)L\(\\widehat\{h\},\\mathcal\{D\}\_\{h^\{\*\}\}\)\\leq 2\\xi\(n\)forh^∈argminh∈\{fn,gn,h𝟏,h𝟎\}L\(h^,𝒟h∗\)\\widehat\{h\}\\in\\mathop\{argmin\}\_\{h\\in\\\{f\_\{n,g\_\{n\}\},h\_\{\\mathbf\{1\}\},h\_\{\\mathbf\{0\}\}\\\}\}L\(\\widehat\{h\},\\mathcal\{D\}\_\{h^\{\*\}\}\)\. Similar to the previous case, from𝒜n,G\(S\)∈argminh∈\{fn,gn,h𝟏,h𝟎\}L\(h,S\)\\mathcal\{A\}\_\{n,G\}\(S\)\\in\\arg\\mathop\{min\}\_\{h\\in\\\{f\_\{n,g\_\{n\}\},h\_\{\\mathbf\{1\}\},h\_\{\\mathbf\{0\}\}\\\}\}L\(h,S\)and Equation[6](https://arxiv.org/html/2609.10886#A2.E6), we get with probability at least1−ξ\(n\)1\-\\xi\(n\)overS∼𝒟mS\\sim\\mathcal\{D\}^\{m\}thatL\(𝒜n,G\(S\),𝒟h∗\)≤L\(h^,𝒟h∗\)\+2ξ\(n\)≤4ξ\(n\)L\(\\mathcal\{A\}\_\{n,G\}\(S\),\\mathcal\{D\}\_\{h^\{\*\}\}\)\\leq L\(\\widehat\{h\},\\mathcal\{D\}\_\{h^\{\*\}\}\)\+2\\xi\(n\)\\leq 4\\xi\(n\)\. Since𝒞n\(S\)≥5ξ\(n\)\\mathcal\{C\}\_\{n\}\(S\)\\geq 5\\xi\(n\)for allSS, we get that ϵ𝒜S\(𝒟S,m\)=suph∗∈ℋ𝔼S∼𝒟h∗m\[L\(𝒜n,G\(S\),𝒟h∗\)\]≤5ξ\(n\)≤𝔼T∼𝒟m\[𝒞S\(T\)\]≤ϵn\(𝒟S,m\)=1\.\\epsilon\_\{\\mathcal\{A\}\_\{S\}\}\(\\mathcal\{D\}\_\{S\},m\)=\\sup\_\{h^\{\*\}\\in\\mathcal\{H\}\}\\mathop\{\\mathbb\{E\}\}\_\{S\\sim\\mathcal\{D\}\_\{h^\{\*\}\}^\{m\}\}\\\!\\left\[L\(\\mathcal\{A\}\_\{n,G\}\(S\),\\mathcal\{D\}\_\{h^\{\*\}\}\)\\right\]\\leq 5\\xi\(n\)\\leq\\mathop\{\\mathbb\{E\}\}\_\{T\\sim\\mathcal\{D\}^\{m\}\}\\\!\\left\[\\mathcal\{C\}\_\{S\}\(T\)\\right\]\\leq\\epsilon\_\{n\}\(\\mathcal\{D\}\_\{S\},m\)=1\.
3. 3\.𝖽𝖳𝖵\(𝒟,𝒟\(n\)\)\>ξ\(n\)\\mathsf\{d\_\{TV\}\}\(\\mathcal\{D\},\\mathcal\{D\}\(n\)\)\>\\xi\(n\)\.In this case, we can invoke Lemma[B\.2](https://arxiv.org/html/2609.10886#A2.Thmtheorem2)to get that with probability at least1−ξ\(n\)1\-\\xi\(n\)overS∼𝒟mS\\sim\\mathcal\{D\}^\{m\},𝖬𝖳𝖾𝗌𝗍𝖴𝗇𝗂𝖿𝒳n\(ξ\(n\),ξ\(n\),S\)\\mathsf\{MTestUnif\}\_\{\\mathcal\{X\}\_\{n\}\}\(\\xi\(n\),\\xi\(n\),S\)\(Algorithm[B](https://arxiv.org/html/2609.10886#A2)\) rejects and outputs00\. Therefore,𝒞n\\mathcal\{C\}\_\{n\}outputs11with probability at least1−ξ\(n\)1\-\\xi\(n\)and𝔼S∼𝒟m\[𝒞𝖬𝖺𝗃,n\(S\)\]≥1−ξ\(n\)\\mathop\{\\mathbb\{E\}\}\_\{S\\sim\\mathcal\{D\}^\{m\}\}\\\!\\left\[\\mathcal\{C\}\_\{\\mathsf\{Maj\},n\}\(S\)\\right\]\\geq 1\-\\xi\(n\)\. Letbbdenote the majority label of labeling functionh∗∈ℍh^\{\*\}\\in\\mathbb\{H\}under distribution𝒟\\mathcal\{D\}and denotep:=𝒟\[\{x:h∗\(x\)=b\}\]≥1/2p:=\\mathcal\{D\}\[\\\{x:h^\{\*\}\(x\)=b\\\}\]\\geq 1/2\. SinceL\(h𝟏,𝒟h∗\)=𝒟\[\{x:h∗\(x\)≠1\}\]L\(h\_\{\\mathbf\{1\}\},\\mathcal\{D\}\_\{h^\{\*\}\}\)=\\mathcal\{D\}\[\\\{x:h^\{\*\}\(x\)\\neq 1\\\}\]andL\(h𝟎,𝒟h∗\)=𝒟\[\{x:h∗\(x\)≠0\}\]L\(h\_\{\\mathbf\{0\}\},\\mathcal\{D\}\_\{h^\{\*\}\}\)=\\mathcal\{D\}\[\\\{x:h^\{\*\}\(x\)\\neq 0\\\}\], we have thatL\(h^,𝒟h∗\)≤1−p≤1/2L\(\\widehat\{h\},\\mathcal\{D\}\_\{h^\{\*\}\}\)\\leq 1\-p\\leq 1/2forh^∈argminh∈\{fn,gn,h𝟏,h𝟎\}L\(h,𝒟h∗\)\\widehat\{h\}\\in\\arg\\mathop\{min\}\_\{h\\in\\\{f\_\{n,g\_\{n\}\},h\_\{\\mathbf\{1\}\},h\_\{\\mathbf\{0\}\}\\\}\}L\(h,\\mathcal\{D\}\_\{h^\{\*\}\}\)\. Therefore, similar to the analysis in the previous case, we get with probability at least1−ξ\(n\)1\-\\xi\(n\)overS∼𝒟mS\\sim\\mathcal\{D\}^\{m\}thatL\(𝒜n,G\(S\),𝒟h∗\)≤L\(h^,𝒟h∗\)\+2ξ\(n\)≤1/2\+2ξ\(n\)L\(\\mathcal\{A\}\_\{n,G\}\(S\),\\mathcal\{D\}\_\{h^\{\*\}\}\)\\leq L\(\\widehat\{h\},\\mathcal\{D\}\_\{h^\{\*\}\}\)\+2\\xi\(n\)\\leq 1/2\+2\\xi\(n\)\. Hence, we get that ϵ𝒜S\(𝒟S,m\)=suph∗∈ℋ𝔼S∼𝒟h∗m\[L\(𝒜n,G\(S\),𝒟h∗\)\]≤12\+3ξ\(n\)≤𝔼T∼𝒟m\[𝒞S\(T\)\]≤ϵn\(𝒟S,m\)=1,\\epsilon\_\{\\mathcal\{A\}\_\{S\}\}\(\\mathcal\{D\}\_\{S\},m\)=\\sup\_\{h^\{\*\}\\in\\mathcal\{H\}\}\\mathop\{\\mathbb\{E\}\}\_\{S\\sim\\mathcal\{D\}\_\{h^\{\*\}\}^\{m\}\}\\\!\\left\[L\(\\mathcal\{A\}\_\{n,G\}\(S\),\\mathcal\{D\}\_\{h^\{\*\}\}\)\\right\]\\leq\\frac\{1\}\{2\}\+3\\xi\(n\)\\leq\\mathop\{\\mathbb\{E\}\}\_\{T\\sim\\mathcal\{D\}^\{m\}\}\\\!\\left\[\\mathcal\{C\}\_\{S\}\(T\)\\right\]\\leq\\epsilon\_\{n\}\(\\mathcal\{D\}\_\{S\},m\)=1,where we used the fact that1/2\+3ξ\(n\)≤1−ξ\(n\)1/2\+3\\xi\(n\)\\leq 1\-\\xi\(n\)for largenn\. ∎
### B\.2Proof of Lemma[5\.4](https://arxiv.org/html/2609.10886#S5.Thmtheorem4)
We will use the following lemma in the proof of Lemma[5\.4](https://arxiv.org/html/2609.10886#S5.Thmtheorem4)to bound the size of subsets of boolean cube that have bounded*diameter*\.
###### Lemma B\.3\.
Letℱ⊆\{0,1\}d\\mathcal\{F\}\\subseteq\\\{0,1\\\}^\{d\}\. For anyf,f′∈ℱf,f^\{\\prime\}\\in\\mathcal\{F\}, definefΔf′=\{i∈\[d\]:f\(i\)≠f′\(i\)\}f\\Delta f^\{\\prime\}=\\\{i\\in\[d\]:f\(i\)\\neq f^\{\\prime\}\(i\)\\\}and denote𝖽𝗂𝖺𝗆\(ℱ\)=maxf,f′\|fΔf′\|\\mathsf\{diam\}\(\\mathcal\{F\}\)=\\mathop\{max\}\_\{f,f^\{\\prime\}\}\|f\\Delta f^\{\\prime\}\|\. Assume that𝖽𝗂𝖺𝗆\(ℱ\)≤d−r−1\\mathsf\{diam\}\(\\mathcal\{F\}\)\\leq d\-r\-1for some integerrr\. Then, we have
\|ℱ\|2d≤exp\(−r22d\)\.\\frac\{\|\\mathcal\{F\}\|\}\{2^\{d\}\}\\leq\\exp\\left\(\-\\frac\{r^\{2\}\}\{2d\}\\right\)\.
###### Proof\.
We know from\[[19](https://arxiv.org/html/2609.10886#bib.bib2)\]that the bound2k2kon the diameter ofℱ\\mathcal\{F\}implies
\|ℱ\|≤∑j=0k\(dj\)\.\|\\mathcal\{F\}\|\\leq\\sum\_\{j=0\}^\{k\}\{d\\choose j\}\.Letk=⌊d−r2⌋k=\\left\\lfloor\\frac\{d\-r\}\{2\}\\right\\rfloor\. Since𝖽𝗂𝖺𝗆\(ℱ\)≤d−r−1\\mathsf\{diam\}\(\\mathcal\{F\}\)\\leq d\-r\-1, we can apply the above bound to conclude that
\|ℱ\|≤∑j=0⌊\(d−r\)/2⌋\(dj\)\.\|\\mathcal\{F\}\|\\leq\\sum\_\{j=0\}^\{\\lfloor\(d\-r\)/2\\rfloor\}\{d\\choose j\}\.LetZZdenote the random variable that is the sum ofddrandom bits\. It is easy to observe that
\|ℱ\|2d\\displaystyle\\frac\{\|\\mathcal\{F\}\|\}\{2^\{d\}\}≤12d∑j=0⌊\(d−r\)/2⌋\(dj\)\\displaystyle\\leq\\frac\{1\}\{2^\{d\}\}\\sum\_\{j=0\}^\{\\lfloor\(d\-r\)/2\\rfloor\}\{d\\choose j\}=ℙ\[Z≤⌊d−r2⌋\]\\displaystyle=\\mathop\{\\mathop\{\\mathbb\{P\}\}\}\\\!\\left\[Z\\leq\\left\\lfloor\\frac\{d\-r\}\{2\}\\right\\rfloor\\right\]≤ℙ\[Z≤d−r2\]\\displaystyle\\leq\\mathop\{\\mathop\{\\mathbb\{P\}\}\}\\\!\\left\[Z\\leq\\frac\{d\-r\}\{2\}\\right\]=ℙ\[Z−d2≤−r2\]\.\\displaystyle=\\mathop\{\\mathop\{\\mathbb\{P\}\}\}\\\!\\left\[Z\-\\frac\{d\}\{2\}\\leq\-\\frac\{r\}\{2\}\\right\]\.Since𝔼\[Z\]=d/2\\mathop\{\\mathop\{\\mathbb\{E\}\}\}\\\!\\left\[Z\\right\]=d/2we can apply a Hoeffding’s bound to get that
\|ℱ\|2d≤ℙ\[Z−d2≤−r2\]≤exp\(−2\(r/2\)2d\)=exp\(−r22d\)\.\\frac\{\|\\mathcal\{F\}\|\}\{2^\{d\}\}\\leq\\mathop\{\\mathop\{\\mathbb\{P\}\}\}\\\!\\left\[Z\-\\frac\{d\}\{2\}\\leq\-\\frac\{r\}\{2\}\\right\]\\leq\\exp\\left\(\-\\frac\{2\(r/2\)^\{2\}\}\{d\}\\right\)=\\exp\\left\(\-\\frac\{r^\{2\}\}\{2d\}\\right\)\.∎
We now restate Lemma[5\.4](https://arxiv.org/html/2609.10886#S5.Thmtheorem4)and prove it\. See[5\.4](https://arxiv.org/html/2609.10886#S5.Thmtheorem4)
###### Proof\.
Sincefn,gnf\_\{n,g\_\{n\}\}and everyh∈ℋ\(n\)h\\in\\mathcal\{H\}\(n\)agree outside𝒳n\\mathcal\{X\}\_\{n\}, we know for everyh∈ℋ\(n\)h\\in\\mathcal\{H\}\(n\)that
CT:=\|\{\(x,y\)∈T:x∉𝒳n,h\(x\)≠y\}\|=\|\{\(x,y\)∈T:x∉𝒳n,fn,gn\(x\)≠y\}\|\.C\_\{T\}:=\|\\\{\(x,y\)\\in T:x\\notin\\mathcal\{X\}\_\{n\},\\,h\(x\)\\neq y\\\}\|=\|\\\{\(x,y\)\\in T:x\\notin\\mathcal\{X\}\_\{n\},\\,f\_\{n,g\_\{n\}\}\(x\)\\neq y\\\}\|\.For anyx∈𝒳nx\\in\\mathcal\{X\}\_\{n\}andb∈\{0,1\}b\\in\\\{0,1\\\}, define
NbT\(x\)=\|\{\(x′,y\)∈T:x′=x,y=b\}\|,N\_\{b\}^\{T\}\(x\)=\\left\|\\\{\(x^\{\\prime\},y\)\\in T:x^\{\\prime\}=x,\\ y=b\\\}\\right\|,and letqT\(x\):=N1T\(x\)−N0T\(x\)q\_\{T\}\(x\):=N\_\{1\}^\{T\}\(x\)\-N\_\{0\}^\{T\}\(x\)\. We can verify that for everyh∈ℋ\(n\)h\\in\\mathcal\{H\}\(n\),
L\(h,T\)=1TCT\+1T∑x∈𝒳nN1−h\(x\)T\(x\)=1\|T\|∑x∈𝒳nN1T\(x\)−1T∑x∈𝒳nqT\(x\)h\(x\)\+1TCT\.L\(h,T\)=\\frac\{1\}\{T\}C\_\{T\}\+\\frac\{1\}\{T\}\\sum\_\{x\\in\\mathcal\{X\}\_\{n\}\}N\_\{1\-h\(x\)\}^\{T\}\(x\)=\\frac\{1\}\{\|T\|\}\\sum\_\{x\\in\\mathcal\{X\}\_\{n\}\}N\_\{1\}^\{T\}\(x\)\-\\frac\{1\}\{T\}\\sum\_\{x\\in\\mathcal\{X\}\_\{n\}\}q\_\{T\}\(x\)h\(x\)\+\\frac\{1\}\{T\}C\_\{T\}\.Therefore,
L\(fn,gn,T\)<minh∈ℋ\(n\)L\(h,T\)L\(f\_\{n,g\_\{n\}\},T\)<\\mathop\{min\}\_\{h\\in\\mathcal\{H\}\(n\)\}L\(h,T\)if and only if
∑x∈𝒳nqT\(x\)gn\(x\)\>maxh∈ℋ\(n\)∑x∈𝒳nqT\(x\)h\(x\)\.\\sum\_\{x\\in\\mathcal\{X\}\_\{n\}\}q\_\{T\}\(x\)g\_\{n\}\(x\)\>\\mathop\{max\}\_\{h\\in\\mathcal\{H\}\(n\)\}\\sum\_\{x\\in\\mathcal\{X\}\_\{n\}\}q\_\{T\}\(x\)h\(x\)\.\(7\)
Now letV:=𝒳n∖S0V:=\\mathcal\{X\}\_\{n\}\\setminus S\_\{0\}, and note that\|V\|=n−s\|V\|=n\-s\. Conditioned ongn\|S0=ag\_\{n\}\|\_\{S\_\{0\}\}=a, the restrictiongn\|Vg\_\{n\}\|Vis uniformly random over\{0,1\}V\\\{0,1\\\}^\{V\}\. Define
ET,a=\{z∈\{0,1\}V:∑x∈S0qT\(x\)a\(x\)\+∑x∈VqT\(x\)z\(x\)\>maxh∈ℋ\(n\)∑x∈𝒳nqT\(x\)h\(x\)\}\.E\_\{T,a\}=\\left\\\{z\\in\\\{0,1\\\}^\{V\}:\\sum\_\{x\\in S\_\{0\}\}q\_\{T\}\(x\)a\(x\)\+\\sum\_\{x\\in V\}q\_\{T\}\(x\)z\(x\)\>\\mathop\{max\}\_\{h\\in\\mathcal\{H\}\(n\)\}\\sum\_\{x\\in\\mathcal\{X\}\_\{n\}\}q\_\{T\}\(x\)h\(x\)\\right\\\}\.and observe that
ℙgn\[L\(fn,gn,T\)<minh∈ℋ\(n\)L\(h,T\)\|gn\|S0=a\]=\|ET,a\|2n−s\.\\mathop\{\\mathbb\{P\}\}\_\{g\_\{n\}\}\\\!\\left\[L\(f\_\{n,g\_\{n\}\},T\)<\\mathop\{min\}\_\{h\\in\\mathcal\{H\}\(n\)\}L\(h,T\)\\,\\middle\|\\,g\_\{n\}\|\{S\_\{0\}\}=a\\right\]=\\frac\{\|E\_\{T,a\}\|\}\{2^\{n\-s\}\}\.
We therefore bound\|ET,a\|2n−s\\frac\{\|E\_\{T,a\}\|\}\{2^\{n\-s\}\}\.
For everyz,z′∈\{0,1\}Vz,z^\{\\prime\}\\in\\\{0,1\\\}^\{V\}define their disagreement aszΔz′=\{x∈V:z\(x\)≠z′\(x\)\}z\\Delta z^\{\\prime\}=\\\{x\\in V:z\(x\)\\neq z^\{\\prime\}\(x\)\\\}\. Denote𝖽𝗂𝖺𝗆\(ET,a\)=maxz,z′∈ET,a\|zΔz′\|\\mathsf\{diam\}\(E\_\{T,a\}\)=\\mathop\{max\}\_\{z,z^\{\\prime\}\\in E\_\{T,a\}\}\|z\\Delta z^\{\\prime\}\|\.
We claim that𝖽𝗂𝖺𝗆\(ET,a\)<n−M\(n\)\\mathsf\{diam\}\(E\_\{T,a\}\)<n\-M\(n\)\. Assume for the sake of contradiction that there existz,z′∈ET,az,z^\{\\prime\}\\in E\_\{T,a\}such that\|zΔz′\|≥n−M\(n\)\|z\\Delta z^\{\\prime\}\|\\geq n\-M\(n\)\. LetJ=\{x∈V:z\(x\)=z′\(x\)\}J=\\\{x\\in V:z\(x\)=z^\{\\prime\}\(x\)\\\}and note that
\|J\|=\|V\|−\|zΔz′\|=\(n−s\)−\|zΔz′\|≤M\(n\)−s\.\|J\|=\|V\|\-\|z\\Delta z^\{\\prime\}\|=\(n\-s\)\-\|z\\Delta z^\{\\prime\}\|\\leq M\(n\)\-s\.Letc,c′∈\{0,1\}𝒳nc,c^\{\\prime\}\\in\\\{0,1\\\}^\{\\mathcal\{X\}\_\{n\}\}be the labelings obtained by extendingz,z′z,z^\{\\prime\}withaaonS0S\_\{0\}\. Define two hypothesesh0,h1∈\{0,1\}𝒳h\_\{0\},h\_\{1\}\\in\\\{0,1\\\}^\{\\mathcal\{X\}\}as follows\. For anyx∉𝒳nx\\notin\\mathcal\{X\}\_\{n\},h0\(x\)=h1\(x\)=1h\_\{0\}\(x\)=h\_\{1\}\(x\)=1\. For any𝒳n\\mathcal\{X\}\_\{n\}, let
h0\(x\)=\{a\(x\),x∈S0,z\(x\),x∈J,0,x∈V∖J,andh1\(x\)=\{a\(x\),x∈S0,z\(x\),x∈J,1,x∈V∖J\.h\_\{0\}\(x\)=\\begin\{cases\}a\(x\),&x\\in S\_\{0\},\\\\ z\(x\),&x\\in J,\\\\ 0,&x\\in V\\setminus J,\\end\{cases\}\\qquad\\text\{and\}\\qquad h\_\{1\}\(x\)=\\begin\{cases\}a\(x\),&x\\in S\_\{0\},\\\\ z\(x\),&x\\in J,\\\\ 1,&x\\in V\\setminus J\.\\end\{cases\}We have\|\{x∈𝒳n:h0\(x\)=1\}\|≤\|S0\|\+\|J\|≤s\+\(M\(n\)−s\)=M\(n\)\|\\\{x\\in\\mathcal\{X\}\_\{n\}:h\_\{0\}\(x\)=1\\\}\|\\leq\|S\_\{0\}\|\+\|J\|\\leq s\+\(M\(n\)\-s\)=M\(n\), and henceh0∈ℋ\(1\)\(n\)h\_\{0\}\\in\\mathcal\{H\}^\{\(1\)\}\(n\)\. Similarly,h1∈ℋ\(0\)\(n\)h\_\{1\}\\in\\mathcal\{H\}^\{\(0\)\}\(n\)\. Therefore,h0,h1∈ℋ\(n\)h\_\{0\},h\_\{1\}\\in\\mathcal\{H\}\(n\)\.
Observe that based on the definition ofh0h\_\{0\}andh1h\_\{1\}, for anyx∈𝒳nx\\in\\mathcal\{X\}\_\{n\}we haveh0\(x\)=h1\(x\)h\_\{0\}\(x\)=h\_\{1\}\(x\)if and only ifc\(x\)=c′\(x\)c\(x\)=c^\{\\prime\}\(x\)\. Hence,h0\(x\)\+h1\(x\)=c\(x\)\+c′\(x\)h\_\{0\}\(x\)\+h\_\{1\}\(x\)=c\(x\)\+c^\{\\prime\}\(x\)for allx∈𝒳nx\\in\\mathcal\{X\}\_\{n\}and
12\(∑x∈𝒳nqT\(x\)h0\(x\)\+∑x∈𝒳nqT\(x\)h1\(x\)\)=12\(∑x∈𝒳nqT\(x\)c\(x\)\+∑x∈𝒳nqT\(x\)c′\(x\)\)\.\\frac\{1\}\{2\}\\left\(\\sum\_\{x\\in\\mathcal\{X\}\_\{n\}\}q\_\{T\}\(x\)h\_\{0\}\(x\)\+\\sum\_\{x\\in\\mathcal\{X\}\_\{n\}\}q\_\{T\}\(x\)h\_\{1\}\(x\)\\right\)=\\frac\{1\}\{2\}\\left\(\\sum\_\{x\\in\\mathcal\{X\}\_\{n\}\}q\_\{T\}\(x\)c\(x\)\+\\sum\_\{x\\in\\mathcal\{X\}\_\{n\}\}q\_\{T\}\(x\)c^\{\\prime\}\(x\)\\right\)\.Sincez,z′∈ET,az,z^\{\\prime\}\\in E\_\{T,a\}, we know∑x∈𝒳nqT\(x\)c\(x\)\>maxh∈ℋ\(n\)∑x∈𝒳nqT\(x\)h\(x\)\\sum\_\{x\\in\\mathcal\{X\}\_\{n\}\}q\_\{T\}\(x\)c\(x\)\>\\mathop\{max\}\_\{h\\in\\mathcal\{H\}\(n\)\}\\sum\_\{x\\in\\mathcal\{X\}\_\{n\}\}q\_\{T\}\(x\)h\(x\)and∑x∈𝒳nqT\(x\)c′\(x\)\>maxh∈ℋ\(n\)∑x∈𝒳nqT\(x\)h\(x\)\\sum\_\{x\\in\\mathcal\{X\}\_\{n\}\}q\_\{T\}\(x\)c^\{\\prime\}\(x\)\>\\mathop\{max\}\_\{h\\in\\mathcal\{H\}\(n\)\}\\sum\_\{x\\in\\mathcal\{X\}\_\{n\}\}q\_\{T\}\(x\)h\(x\), and hence
12\(∑x∈𝒳nqT\(x\)c\(x\)\+∑x∈𝒳nqT\(x\)c′\(x\)\)\>maxh∈ℋ\(n\)∑x∈𝒳nqT\(x\)h\(x\)\\frac\{1\}\{2\}\\left\(\\sum\_\{x\\in\\mathcal\{X\}\_\{n\}\}q\_\{T\}\(x\)c\(x\)\+\\sum\_\{x\\in\\mathcal\{X\}\_\{n\}\}q\_\{T\}\(x\)c^\{\\prime\}\(x\)\\right\)\>\\mathop\{max\}\_\{h\\in\\mathcal\{H\}\(n\)\}\\sum\_\{x\\in\\mathcal\{X\}\_\{n\}\}q\_\{T\}\(x\)h\(x\)On the other hand,h0,h1∈ℋ\(n\)h\_\{0\},h\_\{1\}\\in\\mathcal\{H\}\(n\)and we have
12\(∑x∈𝒳nqT\(x\)h0\(x\)\+∑x∈𝒳nqT\(x\)h1\(x\)\)≤maxh∈ℋ\(n\)∑x∈𝒳nqT\(x\)h\(x\),\\frac\{1\}\{2\}\\left\(\\sum\_\{x\\in\\mathcal\{X\}\_\{n\}\}q\_\{T\}\(x\)h\_\{0\}\(x\)\+\\sum\_\{x\\in\\mathcal\{X\}\_\{n\}\}q\_\{T\}\(x\)h\_\{1\}\(x\)\\right\)\\leq\\mathop\{max\}\_\{h\\in\\mathcal\{H\}\(n\)\}\\sum\_\{x\\in\\mathcal\{X\}\_\{n\}\}q\_\{T\}\(x\)h\(x\),which is a contradiction\. This proves𝖽𝗂𝖺𝗆\(ET,a\)<n−M\(n\)\\mathsf\{diam\}\(E\_\{T,a\}\)<n\-M\(n\)\.
We can now apply Lemma[B\.3](https://arxiv.org/html/2609.10886#A2.Thmtheorem3)\(withd=n−sd=n\-sandr=M\(n\)−sr=M\(n\)\-s\) to conclude that
\|ET,a\|2n−s≤exp\(−\(M\(n\)−s\)22\(n−s\)\),\\frac\{\|E\_\{T,a\}\|\}\{2^\{n\-s\}\}\\leq\\exp\\left\(\-\\frac\{\(M\(n\)\-s\)^\{2\}\}\{2\(n\-s\)\}\\right\),Hence, we have
ℙgn\[L\(fn,gn,T\)<minh∈ℋ\(n\)L\(h,T\)\|gn\|S0=a\]≤exp\(−\(M\(n\)−s\)22\(n−s\)\),\\mathop\{\\mathbb\{P\}\}\_\{g\_\{n\}\}\\\!\\left\[L\(f\_\{n,g\_\{n\}\},T\)<\\mathop\{min\}\_\{h\\in\\mathcal\{H\}\(n\)\}L\(h,T\)\\,\\middle\|\\,g\_\{n\}\|\{S\_\{0\}\}=a\\right\]\\leq\\exp\\left\(\-\\frac\{\(M\(n\)\-s\)^\{2\}\}\{2\(n\-s\)\}\\right\),as desired\. ∎
### B\.3Proof of Lemma[5\.5](https://arxiv.org/html/2609.10886#S5.Thmtheorem5)
LetEEdenote the event that𝒪ℍ\(G\)\\mathcal\{O\}\_\{\\mathbb\{H\}\(G\)\}returnsfn,gnf\_\{n,g\_\{n\}\}in at least one oracle call, and letBn:=\{fn,gn∈ℋ\(n\)\}B\_\{n\}:=\\\{f\_\{n,g\_\{n\}\}\\in\\mathcal\{H\}\(n\)\\\}\. Since any member ofℋ\(n\)\\mathcal\{H\}\(n\)has minority size at mostM\(n\)M\(n\), we can easily prove that
ℙgn\[Bn∣gn\|S0=a\]≤2exp\(−\(n−s−2M\(n\)\)22\(n−s\)\)\.\\mathop\{\\mathbb\{P\}\}\_\{g\_\{n\}\}\\\!\\left\[B\_\{n\}\\mid g\_\{n\}\|\{S\_\{0\}\}=a\\right\]\\leq 2\\exp\\left\(\-\\frac\{\(n\-s\-2M\(n\)\)^\{2\}\}\{2\(n\-s\)\}\\right\)\.We can write
ℙgn\[E∣gn\|S0=a\]≤ℙgn\[Bn∣gn\|S0=a\]\+ℙgn\[E∩Bnc∣gn\|S0=a\]\.\\mathop\{\\mathbb\{P\}\}\_\{g\_\{n\}\}\\\!\\left\[E\\mid g\_\{n\}\|\{S\_\{0\}\}=a\\right\]\\leq\\mathop\{\\mathbb\{P\}\}\_\{g\_\{n\}\}\\\!\\left\[B\_\{n\}\\mid g\_\{n\}\|\{S\_\{0\}\}=a\\right\]\+\\mathop\{\\mathbb\{P\}\}\_\{g\_\{n\}\}\\\!\\left\[E\\cap B\_\{n\}^\{c\}\\mid g\_\{n\}\|\_\{S\_\{0\}\}=a\\right\]\.We now bound the second term\. For eacht∈\[K\]t\\in\[K\], letEtE\_\{t\}denote the event thatBncB\_\{n\}^\{c\}occurs andfn,gnf\_\{n,g\_\{n\}\}is returned for the first time at thettth oracle call\. ThenE∩Bnc=⋃t=1KEtE\\cap B\_\{n\}^\{c\}=\\bigcup\_\{t=1\}^\{K\}E\_\{t\}\.
Fixt∈\[K\]t\\in\[K\]\. Consider the queryTtT\_\{t\}made by the learner at roundttalong the interaction in whichfn,gnf\_\{n,g\_\{n\}\}has not been returned in any of the firstt−1t\-1rounds\. By construction of the oracle, all oracle responses before the first return offn,gnf\_\{n,g\_\{n\}\}are determined without using the unseen labels ofgng\_\{n\}\. Hence, conditioned on the labeled sample, the test point, and the learner’s internal randomness,TtT\_\{t\}is fixed with respect to the remaining randomnessgn\|𝒳n∖S0g\_\{n\}\|\{\\mathcal\{X\}\_\{n\}\\setminus S\_\{0\}\}\. IfEtE\_\{t\}occurs, then the actual interaction has not returnedfn,gnf\_\{n,g\_\{n\}\}during the firstt−1t\-1rounds, and therefore the actual query at roundttis preciselyTtT\_\{t\}\. Therefore, forEtE\_\{t\}to occur, we must have
L\(fn,gn,Tt\)<minh∈ℋ\(n\)L\(h,Tt\)\.L\(f\_\{n,g\_\{n\}\},T\_\{t\}\)<\\mathop\{min\}\_\{h\\in\\mathcal\{H\}\(n\)\}L\(h,T\_\{t\}\)\.SinceTtT\_\{t\}is fixed with respect to the unseen labels ofgng\_\{n\}, Lemma[5\.4](https://arxiv.org/html/2609.10886#S5.Thmtheorem4)gives
ℙgn\[Et\|gn\|S0=a\]≤exp\(−\(M\(n\)−s\)22\(n−s\)\)\.\\mathop\{\\mathbb\{P\}\}\_\{g\_\{n\}\}\\\!\\left\[E\_\{t\}\\,\\middle\|\\,g\_\{n\}\|\_\{S\_\{0\}\}=a\\right\]\\leq\\exp\\left\(\-\\frac\{\(M\(n\)\-s\)^\{2\}\}\{2\(n\-s\)\}\\right\)\.Taking a union bound over allt∈\[K\]t\\in\[K\],
ℙgn\[𝒪ℍ\(G\)returnsfn,gnin some oracle call\|gn\|S0=a\]\\displaystyle\\mathop\{\\mathbb\{P\}\}\_\{g\_\{n\}\}\\\!\\left\[\\text\{$\\mathcal\{O\}\_\{\\mathbb\{H\}\(G\)\}$ returns $f\_\{n,g\_\{n\}\}$ in some oracle call\}\\,\\middle\|\\,g\_\{n\}\|\{S\_\{0\}\}=a\\right\]≤ℙgn\[Bn∣gn\|S0=a\]\+∑t=1Kℙgn\[Et\|gn\|S0=a\]\\displaystyle\\leq\\mathop\{\\mathbb\{P\}\}\_\{g\_\{n\}\}\\\!\\left\[B\_\{n\}\\mid g\_\{n\}\|\{S\_\{0\}\}=a\\right\]\+\\sum\_\{t=1\}^\{K\}\\mathop\{\\mathbb\{P\}\}\_\{g\_\{n\}\}\\\!\\left\[E\_\{t\}\\,\\middle\|\\,g\_\{n\}\|\{S\_\{0\}\}=a\\right\]≤\(K\+1\)exp\(−\(M\(n\)−s\)22\(n−s\)\),\\displaystyle\\leq\(K\+1\)\\exp\\left\(\-\\frac\{\(M\(n\)\-s\)^\{2\}\}\{2\(n\-s\)\}\\right\),where we used the fact that for sufficiently largenn,2exp\(−\(n−s−2M\(n\)\)22\(n−s\)\)≤exp\(−\(M\(n\)−s\)22\(n−s\)\)2\\exp\\left\(\-\\frac\{\(n\-s\-2M\(n\)\)^\{2\}\}\{2\(n\-s\)\}\\right\)\\leq\\exp\\left\(\-\\frac\{\(M\(n\)\-s\)^\{2\}\}\{2\(n\-s\)\}\\right\)\. This completes the proof\. ∎
### B\.4Proof of Lemma[5\.6](https://arxiv.org/html/2609.10886#S5.Thmtheorem6)
Fix the labeled sampleSS, and letS0=𝖽𝗈𝗆\(S\)⊆𝒳nS\_\{0\}=\\mathsf\{dom\}\(S\)\\subseteq\\mathcal\{X\}\_\{n\}be the set of distinct points appearing inSS\. Denotes=\|S0\|≤ms=\|S\_\{0\}\|\\leq mand leta:=gn\|S0a:=g\_\{n\}\|\{S\_\{0\}\}be the observed labeling\. Fix a test pointxxand also the internal randomness of𝒜\\mathcal\{A\}\.
Conditioned on all above,gn\|𝒳n∖S0g\_\{n\}\|\{\\mathcal\{X\}\_\{n\}\\setminus S\_\{0\}\}is uniformly distributed over\{0,1\}𝒳n∖S0\\\{0,1\\\}^\{\\mathcal\{X\}\_\{n\}\\setminus S\_\{0\}\}\. Consider the predictiony~\\widetilde\{y\}of𝒜\\mathcal\{A\}determined by following the sequence of oracle interactions for whichfn,gnf\_\{n,g\_\{n\}\}is never returned\. By construction of the oracle,y~\\widetilde\{y\}is determined independently ofgn\|𝒳n∖S0g\_\{n\}\|\{\\mathcal\{X\}\_\{n\}\\setminus S\_\{0\}\}and has expected error1/21/2on anyx∈𝒳n∖S0x\\in\\mathcal\{X\}\_\{n\}\\setminus S\_\{0\}\. LetEEdenote the set of allgng\_\{n\}for which𝒪ℍ\(G\)\\mathcal\{O\}\_\{\\mathbb\{H\}\(G\)\}returnsfn,gnf\_\{n,g\_\{n\}\}in at least one oracle call\. WheneverEEdoes not occur, the actual oracle interaction coincides with the above interaction, and hence the prediction of𝒜\\mathcal\{A\}isy~\\widetilde\{y\}\. Therefore, for everygng\_\{n\}we have
𝟙\[𝒜\(𝒟\(𝕟\),𝕊\)\(𝕩\)≠𝕘𝕟\(𝕩\)\]≥𝟙\[𝕪~≠𝕘𝕟\(𝕩\)\]−𝟙\[𝔼\]\.\\bbold\{1\}\\left\[\\mathcal\{A\}\(\\mathcal\{D\}\(n\),S\)\(x\)\\neq g\_\{n\}\(x\)\\right\]\\geq\\bbold\{1\}\[\\widetilde\{y\}\\neq g\_\{n\}\(x\)\]\-\\bbold\{1\}\[E\]\.Consequently, we get for anyx∈𝒳n∖S0x\\in\\mathcal\{X\}\_\{n\}\\setminus S\_\{0\}that
ℙgn\[𝒜\(𝒟\(n\),S\)\(x\)≠gn\(x\)\|gn\|S0=a\]≥12−ℙgn\[E\]\\mathop\{\\mathbb\{P\}\}\_\{g\_\{n\}\}\\\!\\left\[\\mathcal\{A\}\(\\mathcal\{D\}\(n\),S\)\(x\)\\neq g\_\{n\}\(x\)\\,\\middle\|\\,g\_\{n\}\|\{S\_\{0\}\}=a\\right\]\\geq\\frac\{1\}\{2\}\-\\mathop\{\\mathbb\{P\}\}\_\{g\_\{n\}\}\\\!\\left\[E\\right\]Since𝒟\(n\)\\mathcal\{D\}\(n\)is uniform on𝒳n\\mathcal\{X\}\_\{n\}, we knowℙx∼𝒟\(n\)\[x∉S0\]=1−s/n\\mathop\{\\mathbb\{P\}\}\_\{x\\sim\\mathcal\{D\}\(n\)\}\\\!\\left\[x\\notin S\_\{0\}\\right\]=1\-s/n\. Thus, using Lemma[5\.5](https://arxiv.org/html/2609.10886#S5.Thmtheorem5)to bound the probability ofEE, we get
𝔼gn𝔼x∼𝒟\(n\)\[𝟙\[𝒜\(𝒟\(𝕟\),𝕊\)\(𝕩\)≠𝕘𝕟\(𝕩\)\]\|𝕘𝕟\|𝕊𝟘=𝕒\]≥12\(1−sn\)−\(K\+1\)exp\(−\(M\(n\)−s\)22\(n−s\)\)\.\\mathop\{\\mathbb\{E\}\}\_\{g\_\{n\}\}\\mathop\{\\mathbb\{E\}\}\_\{x\\sim\\mathcal\{D\}\(n\)\}\\\!\\left\[\\bbold\{1\}\\left\[\\mathcal\{A\}\(\\mathcal\{D\}\(n\),S\)\(x\)\\neq g\_\{n\}\(x\)\\right\]\\,\\middle\|\\,g\_\{n\}\|\{S\_\{0\}\}=a\\right\]\\geq\\frac\{1\}\{2\}\\left\(1\-\\frac\{s\}\{n\}\\right\)\-\(K\+1\)\\exp\\left\(\-\\frac\{\(M\(n\)\-s\)^\{2\}\}\{2\(n\-s\)\}\\right\)\.Sinces≤ms\\leq m, we have1−s/n≥1−m/n1\-s/n\\geq 1\-m/n\. Moreover, sinces,m<M\(n\)s,m<M\(n\)we know
\(M\(n\)−s\)2n−s≥\(M\(n\)−m\)2n−m\.\\frac\{\(M\(n\)\-s\)^\{2\}\}\{n\-s\}\\geq\\frac\{\(M\(n\)\-m\)^\{2\}\}\{n\-m\}\.Averaging over the labeled sample and the internal randomness of𝒜\\mathcal\{A\}concludes
𝔼gn𝔼x∼𝒟\(n\)\[𝟙\[𝒜\(𝒟\(𝕟\),𝕊\)\(𝕩\)≠𝕘𝕟\(𝕩\)\]\]≥12\(1−mn\)−\(K\+1\)exp\(−\(M\(n\)−m\)22\(n−m\)\)\.\\mathop\{\\mathbb\{E\}\}\_\{g\_\{n\}\}\\mathop\{\\mathbb\{E\}\}\_\{x\\sim\\mathcal\{D\}\(n\)\}\\\!\\left\[\\bbold\{1\}\\left\[\\mathcal\{A\}\(\\mathcal\{D\}\(n\),S\)\(x\)\\neq g\_\{n\}\(x\)\\right\]\\right\]\\geq\\frac\{1\}\{2\}\\left\(1\-\\frac\{m\}\{n\}\\right\)\-\(K\+1\)\\exp\\left\(\-\\frac\{\(M\(n\)\-m\)^\{2\}\}\{2\(n\-m\)\}\\right\)\.For every fixedgng\_\{n\}, sincefn,gn∈ℍ\(G\)f\_\{n,g\_\{n\}\}\\in\\mathbb\{H\}\(G\), we knowϵ𝒜\(𝒟\(n\),m\)\\epsilon\_\{\\mathcal\{A\}\}\(\\mathcal\{D\}\(n\),m\)is at least the expected error of𝒜\\mathcal\{A\}on the targetfn,gnf\_\{n,g\_\{n\}\}\. Averaging this inequality overgng\_\{n\}proves the claim\. ∎Similar Articles
Smart predict-then-robustly-optimize
This paper proposes a robust variant of smart predict-then-optimize that accounts for feature perturbations, providing a convex surrogate with theoretical guarantees and demonstrating superior performance over standard methods.
Improving Selective Classification with Pairwise Queries for Binary Classification
This paper proposes using pairwise queries to improve selective classification for binary classification, particularly where confidence estimates are inconsistent, as in LLM in-context learning. Theoretical conditions and experiments on synthetic and real datasets show that pairwise query-based algorithms achieve better accuracy-cost tradeoffs than raw confidence estimates.
Risk-optimal active learning with informative abstention
This paper derives a risk-optimal active learning acquisition criterion when a labeling oracle may abstain and its response probability shares parameters with the classifier, using Fisher information adjusted for nuisance parameters combined with local curvature of multiclass zero-one risk. Simulations and a Consumer Complaints replay show response-aware acquisition outperforms response-discounted baselines at larger query budgets.
Rethinking RL for LLM Reasoning: It's Sparse Policy Selection, Not Capability Learning
This paper challenges the assumption that RL teaches new reasoning capabilities to LLMs, arguing instead that it performs sparse policy selection at high-entropy decision points. It introduces ReasonMaxxer, an RL-free method that matches full RL performance with significantly lower training costs.
Computational limitations in robust classification and win-win results
This paper extends the study of computational hardness in learning robust classifiers, showing that efficient robust classification can be impossible even when unbounded robust classifiers exist, and establishing a win-win result: either an efficient robust classifier can be learned, or new cryptographic primitives can be constructed.