Monotone Learning

Olivier Bousquet, Amit Daniely, Haim Kaplan, Yishay Mansour, Shay Moran, Uri Stemmer

Introduction

In this work we study the following fundamental question. Pick some standard learning algorithm AA, and consider training it for some natural task using a data-set of nn examples.

Does feeding AA with more training data provably reduces its population loss?

E.g., would increasing the number of examples from nn to n+1n+1 improve its loss? How about 2n2n? Can one guarantee improvement in this case? What about 2n2^{n}, or even 22n2^{2^{n}}? Would that be sufficient? Can one at least assure that the loss will not deteriorate?

Intuitively, the answer should be yes: indeed, the more often we face a certain task, the better we typically get at solving it. This basic intuition is reflected in many works in theoretical and applied machine learning. For example, Shalev-Shwartz and Ben-David (2014) assert in their book that the learning curve starts decreasing when the number of examples surpasses the VC dimension (page 153); Duda, Hart, and Stork (2001) state in their book that for real-world problems the learning curve is monotone (Subsection 9.6.7). Similar statements are made by a variety of other works, a partial list includes Gu, Hu, and Liu (2001); Tax and Duin (2008); Weiss and Battistin (2014). We refer the reader to the thorough survey by Viering and Loog (2021) for an extensive discussion about monotone and non-monotone learning curves (Section 6).

On the other hand, one might argue that in order to successfully learn complex functions, the algorithm must dedicate time and resources to exploring larger and larger sets of hypotheses, and consequently exhibit a non-monotone behaviour. For example, any Bayes consistent learning algorithm must consider arbitrarily complex hypotheses (since it is able to approximate arbitrary functions). Indeed, one can show that consistent algorithms such as Nearest-Neighbors can demonstrate such non-monotone behaviour (Devroye, Györfi, and Lugosi, 1996). This intuition is reflected in Chapter 6 in the book by Devroye, Györfi, and Lugosi (1996) in which it is conjectured that no Bayes-consistent rules can be monotone (Problem 6.16).

These intuitive considerations inspire a host of theoretical questions. Is it really the case that “more data == better generalization”? Is it at least the case for natural algorithms and natural learning tasks? Perhaps it is too much to expect that the addition of a single example will lead to better performance, but maybe if one doubles the training-set then better performance is guaranteed? Can we at least guarantee that the performance does not deteriorate?

Monotone Learners

A learning rule MM is said to be monotone w.r.t a distribution DD if,

That is, the expected population loss of MM is monotone non-decreasing in the size of its training set.

The following theorem is the main result in this work; it asserts that every learning algorithm can be efficiently transformed to a monotone one with competitive generalization guarantees.

MM is monotone with respect to every distribution DD.

MM’s performance is competitive with that of AA: for every source distribution DD,

Theorem 1.2 affirmatively answers questions posed by Devroye, Györfi, and Lugosi (1996), Viering, Mey, and Loog (2019), Viering and Loog (2021), and Mhammedi (2021). In addition, Theorem 1.2 readily implies monotone learners in a variety of contexts:

Indeed, this follows by applying the transformation on any Bayes-consistent learner (for example, kk-nearest neighbor). This extends Pestov’s result who focused on the case of binary classification and designed a clever histogram-based Bayes consistent algorithm. Moreover, while Pestov’s algorithm and analysis are tailored to the binary case, our argument is more general, and at the same time conceptually (and arguably technically) simpler. The existence of Bayes-optimal consistent learner remained open for 25 years since it was asked by by Devroye, Györfi, and Lugosi (1996).

Theorem 1.2 is also applicable in other contexts. In fact, the distribution-free regret-bound on the learning rate of the monotone learner allows one to apply it in the PAC setting, where monotone learners were not known to exist Viering, Mey, and Loog (2019); Viering and Loog (2021):

Indeed, this follows by applying the transformation on any PAC learning algorithm for H\mathcal{H} (say any empirical risk minimizer). Note that the learning rate of the resulting monotone PAC learner is suboptimal by an additive log⁡m\log m factorThe optimal PAC learning rate is proportional to 1/m\sqrt{1/m}.. We leave the exploration for the optimal monotone PAC learning rate to future work.

1 Informal Explanation

A learning rule, even if it is Bayes consistent, does not have any reason, a priori, to be monotone. Indeed, the fact that the expected error converges to the Bayes error does not mean the convergence happens monotonically and it could very well be that the error strictly increases between mm and m+1m+1 infinitely often. Let us examine what are the difficulties one would encounter when trying to convert a Bayes consistent learner into one that is monotone.

Given any learning algorithm AA that has the following convergence property:

However, the above subsequence of indices is distribution-dependent, which means that we cannot guarantee that if we increase the sample size from some value mm to some other value m′m^{\prime}, the error will be smaller for all distributions.

We first observe that we could relax the monotonicity requirement to hold only for infinitely many steps (or arbitrary size). Indeed, while the monotonicity requirement of Definition 1.1 is written for mm and m+1m+1, we observe that if we had a learner that satisfies a sparse version of this inequality, such as

