Rounding Methods for Discrete Linear Classification

Yann Chevaleyre, Frédéric Koriche, Jean-Daniel ZuckerICML 2013

Introduction

In standard machine learning, linear classifiers like Support Vector Machines (SVMs) rely on real-valued weights. While effective, these continuous numbers often act as a "black box," making them difficult for humans to interpret. In high-stakes fields such as medical diagnosis or metagenomics, practitioners strongly prefer discrete classifiers. For instance, a biologist might want a simple "M-of-N" rule: "If at least 3 out of these 10 specific bacteria are present, the patient is likely obese."

The fundamental challenge is that finding optimal discrete weights (e.g., 0, 1, or -1) is a combinatorial nightmare. While continuous linear classification is a computationally "easy" convex optimization problem, discrete classification is NP-hard. This paper bridges that gap, proposing efficient algorithms to find high-quality discrete classifiers without requiring an exhaustive, intractable search.

Methodology: Relaxation and Rounding

To bypass the NP-hard complexity barrier, the authors propose a two-stage approach that transforms continuous solutions into discrete ones while providing strong theoretical guarantees.

  1. Convex Relaxation: First, the problem is solved as if the weights could be any real number between 0 and 1. This transforms the task into a standard, efficiently solvable convex optimization problem.
  2. Rounding: Next, these fractional weights are converted back into discrete 0s and 1s using one of two proposed methods:
  3. Randomized Rounding (RR): Treats the fractional weight (e.g., 0.7) as the probability that the discrete weight should be rounded to 1.
  4. Greedy Rounding (GR): A deterministic "derandomization" of RR. It rounds coordinates one by one, ensuring at each step that the potential increase in error is strictly controlled.
2D projection of continuous optimization landscape and discrete grid

The authors also introduce a "feature duplication" trick to extend these methods from binary weights $\{0, 1\}$ to ternary weights $\{-1, 0, 1\}$, allowing the model to account for both positive and negative correlations.

Datasets and Experiments

The algorithms were evaluated across four distinct types of data to test their robustness and applicability:

  • Synthetic Data: Artificially generated datasets to test how the algorithms handle irrelevant features and varying sample sizes.
  • Metagenomic Data: A real-world dataset of 38 individuals with 69 bacterial features, used to predict obesity.
  • Colon Cancer Data: Microarray data consisting of 62 samples and 2,000 genes, focused on sparse gene selection (picking exactly $k=15$ genes).
  • Mushrooms Dataset: A classic UCI dataset used to see if the algorithm could rediscover simple "M-of-N" rules for determining if a mushroom is poisonous.

Key Insights and Results

The paper provides several compelling theoretical and empirical findings:

  • The Complexity Barrier: The authors formally prove that even approximating the best discrete classifier within a certain constant factor is NP-hard (via a reduction from the Max-Cut problem).
  • Theoretical Optimality: The paper shows that the Greedy Rounding (GR) algorithm is a "tight" approximation, meaning you likely cannot do significantly better than GR in polynomial time.
  • Interpretability vs. Accuracy: Surprisingly, forcing weights to be discrete doesn't necessarily hurt accuracy. In several tests, the rounded discrete models performed as well as or better than standard SVMs. The discrete constraint acts as a powerful form of regularization that prevents overfitting. This is supported by new generalization bounds derived for binary-weighted functions, showing they are "simpler" than their continuous counterparts.

Empirically, the rounding methods proved highly effective. On the metagenomics obesity dataset, Randomized Rounding (RR) achieved a test error of 0.41, outperforming both L1-SVM (0.46) and the fractional convex solution (0.48).

Furthermore, on the Mushrooms dataset, the algorithm successfully produced a highly interpretable "3-of-10" rule that achieved 98% accuracy.

Interpretable M-of-N rule generated for the Mushrooms dataset

In terms of efficiency, while exact solutions (Mixed Integer Programming) took 13 seconds on small datasets and became intractable as dimensions grew, the rounding methods provided solutions in fractions of a second (or a few seconds for GR).

Limitations and Future Work

While Greedy Rounding has the best theoretical guarantees, it is computationally more expensive than Randomized Rounding. On the high-dimensional 2,000-gene colon cancer dataset, GR took a substantial amount of time, leading the authors to use a multi-start version of Randomized Rounding instead. Additionally, the performance of the rounding depends heavily on the hinge loss parameter ($\gamma$); if it is too small, the relaxation fails to provide a good starting point for rounding.

Future directions suggest integrating these rounding techniques into more complex ensemble methods or using them to automate the discovery of clinical scoring systems, further bridging the gap between machine learning accuracy and human interpretability.

Summary updated

BibTeX
@inproceedings{chevaleyre2013rounding,
  author = {Yann Chevaleyre and Frédéric Koriche and Jean-Daniel Zucker},
  title = {{Rounding Methods for Discrete Linear Classification}},
  booktitle = {International Conference on Machine Learning},
  year = {2013},
  url = {https://openreview.net/forum?id=B1VROibubH},
}
Figure