Manuscript Offprint
arXiv:2609.10886Relatively Smart II: Tractable or Semi-Supervised Instance-Optimal Learning
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We continue the study of relatively smart learning as introduced by Dughmi and Pour [DP26], 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 allowed m samples implies a similarly small error on the uniform distribution over a random sample of size . This yields the existence of a cover of size at most on that sample, which suffices to control the error of every consistent learner when given 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.
1 Introduction
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
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.fathollahpour@uwaterloo.ca. Supported by a David Cheriton Scholarship and a Vector Institute Research Grant.
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 Benedek and Itai [BI91], captures this by giving the learner complete knowledge of the marginal distribution D, allowing its learning strategy to be tailored specifically to 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 [BLP08].
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 Darnstädt and Simon [DS11], 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. Darnstädt and Simon [DS11] 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: Darnstädt, Simon, and Szörényi [DSS13], strengthening a result of Dudley et al. [DKRZ94], 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, Dughmi and Pour [DP26] identify the obstruction behind this impossibility as an indistinguishability phenomenon: a learner tailored to a marginal D may perform much worse on another marginal that is indistinguishable from 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 D can actually be trusted.
Inspired by this, Dughmi and Pour [DP26] 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 tailored to D is paired with a certifier C that observes an unlabeled sample and estimates its error. Although may be designed specifically for D, soundness requires the expected value of the certifier to upper bound the error of under every admissible marginal . Thus, if D is difficult to distinguish from a marginal on which 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, Dughmi and Pour [DP26] 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 Dughmi and Pour [DP26] 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 (Open Question 3.3 of Dughmi and Pour [DP26]). 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 Dughmi and Pour [DP26] 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 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 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.
ERM is relatively smart. Our first result resolves the open question of Dughmi and Pour [DP26] 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 Dughmi and Pour [DP26], 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 D and sample size m, we first show that on average over a random sample S of size , the error of the D-fixed learner on the uniform distribution over S, denoted by , is not much larger than the certifiable error rate. We then show that if achieves small error on , then the hypothesis class cannot contain too many hypotheses that are pairwise well separated under . Equivalently, the relevant packing number on 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 D, it is sufficient to prove that any hypothesis consistent with a random half of S has small error on the other half. The cover of 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 union T and consider the uniform distribution over T. The learner then uses an optimal -fixed learner , trained only on the available labeled sample, to predict the test point. Let be the -fixed learner witnessing the certifiable error rate on . We show that, on average over T, the error of on when given m labeled samples serves as a lower bound on the certifiable error rate. The optimality of for 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 [Han16; Lar23; ACSZ23; AHLZ24; RZ26].
At a high level, our construction starts from the lopsided classes used in the lower bounds of Dughmi and Pour [DP26] defined as follows: on a domain of size consider all hypotheses that assign a minority label to at most 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 hypothesis . If is explicitly known, a learner can simply choose between and the two constant predictors and thereby achieve vanishing error of on nearly uniform distributions; moreover, this performance can be soundly certified for sample sizes by exploiting techniques from uniformity testing. An oracle learner, however, must discover through 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 of can force the oracle to reveal it. To extend this to adaptively chosen queries, suppose is ever returned and consider the first round at 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 of . Hence, after fixing the observed labels and the learner's internal randomness, the interaction before round , and therefore the query made at round , is fixed with respect to the remaining randomness of . The fixed-query bound can therefore be applied for round , and a union bound over polynomially many rounds shows that the oracle reveals with only exponentially small probability. Consequently, with high probability over the random choice of , the oracle never reveals , 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 of , forcing error close to . Since this occurs with high probability over the random choice of , there must exist a fixed hypothesis on which the learner fails to approach the vanishing certifiable error rate.
1.2 Related Work
Distribution-fixed and semi-supervised learning. Distribution-fixed learning, where the learner is given the full knowledge of marginal, was studied by Benedek and Itai [BI91]. 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 [BLP08]. A large literature studies more realistic formulations of semi-supervised settings and asks when finite unlabeled data can improve learning, and by how much[e.g. BLP08; BB10; DSS13; GLS17; GBBG+19; GPS19; PSKB+23]. 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 Darnstädt and Simon [DS11], 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 [DKRZ94; DSS13]. Dughmi and Pour [DP26] 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. Dughmi and Pour [DP26] 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 Rubinfeld and Vasilyan [RV23] and developed further in, e.g., [GKK23; GKSV23; DKKL+23; KSV24; GKSV24]. 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 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 Gollakota, Klivans, and Kothari [GKK23] 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 [KSV24].
2 Preliminaries
Notation. For a domain , we use to denote the family of probability distributions supported on . For a distribution and an event , we use as shorthand for the probability of , and as shorthand for the conditional distribution of given . When the domain is countable we use to denote the probability of , and use to denote the support of . For a finite multiset we use to denote the uniform distribution on . Moreover, for any finite multiset , we denote by the unlabeled part of . Given a function defined on some domain , we use to denote its restriction to some . Moreover, for a hypothesis class we denote . For a set we use to denote the family of finite sequences over . For a predicate or probability event we use to denote the indicator of . Finally, we use standard order-of-growth (big-Oh) notation, though for functions and we write to indicate that whenever is a fixed constant.
We work in the setting of binary PAC learning. There is a data domain and a hypothesis class . The unlabeled data comes from a marginal distribution on and is labeled by a hypothesis from . A marginal distribution on together with a target induces the joint distribution on labeled data with and . In this work, we focus on the distribution-free setting where can be arbitrary, whereas relatively smart learning can be defined for a distribution-class too; see Dughmi and Pour [DP26]. For a predictor and data distribution , the loss or error of on is defined as . For a finite multiset of labeled data we overload notation and denote . For marginals on a countable space we write for total variation distance. For predictors and a marginal , write . For , let the -packing number be the largest cardinality of a subset of whose distinct members have pairwise -distance strictly larger than .
2.1 Relatively Smart Learning
A (fully-supervised) learner A takes as input a sequence of labeled samples—often referred to as training data—drawn i.i.d. from , and outputs a predictor . We measure learner's error as a function of the marginal . This permits marginal by marginal comparison of learners catered to a marginal, referred to as -fixed learners, to learners which are provided no such knowledge.
Definition 2.1. A distribution-dependent error rate is a function , where is an error associated with a distribution and a number of samples .
Definition 2.2. For a learner A, let its distribution-dependent error rate be the worst-case, over hypotheses , of its expected error with respect to when given m i.i.d. samples from , i.e., .
We recall the definitions of sound certifier, certifiable error rate, and relatively smart learning from Dughmi and Pour [DP26].
Definition 2.3 (Sound certifier [DP26]). Let be a learner. We say a function is a sound certifier for if for every distribution , , and we have .
Definition 2.4 (Certifiable error rate [DP26]). A distribution-dependent error rate is certifiable if for every distribution , there exists a -fixed learner and a sound certifier for such that for each and , we have .
Definition 2.5 (Relatively Smart Learning [DP26]). For a function and constant , we call a learner relatively -smart if
for every certifiable distribution-dependent error rate , every distribution , every sample size , and every additive error parameter . We also say is relatively smart if there exist and such that it is relatively -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 [see e.g. SB14]. As is common in learning theory, we take a hands-off approach to the measure-theoretic details.
3 ERM is relatively smart
We prove a positive resolution of Open Question 3.3 of Dughmi and Pour [DP26]. We show that every proper consistent learner is relatively smart with samples.
Theorem 3.1. For every domain and hypothesis class, we have that every proper consistent learner is relatively (128, )-smart in the distribution-free setting.
We formally prove Theorem 3.1 in Section but we give a high-level idea as follows. Fix a learner tailored to a marginal distribution , together with its sound certifier . For sample size , let consist of i.i.d draws from , and let be the certified error on samples. Now let be a multiset of i.i.d. draws from , for a sufficiently large constant , and let denote the uniform distribution over . The first observation is that is unable to reliably tell whether its input samples were drawn from or from . The underlying intuition is the Birthday paradox and this observation is used in the proof of Theorem 3.2 in Dughmi and Pour [DP26] to show OIG is relatively smart. Therefore, soundness entails that 's expected error on is some , on average over .
We then show that if there is a learner that when given samples achieves error at most on the uniform distribution , then there cannot be many hypotheses that are pairwise -far from each other with respect to . In particular, we show that the -packing number of with respect to is upper bounded by roughly . This essentially follows from the fact that, for the typical unlabeled sample of size , there are at most different labelings and therefore at most different predictors in the range of the learner. then implies the existence of a cover of with respect to with and cover radius .
Finally, we use a standard double-sampling argument to bound the error of a consistent proper learner , such as ERM, on samples of size . Let be an unlabeled sample from of size as before, partitioned uniformly at random into two equal halves and , and fix a ground truth hypothesis . Standard tail bounds and the union bound establish that every hypothesis in has similar error (relative to ) on and — within with high probability. This extends to every hypothesis ; To see this, note that if had very different errors on and , then so would its nearest neighbour in , at a distance of with respect to . Now let be the sample given to and let be its output, with by definition and therefore zero error on . It follows that the error of on is . Since the error on is an unbiased estimate of the error on , this completes the proof.
3.1 Formal Proof of Theorem 3.1
Let be any certifiable error rate. Fix a distribution , and sample size . By definition of certifiable error rate, there exists a learner that is catered to that together with its sound certifier witnesses the certifiable error rate . In other words, and satisfy (i) and (ii) for any distribution , .
We first show that can be turned into an upper bound on the error of on the uniform distribution over a random sample from . This observation is used in the proof of Theorem 3.2 in Dughmi and Pour [DP26] to show OIG is relatively smart. We include a proof here for completeness.
Lemma 3.2. For any , denote . We have
Proof. Since is a sound certifier for we have by definition that . Observe that drawing i.i.d. samples from is equivalent to drawing a larger multi-set of size and then drawing a uniformly random multi-set of instances from without replacement. Hence, we have . Finally, note that is the probability of observing no duplicates when making independent with replacement draws from a uniform distribution on points. Therefore,
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 Q implies a bound on the packing number of the class with respect to Q.
Lemma 3.3. Let Q be any marginal distribution. If , then for every (randomized) learner B we have
Proof. Fix a learner . Choose hypotheses that are pairwise more than apart under , i.e., . Let the target hypothesis be chosen uniformly at random from . For a multi-set , we also denote by the multiset that is obtained by labeling with . Moreover, we will abuse the notation and write to denote the joint distribution of with .
We can write the expected error of the learner B as
Fix a set . Since has size , there are at most many distinct labelings that can induce on . Let denote the equivalence classes induced by the labelings. Observe that for any the output of the learner is fixed and can be within distance of of at most one hypotheses in . Otherwise, by the triangle inequality there would exist two hypotheses with , contradicting the assumption that are pairwise -apart. Hence,
This proves that for any (randomized) learner we have that . Therefore, for any (randomized) there exists with , completing the proof.
We have so far argued that from the certifiable error rate we can conclude an upper bound on the error of on when given samples, on average over random of size . We then proved that bound on the error of on can be used to control the packing number of the class with respect to . We now use a double-sampling argument to show that the bound on the packing number with respect to can be used to bound the error of a consistent hypothesis with samples. The following lemma formalizes this claim and its proof can be found in Appendix A.
Lemma 3.4. Let , and be any integer with . For every integer ,
We are now ready to finish the proof. For any consistent learner , we can write its expected error when given samples of size n as
Now let and . We can verify that . Therefore, applying Lemma 3.4, we get that
(1)
From Lemma 3.3, we know that for any , we have
Therefore,
Moreover,
Combining the above with Equation (1), we get
We now apply Lemma 3.2 with , to conclude
where we used the fact that . Therefore, we can continue Equation (2) and write
where the last inequality is due to . Letting , we get that
concluding the proof.
10
☐
4 Relatively Smart Semi-Supervised Learners
We know that the ERM and OIG learners are relatively smart with (Theorem 3.1 and Thereom 3.2 of Dughmi and Pour [DP26]) and that for every pair of constants and and every function , no fully supervised learner is relatively -smart (Theorem 4.1 of Dughmi and Pour [DP26]). This shows that there is no hope in significantly improving the sample complexity needed for relatively smart learning beyond , 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 significantly better than ? 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 uses unlabeled samples while achieving . 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 and and every function , no semi-supervised learner can be relatively smart with labeled sample complexity if it only makes polynomially many (in ) calls to an agnostic ERM oracle.
We formally define relatively smart learning for semi-supervised learners.
Definition 4.1. For a semi-supervised learner , we define its distribution-dependent error rate be the worst-case, over hypotheses , of its expected error with respect to when given i.i.d. unlabeled samples from and i.i.d. labeled samples from , i.e., .
Definition 4.2 (Relatively Smart Semi-Supervised Learning). For functions and constant , we call a semi-supervised learner relatively -smart if
for every certifiable distribution-dependent error rate , every distribution , every sample size , and every additive error parameter .
4.1 A 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 , independent of . 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 and is also exploited by Dughmi and Pour [DP26] 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 unlabeled sample of size , when allowed labeled samples. This shows that for functions , , the semi-supervised learner defined as follows is relatively -smart: given unlabeled data , labeled data , and test point , computes an optimal learner for the uniform distribution over the pooled sample , runs this learner on and outputs its prediction on . Note that is finite and the “optimal learner” is well-defined. This learner is described in Algorithm 1 and its guarantee is summarized in the following theorem.
Algorithm 1. Learner trained on unlabeled and labeled samples given test point :
-
Let . Let be an optimal supervised learner for the uniform distribution on when given labeled samples, i.e., .
-
Return .
Theorem 4.3. For every domain and hypothesis class, the semi-supervised learner defined in Algorithm 1 is relatively -smart in the distribution-free setting.
Proof. Let be a certifiable error rate. Fix a distribution and sample size . For a finite unlabeled multiset , we will use the shorthand notation to refer to . We write the expected error of on when given unlabeled and labeled samples as
(3)
where denotes the instance in at index and is the set without . Moreover, denotes sampling without replacement.
Let . Now observe that the process of sampling without replacement from and then choosing uniformly from , is the same as the sampling i.i.d. samples from labeled by as the training set and an additional i.i.d. sample from as the test point, save for the fact that there is no duplicates among and . Recalling that is the probability of observing no duplicates when making independent draws from a uniform distribution on points, we get from Equation (3) that
Since is certifiable, by definition, there exists a learner and its sound certifier such that (i) and (ii) for any distribution , . Letting , similar to the proof of Lemma 3.2, we can conclude that
We know is the optimal (supervised) distribution-fixed learner for when given labeled samples. Therefore, dataset by dataset, we get that . Hence, we get from above that
Let and thus . We know that . Therefore, we get that
where the last inequality is due to . This completes the proof.
4.2 An Inclusion Graph Relatively -Smart Learner
In the proof of Theorem 4.3, we formulated Algorithm 1 in terms of an optimal distribution-fixed learner for the uniform distribution , 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 set , the learner observes the labels of a small subset of points 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 set of size unlabeled data. For any subset of size , there is and edge between all the nodes in that are consistent on the subset. Any learner for the transductive leave-most-out setting should orient the edges towards vectors in . 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 learner for the set is 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 is defined as follows: given unlabeled data , labeled data , and test point , predict according to the optimal orientation of for . We have
where the second inequality is due to the optimality of the IG in the leave-most-out setting. We can then similar to Theorem 4.3 continue to prove that , concluding is relatively -smart.
5 An 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 use unlabeled samples while requiring only m labeled 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 takes as input a finite labeled multi-set and returns a hypothesis in minimizing its error on the set.
Definition 5.1 (Agnostic ERM Oracle). For a hypothesis class , an Agnostic ERM Oracle for is a function that given any finite set , outputs a hypothesis in with the smallest error on , i.e., .
We only consider semi-supervised learners who do not have the knowledge of H and their only access to H is through calls to such an oracle. Formally, a (randomized) algorithm A is said to be an oracle learner if it takes as input an unlabeled set U (or the marginal distribution D if granted), a labeled set S of size m, and a test point x, adaptively queries an agnostic ERM oracle, then outputs a label for x. We say that A is an efficient oracle learner if the number of oracle calls it makes is bounded by a polynomial function of m.
We show that no efficient oracle learner can be relatively smart with a substantially sub-quadratic .
Theorem 5.2. There exists a countable domain such that for every pair of constants , any arbitrary , and every function the following holds: there is no (semi-supervised) oracle efficient learner that is relatively -smart for every hypothesis class. Particularly, this holds even if the learner has full knowledge of the marginal distribution.
Theorem 5.2 is formally proved in Section 5.1. 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 Dughmi and Pour [DP26]. On a domain of size , the lopsided class is defined as follows: consider all hypotheses for which at most of points have the same minority label and the remaining points have the other majority label. We augment the class with a uniformly random hypothesis . For a (nearly) uniform distribution over the points, when the class (and hence the hypothesis ) is explicitly given, empirical risk minimization restricted to and the two constant predictors (all-0 and all-1) has vanishing error . Moreover, when this error rate is certifiable by almost the same arguments as in Dughmi and Pour [DP26]: 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 hypothesis . To show that this is difficult, we prove that, on average over the choice of , the learner has error when is 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 of , leaving the remaining labels uniformly random. We consider an agnostic ERM oracle that, whenever a hypothesis from the lopsided class is an empirical-risk minimizer, breaks ties in favor of . For this oracle, Agnostic ERM queries reveal essentially no additional information about . Indeed, for any fixed query, the fraction of hypotheses that have strictly smaller empirical loss than every hypothesis in the lopsided class is exponentially small. To see this, we first show that any two such hypotheses must agree on at least points. Otherwise, consider the two hypotheses that agree with on their agreement set and are respectively constant 0 and 1 on their disagreement set. Both belong to , and one has loss no larger than or , contradicting the assumption that both strictly outperform every hypothesis in . A combinatorial bound then shows that any family of hypotheses with this much pairwise agreement constitutes only an exponentially small fraction of .
The same conclusion continues to hold for adaptively chosen queries. Fix the labeled sample, a test point not 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 returns . By construction of the oracle and its tie-breaking rule, every oracle response along such a sequence is determined without using the unseen labels of . Hence, conditioned on the observed labels, the resulting sequence of queries and responses is fixed with respect to the remaining randomness of . Suppose now that in the actual interaction the oracle eventually returns , and let be the first round at which this happens. Since was not returned in any of the previous rounds, the actual interaction up to round coincides with the sequence described above. In particular, the query at round is fixed with respect to the unseen labels of . Moreover, except for the exponentially unlikely event that , the oracle can return at this round only if has strictly smaller empirical loss on this query than every member of , by the oracle's tie-breaking rule. We can therefore bound the probability that is returned in this round by the above bound for the fixed query. A union bound over polynomially many oracle calls shows that the oracle returns with probability , where the probability is over the uniformly random choice of .
Finally, consider again the interaction described above in which the oracle never returns . The learner's resulting prediction on is determined independently of the unseen label . Since does not appear in the labeled sample, remains a uniformly random bit, and hence this prediction has error exactly over the randomness of . The actual interaction differs from this one only if the oracle returns , which happens with probability . Therefore, the learner's expected error, averaged over the random choice of , is at least . Consequently, there must exist a fixed hypothesis on which the learner has error at least , thereby ruling out any substantially subquadratic labeled sample complexity for matching the certifiable error rate of .
5.1 Formal Proof of Theorem 5.2
Let be any oracle efficient learner. Fix an arbitrary parameter . Consider the domain with . We refer to as the th row of the domain. For every , let denote the uniform distribution over . For every , we begin with the class constructed by Dughmi and Pour [DP26], where the minority label of every has probability at most under . We then augment by adding random functions on . Define the functions and as
For and , let
and define . Note that the function is an upper bound on the number of points with minority label of every in row , while is constant on . Moreover, under the distribution , the function denotes an upper bound on the probability of a minority label for every . Now we will define a hypothesis class that is a disjoint union of with (at most) one extra labeling for every row . For any , define with for all and for all . Let and for any choice of binary labelings with , define .
Algorithm 2. Learner trained on sample given test point :
-
Let .
-
Return .
Algorithm 3. Certifier run on input sample :
- Let .
▷ Algorithm 5 for testing against
- If and then return , else return 1.
We show that for every , the error rate is certifiable for the class with respect to and sample sizes .
Fix some . Recall that for every , predicting its majority label has error at most unders distributions close to whereas all are constant 1 on row . Thus, when the learner has access to and knows , a natural strategy for learning with respect to nearly uniform distributions on row is to choose between the majority label of the sample and the label induced by . We therefore construct the learner (Algorithm 2) that validates between and the two constant hypotheses defined as and for all . We show that for all , the learner has error under and, importantly, this error rate is certifiable.
Lemma 5.3. There exists an absolute constant such that for every and the following holds: for the hypothesis class , the rate
is certifiable for in the distribution-free setting.
We prove the above lemma certifying the claimed error rate for . Note that is specifically designed to perform well on the distributions that are close to being uniform on row n but may incur large error on distributions far from . Consequently, a sound certifier witnessing the claimed error rate must output small values only when the distributions is close to uniform on row n. A certifier with precisely this guarantee is developed in the proof of Theorem 3.1 of Dughmi and Pour [DP26], where uniformity testing is exploited to distinguish the uniform distribution on row n from distributions that are substantially far from it in total variation distance. We therefore use this construction to define the certifier for . In particular, for each row n, we define the certifier (Algorithm 3) that relies on the modified uniformity tester MTestUnif (Algorithm 5) developed in Dughmi and Pour [DP26], which adapts a standard uniformity tester to also detect distributions with support outside the nth row. We provide the MTestUnif (Algorithm 5) and the remaining technical arguments for the proof of Lemma 5.3 in Appendix B.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 , regardless of the amount of unlabeled data available. In fact, we prove the stronger statement in which the learner is given the marginal distribution itself, rendering unlabeled data entirely unnecessary.
Fix any oracle learner with access to the marginal distribution . We show that with positive probability over a randomly chosen , will have error at least on with respect to when the sample size is . We prove this by defining, for every , an oracle that always favors the hypotheses from the lopsided class. Formally, for any labeled set , if there exists with then returns a hypothesis with a fixed tie-breaking rule independent of , otherwise, it will return with the smallest index among all .
For a row of interest , we say that a query reveals if the oracle returns . We will prove that with polynomially many queries, with high probability over a randomly chosen , the oracle does not reveal . We first show that, conditioned on the observed label sample of size with distinct instances, a fixed query reveals only with exponentially small probability. Throughout the remainder of the proof, when probabilities are taken over , all labelings are considered fixed.
Lemma 5.4. For any , with , and any arbitrary labeling we have for every finite labeled multiset that,
The proof of the above lemma can be found in Appendix B.2. It is based on bounding the number of labelings on that can strictly outperform the lopsided class on a fixed query. Suppose that two labelings that are consistent with the observed labels both have strictly smaller empirical loss than every hypothesis in . Assume and are more than far apart. We can construct two hypotheses and in as follows: on every point on which and agree, both and are equal to , while on their disagreement region, is constant 0 and is constant 1. Since and agree on at most points, we have . Moreover, this construction yields for every . Considering and are constant 1 on , the sum of the error of and on the queried set equals the sum of the error of and on the same set. Consequently, it is impossible for both and to strictly outperform every member of . This bounds the diameter of the set of labelings that can be revealed by a fixed query. We then get from Lemma B.3 that the size of every subset with diameter at most is exponentially small which concludes that the claimed bound on the probability that a random is revealed by a query.
We now extend the fixed-query bound to polynomially many adaptive oracle calls: if the oracle ever returns , there must be a first round at which this occurs. Consider first the case that . By construction of and its tie-breaking rule, up to round , all oracle responses are determined independent of the unseen labels of ; consequently, the query at round is fixed with respect to the randomness in the labeling of unobserved points. Now for the hypothesis to be returned at round , if , it must have strictly smaller empirical loss on this query than every member of . Since, conditional on the observed labels, this query is independent of the remaining labels of , Lemma 5.4 shows that this occurs with exponentially small probability for each possible . A union bound over polynomially many oracle calls therefore shows that the probability that and the oracle nevertheless returns is . Moreover, the probability that is itself exponentially small. Combining these, we conclude that with probability the oracle never reveals , as formalized in the following lemma. The proof of this lemma appears in Appendix B.3.
Lemma 5.5. For any , any with , and any arbitrary labeling , if makes at most adaptive calls to , then, conditioned on the test point and on the internal randomness of , we have
The final piece of the proof is to translate the bound on the probability that the oracle reveals into a lower bound on the prediction error of . For a fixed labeled sample, the label of every point 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 determines a unique sequence of oracle responses as long as none of the responses is . Hence, along this sequence, the learner makes a unique prediction that is independent of the unseen labels of , and hence, on a test point not appearing in the sample, it has error exactly 1/2 over the randomness of . The actual interaction with the oracle differs from this fixed interaction only if is revealed. Lemma 5.5 on the probability that is revealed then shows that the expected, over randomness of , of the error of is at least 1/2 - o(1), which proves the existence of with the claimed error bound. This is formally captured in the following lemma, the proof of which is relegated to Appendix B.4.
Lemma 5.6. For any , and , if makes at most adaptive calls to , then
We can now complete the proof of Theorem 5.2. For any sample size , since is an efficient oracle learner, the number of oracle calls it makes is polynomially bounded in and we have . Moreover, since , we have and hence for sufficiently large , . It follows that, for all sufficiently large ,
The above concludes that for all sufficiently large , any sample size there exists some such that for we have that as long as . On the other hand, by Lemma 5.3, for the same class we have the certifiable error rate . Since , we get that cannot approximate this certifiable error rate within any multiplicative constant and any additive constant , both independent of . This concludes that no learner can be relatively smart. The above construction was for a fixed . To obtain a single domain that rules out every substantially subquadratic labeled sample complexity, we take a disjoint union over a sequence of parameters tending to zero. Specifically, for each , let be a distinct copy of the domain used in the above construction, and let . Now fix any substantially subquadratic labeled sample complexity . We can choose sufficiently small, so that the preceding argument constructs a choice and a hypothesis class on for which fails to be relatively smart with labeled sample complexity . Extending every hypothesis in to be constant 1 outside gives a hypothesis class over the common countable domain , thereby proving the claimed impossibility result.
6 AI 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. The model first came up with a proof that ERM is relatively- smart. Subsequent interactions with the model then resulted in the current proof approach for ERM being relatively -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 Dughmi and Pour [DP26] to obtain the class used in Theorem 5.2, 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
[ACSZ23] Ishaq Aden-Ali, Yeshwanth Cherapanamjeri, Abhishek Shetty, and Nikita Zhivotovskiy. "Optimal PAC Bounds without Uniform Convergence". English. In: Proceedings of the 64th Annual Symposium on Foundations of Computer Science (FOCS). IEEE Computer Society, Nov. 2023, pp. 1203–1223. ISBN: 9798350318944. DOI: 10.1109/FOCS57990.2023.00071. URL: https://www.computer.org/cSDL/proceedings-article/focs/2023/189400b203/1T971Rnelzi (visited on 04/30/2024).
[AHLZ24] Ishaq Aden-Ali, Mikael Møller Høandgsgaard, Kasper Green Larsen, and Nikita Zhivotovskiy. "Majority-of-Three: The Simplest Optimal Learner?" en. In: Proceedings of Thirty Seventh Conference on Learning Theory. ISSN: 2640-3498. PMLR, June 2024, pp. 22–45. URL: https://proceedings.mlr.press/v247/aden-ali24a.html (visited on 09/08/2024).
[BB10] Maria-Florina Balcan and Avrim Blum. "A discriminative model for semi-supervised learning". In: Journal of the ACM (JACM) 57.3 (2010), pp. 1–46.
[BI91] Gyora M. Benedek and Alon Itai. "Learnability with respect to fixed distributions". In: Theoretical Computer Science 86.2 (Sept. 1991), pp. 377–389. ISSN: 0304-3975. DOI: 10.1016/0304-3975(91)90026-X. URL: https://www.sciencedirect.com/science/article/pii/030439759190026X (visited on 09/11/2024).
[BLP08] Shai Ben-David, Tyler Lu, and Dávid Pál. "Does Unlabeled Data Provably Help? Worst-case Analysis of the Sample Complexity of Semi-Supervised Learning." In: COLT. 2008, pp. 33–44.
[DKKL+23] Ilias Diakonikolas, Daniel Kane, Vasilis Kontonis, Sihan Liu, and Nikos Zarifis. “Efficient testable learning of halfspaces with adversarial label noise”. In: Advances in Neural Information Processing Systems 36 (2023), pp. 39470–39490.
[DKRZ94] R.M. Dudley, S.R. Kulkarni, T. Richardson, and O. Zeitouni. "A metric entropy bound is not sufficient for learnability". In: IEEE Transactions on Information Theory 40.3 (May 1994). Conference Name: IEEE Transactions on Information Theory, pp. 883–885. ISSN: 1557-9654. DOI: 10.1109/18.335898. URL: https://ieeexplore.ieee.org/document/335898 (visited on 10/03/2024).
[DP26] Shaddin Dughmi and Alireza F. Pour. "Relatively Smart: A New Approach for Instance-Optimal Learning". In: Proceedings of Thirty Ninth Conference on Learning Theory. Ed. by Steve Hanneke and Tor Lattimore. Vol. 336. Proceedings of Machine Learning Research. PMLR, 29 Jun–03 Jul 2026, pp. 2107–2144. URL: https://proceedings.mlr.press/v336/dughmi26a.html.
[DS11] Malte Darnstädt and Hans Ulrich Simon. "Smart PAC-learners". In: Theoretical Computer Science 412.19 (2011), pp. 1756–1766.
[DSS13] Malte Darnstädt, Hans Ulrich Simon, and Balázs Szörényi. “Unlabeled Data Does Provably Help”. In: 30th International Symposium on Theoretical Aspects of Computer Science (STACS 2013). Schloss Dagstuhl–Leibniz-Zentrum für Informatik. 2013, pp. 185–196.
[GBBG+19] Christina Göpfert, Shai Ben-David, Olivier Bousquet, Sylvain Gelly, Ilya Tolstikhin, and Ruth Urner. "When can unlabeled data improve the learning rate?" en. In: Proceedings of the Thirty-Second Conference on Learning Theory. ISSN: 2640-3498. PMLR, June 2019, pp. 1500–1518. URL: https://proceedings.mlr.press/v99/gopfert19a.html (visited on 09/25/2024).
[GKK23] Aravind Gollakota, Adam R Klivans, and Pravesh K Kothari. "A moment-matching approach to testable learning and a new characterization of rademacher complexity". In: Proceedings of the 55th Annual ACM Symposium on Theory of Computing. 2023, pp. 1657–1670.
[GKSV23] Aravind Gollakota, Adam Klivans, Konstantinos Stavropoulos, and Arsen Vasilyan. "Tester-learners for halfspaces: Universal algorithms". In: Advances in Neural Information Processing Systems 36 (2023), pp. 10145–10169.
[GKSV24] A Gollakota, AR Klivans, K Stavropoulos, and A Vasilyan. "An Efficient Tester-Learner for Halfspaces". In: 12th International Conference on Learning Representations (ICLR 2024). 2024.
[GLS17] Amir Globerson, Roi Livni, and Shai Shalev-Shwartz. "Effective Semisupervised Learning on Manifolds". en. In: Proceedings of the 2017 Conference on Learning Theory. ISSN: 2640-3498. PMLR, June 2017, pp. 978–1003. URL: https://proceedings.mlr.press/v65/globerson17a.html (visited on 10/11/2024).
[GPS19] Alexander Golovnev, David Pal, and Balazs Szorenyi. "The information-theoretic value of unlabeled data in semi-supervised learning". In: Proceedings of the 36th International Conference on Machine Learning. Ed. by Kamalika Chaudhuri and Ruslan Salakhutdinov. Vol. 97. Proceedings of Machine Learning Research. PMLR, Sept. 2019, pp. 2328–2336. URL: https://proceedings.mlr.press/v97/golovnev19a.html.
[GR00] Oded Goldreich and Dana Ron. "On Testing Expansion in Bounded-Degree Graphs". In: Electronic Colloquium on Computational Complexity 7.20 (2000).
[Han16] Steve Hanneke. “The Optimal Sample Complexity of PAC Learning”. In: Journal of Machine Learning Research 17.38 (2016), pp. 1–15. ISSN: 1533-7928. URL: http://jmlr.org/papers/v17/15-389.html (visited on 10/24/2023).
[Kle66] Daniel J Kleitman. “On a combinatorial conjecture of Erdős”. In: Journal of Combinatorial Theory 1.2 (1966), pp. 209–214.
[KSV24] Adam Klivans, Konstantinos Stavropoulos, and Arsen Vasilyan. “Testable learning with distribution shift”. In: The Thirty Seventh Annual Conference on Learning Theory. PMLR. 2024, pp. 2887–2943.
[Lar23] Kasper Green Larsen. “Bagging is an Optimal PAC Learner”. en. In: Proceedings of Thirty Sixth Conference on Learning Theory. ISSN: 2640-3498. PMLR, July 2023, pp. 450–468. URL: https://proceedings.mlr.press/v195/larsen23a.html (visited on 09/28/2023).
[PSKB+23] Rattana Pukdee, Dylan Sam, J Zico Kolter, Maria-Florina F Balcan, and Pradeep Ravikumar. "Learning with explanation constraints". In: Advances in neural information processing systems 36 (2023), pp. 49883–49926.
[RV23] Ronitt Rubinfeld and Arsen Vasilyan. “Testing distributional assumptions of learning algorithms”. In: Proceedings of the 55th Annual ACM Symposium on Theory of Computing. 2023, pp. 1643–1656.
[RZ26] Divit Rawal and Nikita Zhivotovskiy. “Majority-of-Three is Optimal”. In: arXiv preprint arXiv:2606.13614 (2026).
[SB14] Shai Shalev-Shwartz and Shai Ben-David. Understanding Machine Learning: From Theory to Algorithms. en. Cambridge University Press, May 2014. ISBN: 978-1-139-95274-3.
A Missing Proof from Section 3: Proof of Lemma 3.4
For a labeled set of i.i.d. samples from , denote by the event . For any and any finite multiset denote . We wish to bound the probability of . Now consider two (independent) sets and each of i.i.d. draws from . Denote by the event . Fix any set for which there exists some with and . We have . By a Chernoff bound and since , we have that . Hence, we get that .
Consider a set with of 2n i.i.d sample from . Denote by the event . For any set , denote by the maximal -packing of under . Note that is also a -cover of under . Therefore, we can easily see that for any with , the event implies the event . Hence, .
Condition on . Observe that the process of sampling two sets and of i.i.d samples is the same as sampling a set of size and randomly splitting it into two sets of size . For a random subset , let denote the subset of at indices . Therefore, by a union bound we get
Now consider some and some such that . Denote by the number of errors in the first half of the set after a random split. We know has a hypergeometric distribution with mean . Therefore, we can apply a Chernoff bound to conclude that
Therefore, conditioned on , we have that
This concludes that
as desired.
B Missing Proofs from Section 5
We use the modified uniformity tester MTestUnif in the construction of to detect distributions that are close to uniform on the row of interest. The tester MTestUnif, formally described in Algorithm 5, was introduced in Dughmi and Pour [DP26] by adding a simple wrapper around the standard uniformity tester TestUnif (Algorithm 4), allowing it to detect distributions with support outside the desired row. The following lemma summarizes the guarantee of MTestUnif. The proof this lemma can be found in Dughmi and Pour [DP26].
Lemma B.1 (Lemma B.4 in Dughmi and Pour [DP26]). Denote . Let be an arbitrary countable set. For any set of size , any , any distribution on , and any sample size , the tester MTestUnif (Algorithm 5) satisfies the following:
• If , MTestUnif returns 1 with probability over .
• If , MTestUnif returns 0 with probability over .
Algorithm 4. Standard Uniformity Tester TestUnif_Y(ξ, δ, S) for a set Y with input parameters ξ, δ ∈ (0, 1) and sample S [GR00].
-
Let n = |Y|, ℓ = 18 ln(2/δ), and m' = |S|/ℓ.
-
Divide S into ℓ consecutive sub-samples S_i = (x_{i1}, ..., x_{im'}), 1 ≤ i ≤ ℓ.
-
Let TR = .
-
For 1 ≤ i ≤ ℓ do:
(a) Let Z_i = .
(b) If Z_i < TR then let ACC_i = 1, else let ACC_i = 0.
- If then return 1, else return 0.
Algorithm 5. Modified uniformity tester MTestUnif_Y(ξ, δ, S) for set Y with parameters (ξ, δ) ∈ (0, 1) and input sample S:
- If then return TestUnif_Y( , , S);
▷ Algorithm 4 for testing against
- Else return 0.
B.1 Proof of Lemma 5.3
We prove that the learner and certifier together witness the certifiable error rate . In other words, we prove that the certifier is sound for and is never greater than the certifiable error rate. Formally, we prove that for all distributions and sample size , we have
This holds trivially when , since we have .
Let be the labeling function. We will use the following guarantee throughout the proof to bound the error of : for any distribution , large and , we can conclude from a Chernoff and union bound that
where the last inequality is due to the fact that for large m, we have .
We consider three cases based on the underlying distribution and use the following guarantee for MTestUnif to bound the expected value of the certifier ; see Dughmi and Pour [DP26] for a proof. We will assume that is always larger than the constant in the lemma for the rest of the proof.
Lemma B.2 (Lemma C.6 of Dughmi and Pour [DP26]). There exists an absolute constant such that for any , we have for any ,
• If , MTestUnif returns 1 with probability at least over .
• If , returns 0 with probability at least over .
We now discuss each case for D separately.
We first upper bound the error of and show it is never larger than . We know from Lemma B.2 that with probability at least over , accepts the underlying distribution as and thus . Therefore, we have .
We now upper bound the error of the learner . Two possibilities can happen: either or . In the first possibility, either in which case has zero error or in which case the probability of the minority label of is and either or will have error at most on .
In the second possibility where we know that for all . Hence, and therefore and will have zero error. Let . We showed that in both cases for , there exists some such that . This implies that .
From Equation 6 and since , we get with probability at least over that
Therefore, noting that for all , we get that
- . 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: or .
In the first possibility, we have . In the second possibility, let denote the majority label of under and let . Since , we either have or . Since , we observe that for , if , we have and hence . This is due to the fact that if by the sake of contradiction, we assume for we have , then we would get , which is a contradiction to being the majority label. If , we have and . On the other hand, if , we have . To see this, assume by the sake of contradiction that . Then we get that and thus which is a contradiction to 0 being the majority label. Therefore, and . Thus, in the second possibility we always have that . Moreover, observe that and . Therefore, in the second possibility we have .
We proved that in any case, we have for . Similar to the previous case, from and Equation 6, we get with probability at least over that . Since for all , we get that
- . In this case, we can invoke Lemma B.2 to get that with probability at least over , (Algorithm 5) rejects and outputs 0. Therefore, outputs 1 with probability at least and . Let denote the majority label of labeling function under distribution and denote . Since and , we have that for . Therefore, similar to the analysis in the previous case, we get with probability at least over that . Hence, we get that
where we used the fact that for large .
B.2 Proof of Lemma 5.4
We will use the following lemma in the proof of Lemma 5.4 to bound the size of subsets of boolean cube that have bounded diameter.
Lemma B.3. Let . For any , define and denote . Assume that for some integer . Then, we have
Proof. We know from Kleitman [Kle66] that the bound 2k on the diameter of F implies
Let . Since , we can apply the above bound to conclude that
Let Z denote the random variable that is the sum of d random bits. It is easy to observe that
Since we can apply a Hoeffding's bound to get that
25
☐
We now restate Lemma 5.4 and prove it.
Lemma 5.4. For any , with , and any arbitrary labeling we have for every finite labeled multiset that,
Proof. Since and every agree outside , we know for every that
For any and , define
and let . We can verify that for every ,
Therefore,
if and only if
Now let , and note that . Conditioned on , the restriction is uniformly random over . Define
and observe that
We therefore bound .
For every define their disagreement as . Denote .
We claim that . Assume for the sake of contradiction that there exist such that . Let and note that
Let be the labelings obtained by extending with on . Define two hypotheses as follows. For any , . For any , let
We have , and hence . Similarly, . Therefore, .
Observe that based on the definition of and , for any we have if and only if . Hence, for all and
Since , we know and , and hence
On the other hand, and we have
which is a contradiction. This proves .
We can now apply Lemma B.3 (with and ) to conclude that
Hence, we have
as desired.
B.3 Proof of Lemma 5.5
Let denote the event that returns in at least one oracle call, and let . Since any member of has minority size at most , we can easily prove that
We can write
We now bound the second term. For each , let denote the event that occurs and is returned for the first time at the th oracle call. Then .
Fix . Consider the query made by the learner at round along the interaction in which has not been returned in any of the first rounds. By construction of the oracle, all oracle responses before the first return of are determined without using the unseen labels of . Hence, conditioned on the labeled sample, the test point, and the learner's internal randomness, is fixed with respect to the remaining randomness . If occurs, then the actual interaction has not returned during the first rounds, and therefore the actual query at round is precisely . Therefore, for to occur, we must have
Since is fixed with respect to the unseen labels of , Lemma 5.4 gives
Taking a union bound over all ,
where we used the fact that for sufficiently large , . This completes the proof.
B.4 Proof of Lemma 5.6
Fix the labeled sample , and let be the set of distinct points appearing in . Denote and let be the observed labeling. Fix a test point and also the internal randomness of .
Conditioned on all above, is uniformly distributed over . Consider the prediction of determined by following the sequence of oracle interactions for which is never returned. By construction of the oracle, is determined independently of and has expected error on any . Let denote the set of all for which returns in at least one oracle call. Whenever does not occur, the actual oracle interaction coincides with the above interaction, and hence the prediction of is . Therefore, for every we have
Consequently, we get for any that
Since is uniform on , we know . Thus, using Lemma 5.5 to bound the probability of , we get
Since , we have . Moreover, since we know
Averaging over the labeled sample and the internal randomness of A concludes
For every fixed , since , we know is at least the expected error of on the target . Averaging this inequality over proves the claim.