it would be easy to convert it into a learner that satisfies Definition 1.1 without affecting the limit of its population loss as m→∞m\to\infty. Indeed, the above condition guarantees that there is an infinite sequence m1,…,mk,…m_{1},\ldots,m_{k},\ldots of indices over which the algorithm is guaranteed not to increase its expected loss. This sequence can be defined as m1=1m_{1}=1 and mk+1=m′(mk)m_{k+1}=m^{\prime}(m_{k}). And from this, one could create a learner that, given mm examples with m∈[mk,mk+1)m\in[m_{k},m_{k+1}), simply ignores m−mkm-m_{k} examples from the training set. The monotonicity condition would then be satisfied with equality between mkm_{k} and mk+1m_{k+1} since the output of our algorithm would be unchanged (in expectation).

So in order to convert an arbitrary learning rule into one that is monotone, while still retaining its convergence properties, the main idea is to run the algorithm on prefixes of the training sample and measure the loss of the produced hypotheses in order to pick the best one. As the sample size increases, the pool of hypotheses to choose from will increase and the best one from a larger pool will thus have a smaller loss than from a smaller pool. This idea has been previously explored by Viering, Mey, and Loog (2020); Mhammedi (2021).

However, implementing this idea turns out to be a subtle task. Indeed, we can only estimate the loss of the hypotheses (by setting aside some examples and computing their empirical loss), so there is always some possibility that we choose a worse hypothesis (which empirically looks better).

To illustrate the issue, let’s consider the simplest possible situation where the base algorithm has produced a hypothesis h0h_{0} on a prefix of the sample, and another hypothesis h1h_{1} on a longer prefix. If LD⁡(h1)≤LD⁡(h0)\operatorname{L_{D}}(h_{1})\leq\operatorname{L_{D}}(h_{0}), the base algorithm is already monotone, but in the case LD⁡(h1)>LD⁡(h0)\operatorname{L_{D}}(h_{1})>\operatorname{L_{D}}(h_{0}), any wrapper algorithm would have to choose between outputting h0h_{0} or h1h_{1}. Unfortunately, this choice will necessarily worsen the error (unless the wrapper always outputs h0h_{0} deterministically, in which case it would not manage to track the performance of the base algorithm). Indeed, the expected loss of any wrapper would be a convex combination of LD⁡(h1)\operatorname{L_{D}}(h_{1}) and LD⁡(h0)\operatorname{L_{D}}(h_{0}) and would be strictly larger than LD⁡(h0)\operatorname{L_{D}}(h_{0}).

So we cannot simply take the output of the base algorithm, and the idea is to regularize it, i.e., make it possibly a little worse but in such a way that this regularization can be reduced as the sample size increases and thus we can guarantee monotonicity.

The question thus becomes: given a hypothesis hh, is there a way to produce a hypothesis h′h^{\prime} that is guaranteed to be worse than hh (i.e., LD⁡(h′)>LD⁡(h)\operatorname{L_{D}}(h^{\prime})>\operatorname{L_{D}}(h)) and to possibly control how much worse it is? The first idea that comes to mind is to sometimes output a label which we know is incorrect. This would be possible if we add some extra label at our disposal, e.g., in binary classification we would allow the learner to output something different from or 11, say ⊥\bot and count ⊥\bot as a mistake. But this is somewhat artificial and would require to change the nature of the algorithm’s predictions. So the second idea that comes to mind is to just add noise to the output of the algorithm, i.e., to randomly pick a different label than the one predicted. Unfortunately, in the context of classification, adding noise does not guarantee that the loss is made worse! Indeed, in binary classification, if LD⁡(h)>1/2\operatorname{L_{D}}(h)>1/2, adding some uniform noise to the output would make the error closer to 1/21/2, hence better and not worse.

So we see that if we could, given a hypothesis hh, which could have error larger than 1/21/2, return one that is guaranteed to have error less than 1/21/2, we could then make the latter worse by adding uniform noise. This brings us to our last key idea: we symmetrize the output by replacing the hypothesis produced by the base algorithm by the best (in terms of empirical error) between hh and 1−h1-h. We can then guarantee (we will prove it below) that the expected loss of this symmetrized output is less than 1/21/2 and adding noise will thus strictly increase its loss, making room for reducing the loss when we choose between h0h_{0} and h1h_{1}.

Symmetrization is more subtle in the context of multiclass classification with k>2k>2 labels; the idea there is to replace hh with the best out of kk hypotheses which are obtained by composing hh with a cyclic permutation of the labels. For simplicity, we focus on the binary-case in this outline.

Let us now try and write down some of the ideas above more formally. The overall approach is to run the base algorithm on a prefix of size nn of the sample SS to obtain some hypothesis h0h_{0}, apply some transformation (which we call regularization) to h0h_{0} which consists of symmetrizing and adding noise, in order to obtain R(h0,S)R(h_{0},S). Then perform the same operation on a longer prefix of size N>nN>n of SS to obtain R(h1,S)R(h_{1},S) and then decide whether to use h0h_{0} or h1h_{1} by estimating their respective errors (on an additional subset of NN examples from SS). If we denote by pNp_{N} the probability of choosing h1h_{1} over h0h_{0}, we see that the expected error of the resulting procedure will have the formWe will later provide more details about how to split the training sample so as to guarantee independence and decouple the expecations appropriately.

