Improved Output Coding for Classification Using Continuous Relaxation

Koby Crammer, Yoram SingerNeurIPS 2000

Introduction

In machine learning, real-world tasks like speech recognition or medical diagnosis often involve categorizing data into one of many possible classes. A standard strategy for tackling these "multiclass" problems is to break them down into a series of simpler "binary" (yes/no) decisions using a technique known as Error-Correcting Output Codes (ECOC).

This paper introduces a novel method to significantly boost multiclass classification performance by evolving traditional "discrete" ECOC into "continuous" ones. By framing the code design as a quadratic optimization problem—similar to the training process of Support Vector Machines (SVMs)—the authors create a flexible framework that accounts for classifier correlations and improves accuracy, particularly when using shorter codes.

The Problem with Traditional ECOC

Traditionally, ECOC uses a fixed matrix of 1s and -1s to define its binary tasks. While effective, this discrete approach suffers from three main flaws:

  1. Rigidity: It treats all binary classifiers as equally important, regardless of their actual predictive performance or reliability.
  2. Independence Assumption: It ignores the reality that binary classifiers trained on the same data are often statistically correlated.
  3. Suboptimality: The codes are usually predefined and fail to adapt to the specific nuances of the dataset or the underlying learning algorithm.

The SPOC Methodology

To overcome these limitations, the authors propose a two-phase algorithm called SPOC (Support Patterns Output Coding):

  1. Initial Training: The process begins by training a set of binary classifiers using a standard discrete code (such as a "one-against-all" strategy).
  2. Continuous Relaxation: Instead of strictly adhering to discrete -1/+1 values, the algorithm "relaxes" the code into real numbers. This is cast as a constrained optimization problem: finding a continuous code matrix that minimizes an upper bound on the multiclass training error while maintaining a "margin" of confidence.

The "Aha!" Moment: The authors demonstrate that the optimal continuous code can be expressed as a linear combination of the training instances, which they term "support patterns." This mathematical formulation allows the use of kernels. By applying a kernel function to the predictions of the binary classifiers, the model can automatically account for complex correlations between different classifiers without requiring manual feature engineering.

Experimental Setup and Key Insights

The researchers evaluated their approach on eight multiclass datasets, including the classic MNIST handwritten digit dataset and several from the UCI Repository (satimage, shuttle, isolet, letter, vowel, glass, and soybean). These datasets vary significantly in size and number of classes, providing a robust stress test for the algorithm.

Confidence and Efficiency

In a continuous code, the sign of an entry still dictates the class prediction, but the magnitude represents the model's confidence. This allows the system to "trust" certain classifiers more than others dynamically.

One of the most striking findings is that continuous codes are highly efficient. A very short continuous code can often match or exceed the performance of a much longer, computationally expensive discrete code. For instance, on the vowel dataset, the performance gap between discrete and continuous codes was largest when the codes were short, suggesting that continuous relaxation is ideal for environments with limited computing power.

Performance Gains and Limitations

Continuous relaxation improved generalization performance across almost all tested datasets. The improvements were most dramatic when using "thresholded-SVMs" as the base learners.

Relative performance across datasets

The most notable success occurred on the shuttle dataset, where the error rate dropped from over 3% (discrete) to less than 1% (continuous). Using a degree-3 polynomial kernel pushed the error down even further to 0.48%.

However, the algorithm is not without limitations. It struggled with the soybean dataset—the smallest dataset tested, which also features a high number of classes. In this scenario, the continuous relaxation led to overfitting; the model became too tailored to the training data and failed to generalize effectively to the test set.

Future Directions

The authors suggest several avenues for future research. The algorithm could potentially be run iteratively, using the output of one optimization as the starting point for another to incrementally climb toward better performance. Additionally, future work could explore combining this continuous relaxation technique with other multiclass-to-binary strategies, such as Directed Acyclic Graphs (DAGs) or tree-based codes, to further refine classification accuracy.

Summary updated

BibTeX
@inproceedings{crammer2000improved,
  author = {Koby Crammer and Yoram Singer},
  title = {{Improved Output Coding for Classification Using Continuous Relaxation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2000},
}
Figure