Why does maximizing the margin correspond to minimizing the norm of the weight vector in an SVM?

Quick Overview

Asks why maximizing the margin of a support vector machine is the same as minimizing the norm of its weight vector. Tests the point-to-hyperplane distance, the scale freedom of the weights and bias, and why the squared norm is used in the optimization.

Why does maximizing the margin correspond to minimizing the norm of the weight vector in an SVM?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Why does maximizing the margin correspond to minimizing the norm of the weight vector in an SVM? Derive the connection for a linear classifier $f(x) = w \cdot x + b$ on separable data. ```hint Fix the scale first The pair $(w, b)$ and $(cw, cb)$ describe the same hyperplane for any $c > 0$. Pick a scale that makes the closest points easy to write down. ``` ```hint Use the point-to-plane distance Write the distance from a point to the hyperplane, then see what it becomes for the closest points under that scale. ``` ### What a Strong Answer Covers - The distance from a point to the hyperplane $w \cdot x + b = 0$ - The scale freedom in $(w, b)$ and the canonical normalization that removes it - The margin written in terms of $\|w\|$ and the constrained problem that follows - Why the squared norm is minimized in practice - The link to L2 regularization and the soft-margin objective ### Follow-up Questions - How does the soft-margin formulation change the objective, and what does $C$ control? - Derive the dual problem. Why do only the support vectors get nonzero multipliers? - How does the argument carry over to a kernel SVM, where $w$ lives in feature space? - Why would a larger margin be expected to generalize better?

Overview: Asks why maximizing the margin of a support vector machine is the same as minimizing the norm of its weight vector. Tests the point-to-hyperplane distance, the scale freedom of the weights and bias, and why the squared norm is used in the optimization.

General logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Why does maximizing the margin correspond to minimizing the norm of the weight vector in an SVM? Derive the connection for a linear classifier f(x)=w⋅x+bf(x) = w \cdot x + b on separable data.

What a Strong Answer Covers Guidance

  • The distance from a point to the hyperplane w⋅x+b=0w \cdot x + b = 0
  • The scale freedom in (w,b)(w, b) and the canonical normalization that removes it
  • The margin written in terms of ∥w∥\|w\| and the constrained problem that follows
  • Why the squared norm is minimized in practice
  • The link to L2 regularization and the soft-margin objective

Follow-up Questions Guidance

  • How does the soft-margin formulation change the objective, and what does CC control?
  • Derive the dual problem. Why do only the support vectors get nonzero multipliers?
  • How does the argument carry over to a kernel SVM, where ww lives in feature space?
  • Why would a larger margin be expected to generalize better?