BrownBoost

From HandWiki
Short description: Boosting algorithm

BrownBoost is a boosting algorithm that may be robust to noisy datasets. BrownBoost is an adaptive version of the boost by majority algorithm. As is true for all boosting algorithms, BrownBoost is used in conjunction with other machine learning methods. BrownBoost was introduced by Yoav Freund in 2001.[1]

Motivation

AdaBoost performs well on a variety of datasets; however, it can be shown that AdaBoost does not perform well on noisy data sets.[2] This is a result of AdaBoost's focus on examples that are repeatedly misclassified. In contrast, BrownBoost effectively "gives up" on examples that are repeatedly misclassified. The core assumption of BrownBoost is that noisy examples will be repeatedly mislabeled by the weak hypotheses and non-noisy examples will be correctly labeled frequently enough to not be "given up on." Thus only noisy examples will be "given up on," whereas non-noisy examples will contribute to the final classifier. In turn, if the final classifier is learned from the non-noisy examples, the generalization error of the final classifier may be much better than if learned from noisy and non-noisy examples.

The user of the algorithm can set the amount of error to be tolerated in the training set. Thus, if the training set is noisy (say 10% of all examples are assumed to be mislabeled), the booster can be told to accept a 10% error rate. Since the noisy examples may be ignored, only the true examples will contribute to the learning process.

Algorithm description

BrownBoost uses a non-convex potential loss function, thus it does not fit into the AdaBoost framework. The non-convex optimization provides a method to avoid overfitting noisy data sets. However, in contrast to boosting algorithms that analytically minimize a convex loss function (e.g. AdaBoost and LogitBoost), BrownBoost solves a system of two equations and two unknowns using standard numerical methods.

The only parameter of BrownBoost ([math]\displaystyle{ c }[/math] in the algorithm) is the "time" the algorithm runs. The theory of BrownBoost states that each hypothesis takes a variable amount of time ([math]\displaystyle{ t }[/math] in the algorithm) which is directly related to the weight given to the hypothesis [math]\displaystyle{ \alpha }[/math]. The time parameter in BrownBoost is analogous to the number of iterations [math]\displaystyle{ T }[/math] in AdaBoost.

A larger value of [math]\displaystyle{ c }[/math] means that BrownBoost will treat the data as if it were less noisy and therefore will give up on fewer examples. Conversely, a smaller value of [math]\displaystyle{ c }[/math] means that BrownBoost will treat the data as more noisy and give up on more examples.

During each iteration of the algorithm, a hypothesis is selected with some advantage over random guessing. The weight of this hypothesis [math]\displaystyle{ \alpha }[/math] and the "amount of time passed" [math]\displaystyle{ t }[/math] during the iteration are simultaneously solved in a system of two non-linear equations ( 1. uncorrelated hypothesis w.r.t example weights and 2. hold the potential constant) with two unknowns (weight of hypothesis [math]\displaystyle{ \alpha }[/math] and time passed [math]\displaystyle{ t }[/math]). This can be solved by bisection (as implemented in the JBoost software package) or Newton's method (as described in the original paper by Freund). Once these equations are solved, the margins of each example ([math]\displaystyle{ r_i(x_j) }[/math] in the algorithm) and the amount of time remaining [math]\displaystyle{ s }[/math] are updated appropriately. This process is repeated until there is no time remaining.

The initial potential is defined to be [math]\displaystyle{ \frac{1}{m}\sum_{j=1}^m 1-\mbox{erf}(\sqrt{c}) = 1-\mbox{erf}(\sqrt{c}) }[/math]. Since a constraint of each iteration is that the potential be held constant, the final potential is [math]\displaystyle{ \frac{1}{m}\sum_{j=1}^m 1-\mbox{erf}(r_i(x_j)/\sqrt{c}) = 1-\mbox{erf}(\sqrt{c}) }[/math]. Thus the final error is likely to be near [math]\displaystyle{ 1-\mbox{erf}(\sqrt{c}) }[/math]. However, the final potential function is not the 0–1 loss error function. For the final error to be exactly [math]\displaystyle{ 1-\mbox{erf}(\sqrt{c}) }[/math], the variance of the loss function must decrease linearly w.r.t. time to form the 0–1 loss function at the end of boosting iterations. This is not yet discussed in the literature and is not in the definition of the algorithm below.