and if we want to satisfy Inequality (1), this quantity would have to be smaller than the expected error of our procedure ran on nn examples, i.e., we would want

As discussed above, without regularization, i.e., if RR is the identity, there is no way to guarantee this inequality for every pair h0,h1h_{0},h_{1}, and the problematic case is when h1h_{1} is worse than h0h_{0}, or when R(h1,S)R(h_{1},S) is worse than R(h0,S)R(h_{0},S). If we rewrite the above condition as follows:

we see that in order for it to be satisfied even when R(h1,S)R(h_{1},S) is worse than R(h0,S)R(h_{0},S), we need

pNp_{N} has to be small enough (to make the left hand side small enough).

The regularization over NN examples has to be strictly better than the regularization over nn examples (to make the right hand side positive and large enough).

2 Technical Contributions

The technical contribution in this work can roughly be partitioned to two parts:

We develop a general axiomatic framework for constructing transformations which compile arbitrary learners to monotone learners with similar guarantees (Section 2). We attempt to state this framework in an abstract manner with the hope that it might be useful for other loss functions.

In a nutshell, this framework reduces the task to constructing for every hypothesis hh a small and symmetric class BhB_{h} such that h∈Bhh\in B_{h}, and BhB_{h} can be learned by a monotone learner; for example, in the context of binary classification (Y={0,1}Y=\{0,1\}) we use Bh={h,1−h}B_{h}=\{h,1-h\}. More generally, in the context of multiclass classification (Y=[k]={0,…,k−1}Y=[k]=\{0,\ldots,k-1\}), we use Bh={si∘h:i∈[k]}B_{h}=\{s_{i}\circ h:i\in[k]\}, where sis_{i} is the cyclic permutations mapping a label yy to y+imod  ky+i\mod k.

In Sections 3 and 4 we use our general framework to prove Theorem 1.2. In Section 3 we focus on the case of binary classification; this section serves as a warmup to the general multiclass setting which is considered in Section 4.

The most technical proof in this work is that of Proposition 4.1, specifically Lemma 4.2 which asserts that the randomized ERM over BhB_{h} is monotone: Recall that for a hypothesis h:X→{0,…,k−1}h:X\to\{0,\ldots,k-1\}, the class BhB_{h} consists of the kk cyclic permutations of hh: Bh={si∘h:i∈[k]}B_{h}=\{s_{i}\circ h:i\in[k]\}, where sis_{i} is a cyclic permutation mapping y↦y+imod  ky\mapsto y+i\mod k. The randomized ERM is the algorithm which given an input sample SS, outputs an empirical risk minimizer from BhB_{h} which is drawn uniformly at random.

To prove Proposition 4.1 we exploit the following symmetry exhibited by BhB_{h}: for any example (x,y)(x,y) there exists a unique h′∈Bhh^{\prime}\in B_{h} such that h′(x)=yh^{\prime}(x)=y. This implies, via a symmetrization argument and via Chebychev’s sum inequalityChebyshev’s sum inequality asserts that if a1≤a2≤…≤ana_{1}\leq a_{2}\leq\ldots\leq a_{n} and b1≥b2≥…bnb_{1}\geq b_{2}\geq\ldots b_{n} then 1n∑ai⋅1n∑bi≥1naibi\frac{1}{n}\sum a_{i}\cdot\frac{1}{n}\sum b_{i}\geq\frac{1}{n}a_{i}b_{i}. the desired monotonicity (Hardy, Littlewood, and Pólya, 1988).

We also note that the upper bound on the rate in Theorem 1.2 is independent of the number of labels kk. To achieve this we once again appeal to the symmetric structure of BhB_{h}, and show that BhB_{h} satisfies uniform convergence with rate which is independent of kk.

3 Related Work

The idea of monotone learning curves for universally consistent learners was first discussed by Devroye, Györfi, and Lugosi (1996).This problem attracted little attention until recently when Viering, Mey, and Loog (2019) considered monotone learning in a variety of contexts (e.g., when the goal is to learn a fix hypothesis class) and under more general loss functions. Viering, Mey, and Loog (2020), Viering and Loog (2021), and Mhammedi (2021) considered the problem of transforming a given learner to a monotone one using a wrapper algorithm. Viering, Mey, and Loog (2020) and Mhammedi (2021) derive weaker forms of monotonicity and leave open the question of whether such a transformation exists. In this work we resolve this problem in the context of multiclass classification.

The conjecture by Devroye et al. (1996) was finally answered in the positive by Pestov (2021). Pestov’s result applies to binary classification, and here we prove an extension to general multiclass classification.

