The Rate of Convergence of AdaBoost
Indraneel Mukherjee, Cynthia Rudin, Robert E. Schapire
Introduction
The AdaBoost algorithm of Freund and Schapire (1997) was designed to combine many “weak” hypotheses that perform slightly better than random guessing into a “strong” hypothesis that has very low error. Despite extensive theoretical and empirical study, basic properties of AdaBoost’s convergence are not fully understood. In this work, we focus on one of those properties, namely, to find convergence rates that hold in the absence of any simplifying assumptions. Such assumptions, relied upon in much of the preceding work, make it easier to prove a fast convergence rate for AdaBoost, but often do not hold in the cases where AdaBoost is commonly applied.
where is a vector of weights or parameters. In each iteration, a coordinate descent algorithm moves some distance along some coordinate direction . For AdaBoost, the coordinate directions correspond to the individual weak hypotheses. Thus, on each round, AdaBoost chooses some weak hypothesis and step length, and adds these to the current weighted combination of weak hypotheses, which is equivalent to updating a single weight. The direction and step length are so chosen that the resulting vector in iteration yields a lower value of the exponential loss than in the previous iteration, . This repeats until it reaches a minimizer if one exists. It was shown by Collins et al. (2002), and later by Zhang and Yu (2005), that AdaBoost asymptotically converges to the minimum possible exponential loss. That is,
However, that work did not address a convergence rate to the minimizer of the exponential loss.
Our work specifically addresses a recent conjecture of Schapire (2010) stating that there exists a positive constant and a polynomial such that for all training sets and all finite sets of weak hypotheses, and for all ,
We provide also a convergence rate of AdaBoost to the minimum value of the exponential loss. Namely, within iterations, AdaBoost achieves a value of the exponential loss that is at most more than the best possible value, where depends on the dataset. This convergence rate is different from the one discussed above in that it has better dependence on (in fact the dependence is optimal, as we show), and does not depend on the best solution within a ball of size . However, this second convergence rate cannot be used to prove (1) since in certain worst case situations, we show the constant may be larger than (although usually it will be much smaller).
Within the proof of the second convergence rate, we provide a lemma (called the decomposition lemma) that shows that the training set can be split into two sets of examples: the “finite margin set,” and the “zero loss set.” Examples in the finite margin set always make a positive contribution to the exponential loss, and they never lie too far from the decision boundary. Examples in the zero loss set do not have these properties. If we consider the exponential loss where the sum is only over the finite margin set (rather than over all training examples), it is minimized by a finite . The fact that the training set can be decomposed into these two classes is the key step in proving the second convergence rate.
This problem of determining the rate of convergence is relevant in the proof of the consistency of AdaBoost given by Bartlett and Traskin (2007), where it has a direct impact on the rate at which AdaBoost converges to the Bayes optimal classifier (under suitable assumptions). It may also be relevant to practitioners who wish to have a guarantee on the exponential loss value at iteration (although, in general, minimization of the exponential loss need not be perfectly correlated with test accuracy).
There have been several works that make additional assumptions on the exponential loss in order to attain a better bound on the rate, but those assumptions are not true in general, and cases are known where each of these assumptions are violated. For instance, better bounds are proved by Rätsch et al. (2002) using results from Luo and Tseng (1992), but these appear to require that the exponential loss be minimized by a finite , and also depend on quantities that are not easily measured. There are many cases where does not have a finite minimizer; in fact, one such case is provided by Schapire (2010). Shalev-Shwartz and Singer (2008) have proven bounds for a variant of AdaBoost. Zhang and Yu (2005) also have given rates of convergence, but their technique requires a bound on the change in the size of at each iteration that does not necessarily hold for AdaBoost. Many classic results are known on the convergence of iterative algorithms generally (see for instance Luenberger and Ye, 2008; Boyd and Vandenberghe, 2004); however, these typically start by assuming that the minimum is attained at some finite point in the (usually compact) space of interest, assumptions that do not generally hold in our setting. When the weak learning assumption holds, there is a parameter that governs the improvement of the exponential loss at each iteration. Freund and Schapire (1997) and Schapire and Singer (1999) showed that the exponential loss is at most after rounds, so AdaBoost rapidly converges to the minimum possible loss under this assumption.
In Section 2 we summarize the coordinate descent view of AdaBoost. Section 3 contains the proof of the conjecture, with associated lower bounds proved in Section 3.3. Section 4 provides the convergence rate. The proof of the decomposition lemma is given in Section 4.2.
Coordinate Descent View of AdaBoost
Since each is equal to for some , can also be written for a vector of values (such vectors will sometimes also be referred to as combinations, since they represent combinations of weak hypotheses). In different notation, we can write AdaBoost as a coordinate descent algorithm on vector . We define the feature matrix elementwise by , so that this matrix contains all of the inputs to AdaBoost (the training examples and hypotheses). Then the exponential loss can be written more compactly as:
where , the coordinate of the vector , is the (unnormalized) margin achieved by vector on training example .
Coordinate descent algorithms choose a coordinate at each iteration where the directional derivative is the steepest, and choose a step that maximally decreases the objective along that coordinate. To perform coordinate descent on the exponential loss, we determine the coordinate at iteration as follows, where is a vector that is 1 in the position and 0 elsewhere:
We can show that this is equivalent to the weak learning step of AdaBoost. Unraveling the recursion in Figure 1 for AdaBoost’s weight vector , we can see that is proportional to
The term in the exponent can also be rewritten in terms of the vector , where is the sum of ’s where hypothesis was chosen: . The term in the exponent is:
where denotes the th component of a vector. This means is proportional to . Eq. (2) can now be rewritten as
which is exactly the way AdaBoost chooses a weak hypothesis in each round (see Figure 1). The correlation will be denoted by and its absolute value denoted by . The quantity is commonly called the edge for round . The distance to travel along direction is found for coordinate descent via a linesearch (see for instance Mason et al., 2000):
and dividing both sides by the normalization factor,
just as in Figure 1. Thus, AdaBoost is equivalent to coordinate descent on . With this choice of step length, it can be shown (Freund and Schapire, 1997) that the exponential loss drops by an amount depending on the edge:
Our rate bounds also hold when the weak-hypotheses are confidence-rated, that is, giving real-valued predictions in , so that . In that case, the criterion for picking a weak hypothesis in each round remains the same, that is, at round , an maximizing the absolute correlation , is chosen, where may now be non-integral. An exact analytical line search is no longer possible, but if the step size is chosen in the same way,
then Freund and Schapire (1997) and Schapire and Singer (1999) show that a similar drop in the loss is still guaranteed:
With confidence rated hypotheses, other implementations may choose the step size in a different way. However, in this paper, by “AdaBoost” we will always mean the version in (Freund and Schapire, 1997; Schapire and Singer, 1999) which chooses step sizes as in (3), and enjoys the loss guarantee as in (4). That said, all our proofs work more generally, and are robust to numerical inaccuracies in the implementation. In other words, even if the previous conditions are violated by a small amount, similar bounds continue to hold, although we leave out explicit proofs of this fact to simplify the presentation.
First convergence rate: Convergence to any target loss
The main result of this section is the following rate upper bound.
The high level idea behind the proof of the theorem is as follows. To show a fast rate, we require a large edge in each round, as indicated by (4). A large edge is guaranteed if the size of the current solution of AdaBoost is small. Therefore AdaBoost makes good progress if the size of its solution does not grow too fast. On the other hand, the increase in size of its solution is given by the step length, which in turn is proportional to the edge achieved in that round. Therefore, if the solution size grows fast, the loss also drops fast. Either way the algorithm makes good progress. In the rest of the section we make these ideas concrete through a sequence of lemmas.
We will also be interested in how they change as captured by
Notice that is always non-negative since AdaBoost decreases the loss, and hence the suboptimality, in each round. Let be the bound on the number of rounds in Theorem 1. We assume without loss of generality that and are all strictly positive, since otherwise the theorem holds trivially. Also, in the rest of the section, we restrict our attention entirely to the first rounds of boosting. We first show that a rate of convergence follows if the edge is always polynomially large compared to the suboptimality.
If for some constants , where , the edge satisfies in each round , then AdaBoost achieves at most loss after rounds.
Proof From the definition of and (4) we have
Combining the above with the inequality , and the assumption on the edge
Let be the bound on the number of rounds in the lemma. If any of is negative, then by monotonicity and we are done. Otherwise, they are all non-negative. Then, applying Lemma 32 from the Appendix to the sequence , and using we get
If either or is greater than 1, then the lemma follows since . Otherwise,
where the second inequality uses for . We next show that large edges are achieved provided is small compared to .
In each round , the edge satisfies .
Proof For any combination , define as the distribution on examples that puts weight proportional to the loss . Choose any suffering at most the target loss . By non-negativity of relative entropy we get
Note that is the distribution that AdaBoost creates in round . The above summation can be rewritten as
Since the previous holds for any suffering less than the target loss, the last expression is at most . Combining this with (7) completes the proof. To complete the proof of Theorem 1, we show is small compared to in rounds (during which we have assumed are all positive). In fact we prove:
For any , .
This, along with Lemmas 2 and 3, immediately proves Theorem 1. The bound on in Lemma 4 can be proven if we can first show grows slowly compared to the rate at which the suboptimality falls. Intuitively this holds since growth in is caused by a large step, which in turn will drive down the suboptimality. In fact we can prove the following.
In any round , we have .
Proof Firstly, it follows from the definition of that . Next, using (5) and (3) we may write , where the function has been defined in (Rätsch and Warmuth, 2005) as
It is known (Rätsch and Warmuth, 2005; Rudin et al., 2007) that for . Combining and using Lemma 3,
Rearranging completes the proof. Using this we may prove Lemma 4.
Proof We first show . Note, , and by definition the quantity . The quantity is the inner product of row of matrix with the vector . Since the entries of lie in , this is at most . Therefore , which is what we needed.
To complete the proof, we show that is non-increasing. It suffices to show for any the inequality . This holds by the following chain:
where the first inequality follows from , and the second one from Lemma 5. This completes the proof of Theorem 1. Although our bound provides a rate polynomial in as desired by the conjecture in (Schapire, 2010), the exponents are rather large, and (we believe) not tight. One possible source of slack is the bound on in Lemma 4. Qualitatively, the distance to some solution having target loss should decrease with rounds, whereas Lemma 4 only says it does not increase too fast. Improving this will directly lead to a faster convergence rate. In particular, showing that never decreases would imply a rate of convergence. Whether or not the monotonicity of holds, we believe that the obtained rate bound is probably true, and state it as a conjecture.
For any and , AdaBoost converges to within loss in rounds, where the order notation hides only absolute constants.
As evidence supporting the conjecture, we show in the next section how a minor modification to AdaBoost can achieve the above rate.
2 Faster rates for a variant
For any , AdaBoost.S achieves at most loss within rounds.
The proof is similar to that in the previous section. Reusing the same notation, note that proof of Lemma 2 continues to hold (with very minor modifications to that are straightforward). Next we can exploit the changes in AdaBoost.S to show an improved version of Lemma 3. Intuitively, scaling back has the effect of preventing the weights on the weak hypotheses from becoming “too large”, and we may show
In each round , the edge satisfies .
Proof We will reuse parts of the proof of Lemma 3. Setting in (6) we may write
The first summation can be upper bounded as in (7) by . We will next show that the second summation is non-positive, which will complete the proof. The scaling step was added just so that this last fact would be true.
In experiments we ran, the scaling back never occurs. For such datasets, AdaBoost and AdaBoost.S are identical. We believe that even for contrived examples, the rescaling could happen only a few times, implying that both AdaBoost and AdaBoost.S would enjoy the convergence rates of Theorem 7. In the next section, we construct rate lower bound examples to show that this is nearly the best rate one can hope to show.
3 Lower-bounds
Suppose the feature matrix corresponding to a dataset has two rows with entries which are complements of each other, i.e., there are two examples on which any hypothesis gets one wrong and one correct prediction. Then the number of rounds required to achieve a target loss is at least .
Proof We first show that the two examples corresponding to the complementary rows in both satisfy a certain margin boundedness property. Since each hypothesis predicts oppositely on these, in any round their margins will be of equal magnitude and opposite sign. Unless both margins lie in , one of them will be smaller than . But then the exponential loss in that round will exceed , a contradiction since the losses are non-increasing through rounds, and the loss at the start was . Thus, assigning one of these examples the index , we have the absolute margin is bounded by in any round . Letting denote the th row of , the step length in round therefore satisfies
and the statement of the lemma directly follows. When the weak hypotheses are abstaining (Schapire and Singer, 1999), it can make a definitive prediction that the label is or , or it can “abstain” by predicting zero. No other levels of confidence are allowed, and the resulting feature matrix has entries in . The next theorem constructs a feature matrix satisfying the properties of Lemma 9 and where additionally the smallest size of a solution achieving loss is at least , for some fixed and every .
Consider the following matrix with rows (or examples) labeled and columns labeled (assume ). The square sub-matrix ignoring row zero is an upper triangular matrix, with ’s on the diagonal, ’s above the diagonal, and below the diagonal. Therefore row 1 is . Row 0 is defined to be just the complement of row 1. Then, for any , a loss of is achievable on this dataset, but with large norms
Therefore, by Lemma 9, the minimum number of rounds required for reaching loss at most is at least .
A picture of the matrix constructed in the above lemma for is shown in Figure 2.
Theorem 10 shows that when is a small constant (say ), and is some vector with loss , AdaBoost takes at least steps to get within of the loss achieved by , that is, to within loss. Since and are independent quantities, this shows that a polynomial dependence on the norm of the reference solution is unavoidable, and this norm might be exponential in the number of training examples in the worst case.
Consider feature matrices containing only entries. If, for some constants and , the bound in Theorem 1 can be replaced by for all such matrices, then . Further, for such matrices, the bound in Theorem 1 cannot be replaced by .
Proof of Lemma 10. We first lower bound the norm of solutions achieving loss at most . Observe that since rows 0 and 1 are complementary, any solution’s loss on just examples 0 and 1 will add up to at least . Therefore, to get within , the margins on examples should be at least (for ). Now, the feature matrix is designed so that the margins due to a combination satisfy the following recursive relationships:
Therefore, the margin on example is at least implies . Similarly, . Continuing this way,
for . Hence .
We end by showing that a loss of at most is achievable. The above argument implies that if for , then examples attain margin exactly . If we choose , then the recursive relationship implies a zero margin on example 1 (and hence example 0). Therefore the combination achieves a loss , for any . We finally show that if the weak hypotheses are confidence-rated with arbitrary levels of confidence, so that the feature matrix is allowed to have non-integral entries in , then the minimum norm of a solution achieving a fixed accuracy can be arbitrarily large. Our constructions will satisfy the requirements of Lemma 9, so that the norm lower bound translates into a rate lower bound.
Let be an arbitrary number, and let be the (possibly) non-integral matrix with 4 examples and 2 weak hypotheses shown in Figure 3. Then for any , a loss of is achievable on this dataset, but with large norms
Therefore, by Lemma 9, the number of rounds required to achieve loss at most is at least .
Proof We first show a loss of is achievable. Observe that the vector , with , achieves margins on examples , respectively. Therefore achieves loss . We next show a lower bound on the norm of a solution achieving this loss. Observe that since the first two rows are complementary, the loss due to just the first two examples is at least . Therefore, any solution achieving at most loss overall must achieve a margin of at least on both the third and fourth examples. By inspecting the two columns, this implies
By the triangle inequality, , and the lemma follows. Note that if , then the optimal solution is found in zero rounds of boosting and has optimal loss . However, even the tiniest perturbation causes the optimal loss to fall to , and causes the rate of convergence to increase drastically. In fact, by Theorem 12, the number of rounds required to achieve any fixed loss below grows as , which is arbitrarily large when is infinitesimal. We may conclude that with non-integral feature matrices, the dependence of the rate on the norm of a reference solution is absolutely necessary.
When using confidence rated weak-hypotheses with arbitrary confidence levels, the bound in Theorem 1 cannot be replaced by any function of purely , and alone.
The construction in Figure 3 can be generalized to produce datasets with any number of examples that suffer the same poor rate of convergence as the one in Theorem 12. We discussed the smallest such construction, since we feel that it best highlights the drastic effect non-integrality can have on the rate.
In this section we saw how the norm of the reference solution is an important parameter for bounding the convergence rate. In the next section we investigate the optimal dependence of the rate on the parameter and show that rounds are necessary in the worst case.
Second convergence rate: Convergence to optimal loss
In the previous section, our rate bound depended on both the approximation parameter , as well as the size of the smallest solution achieving the target loss. For many datasets, the optimal target loss cannot be realized by any finite solution. In such cases, if we want to bound the number of rounds needed to achieve within of the optimal loss, the only way to use Theorem 1 is to first decompose the accuracy parameter into two parts , find some finite solution achieving within of the optimal loss, and then use the bound to achieve at most loss. However, this introduces implicit dependence on through which may not be immediately clear. In this section, we show bounds of the form , where the constant depends only on the feature matrix , and not on . Additionally, we show that this dependence on is optimal in Lemma 31 of the Appendix, where rounds are shown to be necessary for converging to within of the optimal loss on a certain dataset. Finally, we note that the lower bounds in the previous section indicate that can be in the worst case for integer matrices (although it will typically be much smaller), and hence this bound, though stronger than that of Theorem 1 with respect to , cannot be used to prove the conjecture in (Schapire, 2010), since the constant is not polynomial in the number of examples .
The main result of this section is the following rate upper bound. A similar approach to solving this problem was taken independently by Telgarsky (2011).
AdaBoost reaches within of the optimal loss in at most rounds, where only depends on the feature matrix.
Our techniques build upon earlier work on the rate of convergence of AdaBoost, which have mainly considered two particular cases. In the first case, the weak learning assumption holds, that is, the edge in each round is at least some fixed constant. In this situation, Freund and Schapire (1997) and Schapire and Singer (1999) show that the optimal loss is zero, that no solution with finite size can achieve this loss, but AdaBoost achieves at most loss within rounds. In the second case some finite combination of the weak classifiers achieves the optimal loss, and Rätsch et al. (2002), using results from Luo and Tseng (1992), show that AdaBoost achieves within of the optimal loss again within rounds.
Here we consider the most general situation, where the weak learning assumption may fail to hold, and yet no finite solution may achieve the optimal loss. The dataset used in Lemma 31 and shown in Figure 4 exemplifies this situation. Our main technical contribution shows that the examples in any dataset can be partitioned into a zero-loss set and finite-margin set, such that a certain form of the weak learning assumption holds within the zero-loss set, while the optimal loss considering only the finite-margin set can be obtained by some finite solution. The two partitions provide different ways of making progress in every round, and one of the two kinds of progress will always be sufficient for us to prove Theorem 14.
We next state our decomposition result, illustrate it with an example, and then state several lemmas quantifying the nature of the progress we can make in each round. Using these lemmas, we prove Theorem 14.
(Decomposition Lemma) For any dataset, there exists a partition of the set of training examples into a (possibly empty) zero-loss set and a (possibly empty) finite-margin set such that the following hold simultaneously :
The optimal loss considering only examples within is achieved by some finite combination .
There is a constant , such that for any combination with bounded loss on the finite-margin set, , the margin for any example in lies in the bounded interval .
A proof is deferred to the next section. The decomposition lemma immediately implies that the vector , which denotes in the limit , is an optimal solution, achieving zero loss on the zero-loss set, but only finite margins (and hence positive losses) on the finite-margin set (thereby justifying the names).
Before proceeding, we give an example dataset and indicate the zero-loss set, finite-margin set, and to illustrate our definitions. Consider a dataset with three examples and two hypotheses and the feature matrix in Figure 4. Here means correct () and means wrong (). The optimal solution is with a loss of . The finite-margin set is , the zero-loss set is , and ; for this dataset these are unique. This dataset also serves as a lower-bound example in Lemma 31, where we show that rounds are necessary for AdaBoost to achieve loss at most .
Since , we may rewrite the edge as follows:
If the set were empty, then Lemma 16 implies an edge of is available in each round. This in fact means that the weak learning assumption holds, and using (4), we can show an bound matching the rate bounds of Freund and Schapire (1997) and Schapire and Singer (1999). So henceforth, we assume that is non-empty. Note that this implies that the optimal loss is at least (since any solution will get non-positive margin on some example in ), a fact we will use later in the proofs.
Lemma 16 says that the edge is large if the loss on the zero-loss set is large. On the other hand, when it is small, Lemmas 17 and 18 together show how AdaBoost can make good progress using the finite margin set. Lemma 17 uses second order methods to show how progress is made in the case where there is a finite solution. Similar arguments, under additional assumptions, have earlier appeared in (Rätsch et al., 2002).
We next lower bound possible values of the second derivative as follows:
A standard second-order result is (see e.g. Boyd and Vandenberghe, 2004, eqn. (9.9))
Notice the quantity inside the max is precisely the edge in direction . Combining everything, the maximum possible edge is
where we define .
So, if is the maximum edge in any direction, then
where, for the last inequality, we again used . Therefore the loss after one more step is at most . Setting completes the proof.
If denotes the loss in round , then the above claim implies . Applying Lemma 32 to the sequence we have for any . Since , we have . Hence to achieve loss , rounds suffice.
2 Proof of the decomposition lemma
For any sequence of admissible combinations of weak classifiers, we can find a subsequence whose losses converge to zero on all examples in some fixed (possibly empty) subset (the zero-loss set), and losses bounded away from zero in its complement (the finite-margin set)
Proof We will build a zero-loss set and the final subsequence incrementally. Initially the set is empty. Pick the first example. If the infimal loss ever attained on the example in the sequence is bounded away from zero, then we do not add it to the set. Otherwise we add it, and consider only the subsequence whose element attains loss less than on the example. Beginning with this subsequence, we now repeat with other examples. The final sequence is the required subsequence, and the examples we have added form the zero-loss set. We apply Lemma 19 to some admissible sequence converging to the optimal loss (for instance, the one found by AdaBoost). Let us call the resulting subsequence , the obtained zero-loss set , and the finite-margin set . The next lemma shows how to extract a single combination out of the sequence that satisfies the properties in Item 1 of the decomposition lemma.
Suppose is the feature matrix, is a subset of the examples, and is a sequence of combinations of weak classifiers such that is its zero loss set, and its finite loss set, that is, (8) holds. Then there is a combination of weak classifiers that achieves positive margin on every example in , and zero margin on every example in its complement , that is:
Proof Since the achieve arbitrarily large positive margins on , will be unbounded, and it will be hard to extract a useful single solution out of them. On the other hand, the rescaled combinations lie on a compact set, and therefore have a limit point, which might have useful properties. We formalize this next.
We prove the statement of the lemma by induction on the total number of training examples . If is empty, then the lemma holds vacuously for any . Assume inductively for all of size less than , and consider of size . Since translating a vector along the null space of , , has no effect on the margins produced by the vector, assume without loss of generality that the ’s are orthogonal to . Also, since the margins produced on the zero loss set are unbounded, so are the norms of . Therefore assume (by picking a subsequence and relabeling if necessary) that . Let be a limit point of the sequence , a unit vector that is also orthogonal to the null-space. Then firstly achieves non-negative margin on every example; otherwise by continuity for some extremely large , the margin of on that example is also negative and bounded away from zero, and therefore ’s loss is more than , a contradiction to admissibility. Secondly, the margin of on each example in is zero; otherwise, by continuity, for arbitrarily large the margin of on an example in is positive and bounded away from zero, and hence that example attains arbitrarily small loss in the sequence, a contradiction to (8). Finally, if achieves zero margin everywhere in , then , being orthogonal to the null-space, must be , a contradiction since is a unit vector. Therefore must achieve positive margin on some non-empty subset of , and zero margins on every other example.
Next we use induction on the reduced set of examples . Since is non-empty, . Further, using the same sequence , the zero-loss and finite-loss sets, restricted to , are and (since ) . By the inductive hypothesis, there exists some which achieves positive margins on , and zero margins on . Therefore, by setting for a large enough , we can achieve the desired properties. Applying Lemma 20 to the sequence yields some convex combination having margin at least (for some ) on and zero margin on its complement, proving Item 1 of the decomposition lemma. The next lemma proves Item 2.
The optimal loss considering only examples within is achieved by some finite combination .
3 Investigating the constants
In this section, we try to estimate the constant in Theorem 14. We show that it can be arbitrarily large for adversarial feature matrices with real entries (corresponding to confidence rated weak hypotheses), but has an upper-bound doubly exponential in the number of examples when the feature matrix has entries only. We also show that this doubly exponential bound cannot be improved without significantly changing the proof in the previous section.
By inspecting the proofs, we can bound the constant in Theorem 14 as follows.
The constant in Theorem 14 that emerges from the proofs is
where is the number of examples, is the number of hypotheses, and are as given by Items 1 and 3 of the decomposition lemma, and is the smallest positive eigenvalue of ( is the feature matrix restricted to the rows belonging to the finite margin set ).
Our bound on will be obtained by in turn bounding the quantities . These are strongly related to the singular values of the feature matrix , and in general cannot be easily measured. In fact, when has real entries, we have already seen in Section 3.3 that the rate can be arbitrarily large, implying these parameters can have very large values. Even when the matrix has integer entries (that is, ), the next lemma shows that these quantities can be exponential in the number of examples.
There are examples of feature matrices with entries and at most rows or columns (where ) for which the quantities and are at least .
Next we provide an example showing can be . Consider an matrix . The bottom row of is all . The upper submatrix of is a lower triangular matrix with on the diagonal and below the diagonal. Observe that if , then . Therefore, for any vector , the inner product of the margins with is zero: . This implies that achieving positive margin on any example forces some other example to receive negative margin. By Item 1 of the decomposition lemma, the zero loss set in this dataset is empty, and all the examples belong to the finite loss set. Next, we choose a combination with at most loss that nevertheless achieves positive margin on some example. Let . Then . Then the margins using are with total loss . Choose , so that the loss on examples corresponding to the first rows is at most , where the first inequality holds since . For , the choice of guarantees , so that the loss on the example corresponding to the bottom most row is . Therefore the net loss of is at most . On the other hand the margin on the example corresponding to the last row is . The above result implies any bound on derived from Corollary 23 will be at least in the worst case. This does not imply that the best bound one can hope to prove is doubly exponential, only that our techniques in the previous section do not admit anything better. We next show that the bounds in Lemma 24 are nearly the worst possible.
Suppose each entry of is or . Then each of the quantities and are at most .
The proof of Lemma 25 is rather technical, and we defer it to the Appendix. Lemma 25 and Corollary 23 together imply a convergence rate of to the optimal loss for integer matrices. This bound on is exponentially worse than the lower bound on we saw in Section 3.3, a price we pay for obtaining optimal dependence on . In the next section we will see how to obtain bounds, although with a worse dependence on . We end this section by showing, just for completeness, how a bound on the norm of as defined in Item 2 of the decomposition lemma follows as a quick corollary to Lemma 25.
Suppose is as given by Item 2 of the decomposition lemma. When the feature matrix has only entries, we may bound .
Proof Note that every entry of lies in the range , and hence . Next, we may choose orthogonal to the null space of ; then . Since , and the number of possible columns with entries is at most , the proof follows.
Improved Estimates
In this section we shed more light on the rate bounds by cross-application of techniques from Sections 3 and 4. We obtain both new upper bounds for convergence to the optimal loss, as well as lower bounds for convergence to an arbitrary target loss. We also indicate what we believe might be the optimal bounds for either situation.
We first show how the finite rate bound of Theorem 1 along with the decomposition lemma yields a new rate of convergence to the optimal loss. Although the dependence on is worse than in Theorem 14, the dependence on is nearly optimal. We will need the following key application of the decomposition lemma.
For feature matrices with entries, AdaBoost converges to within of the optimal loss within rounds.
We next focus on lower bounds on the convergence rate to arbitrary target losses discussed in Section 3. We begin by showing the rate dependence on the norm of the solution as given in Lemma 9 holds for much more general datasets.
Suppose a feature matrix has only entries, and the finite loss set is non-empty. Then, for any coordinate descent procedure, the number of rounds required to achieve a target loss is at least
Proof It suffices to upper-bound the step size in any round by at most . Notice that when the feature matrix has entries, a step in a direction that does not end up increasing the loss is at most of length , where is the edge in that direction. Therefore, if is the maximum edge achievable in any direction, we have
Further, by (4), a large edge ensures that for some coordinate step, the new vector will have much smaller loss than the vector at the beginning of round : . On the other hand, before the step, the loss is at most , , and after the step the loss is at most (since the optimal loss on a dataset with non-empty finite set is at least ): . Combining these inequalities we get
that is, . Now the step length can be bounded as
We end by showing a new lower bound for the convergence rate to an arbitrary target loss studied in Section 3. Corollary 11 implies that the rate bound in Theorem 1 has to be at least polynomially large in the norm of the solution. We now show that a polynomial dependence on in the rate is unavoidable too. This shows that rates for competing with a finite solution are different from rates on a dataset where the optimum loss is achieved by a finite solution, since in the latter we may achieve a rate.
Consider any dataset (e.g. the one in Figure 4) for which rounds are necessary to get within of the optimal loss. If there are constants and such that for any and , a loss of can be achieved in at most rounds, then .
Conclusion
For the second kind of convergence, using entirely separate techniques, we derived a upper bound, and showed that this is tight up to constant factors. In the process, we showed a certain decomposition lemma that might be of independent interest. We also study the constants and show how they depend on certain intrinsic parameters related to the singular values of the feature matrix. We estimate the worst case values of these parameters, and considering feature matrices with only entries, this leads to a bound on the rate constant that is doubly exponential in the number of training examples. Since this is rather large, we also include bounds polynomial in both the number of training examples and the accuracy parameter , although the dependence on in these bounds is non-optimal.
Finally, for each kind of convergence, we conjecture tighter bounds that are not known to hold presently. A table containing a summary of the results in this paper is included in Figure 5.
This research was funded by the National Science Foundation under grants IIS-1016029 and IIS-1053407. We thank Nikhil Srivastava for informing us of the matrix used in Theorem 10. We also thank Aditya Bhaskara and Matus Telgarsky for many helpful discussions.
Appendix
For any , to get within of the optimum loss on the dataset in Table 4, AdaBoost takes at least steps.
Proof Note that the optimal loss is , and we are bounding the number of rounds necessary to get within loss for . We will compute the edge in each round analytically. Let denote the normalized-losses (adding up to 1) or weights on examples at the beginning of round , the weak hypothesis chosen in round , and the edge in round . The values of these parameters are shown below for the first 5 rounds, where we have assumed (without loss of generality) that the hypothesis picked in round 1 is :
Based on the patterns above, we first claim that for rounds , the edge achieved is . In fact we prove the stronger claims, that for rounds , the following hold:
One of and is .
.
Since , the recurrence on would immediately imply for . We prove the stronger claims by induction on the round . The base case for is shown above and may be verified. Suppose the inductive assumption holds for . Assume without loss of generality that ; note this implies . Further, in this round, gets picked, and has edge . Now for any dataset, the weights of the examples labeled correctly and incorrectly in a round of AdaBoost are rescaled during the weight update step in a way such that each add up to after the rescaling. Therefore, . Hence, gets picked in round and, as before, we get edge . The proof of our claim follows by induction.
Next we find the loss after each iteration. Using and for , the loss after rounds can be written as
Notice almost all the terms cancel, except for the first term of the first product, and the last term of the second product. Therefore, the loss after rounds is
where the inequality holds for . Since the initial error is , therefore, for any , the number of rounds needed to achieve loss is at least .
Suppose are non-negative numbers satisfying
for some non-negative constants . Then, for any ,
Proof By induction on . The base case is an identity. Assume the statement holds at iteration . Then,
Thus it suffices to show . Multiplying both sides by and adding 1, this is equivalent to showing . We will in fact show the stronger inequality
Since for non-negative, (9) will imply , which will complete our proof. To show (9), we first rearrange the condition on to obtain
Applying the fact to the previous equation we get,
Since , we may raise both sides of the above inequality to the power of to show (9), finishing our proof.
In this section we prove Lemma 25, by separately bounding the quantities , and , through a sequence of Lemmas. We will use the next result repeatedly.
If is an invertible matrix with entries, then is at least .
Proof It suffices to show that for any with unit norm. Now where is the adjoint of , whose -th entry is the th cofactor of (given by times the determinant of the matrix obtained by removing the th row and th column of ), and is the determinant of . The determinant of any matrix can be written as , where ranges over all the permutations of . Therefore each entry of is at most , and the is a non-zero integer. Therefore , and the proof is complete. We first show our bound holds for .
Suppose has entries, and let be as in Corollary 23. Then .
Proof Let denote the matrix . It suffices to show that does not squeeze too much the norm of any vector orthogonal to the null-space of , i.e. for any . We first characterize and then study how acts on this subspace.
We next see how acts on this subspace. Recall where has independent columns. By basic linear algebra, the row rank of is also , and assume without loss of generality that the first rows of are independent. Denote by the submatrix of formed by these rows. Then for any vector ,
where the last inequality follows from Lemma 33. To finish the proof, it suffices to show that for . Indeed, by expanding out as inner product with itself, we have
where the first inequality follows since implies . To show the bounds on and , we will need an intermediate result.
Suppose is a matrix, and a vector, both with entries. If is solvable, then there is a solution satisfying , where .
Proof Pick a solution with maximum number of zeroes. Let be the set of coordinates for which is zero. We first claim that there is no other solution which is also zero on the set . Suppose there were such an . Note any point on the infinite line joining satisfies , and (that is, for ). If is any coordinate not in such that , then for some point along the line, we have . Choose so that is as close to as possible. Since , by continuity this would also imply that . But then is a solution with more zeroes than , a contradiction.
The bound on follows easily.
Let be as in Item 1 of Lemma 15. Then can be chosen such that .
Suppose is a matrix, and a vector, both with entries. If is solvable, then there is a solution satisfying , where .
Proof Using Lemma 35, pick a solution to with norm at most . If , then we are done. Otherwise let satisfy , and consider the segment joining and . Every point on the segment satisfies . Further any coordinate becomes zero at most once on the segment. Therefore, there are points arbitrarily close to on the segment with positive coordinates that satisfy the equation, and these have norms approaching that of . We next characterize the feature matrix restricted to the finite-loss examples, which might be of independent interest.
If is the feature matrix restricted to the finite-loss examples (as given by Item 2 of Lemma 15), then there exists a positive linear combination such that .
Let be as in Items 2,3 of the decomposition lemma. Then .
Proof Pick any example and any combination whose loss on , , is at most . Let be the row of , and let be the matrix without the th row. Then Lemma 38 says that for some positive vector . This implies the margin of on example is . Since the loss of on is at most , each margin on is at least , and therefore . Hence, the margin on example can be bounded as . Using Corollary 37, we can find with bounded norm, , where . The proof follows.