The linear SVM minimises ∑i[1−ti(w⊤xi+b)]++λ∥w∥22, where [a]+=max⁡(0,a) and ti∈{−1,+1} is the label. What changes if the penalty is replaced by λ∥w∥1, in the solution, the optimisation problem, the use of kernels and the meaning of the margin?

Supervised learning, Support vector machines
Level L4 Advanced. Length Medium. Nature Th+Mat Both.

What's being asked

Whether you can carry the lasso idea over to SVMs, and see which SVM properties depend on the squared ℓ2 norm.

Key idea

The ℓ1 penalty ∥w∥1=∑j∣wj∣ makes many wj exactly zero, so the SVM also selects features. The problem becomes a linear programme (LP) instead of a quadratic programme (QP). The kernel trick is lost. And the margin is now measured in the ℓ∞ norm (the largest coordinate difference), because the ℓ∞ distance to the hyperplane is ∣w⊤x+b∣/∥w∥1.

Steps

  1. Sparsity: as in the lasso, the ℓ1 ball has corners on the axes, so the optimum usually has many wj=0. Features with wj=0 are ignored, which is useful when there are many features and only a few matter.
  2. Optimisation: write w=u−v with u,v≥0, so that ∣wj∣=uj+vj at the optimum, and add slacks ξi for the hinge terms. The problem is min⁡∑iξi+λ∑j(uj+vj) subject to ti((u−v)⊤xi+b)≥1−ξi and ξi≥0. Everything is linear, so it is an LP (the ℓ2 version is a QP). An LP solution need not be unique.
  3. Kernels: for the ℓ2 version, the representer theorem says w=∑iαitixi, and the dual uses the data only through inner products xi⊤xj, which a kernel can replace. With ℓ1 neither holds, so you must work with explicit features.
  4. Geometry: the distance from x to the hyperplane {z:w⊤z+b=0}, measured in a norm ∥⋅∥p, is ∣w⊤x+b∣/∥w∥q, where q is the dual norm (1/p+1/q=1). The dual of ℓ2 is ℓ2, and the dual of ℓ∞ is ℓ1. So minimising ∥w∥1 maximises the margin measured in ℓ∞, not the usual Euclidean margin.
  5. What stays the same: the hinge loss is unchanged, so the solution still depends only on points with margin ≤1. Points beyond the margin can be removed without changing w.

Common mistakes

How long your answer should be

4–5 points of one or two sentences each; 3–4 minutes.

Last checked on 4 December 2026.

Read this

Previous in Supervised learning: You want an ensemble of linear SVMs. What are two different ways to get different linear SVMs from one training set, why does each make the SVMs differ, and why must the ensemble combine their votes rather than average their real-valued scores?
Next in Supervised learning: Why is gradient boosting called gradient descent in function space, what are the pseudo-residuals for squared, absolute and logistic loss, and what is the full algorithm with regression trees as base learners?