How is the intercept term b recovered from the solution of the SVM dual problem?

Quick Overview

Asks how the intercept b of a soft-margin SVM is computed once the dual problem has been solved. It tests the KKT conditions, the difference between free and bounded support vectors, and what a solver does when no free support vector exists.

How is the intercept term b recovered from the solution of the SVM dual problem?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How is the intercept term $b$ recovered from the solution of the SVM dual problem? Assume a soft-margin SVM with penalty $C$, possibly kernelized, where the solver returns the dual variables $\alpha_i$ but no value for $b$. ```hint Where to look Ask which training points satisfy their margin constraint with equality, and what the KKT conditions say about those points. ``` ### What a Strong Answer Covers - Why the dual solution does not give $b$ directly, and which KKT condition supplies it - The formula for $b$ from a free support vector, in kernel form and in linear form - Why the estimate is averaged over all free support vectors - Why bounded support vectors ($\alpha_i = C$) cannot be used in the equality - What to do when there are no free support vectors ### Follow-up Questions - How would you compute $b$ for epsilon-insensitive support vector regression? - If you append a constant feature to every input instead of keeping a separate $b$, what changes in the dual problem? - How do the numerical tolerances used to decide that $\alpha_i$ is "free" affect the recovered $b$?

Overview: Asks how the intercept b of a soft-margin SVM is computed once the dual problem has been solved. It tests the KKT conditions, the difference between free and bounded support vectors, and what a solver does when no free support vector exists.

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

How is the intercept term bb recovered from the solution of the SVM dual problem?

Assume a soft-margin SVM with penalty CC, possibly kernelized, where the solver returns the dual variables αi\alpha_i but no value for bb.

What a Strong Answer Covers Guidance

  • Why the dual solution does not give bb directly, and which KKT condition supplies it
  • The formula for bb from a free support vector, in kernel form and in linear form
  • Why the estimate is averaged over all free support vectors
  • Why bounded support vectors ( αi=C\alpha_i = C ) cannot be used in the equality
  • What to do when there are no free support vectors

Follow-up Questions Guidance

  • How would you compute bb for epsilon-insensitive support vector regression?
  • If you append a constant feature to every input instead of keeping a separate bb , what changes in the dual problem?
  • How do the numerical tolerances used to decide that αi\alpha_i is "free" affect the recovered bb ?