Reducing Multiclass to Binary: A Unifying Approach for Margin Classifiers

Erin L. AllweinRob SchapireY. Singer

article2000JMLR1,699 citations

Unifies standard multiclass-to-binary reductions under a single framework by introducing margin- and loss-based decoding techniques backed by rigorous error bounds for algorithms like AdaBoost and support vector machines.

Listen

Many real-world machine learning systems, such as optical character recognition, speech processing, and medical diagnosis, require categorizing data into one of several potential classes. While many high-performance algorithms excel at distinguishing between two classes, directly applying them to complex multiclass problems remains challenging. Practitioners routinely decompose multiclass tasks into collections of simpler two-class problems, but existing reduction strategies—such as one-against-all, pairwise comparisons, and error-correcting output codes—have historically lacked a single, cohesive theoretical framework.

The article establishes a unifying mathematical framework that connects all major reduction strategies for margin-based classifiers, which measure prediction confidence alongside binary class assignment. The authors evaluate this framework across theoretical bounds and empirical benchmarks to demonstrate how best to decompose multiclass problems and recombine binary predictions.

The authors conducted formal mathematical analyses alongside empirical testing on synthetic data and thirteen real-world benchmark datasets from the UCI repository. The empirical evaluations compared two primary decoding strategies—traditional Hamming decoding, which uses binary agreement, and loss-based decoding, which incorporates prediction confidence and specific training loss functions—across algorithms including Support Vector Machines and AdaBoost.

The findings demonstrate three key insights. First, loss-based decoding consistently outperforms Hamming decoding, often cutting error rates substantially (for example, reducing error from 50.4% down to 27.8% on the satellite image dataset when using Support Vector Machines). Second, the widely adopted one-against-all reduction is markedly inferior when paired with Support Vector Machines, frequently exhibiting severe performance deficits (such as a 72.9% error rate on yeast classification versus roughly 40% for alternative codes). Third, while error-correcting output codes provide substantial theoretical error tolerance, there is an inherent trade-off: codes with large separation between classes can generate individually harder binary subproblems, meaning no single coding scheme dominates universally across all data domains.

These results indicate that organizational machine learning workflows should avoid defaulting to standard one-against-all reductions or simple sign-based decoding rules. Incorporating prediction confidence through loss-based decoding significantly improves classification reliability and model performance without modifying the underlying binary algorithms, directly lowering misclassification risks and operational failure rates.

Engineering and data science teams should transition existing multiclass classification pipelines to use loss-based decoding rather than simple Hamming matching. For Support Vector Machine models, teams should immediately replace one-against-all schemes with all-pairs, dense random, or sparse output codes. Because overall accuracy depends on the specific dataset, practitioners should benchmark candidate output codes during model validation rather than relying on a one-size-fits-all approach.

The confidence in these conclusions is high, supported by rigorous loss bounds and consistent experimental validations across multiple baseline learners. However, the study's scope is bounded by the computational cost of scaling very large codes (such as complete or all-pairs matrices) to problems with dozens of categories, as well as the implementation constraints of base algorithms on large datasets with missing features.

Allwein et al (2000).pdf
  • Paper: Solving Multiclass Learning Problems via Error-Correcting Output Codes, Thomas G. Dietterich et al. (1994). This foundational paper introduced error-correcting output codes (ECOC) for decomposing multiclass problems into binary tasks using Hamming decoding, which the source directly analyzes and improves upon with margin- and loss-based decoding.
  • Paper: Boosting the margin: A new explanation for the effectiveness of voting methods, Robert E. Schapire et al. (1997). It formalizes margin theory and generalization bounds for voting and ensemble methods, providing the conceptual groundwork for the source's margin-based analysis of multiclass reductions.
  • Paper: Large Margin DAGs for Multiclass Classification, John Platt et al. (1999). It explores directed acyclic graphs for multiclass support vector machine reductions, illustrating key trade-offs in pairwise margin classification that motivate the unified framework.
  • Paper: A training algorithm for optimal margin classifiers, Bernhard E. Boser et al. (1992). It provides the foundational mathematical formulation for optimal margin classification and support vector optimization upon which margin-based reduction schemes are built.
  • Paper: Support-vector networks, Corinna Cortes et al. (1995). It introduces standard binary support vector machines, the primary margin-based base classifier evaluated in the source's multiclass reduction framework.
Cover for Reducing Multiclass to Binary: A Unifying Approach for Margin Classifiers

Abstract

