Quant Memo

Paper Explained

Support Vector Machines: Draw the Line With the Widest Possible Margin

Cortes and Vapnik asked which of the infinitely many lines separating two groups is the right one, and their answer, the widest gap, dominated machine learning for a decade.

QM
Quant Memo

July 13, 2026

The paper

Support-Vector Networks

Corinna Cortes and Vladimir Vapnik · 1995

Read the original →

You have two groups of points on a page, blue and red, and you want to draw a line separating them. If the groups are cleanly separated, there are infinitely many lines that do the job. Some hug the blue points. Some hug the red ones. Some sit in between.

Which one should you pick?

Most people's intuition says: the one right down the middle. Corinna Cortes and Vladimir Vapnik's 1995 paper turns that intuition into mathematics, proves it is the right thing to do, and then extends it into a method that handled non-linear problems so elegantly that it dominated machine learning for the decade before deep learning arrived.

The problem: fitting the training data is easy, and it is not the point

Any line that separates your training points has zero training error. All of them are equally perfect, by that measure. So training error cannot tell you which to choose, and yet the choice matters enormously, because a new point that arrives tomorrow will be classified differently depending on which line you picked.

This is the central problem of machine learning, stated in its purest form. Fitting the data you have is trivial. Generalizing to data you have not seen is the whole difficulty. And you need a principle, beyond "fit the training data," to guide you.

Vapnik had spent years developing a theory about exactly this, and the answer it gives is the margin.

The key idea via analogy: the widest road you can build

Do not think of the classifier as a line. Think of it as a road, with the line as its centre.

You want to build the widest possible road between the blue points and the red points, without any point ending up on the road. Push the shoulders out as far as they will go until they bump into the nearest points on each side. Those nearest points are the ones that stop you widening any further. Everything else is irrelevant.

The classifier is the centre line of that widest road, and the width of the road is called the margin.

Why is the widest road the right answer? Because it is the most robust. If a new point arrives that is a bit noisy, a bit displaced from where it should be, a wide road gives it room to be wrong and still land on the correct side. A narrow road, one that skims close to the training points, will misclassify a new point that is only slightly off. Maximising the margin is maximising your tolerance for the noise in future data, and Vapnik's statistical learning theory makes this precise: a large margin implies a bound on the generalization error, independent of how many dimensions your data lives in.

Now the second beautiful consequence. Only the points touching the edges of the road matter. Those are the support vectors, and they give the method its name. Every other point in your dataset, however many millions there are, could be deleted and the classifier would not move a millimetre. The model is defined by a handful of boundary cases. That is an unusual and rather elegant kind of sparsity, and it is one of the reasons the method is computationally tractable on large datasets.

The two extensions that made it practical

The basic idea assumes the data can actually be separated by a straight line. Real data cannot. The paper's two extensions are what turned an elegant idea into a workhorse.

The soft margin: allow some points to be wrong. Real data is messy and contains mislabelled or overlapping points. Insisting on perfect separation would force the road to become absurdly narrow, contorting to accommodate a single outlier. So Cortes and Vapnik introduce a penalty: points are allowed to sit on the road or even on the wrong side, but each violation costs you. The optimisation then trades off two goals: keep the road wide, and keep the violations few. A single tuning parameter controls how much you care about each. This is regularization by another name, and it is what makes the method robust to noise. It was, in fact, the specific contribution of this 1995 paper, extending the earlier separable-case work.

The kernel trick: bend the space instead of the line. This is the clever one. Suppose your blue points form a circle in the middle and your red points surround them. No straight line will ever separate them.

The fix: map the data into a higher-dimensional space where it becomes linearly separable. Add a new coordinate equal to the distance from the centre, and suddenly the blue points sit low and the red points sit high, and a flat plane separates them perfectly. A straight line in the new space is a curve in the original one.

The catch is that the useful transformations map into spaces of enormous, sometimes infinite, dimension, and you cannot compute coordinates in an infinite-dimensional space.

You do not have to. The remarkable fact, and this is what makes the whole thing work, is that the support vector optimisation only ever needs to know the dot products between pairs of points, never their actual coordinates. And for many useful transformations, there is a simple function, a kernel, that computes the dot product in the high-dimensional space directly from the original coordinates, without ever constructing the high-dimensional representation.

You get all the benefits of working in a vast, richly expressive space while doing arithmetic only in the small one you started with. Swap in a different kernel and you get a different geometry of decision boundary, for essentially no extra cost.

Why it mattered

  • It was the best general-purpose classifier for over a decade. From the late 1990s until deep learning took over around 2012, if you had a hard classification problem, the answer was a support vector machine with a well-chosen kernel. It was the default, and it was hard to beat.
  • It made generalization a design principle rather than an afterthought. The margin is not a heuristic. It comes from a theory about how well a model will do on data it has not seen. That principled foundation was, and remains, unusual.
  • The kernel trick is a genuinely deep idea with a long reach. It gave rise to a whole family of kernel methods, and the underlying insight, that you can work in a rich implicit feature space by computing only similarities between points, shows up in Gaussian processes and far beyond.
  • It became a standard tool in quant research. Support vector machines appear throughout the financial machine learning literature, for classifying market regimes, predicting the direction of price moves, and building trading signals. They feature as contenders in comparative studies of machine learning methods for asset pricing.

The honest limitations

  • It scales badly. Training time grows steeply with the number of observations, roughly quadratically or worse in standard implementations. On a dataset with millions of rows, which is routine in financial machine learning, an SVM becomes impractical while a boosted tree model finishes comfortably. This is the main reason it fell out of favour.
  • The kernel and its parameters are your problem. Which kernel? What bandwidth? What penalty for margin violations? Performance depends heavily on these, and finding them means a grid search over a validation set, which is a search, which is an opportunity to overfit. In finance, with limited data, this cost is real.
  • The output is not a probability. An SVM gives you a side of the line, not a calibrated confidence. Getting probabilities requires bolting on an extra calibration step, which is somewhat inelegant and adds another thing to tune. For position sizing, where you want to bet more when you are more confident, this matters.
  • Interpretability is poor once you use a kernel. A linear SVM has readable weights. A kernelised SVM's decision boundary lives in a space you never explicitly constructed and cannot inspect.
  • Boosted trees generally beat it on tabular financial data now. For predicting returns from a table of firm characteristics, gradient boosting is typically both faster and more accurate. The SVM's honest role today is as a strong, well-understood baseline rather than the tool you reach for first.

The one-line takeaway

Cortes and Vapnik answered the question of which of the infinitely many separating lines to choose, pick the one with the widest possible margin, because a wide margin is what gives you room to be right about data you have not seen, and then used the kernel trick to bend that idea into arbitrarily complex non-linear boundaries without ever paying the cost of the space it implicitly works in.

Related concepts