arXiv:2611.12694cs.LGNov 2026

Manuscript Offprint

arXiv:2611.12694

Agnostic Marginal-Nonuniform Learning

Tanmay Devale, Steve Hanneke, Amirreza Shaeiri

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We study the problem of binary classification in the marginal-nonuniform learning framework in the agnostic setting. In this model, the constants in the learning rate may depend on the marginal distribution of the unlabeled data, but the guarantee must hold uniformly over all conditional distributions of the labels. We also study fine-grained rates.

We consider two criteria. (1) The standard agnostic setting, where the learner competes with the best concept in the class. In this setting, an immediate consequence of standard agnostic PAC learning results gives us the optimal rate of 1n\frac{1}{\sqrt{n}} for every class H\mathcal{H} with finite VC(H)VC(\mathcal{H}) and shows that arbitrarily slow rates are necessary otherwise. This also gives us the optimal fine-grained rate of VC(H)n\sqrt{\frac{VC(\mathcal{H})}{n}}. Therefore, the dependence on the marginal distribution does not help, which is in contrast to the realizable setting. (2) In the relaxed agnostic setting, where the learner competes with (1+λ)(1+\lambda) times the error of the best concept for a fixed λ∈(0,1]\lambda \in (0,1], the picture from the realizable setting reappears. We obtain a trichotomy of the achievable optimal rates: exponential rates of the form e−ne^{-n} arise precisely when the class is finite; linear rates of the form 1n\frac{1}{n} arise when the class is infinite but VC(H)VC(\mathcal{H}) is finite; and arbitrarily slow rates occur when VC(H)=∞VC(\mathcal{H}) = \infty. We also obtain the optimal fine-grained rate of uVCE(H)λn\frac{\mathrm{uVCE}(\mathcal{H})}{\lambda n}, where uVCE(H)\mathrm{uVCE}(\mathcal{H}) is a recently introduced combinatorial complexity dimension called the uncentered VC-eluder dimension.¹

1 Introduction

A central question in statistical learning theory is how many labeled examples are needed to predict well on unseen data. The classical PAC model [Vapnik and Chervonenkis, 1971, Valiant, 1984] answers the uniform case: one rate has to hold for every marginal distribution over the instance space and every target concept in the class. This gives a clean worst-case theory, in which the VC dimension characterizes learnability, but it cannot tell an easy data distribution from a hard one. Marginal-nonuniform learning [Ben-David et al., 1995, Hanneke et al., 2025b] relaxes exactly this point. The constants in the rate may depend on the marginal distribution DX\mathcal{D}_{\mathcal{X}} of the unlabeled data, but once DX\mathcal{D}_{\mathcal{X}} is fixed, the guarantee must hold uniformly over everything else. It sits between uniform PAC learning and universal learning [Bousquet et al., 2021], where the constants may depend on the whole data distribution.

Marginal-nonuniform learning has a classical counterpart in concept-nonuniform learning, introduced by Benedek and Itai [1994] and usually called simply nonuniform learning. In this framework, the roles are exchanged: the constants in the rate may depend on the target concept, but the guarantee must hold uniformly over all marginal distributions. This model makes a much larger family of classes learnable, namely all countable unions of VC classes, and it underlies structural risk minimization, Occam's razor and the minimum description length principle [Vapnik, 1998, Blumer et al., 1987, Rissanen,

*Department of Computer Science, Purdue University; tdevale@purdue.edu †Department of Computer Science, Purdue University; steve.hanneke@gmail.com ‡Department of Computer Science, Purdue University; amirreza.shaeiri@gmail.com ¹All results and proofs in this paper were obtained by the authors. AI assistance was limited to supporting the writing process.

1978, Lugosi and Zeger, 1996]. It distinguishes concepts that are easy to learn from concepts that are hard to learn, whereas marginal-nonuniform learning distinguishes easy marginals from hard ones. Together with uniform and universal learning, these are the four natural notions of learnability obtained by letting the rate depend on the marginal, on the target, on both, or on neither [Ben-David et al., 1995]. We recall them, in the form needed for this paper, in Section 1.1.

In the realizable case, the possible marginal-nonuniform rates are by now well understood. Hanneke et al. [2025b] proved a trichotomy for binary classification: every class is learnable at an exponential rate, at a linear rate, or only at arbitrarily slow rates, and in the linear case the optimal rate is d/nd/n, where dd is the VC-eluder dimension of Hanneke and Xu [2024]. This dimension can be much smaller than the VC dimension. The work of Brukhim et al. [2026] extended the characterization to multiclass classification, using the uncentered DS-eluder dimension. All of these results assume that some concept in the class labels the data perfectly.