We present a unifying framework for studying the solution of multiclass categorization problems by reducing them to multiple binary problems that are then solved using a margin-based binary learning algorithm. The proposed framework unifies some of the most popular approaches in which each class is compared against all others, or in which all pairs of classes are compared to each other, or in which output codes with error-correcting properties are used. We propose a general method for combining the classifiers generated on the binary problems, and we prove a general empirical multiclass loss bound given the empirical loss of the individual binary learning algorithms. The scheme and the corresponding bounds apply to many popular classification learning algorithms including support-vector machines, AdaBoost, regression, logistic regression and decision-tree algorithms. We also give a multiclass generalization error analysis for general output codes with AdaBoost as the binary learner. Experimental results with SVM and AdaBoost show that our scheme provides a viable alternative to the most commonly used multiclass algorithms.

Table of Contents

  • 2. Margin-based Learning Algorithms
  • 3. Output Coding for Multiclass Problems
  • 4. Analysis of the Training Error
  • 5. Analysis of Generalization Error for Boosting with Loss-based Decoding
  • 6. Experiments
  • Acknowledgment
  • References

Knowls

  1. Knowl 1 — Ternary Coding Matrix Framework for Multiclass Reductions

    model/method

    A general framework reduces a kk-class supervised learning problem, where instances x∈Xx \in \mathcal{X} have labels y∈Y={1,…,k}y \in \mathcal{Y} = \{1, \dots, k\}, to ℓ\ell binary classification problems using a ternary coding matrix

    M∈{−1,0,+1}k×ℓM \in \{-1, 0, +1\}^{k \times \ell}

    Each column s∈{1,…,ℓ}s \in \{1, \dots, \ell\} defines a binary problem over the training set (x1,y1),…,(xm,ym)(x_1, y_1), \dots, (x_m, y_m): examples with M(yi,s)=+1M(y_i, s) = +1 are treated as positive (+1+1), examples with M(yi,s)=−1M(y_i, s) = -1 are treated as negative (−1-1), and examples with M(yi,s)=0M(y_i, s) = 0 are omitted from training for that column. A binary margin-based learning algorithm A\mathcal{A} generates binary hypotheses fs:X→Rf_s : \mathcal{X} \to \mathbb{R} for each ss, either by being invoked ℓ\ell times on the individual sub-problems (the multi-call variant) or by being invoked once on instances augmented with the column index ((xi,s),M(yi,s))((x_i, s), M(y_i, s)) for all non-zero entries (the single-call variant).

    This framework unifies standard multiclass reductions:

    • One-against-all: M∈{−1,+1}k×kM \in \{-1, +1\}^{k \times k} with +1+1 along the diagonal and −1-1 everywhere else.
    • All-pairs: M∈{−1,0,+1}k×(k2)M \in \{-1, 0, +1\}^{k \times \binom{k}{2}}, where each column corresponds to an unordered pair (r1,r2)(r_1, r_2), having +1+1 in row r1r_1, −1-1 in row r2r_2, and 00 in all remaining rows.
    • Complete binary codes: M∈{−1,+1}k×(2k−1−1)M \in \{-1, +1\}^{k \times (2^{k-1}-1)}, containing columns for all non-trivial binary partitions of the kk classes.
    • Dense random codes: M∈{−1,+1}k×ℓM \in \{-1, +1\}^{k \times \ell}, where each entry is chosen uniformly at random from {−1,+1}\{-1, +1\}.
    • Sparse random codes: M∈{−1,0,+1}k×ℓM \in \{-1, 0, +1\}^{k \times \ell}, where each entry is independently sampled such that Pr⁡[M(r,s)=0]=1/2\operatorname{Pr}[M(r, s) = 0] = 1/2, and Pr⁡[M(r,s)=+1]=Pr⁡[M(r,s)=−1]=1/4\operatorname{Pr}[M(r, s) = +1] = \operatorname{Pr}[M(r, s) = -1] = 1/4.
  2. Knowl 2 — Loss-Based Decoding for Margin Classifiers

    model/method

    Let f(x)=(f1(x),…,fℓ(x))∈Rℓf(x) = (f_1(x), \dots, f_\ell(x)) \in \mathbb{R}^\ell be the vector of real-valued predictions generated by ℓ\ell binary margin classifiers trained using a coding matrix M∈{−1,0,+1}k×ℓM \in \{-1, 0, +1\}^{k \times \ell}. To classify a new instance xx, the predicted label y^∈{1,…,k}\hat{y} \in \{1, \dots, k\} is chosen to minimize a distance metric between the matrix rows M(r)M(r) and f(x)f(x):

    y^=arg⁡min⁡r∈{1,…,k}d(M(r),f(x))\hat{y} = \arg\min_{r \in \{1, \dots, k\}} d(M(r), f(x))

    Two decoding distance metrics are formulated:

    1. Loss-based decoding: Incorporates both the confidence magnitudes of fs(x)f_s(x) and the specific loss function L:R→[0,∞)L : \mathbb{R} \to [0, \infty) minimized during binary training by defining the distance as the total loss under candidate class rr (with L(0)L(0) assigned when M(r,s)=0M(r, s) = 0):

    dL(M(r),f(x))=∑s=1ℓL(M(r,s)fs(x))d_L(M(r), f(x)) = \sum_{s=1}^\ell L(M(r, s) f_s(x))

    y^=arg⁡min⁡r∈{1,…,k}dL(M(r),f(x))\hat{y} = \arg\min_{r \in \{1, \dots, k\}} d_L(M(r), f(x))

    1. Hamming decoding: Evaluates only the discrete sign agreement between predictions and matrix entries, assigning a penalty of 1/21/2 if either M(r,s)=0M(r, s) = 0 or fs(x)=0f_s(x) = 0:

    dH(M(r),f(x))=∑s=1ℓ1−sign⁡(M(r,s)fs(x))2d_H(M(r), f(x)) = \sum_{s=1}^\ell \frac{1 - \operatorname{sign}(M(r, s) f_s(x))}{2}

    y^=arg⁡min⁡r∈{1,…,k}dH(M(r),f(x))\hat{y} = \arg\min_{r \in \{1, \dots, k\}} d_H(M(r), f(x))

    where sign⁡(z)=+1\operatorname{sign}(z) = +1 if z>0z > 0, −1-1 if z<0z < 0, and 00 if z=0z = 0.

  3. Knowl 3 — Ternary Distance Metric and Minimum Separation of Coding Matrices

    definition

    For two row vectors u,v∈{−1,0,+1}ℓu, v \in \{-1, 0, +1\}^\ell, the generalized Hamming distance Δ(u,v)\Delta(u, v) is defined as:

    Δ(u,v)=∑s=1ℓ{0if us=vs∧us≠0∧vs≠01if us≠vs∧us≠0∧vs≠01/2if us=0∨vs=0=∑s=1ℓ1−usvs2=ℓ−u⋅v2\Delta(u, v) = \sum_{s=1}^\ell \begin{cases} 0 & \text{if } u_s = v_s \land u_s \neq 0 \land v_s \neq 0 \\ 1 & \text{if } u_s \neq v_s \land u_s \neq 0 \land v_s \neq 0 \\ 1/2 & \text{if } u_s = 0 \lor v_s = 0 \end{cases} = \sum_{s=1}^\ell \frac{1 - u_s v_s}{2} = \frac{\ell - u \cdot v}{2}

    The minimum separation ρ\rho between distinct rows of a coding matrix M∈{−1,0,+1}k×ℓM \in \{-1, 0, +1\}^{k \times \ell} is:

    ρ=min⁡r1≠r2Δ(M(r1),M(r2))\rho = \min_{r_1 \neq r_2} \Delta(M(r_1), M(r_2))

    For standard matrices with kk classes:

    • One-against-all code (M∈{−1,+1}k×kM \in \{-1, +1\}^{k \times k}): ρ=2\rho = 2.
    • All-pairs code (M∈{−1,0,+1}k×(k2)M \in \{-1, 0, +1\}^{k \times \binom{k}{2}}): ρ=(k2)−12+1=k(k−1)4+12\rho = \frac{\binom{k}{2} - 1}{2} + 1 = \frac{k(k-1)}{4} + \frac{1}{2}.
    • Complete code (M∈{−1,+1}k×(2k−1−1)M \in \{-1, +1\}^{k \times (2^{k-1}-1)}): ρ=2k−2\rho = 2^{k-2}.
    • Random dense or sparse codes of length ℓ\ell: the expected distance between any pair of distinct rows is E[Δ(M(r1),M(r2))]=ℓ/2\mathbb{E}[\Delta(M(r_1), M(r_2))] = \ell / 2.
  4. Knowl 4 — Multiclass Empirical Loss Bound for Loss-Based Decoding

    theoretical result

    Let (x1,y1),…,(xm,ym)(x_1, y_1), \dots, (x_m, y_m) be a training set with yi∈Y={1,…,k}y_i \in \mathcal{Y} = \{1, \dots, k\}, and let M∈{−1,0,+1}k×ℓM \in \{-1, 0, +1\}^{k \times \ell} be a coding matrix with minimum row distance ρ=min⁡r1≠r2Δ(M(r1),M(r2))\rho = \min_{r_1 \neq r_2} \Delta(M(r_1), M(r_2)). Let L:R→[0,∞)L : \mathbb{R} \to [0, \infty) be a margin-based loss function satisfying

    L(z)+L(−z)2≥L(0)>0∀z∈R\frac{L(z) + L(-z)}{2} \ge L(0) > 0 \quad \forall z \in \mathbb{R}

    (a property satisfied by convex losses such as exponential e−ze^{-z}, hinge (1−z)+(1-z)_+, logistic log⁡(1+e−2z)\log(1+e^{-2z}), and squared error (1−z)2(1-z)^2).

    Let ε\varepsilon denote the average binary loss across all mm examples and ℓ\ell columns:

    ε=1mℓ∑i=1m∑s=1ℓL(M(yi,s)fs(xi))\varepsilon = \frac{1}{m\ell} \sum_{i=1}^m \sum_{s=1}^\ell L(M(y_i, s) f_s(x_i))

    Then the multiclass training error under loss-based decoding is bounded by:

    1m∑i=1m[[y^i≠yi]]≤ℓερL(0)\frac{1}{m} \sum_{i=1}^m [[\hat{y}_i \neq y_i]] \le \frac{\ell \varepsilon}{\rho L(0)}

    When explicitly parameterized by the fraction of ignored pairs q=∣{(i,s):M(yi,s)=0}∣mℓq = \frac{|\{(i, s) : M(y_i, s) = 0\}|}{m\ell} and the average binary loss restricted to non-ignored pairs εˉ=1mℓ(1−q)∑(i,s):M(yi,s)≠0L(M(yi,s)fs(xi))\bar{\varepsilon} = \frac{1}{m\ell(1-q)} \sum_{(i, s) : M(y_i, s) \neq 0} L(M(y_i, s) f_s(x_i)), the training error bound becomes:

    Training Error≤ℓρ(q+(1−q)εˉL(0))\text{Training Error} \le \frac{\ell}{\rho} \left( q + (1 - q) \frac{\bar{\varepsilon}}{L(0)} \right)

  5. Knowl 5 — Multiclass Empirical Loss Bound for Hamming Decoding

    theoretical result

    Let f1,…,fℓf_1, \dots, f_\ell be binary hypotheses trained on (x1,y1),…,(xm,ym)(x_1, y_1), \dots, (x_m, y_m) with yi∈{1,…,k}y_i \in \{1, \dots, k\} using coding matrix M∈{−1,0,+1}k×ℓM \in \{-1, 0, +1\}^{k \times \ell} having minimum row distance ρ=min⁡r1≠r2Δ(M(r1),M(r2))\rho = \min_{r_1 \neq r_2} \Delta(M(r_1), M(r_2)).

    1. In terms of discrete binary classification mistakes, the multiclass training error under Hamming decoding is bounded by:

    Training Error≤1ρm∑i=1m∑s=1ℓ1−sign⁡(M(yi,s)fs(xi))2\text{Training Error} \le \frac{1}{\rho m} \sum_{i=1}^m \sum_{s=1}^\ell \frac{1 - \operatorname{sign}(M(y_i, s) f_s(x_i))}{2}

    1. For any margin loss L:R→[0,∞)L : \mathbb{R} \to [0, \infty) satisfying L(z)≥L(0)>0L(z) \ge L(0) > 0 for all z<0z < 0, let ε=1mℓ∑i=1m∑s=1ℓL(M(yi,s)fs(xi))\varepsilon = \frac{1}{m\ell} \sum_{i=1}^m \sum_{s=1}^\ell L(M(y_i, s) f_s(x_i)) be the average binary loss. The multiclass training error under Hamming decoding satisfies:

    Training Error≤2ℓερL(0)\text{Training Error} \le \frac{2\ell \varepsilon}{\rho L(0)}

    (which is a factor of 2 looser than the bound for loss-based decoding).

    1. In terms of the fraction of ignored pairs qq and the binary misclassification rate restricted to non-ignored pairs ϵˉ=1mℓ(1−q)∑(i,s):M(yi,s)≠0[[M(yi,s)≠sign⁡(fs(xi))]]\bar{\epsilon} = \frac{1}{m\ell(1-q)} \sum_{(i,s) : M(y_i, s) \neq 0} [[M(y_i, s) \neq \operatorname{sign}(f_s(x_i))]], the bound is:

    Training Error≤ℓρ(q+2(1−q)ϵˉ)\text{Training Error} \le \frac{\ell}{\rho} \left( q + 2(1 - q) \bar{\epsilon} \right)

  6. Knowl 6 — AdaBoost.MO Algorithm with Ternary Output Codes

    algorithm

    AdaBoost.MO trains a multiclass classifier using a ternary coding matrix M∈{−1,0,+1}k×ℓM \in \{-1, 0, +1\}^{k \times \ell} and a binary base learner by maintaining a distribution DtD_t over the m×ℓm \times \ell training example-column pairs. At each round tt, a base hypothesis ht:X×{1,…,ℓ}→{−1,+1}h_t : \mathcal{X} \times \{1, \dots, \ell\} \to \{-1, +1\} is learned, its weighted binary training error ϵt\epsilon_t is computed, hypothesis weight αt\alpha_t is assigned, and the distribution Dt+1D_{t+1} is updated multiplicatively. The final prediction combines base hypotheses across rounds via loss-based decoding using the exponential loss function.

    Input: Training examples ((x1,y1),…,(xm,ym))((x_1, y_1), \dots, (x_m, y_m)) with xi∈Xx_i \in \mathcal{X} and yi∈Y={1,…,k}y_i \in \mathcal{Y} = \{1, \dots, k\}
    Input: Coding matrix M∈{−1,0,+1}k×ℓM \in \{-1, 0, +1\}^{k \times \ell}
    Input: Number of boosting rounds TT
    Input: Base learning algorithm
    Initialize distribution D1(i,s)=1mℓD_1(i, s) = \frac{1}{m\ell} for all i∈{1,…,m}i \in \{1, \dots, m\} and s∈{1,…,ℓ}s \in \{1, \dots, \ell\}
    for t=1t = 1 to TT:
        Train base learner on ((xi,s),M(yi,s))((x_i, s), M(y_i, s)) using distribution DtD_t to get base hypothesis ht:X×{1,…,ℓ}→{−1,+1}h_t : \mathcal{X} \times \{1, \dots, \ell\} \to \{-1, +1\}
        Compute weighted binary error: ϵt=∑i=1m∑s=1ℓDt(i,s)[[M(yi,s)≠ht(xi,s)]]\epsilon_t = \sum_{i=1}^m \sum_{s=1}^\ell D_t(i, s) [[ M(y_i, s) \neq h_t(x_i, s) ] ]
        Set hypothesis weight: αt=12ln⁡(1−ϵtϵt)\alpha_t = \frac{1}{2} \ln\left( \frac{1 - \epsilon_t}{\epsilon_t} \right)
        Compute normalization factor: Zt=2ϵt(1−ϵt)Z_t = 2 \sqrt{\epsilon_t (1 - \epsilon_t)}
        for each i∈{1,…,m}i \in \{1, \dots, m\} and s∈{1,…,ℓ}s \in \{1, \dots, \ell\}:
            Update distribution: Dt+1(i,s)=Dt(i,s)exp⁡(−αtM(yi,s)ht(xi,s))ZtD_{t+1}(i, s) = \frac{D_t(i, s) \exp(-\alpha_t M(y_i, s) h_t(x_i, s))}{Z_t}
    Output: Multiclass classifier H(x)=arg⁡min⁡y∈Y∑s=1ℓexp⁡(−M(y,s)∑t=1Tαtht(x,s))H(x) = \arg\min_{y \in \mathcal{Y}} \sum_{s=1}^\ell \exp\left( -M(y, s) \sum_{t=1}^T \alpha_t h_t(x, s) \right)
  7. Knowl 7 — Multiclass Margin for Loss-Based Boosting Classifiers

    definition

    For a multiclass classifier trained via boosting with coding matrix M∈{−1,0,+1}k×ℓM \in \{-1, 0, +1\}^{k \times \ell}, let η=∑t=1Tαt\eta = \sum_{t=1}^T \alpha_t and let f(x,s)=1η∑t=1Tαtht(x,s)∈[−1,+1]f(x, s) = \frac{1}{\eta} \sum_{t=1}^T \alpha_t h_t(x, s) \in [-1, +1] denote the normalized ensemble prediction for column ss. The vote assigned to a candidate class y∈Yy \in \mathcal{Y} on instance xx is defined as:

    ν(f,η,x,y)=−1ηln⁡(1ℓ∑s=1ℓe−ηM(y,s)f(x,s))\nu(f, \eta, x, y) = -\frac{1}{\eta} \ln \left( \frac{1}{\ell} \sum_{s=1}^\ell e^{-\eta M(y, s) f(x, s)} \right)

    Because the transformation is strictly monotonic, the loss-based decoding decision rule is equivalent to H(x)=arg⁡max⁡y∈Yν(f,η,x,y)H(x) = \arg\max_{y \in \mathcal{Y}} \nu(f, \eta, x, y), with ν(f,η,x,y)∈[−1,+1]\nu(f, \eta, x, y) \in [-1, +1].

    The multiclass margin Mf,η(x,y)M_{f, \eta}(x, y) of a labeled example (x,y)∈X×Y(x, y) \in \mathcal{X} \times \mathcal{Y} is defined as half the difference between the vote for the true label and the largest vote for any competing label:

    Mf,η(x,y)=12[ν(f,η,x,y)−max⁡r≠yν(f,η,x,r)]M_{f, \eta}(x, y) = \frac{1}{2} \left[ \nu(f, \eta, x, y) - \max_{r \neq y} \nu(f, \eta, x, r) \right]

    The margin satisfies Mf,η(x,y)∈[−1,+1]M_{f, \eta}(x, y) \in [-1, +1], and Mf,η(x,y)>0M_{f, \eta}(x, y) > 0 if and only if H(x)H(x) correctly classifies (x,y)(x, y).

  8. Knowl 8 — Generalization Error Bound for AdaBoost with Output Codes

    theoretical result

    Let D\mathcal{D} be a distribution over X×Y\mathcal{X} \times \mathcal{Y}, and let SS be a sample of mm examples drawn i.i.d. from D\mathcal{D}. Let the base-classifier space H\mathcal{H} of functions mapping X×{1,…,ℓ}→{−1,+1}\mathcal{X} \times \{1, \dots, \ell\} \to \{-1, +1\} have Vapnik-Chervonenkis (VC) dimension dd. Assume m≥dℓ≥1m \ge d\ell \ge 1, where ℓ\ell is the number of columns in coding matrix MM.

    Then for any δ>0\delta > 0, with probability at least 1−δ1 - \delta over the random choice of training sample SS, every weighted average function f∈co⁡(H)f \in \operatorname{co}(\mathcal{H}) and every η>0\eta > 0 satisfies the following bound simultaneously for all margin thresholds θ>0\theta > 0:

    Pr⁡D[Mf,η(x,y)≤0]≤Pr⁡S[Mf,η(x,y)≤θ]+O(1m(dlog⁡2(ℓm/d)θ2+log⁡(1/δ))1/2)\operatorname{Pr}_{\mathcal{D}}[M_{f, \eta}(x, y) \le 0] \le \operatorname{Pr}_S[M_{f, \eta}(x, y) \le \theta] + \mathcal{O}\left( \frac{1}{\sqrt{m}} \left( \frac{d \log^2(\ell m / d)}{\theta^2} + \log(1/\delta) \right)^{1/2} \right)

    This demonstrates that the multiclass generalization error is upper bounded in terms of the empirical distribution of training margins Mf,η(x,y)M_{f, \eta}(x, y), independently of the number of boosting rounds TT.

  9. Knowl 9 — Exponential Margin Growth Bound for AdaBoost.MO

    theoretical result

    Let M∈{−1,+1}k×ℓM \in \{-1, +1\}^{k \times \ell} be a binary coding matrix without zeros having minimum row distance ρ=min⁡r1≠r2Δ(M(r1),M(r2))\rho = \min_{r_1 \neq r_2} \Delta(M(r_1), M(r_2)). Suppose AdaBoost.MO produces base hypotheses with weighted binary errors ϵ1,…,ϵT\epsilon_1, \dots, \epsilon_T on training set SS of size mm.

    For any margin threshold θ≥0\theta \ge 0, the empirical fraction of training examples with margin at most θ\theta is bounded by:

    Pr⁡S[Mf,η(x,y)≤θ]≤ℓρ∏t=1T[2ϵt1−θ(1−ϵt)1+θ]\operatorname{Pr}_S[M_{f, \eta}(x, y) \le \theta] \le \frac{\ell}{\rho} \prod_{t=1}^T \left[ 2 \sqrt{\epsilon_t^{1-\theta} (1 - \epsilon_t)^{1+\theta}} \right]

    If the base learning algorithm generates hypotheses with an edge γ>0\gamma > 0 such that ϵt≤1/2−γ\epsilon_t \le 1/2 - \gamma for all tt, the bound simplifies to:

    Pr⁡S[Mf,η(x,y)≤θ]≤ℓρ((1−2γ)1−θ(1+2γ)1+θ)T\operatorname{Pr}_S[M_{f, \eta}(x, y) \le \theta] \le \frac{\ell}{\rho} \left( \sqrt{(1 - 2\gamma)^{1-\theta} (1 + 2\gamma)^{1+\theta}} \right)^T

    For every θ<γ\theta < \gamma, the base of the exponent is strictly less than 1, implying that the fraction of training examples with margin below θ\theta decreases exponentially to zero as the number of boosting rounds TT increases.

  10. Knowl 10 — Empirical Error Rates Across Output Codes and Decoding Methods on UCI Benchmarks

    data/table

    Experiments evaluated five output code families (one-vs-all, complete, all-pairs, dense random, and sparse random) across multiclass UCI repository benchmarks using Support Vector Machines (polynomial kernel of degree 4) and AdaBoost (decision stumps). Decoding methods were tested using Hamming decoding versus loss-based decoding.

    Hamming Decoding Loss-based Decoding
    Problem One-vs-all Complete All-Pairs Dense Sparse One-vs-all Complete All-Pairs Dense Sparse
    dermatology 4.2 3.6 3.1 3.6 2.5 3.3 3.6 3.6 3.9 3.1
    satimage 40.9 14.3 50.4 15.0 27.4 40.9 13.9 27.8 14.3 13.3
    glass 37.6 34.3 29.5 34.8 32.4 38.6 34.8 31.0 34.8 32.4
    ecoli 15.8 14.2 13.9 15.2 14.2 16.1 13.6 13.3 14.8 14.8
    pendigits 3.9 2.0 26.2 2.5 2.6 2.5 1.9 3.1 2.1 2.7
    yeast 73.9 42.4 40.8 42.5 48.1 72.9 40.5 40.9 39.7 47.2
    vowel 60.4 53.0 39.2 53.5 50.2 50.9 51.3 39.0 51.7 47.0
    soybean 20.5 – 9.6 9.0 9.0 21.0 – 10.4 8.8 9.0

    The test error percentages (evaluated by original split or 10-fold cross-validation) demonstrate two key empirical findings:

    1. Loss-based decoding consistently outperforms or matches Hamming decoding across almost all datasets and codes. In extreme cases such as Satimage with All-Pairs under SVM, loss-based decoding achieves 27.8%27.8\% error compared to 50.4%50.4\% for Hamming decoding.
    2. For SVM, the standard one-against-all code is substantially worse than complete, all-pairs, dense, or sparse codes (e.g., Yeast error is 72.9%72.9\% for one-vs-all vs. 39.7%39.7\% for dense random).

Coverage note — Omitted the 1-D synthetic threshold simulation details, AdaBoost with randomized predictions table (L1 decoding in Table 2), and the 5x5 pairwise error difference matrix figures (Figures 6 and 7), in favor of the core unifying theory, algorithms, margin-based generalization bounds, and primary benchmark results.

References

  1. 1.Bartlett, P. L. (1998). The sample complexity of pattern classification with neural networks: the size of the weights is more important than the size of the network. IEEE Transactions on Information Theory, 44(2), 525–536.
  2. 2.Breiman, L. (1997a). Arcing the edge. Tech. rep. 486, Statistics Department, University of California at Berkeley.
  3. 3.Breiman, L. (1997b). Prediction games and arcing classifiers. Tech. rep. 504, Statistics Department, University of California at Berkeley.
  4. 4.Breiman, L., Friedman, J. H., Olshen, R. A., & Stone, C. J. (1984). Classification and Regression Trees. Wadsworth & Brooks.
  5. 5.Collins, M., Schapire, R. E., & Singer, Y. (2000). Logistic regression, AdaBoost and Bregman distances. In Proceedings of the Thirteenth Annual Conference on Computational Learning Theory.
  6. 6.Cortes, C., & Vapnik, V. (1995). Support-vector networks. Machine Learning, 20(3), 273–297.
  7. 7.Crammer, K., & Singer, Y. (2000). On the learnability and design of output codes for multiclass problems. In Proceedings of the Thirteenth Annual Conference on Computational Learning Theory.
  8. 8.Csiszár, I., & Tusnády, G. (1984). Information geometry and alternating minimization procedures. Statistics and Decisions, Supplement Issue, 1, 205–237.
  9. 9.Della Pietra, S., Della Pietra, V., & Lafferty, J. (1997). Inducing features of random fields. IEEE Transactions Pattern Analysis and Machine Intelligence, 19(4), 1–13.
  10. 10.Dietterich, T. G., & Bakiri, G. (1995). Solving multiclass learning problems via error-correcting output codes. Journal of Artificial Intelligence Research, 2, 263–286.
  11. 11.Freund, Y. (1999). An adaptive version of the boost by majority algorithm. In Proceedings of the Twelfth Annual Conference on Computational Learning Theory, pp. 102–113.
  12. 12.Freund, Y., & Schapire, R. E. (1997). A decision-theoretic generalization of on-line learning and an application to boosting. Journal of Computer and System Sciences, 55(1), 119–139.
  13. 13.Friedman, J., Hastie, T., & Tibshirani, R. (2000). Additive logistic regression: a statistical view of boosting. The Annals of Statistics, 38(2), 337–374.
  14. 14.Guruswami, V., & Sahai, A. (1999). Multiclass learning, boosting, and error-correcting codes. In Proceedings of the Twelfth Annual Conference on Computational Learning Theory, pp. 145–155.
  15. 15.Hastie, T., & Tibshirani, R. (1998). Classification by pairwise coupling. The Annals of Statistics, 26(2), 451–471.
  16. 16.Hoeffding, W. (1963). Probability inequalities for sums of bounded random variables. Journal of the American Statistical Association, 58(301), 13–30.
  17. 17.Höffgen, K.-U., & Simon, H.-U. (1992). Robust trainability of single neurons. In Proceedings of the Fifth Annual ACM Workshop on Computational Learning Theory, pp. 428–439.
  18. 18.Kearns, M., & Mansour, Y. (1996). On the boosting ability of top-down decision tree learning algorithms. In Proceedings of the Twenty-Eighth Annual ACM Symposium on the Theory of Computing.
  19. 19.Lafferty, J. (1999). Additive models, boosting and inference for generalized divergences. In Proceedings of the Twelfth Annual Conference on Computational Learning Theory, pp. 125–133.
  20. 20.Mason, L., Baxter, J., Bartlett, P., & Frean, M. (1999). Functional gradient techniques for combining hypotheses. In Smola, A. J., Bartlett, P. J., Schölkopf, B., & Schuurmans, D. (Eds.), Advances in Large Margin Classifiers. MIT Press.
  21. 21.Merz, C. J., & Murphy, P. M. (1998). UCI repository of machine learning databases. www.ics.uci.edu/~mlearn/MLRepository.html.
  22. 22.Quinlan, J. R. (1993). C4.5: Programs for Machine Learning. Morgan Kaufmann.
  23. 23.Rätsch, G., Onoda, T., & Müller, K.-R. (to appear). Soft margins for AdaBoost. Machine Learning.
  24. 24.Rumelhart, D. E., Hinton, G. E., & Williams, R. J. (1986). Learning internal representations by error propagation. In Rumelhart, D. E., & McClelland, J. L. (Eds.), Parallel Distributed Processing – Explorations in the Microstructure of Cognition, chap. 8, pp. 318–362. MIT Press.
  25. 25.Schapire, R. E., Freund, Y., Bartlett, P., & Lee, W. S. (1998). Boosting the margin: A new explanation for the effectiveness of voting methods. The Annals of Statistics, 26(5), 1651–1686.
  26. 26.Schapire, R. E., & Singer, Y. (1999). Improved boosting algorithms using confidence-rated predictions. Machine Learning, 37(3), 297–336.
  27. 27.Schölkopf, B., Smola, A., Williamson, R., & Bartlett, P. (1998). New support vector algorithms. Tech. rep. NC2-TR-1998-053, NeuroColt2.
  28. 28.Vapnik, V. N. (1995). The Nature of Statistical Learning Theory. Springer.

Citation

MLA
Allwein, E. L., et al. “Reducing Multiclass to Binary: A Unifying Approach for Margin Classifiers”. Journal of Machine Learning Research, vol. 1, no. Dec, 2000, pp. 113–41, https://www.jmlr.org/papers/v1/allwein00a.html.
APA
Allwein, E. L., Schapire, R. E., & Singer, Y. (2000). Reducing Multiclass to Binary: A Unifying Approach for Margin Classifiers. Journal of Machine Learning Research, 1(Dec), 113–141. https://www.jmlr.org/papers/v1/allwein00a.html
Chicago
Allwein, E. L., R. E. Schapire, and Y. Singer. 2000. “Reducing Multiclass to Binary: A Unifying Approach for Margin Classifiers”. Journal of Machine Learning Research 1 (Dec): 113–41. https://www.jmlr.org/papers/v1/allwein00a.html.
Harvard
Allwein, E.L., Schapire, R.E. and Singer, Y. (2000) “Reducing Multiclass to Binary: A Unifying Approach for Margin Classifiers”, Journal of Machine Learning Research, 1(Dec), pp. 113–141. Available at: https://www.jmlr.org/papers/v1/allwein00a.html.
Vancouver
1. Allwein EL, Schapire RE, Singer Y (2000) Reducing Multiclass to Binary: A Unifying Approach for Margin Classifiers. Journal of Machine Learning Research 1:113–141

BibTeX

@article{allwein2000reducing,
  title = {Reducing Multiclass to Binary: A Unifying Approach for Margin Classifiers},
  author = {Allwein, Erin L. and Schapire, Robert E. and Singer, Yoram},
  year = {2000},
  journal = {Journal of Machine Learning Research},
  volume = {1},
  number = {Dec},
  pages = {113-141},
  url = {https://www.jmlr.org/papers/v1/allwein00a.html}
}
Metadata:DOI registry

Access the Paper

This paper is available from its original source. Click below to access the PDF.

Open PDF
License: https://creativecommons.org/licenses/by/4.0/