Skip to content
Road to Intelligence

Concept · Chapter 3: Machine Learning

Support Vector Machines

Should knowUnderstand15 minDifficulty

A support vector machine chooses the separating boundary with the widest possible margin to the nearest points, and with the kernel trick it can draw curved boundaries by implicitly working in a higher-dimensional feature space.

The problem

Many boundaries separate the training data; which one is most likely to generalize — and how can a linear method separate non-linear data?

The solution

Maximize the margin (distance to the closest training points, the 'support vectors'), allow some violations with a penalty, and replace dot products with a kernel function to get non-linear boundaries.

The consequence

SVMs were the leading classifiers of the late 1990s–2000s; the kernel idea — similarity as an implicit dot product in feature space — is a useful lens on representations generally.

The idea

Among all lines that separate two classes, pick the one that stays as far as possible from both — the widest "street". Only the points on the edges of the street, the support vectors, matter; move any other point and the boundary doesn't change. The soft-margin version (Cortes & Vapnik, 1995) tolerates some points inside the street, trading margin for errors.

The kernel trick

To separate data that isn't linearly separable, map inputs into a richer feature space (e.g. add x12x_1^2, x1x2x_1x_2, …). The SVM's math only ever needs dot products between examples — so replace x⋅z\mathbf{x}\cdot\mathbf{z} with a kernel k(x,z)k(\mathbf{x}, \mathbf{z}) that equals a dot product in the richer space, without ever computing that space explicitly.

What to remember

  • Maximize the margin between the classes.
  • Only the closest points (support vectors) determine the boundary.
  • Kernel trick: compute dot products in a high-dimensional feature space without constructing it.
  • Dominant before deep learning; still useful on small, clean datasets.

Key papers

Important

Support-vector networks

Corinna Cortes, Vladimir Vapnik · 1995 · Machine Learning

Introduced the soft-margin support vector machine, the dominant classifier of the late 1990s and 2000s.

~1 h readdoi:10.1007/BF00994018✓ verified 2026-09-26