Support Vector Machine: Primal, Dual, Duality Insights, and ML principles

Jongeun Choi
School of Mechanical Engineering, Yonsei University
2025, March
Primal SVM Duality Soft-Margin Kernel SVM Lasso

Hard-Margin SVM: Primal Formulation

SVM Classifier
Optimization Problem:
$$ \min_{w, b} \quad \frac{1}{2} \|w\|^2 \\ \text{subject to} \quad y_i(w^\top x_i + b) \geq 1, \quad \forall i $$

Why Min-Max via Lagrangian?

Constrained optimization problems can be converted into a Lagrangian saddle-point problem:

$$ \min_{w, b} \max_{\alpha \geq 0} \mathcal{L}(w, b, \alpha) $$

Game Perspective of Primal-Dual Optimization

Lagrangian as a Game:

SVM Primal Dual Game

Game-Theoretic Interpretation of Duality

Why a Game?

Min-max two-player zero-sum game where one player (the "optimizer") minimizes an objective function, while the other player (the "constraint enforcer") maximizes a penalty term related to constraint violations.

Game-Theoretic Interpretation of Duality

How they interact:

Why it's useful:

Soft-Margin SVM

Soft-Margin SVM

Kernel Trick

Kernel Trick Visualization Kernel Trick Example

Lasso and Geometry

Lasso Illustration Lasso Geometry