# BrownBoost

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 the case for all boosting algorithms, BrownBoost is used in conjunction with other machine learning methods. BrownBoost was introduced by Yoav Freund in 2001.

## Motivation

AdaBoost performs well on a variety of datasets; however, it can be shown that AdaBoost does not perform well on noisy data sets. 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 ($c$ in the algorithm) is the "time" the algorithm runs. The theory of BrownBoost states that each hypothesis takes a variable amount of time ($t$ in the algorithm) which is directly related to the weight given to the hypothesis $\alpha$. The time parameter in BrownBoost is analogous to the number of iterations $T$ in AdaBoost.
A larger value of $c$ 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 $c$ 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 $\alpha$ and the "amount of time passed" $t$ 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 $\alpha$ and time passed $t$). 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 ($r_{i}(x_{j})$ in the algorithm) and the amount of time remaining $s$ are updated appropriately. This process is repeated until there is no time remaining.
The initial potential is defined to be ${\frac {1}{m}}\sum _{j=1}^{m}1-{\mbox{erf}}({\sqrt {c}})=1-{\mbox{erf}}({\sqrt {c}})$. Since a constraint of each iteration is that the potential be held constant, the final potential is ${\frac {1}{m}}\sum _{j=1}^{m}1-{\mbox{erf}}(r_{i}(x_{j})/{\sqrt {c}})=1-{\mbox{erf}}({\sqrt {c}})$. Thus the final error is likely to be near $1-{\mbox{erf}}({\sqrt {c}})$. However, the final potential function is not the 0–1 loss error function. For the final error to be exactly $1-{\mbox{erf}}({\sqrt {c}})$, 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:
* $m$ training examples $(x_{1},y_{1}),\ldots ,(x_{m},y_{m})$ where $x_{j}\in X,\,y_{j}\in Y=\{-1,+1\}$
* The parameter $c$
Initialise:
* $s=c$. (The value of $s$ is the amount of time remaining in the game)
* $r_{i}(x_{j})=0$ $\forall j$. The value of $r_{i}(x_{j})$ is the margin at iteration $i$ for example $x_{j}$.
While $s>0$:
* Set the weights of each example: $W_{i}(x_{j})=e^{-{\frac {(r_{i}(x_{j})+s)^{2}}{c}}}$, where $r_{i}(x_{j})$ is the margin of example $x_{j}$
* Find a classifier $h_{i}:X\to \{-1,+1\}$ such that $\sum _{j}W_{i}(x_{j})h_{i}(x_{j})y_{j}>0$
* Find values $\alpha ,t$ that satisfy the equation: $\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$. (Note this is similar to the condition $E_{W_{i+1}}[h_{i}(x_{j})y_{j}]=0$ set forth by Schapire and Singer. In this setting, we are numerically finding the $W_{i+1}=\exp \left({\frac {\cdots }{\cdots }}\right)$ such that $E_{W_{i+1}}[h_{i}(x_{j})y_{j}]=0$.) This update is subject to the constraint $\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$, where $\Phi (z)=1-{\mbox{erf}}(z/{\sqrt {c}})$ is the potential loss for a point with margin $r_{i}(x_{j})$
* Update the margins for each example: $r_{i+1}(x_{j})=r_{i}(x_{j})+\alpha h(x_{j})y_{j}$
* Update the time remaining: $s=s-t$
Output: $H(x)={\textrm {sign}}\left(\sum _{i}\alpha _{i}h_{i}(x)\right)$

## Empirical results

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