Online Classification for Complex Problems Using Simultaneous Projections

Yonatan Amit, Shai Shalev-Shwartz, Yoram SingerNeurIPS 2006

Introduction

This paper introduces a novel framework for online learning where complex prediction tasks—such as multiclass classification—are broken down into multiple simpler sub-problems. Instead of solving a difficult joint optimization or focusing only on the single "worst" mistake, the authors propose projecting the model's weights onto all violated constraints simultaneously and then averaging the results. This method proves to be both computationally efficient and theoretically sound.

The Challenge of Complex Online Learning

In online learning, an algorithm updates its internal model (or "hypothesis") one example at a time. For complex problems like multiclass categorization, a single example actually represents multiple constraints. For instance, if the correct label is "A" and the options are "A, B, C, D," the model needs to ensure that "A" scores higher than "B," higher than "C," and higher than "D."

Previous approaches generally fell into one of three camps:

  1. Decoupled: Treat every sub-problem as totally independent, ignoring the shared structure.
  2. Worst-Case: Only update based on the single most "wrong" prediction, ignoring useful information from other sub-tasks.
  3. Tailored: Create a custom, complex algorithm for a specific problem, which is often hard to generalize.

The authors seek a "middle path": a general framework that considers all sub-tasks together without the computational burden of a fully joint optimization.

The Simultaneous Projection Framework

The authors cast the online update as a projection problem. When the model makes a mistake, it needs to find a new weight vector that is as close as possible to the old one but satisfies a set of linear constraints.

Geometric intuition of simultaneous projections

The core innovation is the Simultaneous Projection approach:

  • The Primal Problem: They define a global optimization problem where all sub-tasks share a single "slack" parameter, which measures the overall quality of the prediction.
  • The Dual Solution: Since solving the joint problem analytically is often impossible, they break it into $k$ reduced problems (one for each constraint).
  • Averaging: They solve each reduced problem independently (which has a simple analytical solution) and then take a convex combination (a weighted average) of these solutions.

They propose three specific algorithmic variants:

  • SimPerc (Simultaneous Perceptron): A simple update that only triggers on incorrect labels.
  • SimProj (Soft Simultaneous Projections): A "softer" update that considers the margin of the prediction (how confident the model was).
  • ConProj (Conservative Simultaneous Projections): A hybrid that uses the analytical solution of SimProj but only for instances that were actually misclassified.

Experimental Setup

The algorithms were evaluated using the Enron email dataset, focusing on categorizing emails into user-defined folders. The experiments were run on 7 different users, with the number of categories ($k$) ranging from 11 to 101 and the number of messages ($m$) ranging from 1,190 to 4,479. The models utilized class-dependent features based on word frequency and historical folder assignments.

Key Insights

  • Feasibility over Optimality: The core "aha moment" is that while averaging independent projections might not yield the mathematically optimal solution to the joint problem, it is guaranteed to be a feasible one. This feasibility is enough to derive strong theoretical mistake bounds.
  • The Power of the Margin: The experiments showed that SimProj (the soft version) consistently outperformed the others. This suggests that updating based on "near misses" (low confidence) is just as important as updating on outright mistakes.
  • Efficiency: Because the sub-problems have analytical solutions, the algorithm's time complexity is essentially the same as simpler "worst-violator" methods, but it extracts much more information from each trial.

Results

The authors compared their variants against established algorithms like Max-Update and Mira.

Classification error rates across Enron users
  • Superior Accuracy: In almost every test case, the SimProj algorithm achieved the lowest percentage of online mistakes. For example, for the user 'beck-s' (101 categories), SimProj had a 50.0% mistake rate, significantly better than Mira (63.7%) or the Multi-prototype Max-Update (63.8%).
  • Consistency: Cumulative mistake plots demonstrate that the simultaneous projection variants maintain a steady lead over the course of the learning process, rather than just starting strong.

Limitations and Future Directions

  • Computational Weighting: While the paper mentions choosing importance weights, the current implementation uses a simple average. The authors suggest that a more refined derivation for these weights could further improve performance.
  • Regularization Functions: The current work relies on squared norm regularization. Extending this to other functions, like relative entropy (which would lead to versions of the Winnow or EG algorithms), is a promising next step.
  • Structured Output: The framework is currently demonstrated on multiclass problems, but the authors believe it can be applied to even more complex "structured output" problems, such as max-margin networks used in natural language processing.

Summary updated

BibTeX
@inproceedings{amit2006online,
  author = {Yonatan Amit and Shai Shalev-Shwartz and Yoram Singer},
  title = {{Online Classification for Complex Problems Using Simultaneous Projections}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2006},
  url = {https://openreview.net/forum?id=BkblmdZdZr},
}
Figure