The SVM objective is minimised by stochastic subgradient descent (Pegasos) with step . With and , what is the result of running three steps on the single points , and , in that order, and what is the update rule?
Supervised learning, Hinge loss and SGD
Level L3 Intermediate. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can write the subgradient of the hinge-plus-L2 objective and apply it step by step.
Key idea
At step with example : if , then . Otherwise .
Steps
- The subgradient of one term is . The hinge is non-differentiable at margin 1, so we use any subgradient there. Update , which gives the rule above.
- : . The margin is , so the update is active: .
- : . The margin is , so only shrinkage applies: .
- : . The margin is , so the update is active: .
- After three steps, . The shrinkage factor comes from the L2 regulariser. Note that it is 0 at , which wipes out .
Common mistakes
- Updating with the shrinkage term only when the margin is violated. It applies at every step.
- Checking the margin with the wrong , such as or the already-updated vector, instead of the latest iterate before the update.
- Using a constant step size and expecting the same iterates.
How long your answer should be
Half a page; 4–5 minutes.
Last checked on 4 December 2026.
Read this
Previous in Supervised learning: How do you derive the dual of the soft-margin SVM subject to and ? How do you show the box constraint , and what are the KKT conditions that classify each point?
Next in Supervised learning: With squared loss, run two rounds of gradient boosting on and , using a stump that splits between and in each round and a learning rate . What is the training MSE before boosting (the constant model), after round 1, and after round 2?