Viering, Mey, and Loog (2020) proposes to relax the requirement of monotonicity in expectation into high-probability and eventual monotonicity. Viering, Mey, and Loog (2020) and Mhammedi (2021) also discuss the relationship with the multiple descent phenomenon established for many learners in recent years.

It is important to note that the open problem proposed by Viering et al. (2019) is concerning consistency with respect to a fixed class of function. So this is less general than the universal consistency of (Devroye, Györfi, and Lugosi, 1996).

While Pestov (2021) just builds a specific algorithm and not a generic wrapper, and considers only the binary classification case, there are some similarities between his approach and ours that are worth illustrating. Indeed, his algorithm consists in the following three ingredients

Consider prefixes of the input sample of (exponentially) increasing size

Perform a majority vote over a partition of the input domain

Decide (empirically) whether or not to split each element of the partition into smaller pieces

The first ingredient is similar to our (and other’s) approach of guaranteeing monotonicity on an infinite sequence of indices (what we call sparse monotonicity above), the second one bears some similarity with our symmetrization approach since the majority vote consists in comparing hh and 1−h1-h, and the last one is comparable with our update procedure which decides whether to continue using h0h_{0} or to switch to h1h_{1}.

However there is one important difference which is key to obtaining a uniform bound on the excess loss of our monotone algorithm. Indeed, Pestov does not regularize by adding noise which requires him to refine the partition element under some very restrictive conditions (the conditional loss on the partition should not be close to 1/21/2 nor to or 11) which has the effect of requiring to make a very large increases of the sample size between two stages, resulting in a slower, non-uniform, convergence rate (more specifically, he does not provide an explicit formula for computing NN from nn).

General Framework

Given an algorithm AA which maps an input sample SS to an output hypothesis A(S)A(S), we construct a monotone algorithm MM using two intermediate algorithms:

A regularization algorithm RR is an algorithm that takes as input a sample SS and a hypothesis hh and returns a (possibly randomized) hypothesis R(h,S)R(h,S). It might be useful/intuitive to think about R(h,S)R(h,S) as a smooth/regularized version of hh.

An update algorithm UU is an algorithm that takes as an input a sample SS and two hypotheses: (i) h0h_{0} which is called the current hypothesis, and (ii) h1h_{1} which is called the candidate hypothesis. The algorithm then outputs a hypothesis denoted by U(h0,h1,S)∈{h0,h1}U(h_{0},h_{1},S)\in\{h_{0},h_{1}\}. Intuitively, UU chooses whether to replace the current hypothesis h0h_{0} with the candidate hypothesis h1h_{1}, when the latter has smaller error.

The monotone algorithm will then be constructed in an iterative manner from AA by applying AA to prefixes of the training sample of increasing size and using the update algorithm at each step to decide whether to keep the current hypothesis or to update it to the new one (built on a longer prefix). At the end, we output a normalized version of the currently chosen hypothesis.

The update algorithm ensures that with high probability we update the hypothesis only when the new hypothesis has better (smaller) loss than the previous one. But since there is still a small chance we have updated to a worse hypothesis, the regularization step will be used to correct for corresponding additional expected loss.

See Figure 1 for a more precise description of the algorithm MM.

We introduce several conditions on the update and regularization algorithms which guarantee the success of Algorithm MM when applied to any learning algorithm AA. We then analyze our algorithms by showing that they satisfy these conditions. Let us begin by introducing some notation: given a hypothesis hh, denote by LRn(h)\mathtt{LR}_{n}(h) the quantity

where the expectation is with respect to the sample SS of size nn.

Let RR be a regularization algorithm, let UU be an update algorithm. We say that (R,U)(R,U) are successful if for every source distribution DD the following conditions are satisfied:

After regularization, the expected loss of the update algorithm is non-increasing:

The update algorithm competes with the new hypothesis at a small cost:

for some function cc such that lim⁡n→∞c(n)=0\lim_{n\to\infty}c(n)=0.

where TT and ST−2S_{T-2} are as in the pseudo-code of MM in Figure 1.

The case of m<2b(1)+b(0)m<2b(1)+b(0) is trivial, so we assume that m≥2b(1)+b(0)m\geq 2b(1)+b(0). We start by proving monotonicity. We only need to consider the case where a new block is added (otherwise, the additional examples are simply discarded and thus the expected error is unchanged). In this case, it is sufficient to consider the effect of adding a new block BTB_{T} and prove that

Conditioned on ST−2S_{T-2}, the hypotheses fT−2f_{T-2} and hT−1h_{T-1} are fixed and

is a function of BT−1B_{T-1} (which is not under conditioning). Therefore,

where the last inequality follows by of Condition (C1)Notice that we apply (C1) here while conditioning on ST−2S_{T-2}. This is valid because BT−1B_{T-1} is independent of ST−2S_{T-2} and therefore Condition (C1) applies for every fixing of ST−2S_{T-2}.. Equation (3) now follows by taking expectation over ST−2S_{T-2}.

For the second part, observe that Condition (C2) implies that

1 The Base-Class Approach

