Which training points have alpha equal to zero, between zero and C, and equal to C in a soft-margin SVM?

Quick Overview

Asks which training points of a soft-margin SVM end up with a dual variable of zero, strictly between zero and C, or equal to C. It tests whether you can derive the groups from the KKT conditions, relate them to the margin and slack, and handle the degenerate cases.

Which training points have alpha equal to zero, between zero and C, and equal to C in a soft-margin SVM?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

In a trained soft-margin SVM, which training samples correspond to $\alpha_i = 0$, to ${0 < \alpha_i < C}$, and to $\alpha_i = C$? Here $\alpha_i$ is the dual variable (Lagrange multiplier) of training point $i$, and $C$ is the penalty on the slack variables. ```hint Start from the KKT conditions Write the two complementary-slackness conditions, one for the margin constraint and one for the non-negativity of the slack $\xi_i$, and see what each range of $\alpha_i$ forces. ``` ```hint Watch the direction of the implication Ask whether knowing a point's position relative to the margin always tells you its $\alpha_i$, or only the other way around. ``` ### What a Strong Answer Covers - The KKT complementary-slackness conditions that link $\alpha_i$, the slack $\xi_i$ and the margin constraint. - The position relative to the margin and the support-vector status for each of the three ranges. - How the slack value splits the $\alpha_i = C$ group into sub-cases. - Which points determine $w$ and the intercept $b$, and any degenerate cases. - How changing $C$ moves points between the groups. ### Follow-up Questions - How do you compute the intercept $b$ from the dual solution, and what do you do if no point has ${0 < \alpha_i < C}$? - What happens to the three groups as $C \to \infty$ on separable data? - How does the number of support vectors affect prediction cost for a kernel SVM, and what does it suggest about generalization? - How do these conditions change for an SVM trained with the squared hinge loss?

Overview: Asks which training points of a soft-margin SVM end up with a dual variable of zero, strictly between zero and C, or equal to C. It tests whether you can derive the groups from the KKT conditions, relate them to the margin and slack, and handle the degenerate cases.

General logo
General
Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

In a trained soft-margin SVM, which training samples correspond to αi=0\alpha_i = 0, to 0<αi<C{0 < \alpha_i < C}, and to αi=C\alpha_i = C?

Here αi\alpha_i is the dual variable (Lagrange multiplier) of training point ii, and CC is the penalty on the slack variables.

What a Strong Answer Covers Guidance

  • The KKT complementary-slackness conditions that link αi\alpha_i , the slack ξi\xi_i and the margin constraint.
  • The position relative to the margin and the support-vector status for each of the three ranges.
  • How the slack value splits the αi=C\alpha_i = C group into sub-cases.
  • Which points determine ww and the intercept bb , and any degenerate cases.
  • How changing CC moves points between the groups.

Follow-up Questions Guidance

  • How do you compute the intercept bb from the dual solution, and what do you do if no point has 0<αi<C{0 < \alpha_i < C} ?
  • What happens to the three groups as C→∞C \to \infty on separable data?
  • How does the number of support vectors affect prediction cost for a kernel SVM, and what does it suggest about generalization?
  • How do these conditions change for an SVM trained with the squared hinge loss?