A linear support vector regression (SVR) with an -insensitive loss, and , is trained on five points and learns (so , ). The points are , , , and . Using the dual variables, which points are support vectors, and which have zero training loss?
Supervised learning, Support vector machines
Level L3 Intermediate. Length Medium. Nature Th+Mat Both.
What's being asked
Whether you can connect the picture of the -tube around to the optimality conditions of SVR.
Key idea
The loss is : errors smaller than are free. Each point has two dual variables , one for each edge of the tube, and the model is . A point is a support vector when one of them is nonzero. Inside the tube both are 0 (not a support vector, zero loss); on the edge one can be between 0 and (support vector, zero loss); outside, one equals (support vector, positive loss).
Steps
- Write the primal problem: subject to , and . The slacks measure how far a point lies above or below the tube.
- State the KKT conditions (the optimality conditions for constrained problems) that matter here. Complementary slackness: , so can be nonzero only if the constraint is tight. And , so a positive slack forces . The same holds for the starred pair, and at most one of is nonzero.
- Compute the residuals : : 0.1, : 0.5, : , : , : 1.0.
- Inside and on the edge: has , so neither constraint is tight, , it is not a support vector and has loss 0. and have (on the upper and lower edges of the tube), so their constraints are tight; they are support vectors with and loss 0.
- and : outside the tube ( below it, above it), so their slack is positive, which forces and . They are support vectors, with losses and .
- Check with the dual. Stationarity gives and . Put , , and all others 0. The first condition gives , so ; the second gives , so . Both edge values lie between 0 and , so every KKT condition holds and really is the SVR solution.
- Summarise: support vectors ; zero loss . Removing would not change , because does not appear in .
Common mistakes
- Saying only points outside the tube are support vectors. Points exactly on the edge are support vectors too, and they fix the value of .
- Carrying over SVM classification intuition and naming the points closest to the line. In SVR it is the reverse: points far from are the support vectors.
- Ignoring the degenerate case. The KKT conditions also allow for a point exactly on the edge, so say “generically” or mention it.
How long your answer should be
One short paragraph of KKT reasoning plus a five-row table; 3–4 minutes.
Read this
- Bishop, Pattern Recognition and Machine Learning (PRML): Free PDF. Section 7.1.4 (SVMs for regression), pp. 339-344: epsilon-insensitive error, primal with xi and xi-hat, dual, w = sum(a_n - a_hat_n)phi(x_n) (7.57), and the KKT conditions (7.65)-(7.68) showing that points inside the tube have a_n = a_hat_n = 0.
- Smola & Schölkopf (2004), A Tutorial on Support Vector Regression: Author's PDF. Sections 1.2-1.4: primal, dual and KKT/complementary-slackness conditions, and why only points on or outside the epsilon-tube are support vectors.
- NPTEL: Pattern Recognition (IISc Bangalore, Prof. P.S. Sastry): Module 9, Support Vector Regression and the epsilon-insensitive loss function, which covers the tube and which points become support vectors.
Previous in Supervised learning: How can you show that on is a valid kernel by finding a feature map with ? What is Mercer's condition, and why does it show that is not a valid kernel?
Next in Supervised learning: Two regression models and are combined as . Assume both are unbiased, their errors and have variances and , and , where is the correlation of the errors. Which minimises the variance of the combined error, and what is that minimum variance?