We design two algorithms using our framework above, one in binary classification which serves as a “warmup” and a more general one in multiclass classification. In this subsection we describe a common abstraction of these two algorithms. We hope this abstraction will be useful in other contexts as well. (E.g., other loss functions.)

The common abstraction boils down to assuming that every hypothesis hh has an associated simple hypothesis class BhB_{h} such that h∈Bhh\in B_{h}. For example in the context of binary classification (Y={0,1}Y=\{0,1\}) our BhB_{h} will consist of two hypotheses: hh and its negation 1−h1-h; i.e., Bh={h,1−h}B_{h}=\{h,1-h\}. More generally in multiclass classification with kk labels our BhB_{h} will consist of kk hypotheses.

We require that BhB_{h} is “well-behaved” in a precise sense which we next describe. Consider the following randomized empirical risk minimizer over BhB_{h}.

Algorithm GG: Randomized Empirical Risk Minimization • Input: a hypothesis h∈YXh\in Y^{X} and a sample S∈(X×Y)nS\in(X\times Y)^{n} • Set Bh⋆={f∈Bh:L^S⁡(f)=min⁡g∈BhL^S⁡(g)}B_{h}^{\star}=\{f\in B_{h}:\operatorname{\hat{L}_{S}}(f)=\min_{g\in B_{h}}\operatorname{\hat{L}_{S}}(g)\} • Output: a uniformly random hypothesis from Bh⋆B_{h}^{\star}, which is denoted by G(h,S)G(h,S). In words, G(h,S)G(h,S) is a random empirical risk minimizer in BhB_{h}. Note that on the empty sample, G(h,∅)G(h,\emptyset) is a random hypothesis drawn uniformly from BhB_{h}.

Let LGn(h)\mathtt{LG}_{n}(h) denote the expected loss of G(h,S)G(h,S) where SS is of size nn:

Let h↦Bhh\mapsto B_{h} be a mapping which associates with every hypothesis hh a finite hypothesis class BhB_{h} such that h∈Bhh\in B_{h}. This mapping is called successful if the following properties are satisfied:

The loss of the randomized ERM over BhB_{h} is monotone

There exists a function e(n)e(n) with lim⁡n→∞e(n)=0\lim_{n\to\infty}e(n)=0 such that every BhB_{h} satisfies uniform convergence with rate e(n)e(n):

The loss of the random ERM on the empty sample is independent of hh and of the source distribution DD:

In other words, the expected loss of a uniform random hypothesis from BhB_{h} is equal to a universal constant α\alpha which does not depend on hh. (α\alpha can depend on the source distribution DD.)

The first condition above could be relaxed into LGN(h)≤LGn(h)\mathtt{LG}_{N}(h)\leq\mathtt{LG}_{n}(h) for some N≥nN\geq n large enough. Indeed this would be sufficient to derive condition (C1). But we will show that the randomized ERM that we consider actually satisfies the stronger property of monotonicity for N=n+1N=n+1.

The second item above implies (via a triangle inequality) that the randomized ERM G(h,⋅)G(h,\cdot) is competitive with hh:

(Note that min⁡f∈BhLD⁡(f)≤LD⁡(h)\min_{f\in B_{h}}\operatorname{L_{D}}(f)\leq\operatorname{L_{D}}(h), since h∈Bhh\in B_{h}.)

We next describe how a successful map h↦Bhh\mapsto B_{h} yields a successful pair of regularization and update algorithms.

The Regularization Algorithm RR • Input: a hypothesis h∈YXh\in Y^{X}, a sample S∈(X×Y)nS\in(X\times Y)^{n}. • Output: with probability 1−ηn1-\eta_{n} output G(h,S)G(h,S) and with probability ηn\eta_{n} output G(h,∅)G(h,\emptyset). Here ηn∈(0,1)\eta_{n}\in(0,1) is a decreasing function of nn satisfying lim⁡n→∞ηn=0\lim_{n\to\infty}\eta_{n}=0. The Update Algorithm UU • Input: two hypotheses h0,h1∈YXh_{0},h_{1}\in Y^{X}, a sample S∈(X×Y)nS\in(X\times Y)^{n}. • Compute min⁡f∈Bh0L^S⁡(f)\min_{f\in B_{h_{0}}}\operatorname{\hat{L}_{S}}(f) and min⁡f∈Bh1L^S⁡(f)+ϵn\min_{f\in B_{h_{1}}}\operatorname{\hat{L}_{S}}(f)+\epsilon_{n}, and output h0h_{0} if the first quantity is smaller and h1h_{1} otherwise. Here ϵn∈(0,1)\epsilon_{n}\in(0,1) is a decreasing function of nn satisfying lim⁡n→∞ϵn=0\lim_{n\to\infty}\epsilon_{n}=0. Proposition 2 (Base-class). Assume h↦Bhh\mapsto B_{h} is successful with uniform convergence rate e(n)e(n). Then, the update algorithm UU and the regularization algorithm RR with parameters

satisfy Condition (C1) with N(n)=4nN(n)=4n and condition (C2) with c(n)=2ηn+3ϵnc(n)=2\eta_{n}+3\epsilon_{n}.