The final classifier is a linear combination of weak hypotheses and is evaluated in the same manner as most other boosting algorithms.

BrownBoost learning algorithm definition

Input:

  • [math]\displaystyle{ m }[/math] training examples [math]\displaystyle{ (x_{1},y_{1}),\ldots,(x_{m},y_{m}) }[/math] where [math]\displaystyle{ x_{j} \in X,\, y_{j} \in Y = \{-1, +1\} }[/math]
  • The parameter [math]\displaystyle{ c }[/math]

Initialise:

  • [math]\displaystyle{ s=c }[/math]. (The value of [math]\displaystyle{ s }[/math] is the amount of time remaining in the game)
  • [math]\displaystyle{ r_i(x_j) = 0 }[/math]   [math]\displaystyle{ \forall j }[/math]. The value of [math]\displaystyle{ r_i(x_j) }[/math] is the margin at iteration [math]\displaystyle{ i }[/math] for example [math]\displaystyle{ x_j }[/math].

While [math]\displaystyle{ s \gt 0 }[/math]:

  • Set the weights of each example: [math]\displaystyle{ W_{i}(x_j) = e^{- \frac{(r_i(x_j)+s)^2}{c}} }[/math], where [math]\displaystyle{ r_i(x_j) }[/math] is the margin of example [math]\displaystyle{ x_j }[/math]
  • Find a classifier [math]\displaystyle{ h_i : X \to \{-1,+1\} }[/math] such that [math]\displaystyle{ \sum_j W_i(x_j) h_i(x_j) y_j \gt 0 }[/math]
  • Find values [math]\displaystyle{ \alpha, t }[/math] that satisfy the equation:
    [math]\displaystyle{ \sum_j h_i(x_j) y_j e^{-\frac{(r_i(x_j)+\alpha h_i(x_j) y_j + s - t)^2}{c}} = 0 }[/math].
    (Note this is similar to the condition [math]\displaystyle{ E_{W_{i+1}}[h_i(x_j) y_j]=0 }[/math] set forth by Schapire and Singer.[3] In this setting, we are numerically finding the [math]\displaystyle{ W_{i+1} = \exp\left(\frac{\cdots}{\cdots}\right) }[/math] such that [math]\displaystyle{ E_{W_{i+1}}[h_i(x_j) y_j]=0 }[/math].)
    This update is subject to the constraint
    [math]\displaystyle{ \sum \left(\Phi\left(r_i(x_j) + \alpha h(x_j) y_j + s - t\right) - \Phi\left( r_i(x_j) + s \right) \right) = 0 }[/math],
    where [math]\displaystyle{ \Phi(z) = 1-\mbox{erf}(z/\sqrt{c}) }[/math] is the potential loss for a point with margin [math]\displaystyle{ r_i(x_j) }[/math]
  • Update the margins for each example: [math]\displaystyle{ r_{i+1}(x_j) = r_i(x_j) + \alpha h(x_j) y_j }[/math]
  • Update the time remaining: [math]\displaystyle{ s = s - t }[/math]

Output: [math]\displaystyle{ H(x) = \textrm{sign}\left( \sum_i \alpha_{i} h_{i}(x) \right) }[/math]

Empirical results

In preliminary experimental results with noisy datasets, BrownBoost outperformed AdaBoost's generalization error; however, LogitBoost performed as well as BrownBoost.[4] An implementation of BrownBoost can be found in the open source software JBoost.

See also

References

  1. Yoav Freund. An adaptive version of the boost by majority algorithm. Machine Learning, 43(3):293--318, June 2001.
  2. Dietterich, T. G., (2000). An experimental comparison of three methods for constructing ensembles of decision trees: Bagging, boosting, and randomization. Machine Learning, 40 (2) 139-158.
  3. Robert Schapire and Yoram Singer. Improved Boosting Using Confidence-rated Predictions. Journal of Machine Learning, Vol 37(3), pages 297-336. 1999
  4. Ross A. McDonald, David J. Hand, Idris A. Eckley. An Empirical Comparison of Three Boosting Algorithms on Real Data Sets with Artificial Class Noise. Multiple Classifier Systems, In Series Lecture Notes in Computer Science, pages 35-44, 2003.

External links