How does increasing C impact the number of support vectors in a soft-margin SVM?

Quick Overview

Asks how raising the penalty parameter C in a soft-margin SVM changes the number of support vectors. Tests the link between C, margin width and dual coefficients, the hard-margin limit, the effect of noisy data and kernel settings, and prediction cost.

How does increasing C impact the number of support vectors in a soft-margin SVM?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

In a soft-margin support vector machine, how does increasing the penalty parameter `C` impact the number of support vectors? ```hint Look at the margin Think about what a larger `C` does to the width of the margin, and which training points end up with a nonzero dual coefficient. ``` ### What a Strong Answer Covers - The usual direction of the effect and the mechanism through the margin width - Which training points are support vectors, described by their position relative to the margin and by their dual coefficients - The limiting case of very large `C` and how it relates to the hard-margin SVM - Why the trend can break: overlapping classes, label noise, and the interaction with kernel parameters such as RBF `gamma` - The practical effect on prediction cost and on overfitting ### Follow-up Questions - How would you choose `C` in practice, and what would you look at besides the support vector count? - With `C` held fixed, how does RBF `gamma` change the number of support vectors? - Why does the prediction cost of a kernel SVM grow with the number of support vectors, and how could you reduce it?

Overview: Asks how raising the penalty parameter C in a soft-margin SVM changes the number of support vectors. Tests the link between C, margin width and dual coefficients, the hard-margin limit, the effect of noisy data and kernel settings, and prediction cost.

PracHub logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

In a soft-margin support vector machine, how does increasing the penalty parameter C impact the number of support vectors?

What a Strong Answer Covers Guidance

  • The usual direction of the effect and the mechanism through the margin width
  • Which training points are support vectors, described by their position relative to the margin and by their dual coefficients
  • The limiting case of very large C and how it relates to the hard-margin SVM
  • Why the trend can break: overlapping classes, label noise, and the interaction with kernel parameters such as RBF gamma
  • The practical effect on prediction cost and on overfitting

Follow-up Questions Guidance

  • How would you choose C in practice, and what would you look at besides the support vector count?
  • With C held fixed, how does RBF gamma change the number of support vectors?
  • Why does the prediction cost of a kernel SVM grow with the number of support vectors, and how could you reduce it?