The rest of this section is dedicated to proving Proposition 2. We begin with collecting some simple properties of the regularization and update algorithms, and then continue to establish Conditions (C1) and (C2).

2 Basic Properties of R𝑅R and U𝑈U

Fix a source distribution DD. Recall the definition of LRn\mathtt{LR}_{n} (Equation 2):

We next present some basic properties of LRn\mathtt{LR}_{n} which will be useful in proving Proposition 2.

A simple calculation yields the following relationship between LGn\mathtt{LG}_{n} and LRn\mathtt{LR}_{n}: for every hypothesis hh and every nn:

The following claim asserts that LRn\mathtt{LR}_{n} is monotone:

For all n,mn,m, if m≥nm\geq n and ηm≤ηn≤1\eta_{m}\leq\eta_{n}\leq 1 then

Lastly, observe that RR does not deteriorate the performance of hh:

3 Update Probability

We first provide upper and lower bounds on the probability of making an update.

Let {\color[rgb]{0,0,0}\definecolor[named]{pgfstrokecolor}{rgb}{0,0,0}\pgfsys@color@gray@stroke{0}\pgfsys@color@gray@fill{0}u_{n}=\epsilon_{n}-6e(n)}=\sqrt{\ln(64n)/n}. (Recall the definition of ϵn\epsilon_{n} in Proposition 2.) If LRn(h1)>LRn(h0)\mathtt{LR}_{n}(h_{1})>\mathtt{LR}_{n}(h_{0}) then

and if LRn(h1)<LRn(h0)−2ϵn\mathtt{LR}_{n}(h_{1})<\mathtt{LR}_{n}(h_{0})-2\epsilon_{n} then

To simplify the calculations below, for a hypothesis hh let

We first connect the performance of the regularized versions of the hypotheses h0h_{0} and h1h_{1} to their error probability LD∗⁡(h0)\operatorname{L_{D}^{*}}(h_{0}) and LD∗⁡(h1)\operatorname{L_{D}^{*}}(h_{1}). From Equation (5) we obtain

Recall from the pseudo-code of the update algorithm UU that the probability of update, which we denote pnp_{n} is given by

Hence we have the following implications:

4 Condition (C1)

Under the assumptions of Proposition 2, Condition (C1) is satisfied with N(n)=4nN(n)=4n.

Thus, assume that LRN(h1)>LRn(h0)\mathtt{LR}_{N}(h_{1})>\mathtt{LR}_{n}(h_{0}). By Equation (10),

Therefore, it suffices to show that in this case

Denoting η′=ηn−ηN≥0\eta^{\prime}=\eta_{n}-\eta_{N}\geq 0, we have, by Claim 1:

Further, because LGN(⋅)≤α\mathtt{LG}_{N}(\cdot)\leq\alpha,

Hence, condition (C1) is satisfied provided that pN≤η′p_{N}\leq\eta^{\prime}. By Lemma 2.5, we have

5 Condition (C2)

Under the assumptions of Propositon 2, Condition (C2) is satisfied with

Let qn:=Pr⁡S∼Dn[U(h0,h1,S)=h0]q_{n}:=\Pr_{S\sim D^{n}}[U(h_{0},h_{1},S)=h_{0}] be the probability of not switching to h1h_{1}. Thus,

Therefore, if LRn(h0)≤LRn(h1)+2ϵn\mathtt{LR}_{n}(h_{0})\leq\mathtt{LR}_{n}(h_{1})+2\epsilon_{n} then :

Thus, the conclusion holds in this case. Therefore, assume that LRn(h0)>LRn(h1)+2ϵn\mathtt{LR}_{n}(h_{0})>\mathtt{LR}_{n}(h_{1})+2\epsilon_{n}. In this case,

Binary Classification

In this section we prove that in the setting of binary classification, one can associate with every hypothesis hh a base class BhB_{h} such that Definition 2.2 is satisfied.

Let the label-space YY be Y={0,1}Y=\{0,1\}. For each h:X→Yh:X\to Y let Bh={h,1−h}B_{h}=\{h,1-h\}. Then, the mapping h→Bhh\to B_{h} is successful with uniform convergence rate e(n)=1/ne(n)=1/\sqrt{n} and with α=1/2\alpha=1/2.

That e(n)=1/ne(n)=1/\sqrt{n} follows by elementary probabilistic argument (essentially bounding the variance of a Binomial random variable):

Also, showing that α=1/2\alpha=1/2 is simple: indeed for every distribution DD:

Thus, it remains to prove the first Item in Definition 2.2:

For all n,mn,m such that m≥nm\geq n we have

We note that Pestov (2021) proved this statement when m,nm,n are odd. (See Lemma 3.1 in (Pestov, 2021)). We defer the proof to the next section where we derive a more general result that applies to multiclass with an arbitrary number of labels kk. (See Lemma 4.2.) ∎

Multiclass Classification

