In a soft-margin support vector machine (SVM), what does the hyperparameter C control?

Supervised learning, Support vector machines
Level L1 Beginner. Length One-liner. Nature Th Theoretical.

What's being asked

Whether you can link C to the trade-off between a wide margin and few margin violations.

Key idea

The soft-margin SVM solves min⁡w,b,ξ12∥w∥2+C∑iξi. Here w and b define the separating line (or plane), and the slack ξi≥0 measures how badly point i violates the margin. C is the price of each unit of slack: large C gives few violations and a narrow margin; small C gives a wide margin with more violations.

Steps

  1. Write the objective and the constraints ti(w⊤xi+b)≥1−ξi, where ti∈{−1,+1} is the label of point xi.
  2. Explain the trade-off. The first term wants a wide margin (the margin width is 2/∥w∥). The second wants few violations. C sets the balance between them.
  3. Give the two limits and how C is tuned: as C→∞ no violation is allowed (the hard-margin SVM), whereas a small C acts like strong regularisation for a simpler, smoother boundary; in practice C is chosen by cross-validation.

Common mistakes

How long your answer should be

One sentence; add the two limits if asked.

Read this

Previous in Supervised learning: In plain words, what does the hinge loss punish in a classifier, and what is the loss for a point with correct label +1 when the model's score for it is 0.5?
Next in Supervised learning: A fraud dataset has 99.5% legitimate and 0.5% fraudulent transactions, and your classifier reports 99.5% accuracy. Is it a good classifier, and how would you handle the imbalance?