Skip to content
nonconvexcard

Derive the soft-margin SVM dual

ProofGraduate⏱ 3 hoursClassical MLsvmsoft marginbox constraintdualflagship

Problem

Derive the soft-margin dual from min⁡12∥w∥22+C∑iξi\min\frac12\|w\|_2^2+C\sum_i\xi_i subject to yi(⟨w,xi⟩+b)≥1−ξiy_i(\langle w,x_i\rangle+b)\ge1-\xi_i, ξi≥0\xi_i\ge0. Show that the box constraint 0≤αi≤C0\le\alpha_i\le C is derived rather than imposed, and that the slack variables disappear identically.

Write a complete argument. Every inequality you use should be one you could state precisely.

Solution

Opening this before you have a real attempt on paper is the fastest way to feel like you understand something you cannot reproduce.

Related problems

All problems
SolvedProblemFieldTypeDifficultyTime
The geometric marginClassical MLProofFoundation15 min
Solve a two-point SVM by handClassical MLNumericalBeginner30 min
The soft-margin SVM is regularised hinge-loss minimisationClassical MLProofIntermediate30 min
Prove the O(1/t) rate for gradient descent abyssOptimizationProofAdvanced1 hour
The three regimes of a training pointClassical MLProofAdvanced30 min