We consider the multiclass case with k<∞k<\infty labels. A hypothesis is a map from XX to [k][k]. To define BhB_{h} we introduce cyclic permutations s0,…,sk−1s_{0},\ldots,s_{k-1} of [k][k] (si(j)=(j+i)mod  ks_{i}(j)=(j+i)\mod k) and let Bh={si∘h:i≤k}B_{h}=\{s_{i}\circ h:i\leq k\}.

Let the label-space YY be Y=[k]Y=[k]. For each h:X→Yh:X\to Y let Bh={si∘h:i≤k}B_{h}=\{s_{i}\circ h:i\leq k\}. Then, the mapping h→Bhh\to B_{h} is successful with uniform convergence rate e(n)=36/ne(n)=36/\sqrt{n} and with α=k−1k\alpha=\frac{k-1}{k}.

Let h∈Hh\in H. We begin with the simplest part: namely that α=k−1k\alpha=\frac{k-1}{k}. Notice that the events

are pairwise disjoint; in fact they form a partition of X×YX\times Y because for each (x,y)(x,y) there is a unique ii such that si∘h(x)=ys_{i}\circ h(x)=y). Therefore, for every distribution DD over X×YX\times Y:

Above, DSD_{S} denotes the empirical distribution induced by the sample S={(xi,yi)}i=1mS=\{(x_{i},y_{i})\}_{i=1}^{m} (i.e., DS(E)=1m∑i=1m1[(xi,yi)∈E]D_{S}(E)=\frac{1}{m}\sum_{i=1}^{m}1[(x_{i},y_{i})\in E].). Thus, it remains to prove the first Item in Definition 2.2:

For all n,mn,m such that m≥nm\geq n we have

By induction, it suffices to consider the case of m=n+1m=n+1.

We first reformulate this problem in simpler terms. Recall that any example z=(x,y)z=(x,y) is classified correctly by exactly one of the hjh_{j}’s in BhB_{h}. Thus, partition the domain into sets E1,…,EkE_{1},\ldots,E_{k} (with k=∣Bh∣k=\lvert B_{h}\rvert) such that z∈Ej⇔hj(x)=yz\in E_{j}\Leftrightarrow h_{j}(x)=y. Thus, we have Pr⁡(Ej)=1−LD⁡(hj)\Pr(E_{j})=1-\operatorname{L_{D}}(h_{j}). To simplify the expressions below we denote

Let S={zi}i=1n∼DnS=\{z_{i}\}_{i=1}^{n}\sim D^{n} be an i.i.d sample and let i≤ni\leq n. Define XiX_{i} to be the random variable which is equal to the unique index jj such that zi∈Ejz_{i}\in E_{j}. (I.e., hjh_{j} correctly classifies ziz_{i}.) Notice that the variables (X1,…,Xn)(X_{1},\ldots,X_{n}) are i.i.d. with values in [k][k] and distribution given by Pr⁡(Xi=j)=pj\Pr(X_{i}=j)=p_{j} for all i≤n,j≤ki\leq n,j\leq k. We can then express LGn(h)\mathtt{LG}_{n}(h) as the expectation over the sample Ln=(X1,…,Xn){L_{n}}=(X_{1},\ldots,X_{n}) of the quantity

where I=I(Ln)I=I({L_{n}}) is the set of indices jj such that ∑i=1n1[Xi=j]\sum_{i=1}^{n}1[X_{i}=j] is largest. (Equivalently, such that hjh_{j} is an empirical risk minimizer in BhB_{h} with respect to the input sample SS.)

Let L=Ln+1{L=L_{n+1}} be a sample of n+1n+1 such variables (X1,…,Xn+1)(X_{1},\ldots,X_{n+1}) (corresponding to an input sample S∼Dn+1S\sim D^{n+1}), and let L−iL^{-i} denote the sample LL without its ii-th element, by symmetry and by linearity of expectation, we have

We first study the above quantity when conditioned on ∣I∣>1\lvert I\rvert>1 (i.e., there are at least 22 empirical risk minimizers in BhB_{h}). Notice that when ∣I∣>1\lvert I\rvert>1 every i≤n+1i\leq n+1 satisfies Ii⊆II_{i}\subseteq I, where Ii=I(L−i)I_{i}=I(L^{-i}). Also notice that if ∣I∣>1\lvert I\rvert>1 then Ii=II_{i}=I if and only if Xi∉IX_{i}\notin I. Thus,

Since all elements of II have the same number of successes, the sum ∑i=1n+11[Xi=k]\sum_{i=1}^{n+1}1[X_{i}=k] is the same for all k∈Ik\in I and since

Now let us consider the case ∣I∣=1|I|=1. Let J⊇IJ\supseteq I denote the set of almost minimizers (i.e., which are either optimal or one away from being optimal). We further condition on JJ being some arbitrary fixed set J0J_{0}:

Therefore, since Pr⁡[I={Xn+1}∣∣I∣=1,J=J0}]>0\Pr[I=\{X_{n+1}\}|\lvert I\rvert=1,J=J_{0}\}]>0, it is enough to consider