Agnostic marginal-nonuniform learning. Consider an email provider that stores a large archive of messages. The prediction task is chosen only later: filtering spam, detecting phishing, or flagging messages as urgent. The messages, and hence the marginal DX\mathcal{D}_\mathcal{X}, are fixed before the task is known, which is the situation marginal-nonuniform guarantees are designed for. But the labels will come from users, who click carelessly and who disagree with each other: the same newsletter is spam to one user and wanted by another. No concept in the class will label the data perfectly. What the provider can hope for is a filter that is nearly as accurate as the best concept in the class, whatever the task and the behavior of the users turn out to be.

This is the step from realizable to agnostic learning [Haussler, 1992, Kearns et al., 1994]. It is the standard second step in PAC learning: one first studies the realizable case, where the optimal rate is VC(H)/n\mathrm{VC}(\mathcal{H})/n, and then drops the assumption on the labels, where the optimal rate becomes VC(H)/n\sqrt{\mathrm{VC}(\mathcal{H})/n}. We take the same step in the marginal-nonuniform setting. The learner competes with inf⁡h∈HerD(h)\inf_{h \in \mathcal{H}} \mathrm{er}_{\mathcal{D}}(h), the constants may depend on the marginal DX\mathcal{D}_\mathcal{X}, and the guarantee must hold for every distribution D\mathcal{D} over X×Y\mathcal{X} \times \mathcal{Y} with that marginal. In the example, the archive fixes DX\mathcal{D}_\mathcal{X}, while the task and the behavior of the annotators, i.e., the conditional distribution of the label given the message, are left completely free.

If VC(H)<∞\mathrm{VC}(\mathcal{H}) < \infty, the classical agnostic PAC upper bound applies directly: it holds for every distribution D\mathcal{D} over X×Y\mathcal{X} \times \mathcal{Y}, with constants that do not depend on D\mathcal{D}, so in particular it holds for every distribution with a given marginal DX\mathcal{D}_\mathcal{X}. The classical agnostic PAC lower bound also carries over. Its hard distributions all have the same marginal, namely the uniform distribution on a set of VC(H)\mathrm{VC}(\mathcal{H}) points shattered by H\mathcal{H}, and only the conditional distribution of the labels depends on the sample size and on the learner. It is therefore a lower bound in the marginal-nonuniform model as well. Combining the two, H\mathcal{H} is agnostically marginal-nonuniformly learnable at exact rate 1n\frac{1}{\sqrt{n}} whenever VC(H)<∞\mathrm{VC}(\mathcal{H}) < \infty. It also provides a fine-grained rate of VC(H)n\sqrt{\frac{\mathrm{VC}(\mathcal{H})}{n}}. Therefore, we could say that the dependence on the marginal does not help.

Relaxed agnostic marginal-nonuniform learning. The 1n\frac{1}{\sqrt{n}} rate is the price of competing with the best concept exactly. In many applications this is more than one needs. Suppose that in the example above the best rule in the class disagrees with the user on 1% of the messages. A guarantee of the form “error at most 1.1%, plus a term of order 1/n1/n” is then far more useful than “error at most 1%, plus a term of order 1/n1/\sqrt{n}”. When the best concept is already good, a small multiplicative loss costs almost nothing, while the additive 1/n1/\sqrt{n} term dominates the bound.

This motivates the relaxed agnostic criterion: for a fixed λ∈(0,1]\lambda \in (0,1], the learner competes with (1+λ)inf⁡h∈HerD(h)(1+\lambda)\inf_{h \in \mathcal{H}} \mathrm{er}_{\mathcal{D}}(h). Guarantees of this multiplicative form are common. The weighted majority algorithm competes with a constant factor times the loss of the best expert [Littlestone and Warmuth, 1994]; efficient algorithms for learning halfspaces with adversarial label noise under suitable distributional assumptions typically guarantee error (1+λ)OPT+ε(1+\lambda)\mathrm{OPT} + \varepsilon or C⋅OPT+εC \cdot \mathrm{OPT} + \varepsilon [Daniely, 2015, Awasthi et al., 2017]; and bounds that improve when the best error is small are known as optimistic or first-order bounds

[Srebro et al., 2010]. The relaxed criterion also interpolates between the two classical settings: when the data are realizable it is the realizable criterion, and as λ→0\lambda \to 0 it becomes the agnostic one.

In this case we show that under the relaxed criterion the realizable picture returns, both for the rates and for the fine-grained rates. The achievable rates form the same trichotomy as in the realizable case [Hanneke et al., 2025b]: exponential for finite classes, linear for infinite classes of finite VC dimension, and arbitrarily slow otherwise. Note that even a finite class only has rate 1n\frac{1}{\sqrt{n}} under the standard criterion, so the multiplicative slack already matters there. The fine-grained rate is of order dλn\frac{d}{\lambda n}, where dd is the uncentered VC-eluder dimension of the class, and the dependence on the marginal is confined to an exponentially small term. So the leading term is again governed by the uncentered VC-eluder dimension rather than by the VC dimension. The VC(H)/n\sqrt{\mathrm{VC}(\mathcal{H})}/n barrier of the agnostic case is therefore caused entirely by insisting on the constant 1 in front of the best error.