Training Support Vector Machines with Multiple Equality Constraints

Wolf Kienzle, Bernhard Schölkopf

Introduction

Training Support Vector Machines (SVMs) is fundamentally a convex optimization problem. However, standard implementations face significant scalability hurdles; memory requirements often grow quadratically with the number of training points ($O(m^2)$), making them impractical for modern, large-scale datasets.

To address this, researchers developed decomposition methods like Sequential Minimal Optimization (SMO). These methods break the global problem into smaller "working sets." However, most existing solvers are "primal-only," requiring that equality constraints (such as those involving the bias term $b$) be satisfied at every iteration. This constraint forces the working set size to increase with the number of equality constraints—common in $\nu$-SVMs or semi-parametric models—complicating the analytical solutions and slowing training. The Minimal Primal-Dual (MPD) algorithm aims to solve this by maintaining a working set size of exactly one, regardless of the number of equality constraints.

The Minimal Primal-Dual (MPD) Algorithm

The core innovation of MPD is the relaxation of strict primal feasibility during the training process. Instead of forcing equality constraints to be met at every step, MPD treats them as part of a dual maximization problem.

The MPD Workflow

  1. Relaxation: Equality constraints are incorporated into the Lagrangian using dual variables ($\eta$).
  2. Primal Update: With constraints relaxed, the algorithm performs a Gauss-Seidel update on a single point ($q=1$). This is computationally efficient and only needs to respect simple "box constraints."
  3. Dual Update: The algorithm performs an approximate Newton step to update the dual variables ($\eta$).
  4. Hessian Estimation: To avoid the cost of inverting large matrices, MPD maintains a running estimate of the Hessian diagonal through iterative updates.

By alternating between these steps, the algorithm converges to a solution where both primal and dual conditions are met, satisfying the original equality constraints at the final optimum.

Unified Framework for SVM Variants

One of the primary strengths of the MPD framework is its versatility. It provides a consistent mathematical structure that can solve nearly any SVM variant by simply swapping a few parameters. This includes standard classification ($C$-SVC), regression ($\epsilon$-SVR), and more complex models like $\nu$-SVMs.

Table 1: Parameter settings for various SVM formulations within the MPD framework.

Experimental Evaluation

The authors evaluated MPD across several scenarios to test its robustness and scalability:

  • Toy Data: Used 2D Gaussian distributions to visualize KKT (Karush-Kuhn-Tucker) violation behavior during optimization.
  • Synthetic Regression: A semi-parametric $\epsilon$-SVR problem involving complex target functions (sine and sinc) was used to create scenarios with multiple equality constraints.
  • Large-Scale Testing: The regression problem was scaled from $m=50$ to $m=100,000$ points to evaluate memory and time efficiency.

Key Results and Insights

  • Memory Efficiency: While traditional interior-point solvers like LOQO failed due to memory limits at approximately 3,300 points, MPD successfully handled 100,000 points using a kernel cache.
  • Competitive Speed: MPD demonstrated time complexity comparable to LOQO on smaller datasets while remaining viable for large-scale problems where LOQO could not run.
  • Semi-Parametric Success: MPD is uniquely suited for semi-parametric SVMs, which incorporate domain-specific knowledge but are typically difficult to train with standard SMO packages due to their multiple constraints.
  • The "Dual-Dual Trick": In this framework, the dual variables ($\eta$) correspond to the model's free variables (like the bias $b$). These values are obtained naturally during optimization rather than being calculated in a separate post-processing step.

Limitations and Future Work

While effective, the authors identified areas for further refinement. The dual updates rely on an estimated Hessian; future work could investigate whether waiting for full Hessian convergence improves stability. Additionally, because the Newton steps use approximations, there is a theoretical risk regarding step-size selection that warrants further mathematical study. Finally, implementing more advanced heuristics for working set selection could potentially accelerate convergence beyond the current "largest violation" strategy.

Summary updated

BibTeX
@inproceedings{kienzle2005training,
  author = {Wolf Kienzle and Bernhard Schölkopf},
  title = {{Training Support Vector Machines with Multiple Equality Constraints}},
  booktitle = {ECML},
  year = {2005},
  doi = {10.1007/11564096\_21},
}
Figure