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?
Supervised learning, Ensembles
Level L4 Advanced. Length Medium. Nature Th Theoretical.
What's being asked
Whether you know that an ensemble helps only when its members disagree, how to create that disagreement for a fairly stable learner, and a subtle point about combining linear models.
Key idea
Diversity comes from changing the data, the features or the hyperparameters: bootstrap samples (bagging), random feature subsets (random subspace) or different values. Averaging members with variance and pairwise correlation gives variance , so less correlated members help more. Averaging the scores is still one linear classifier; only a majority vote of the predicted labels gives a nonlinear boundary.
Steps
- Method 1, bootstrap samples (bagging): train each SVM on points drawn from the training set with replacement, so some points appear twice and others not at all. An SVM depends only on its support vectors, so samples that drop or repeat support vectors move the boundary. A repeated point counts like a point with double .
- Method 2, random feature subsets (random subspace): train each SVM on a random subset of features. Each weight vector then uses different coordinates, so the boundaries differ even on the same samples. This decorrelates the members strongly when is large.
- Other options: different values (different trade-offs between margin and violations), different class weights, or boosting-style sample weights (a different per point).
- Justify with the variance formula . Identical members () give no benefit at all; the methods above lower .
- Explain the combining rule. Averaging scores gives , where and are the averages; this is just another linear classifier. A majority vote, , is piecewise linear and can draw boundaries no single linear model can.
Common mistakes
- Answering “use a different kernel”. The question asks for linear SVMs.
- Claiming bagging always helps SVMs a lot. A large-margin linear SVM is fairly stable, so the gain is often smaller than for deep trees.
- Listing methods without saying why they make the members disagree.
How long your answer should be
Two justified methods plus the averaging remark; about half a page.
Last checked on 4 December 2026.
Read this
- The Elements of Statistical Learning (ESL): Free PDF. Section 15.2, eq. (15.1), p. 588: the variance of an average of correlated learners, and how random input-feature selection lowers the correlation between members. Section 8.7 (Bagging), p. 282, covers bootstrap aggregation and majority voting.
- Cornell CS4780 Lecture Notes (Weinberger): Bagging: Bagging as variance reduction through bootstrap samples, with the argument for why averaging helps only when the classifiers are not identical.
Previous in Supervised learning: The Huber loss with threshold is for and otherwise, where is the residual. How do you derive , show that is convex, and use this to show that the optimal constant for the data with is ?
Next in Supervised learning: The linear SVM minimises , where and is the label. What changes if the penalty is replaced by , in the solution, the optimisation problem, the use of kernels and the meaning of the margin?