Equation (13) above follows because the event that the set of almost minimizers JJ is J0J_{0} and the unique minimizer is Xn+1X_{n+1} is equivalent to the event that the set of minimizers with respect to the first nn samples X1,…,XnX_{1},\ldots,X_{n} is J0J_{0} and Xn+1∈J0X_{n+1}\in J_{0}.

Finally, to see that the above is non-positive we use Chebyshev’s sum inequality, which asserts that if a1≤…≤ana_{1}\leq\ldots\leq a_{n} and b1≥…≥bnb_{1}\geq\ldots\geq b_{n} then 1n∑ai⋅1n∑bi≥1n∑aibi\frac{1}{n}\sum a_{i}\cdot\frac{1}{n}\sum b_{i}\geq\frac{1}{n}\sum a_{i}b_{i} (Hardy, Littlewood, and Pólya, 1988). Thus, since pi=1−qip_{i}=1-q_{i}, this inequality implies that the left term inside the brackets is upper bounded by the right term, and so we get that the difference is non-positive. Hence, for every choice of J0J_{0}:

which together with Equation (12) allows to conclude the proof of the lemma. ∎

This concludes the proof of Proposition 4.1. ∎

Wrapping Up

Let AA be any learning algorithm Proposition 4.1, Proposition 2, and Proposition 1 imply the existence of a monotone algorithm MM such that for all m≥2⋅b(1)+b(0)m\geq 2\cdot b(1)+b(0),

T=T(m)T=T(m) is the maximal integer such that b(T−1)+∑t=0T−1b(t)≤mb(T-1)+\sum_{t=0}^{T-1}b(t)\leq m, and

ST−2S_{T-2} is an i.i.d sample from the source distribution DD of size ∑t=0T−2b(t)\sum_{t=0}^{T-2}b(t).

c(x)=2\cdot\frac{1}{2\sqrt{x}}+3\Bigl{(}\sqrt{{\ln(64x)}/{x}}+{\color[rgb]{0,0,0}\definecolor[named]{pgfstrokecolor}{rgb}{0,0,0}\pgfsys@color@gray@stroke{0}\pgfsys@color@gray@fill{0}6\cdot\frac{36}{\sqrt{x}}}\Bigr{)}=O\Bigl{(}\sqrt{\frac{\log x}{x}}\Bigr{)},

Since MM is monotone, it remains to prove that MM’s performance is competitive with that of AA. The case of input sample-size m<2b(1)+b(0)=9m<2b(1)+b(0)=9 is trivial. So, assume m≥9m\geq 9 and hence Equation 14 holds. By Items 1–4 above it suffices to show that ∣ST−2∣≥(m/30)−1\lvert S_{T-2}\rvert\geq(m/30)-1 and that b(T−1)≥m/10b(T-1)\geq m/10. We proceed by showing that T=T(m)=Θ(log⁡m)T=T(m)=\Theta(\log m). Recall that TT is the maximal positive integer such that

and b(T−1)b(T-1), ∣ST−2∣\lvert S_{T-2}\rvert satisfy:

Open Questions and Future Research

We conclude this manuscript with some suggestions of open problems for future research.

While the abstract framework developed in Section 2 extends to other (bounded) loss functions, the construction of the base classes BhB_{h} is tailored to the zero/one loss. It will be interesting to explore to which loss functions can one extend Theorem 1.2.

It will be interesting to explore whether the bound on the rate in Theorem 1.2 can be strengthened to retain optimal learning rates.

For example, for PAC learnable classes H⊆{0,1}X\mathcal{H}\subseteq\{0,1\}^{X}, the optimal learning rate in the agnostic setting scales like d/m\sqrt{d/m}, and in the realizable setting like d/md/m, where dd is the VC dimension and mm is the input-sample size. Can these optimal rates be achieved by a monotone learning rule? Note that Theorem 1.2 is off by a log⁡m\log m factor.

Another interesting setting to explore this question is the model of universal learning, in which one focuses on distribution-dependent rates (Bousquet, Hanneke, Moran, van Handel, and Yehudayoff, 2021). In contrast with the distribution-free nature of PAC learning, some classes can be learned exponentially fast, at a rate which scales like exp⁡(−n)\exp(-n) (Schuurmans, 1997; Bousquet, Hanneke, Moran, van Handel, and Yehudayoff, 2021). Can such classes be learned monotonically in this fast rate?

Which classes admit a monotone empirical risk minimizer (ERM)? One of the key technical steps in our proof was to show that the class BhB_{h} admits a monotone ERM. Our proof exploited the symmetry of BhB_{h} (specifically, that each example is classified correctly by exactly one hypothesis in BhB_{h}). It will be interesting to determine which other classes admit monotone ERMs. In fact, as far as we know it is even open whether every (learnable) class admits a monotone ERM.

Acknowledgements

We thank Gábor Lugosi for an insightful correspondence that helped to materialize the ideas leading to this work. We also thank Grigoris Velegkas and Amin Karbasi, and Gyeongwon Jeong and Jaehui Hwang for helping us correcting derivations in the proofs of Lemma 4.2 and Lemma 2.5.

References