How does coordinate descent in LIBLINEAR differ from dual decomposition methods like SMO?

Quick Overview

A senior machine learning question comparing LIBLINEAR's dual coordinate descent with SMO for training support vector machines. It tests your grasp of the SVM dual and its constraints, the cost of one update in each method, and how those costs decide which solver fits sparse linear data or kernel models.

How does coordinate descent in LIBLINEAR differ from dual decomposition methods like SMO?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: hard

Interview Round: Other

How does coordinate descent in LIBLINEAR differ from dual decomposition methods like SMO? Both are used to train support vector machines. Explain how each one moves through the optimization problem, what a single update costs, and what that means for the kinds of data and models each one handles well. ```hint Look at the constraints Write the SVM dual with all of its constraints and ask which one stops you from changing a single dual variable on its own. ``` ```hint Count the work per update Compare what has to be recomputed after one dual variable changes when the model is linear and you can store its weights, versus when you can only evaluate a kernel. ``` ### What a Strong Answer Covers - Why both methods work on the dual a few variables at a time, and which constraint forces SMO to move two variables together. - How the linear solver keeps the primal weight vector and what one update costs on sparse data. - How SMO picks its working set and keeps the gradient current through kernel evaluations, with the cost per step. - The resulting difference in scale and model class, and the data shapes where each one fits. - The side effect of folding the bias into the weight vector. ### Follow-up Questions - Why does dual coordinate descent slow down when $C$ is large, and what would you use instead? - You need a nonlinear model on 10 million samples. How could you keep most of a kernel's benefit while still training with a linear solver? - How does shrinking work, and what goes wrong if a variable is shrunk too early? - Why is a linear-kernel SVM in LIBSVM so much slower to train than LIBLINEAR on the same data?

Overview: A senior machine learning question comparing LIBLINEAR's dual coordinate descent with SMO for training support vector machines. It tests your grasp of the SVM dual and its constraints, the cost of one update in each method, and how those costs decide which solver fits sparse linear data or kernel models.

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

How does coordinate descent in LIBLINEAR differ from dual decomposition methods like SMO?

Both are used to train support vector machines. Explain how each one moves through the optimization problem, what a single update costs, and what that means for the kinds of data and models each one handles well.

What a Strong Answer Covers Guidance

  • Why both methods work on the dual a few variables at a time, and which constraint forces SMO to move two variables together.
  • How the linear solver keeps the primal weight vector and what one update costs on sparse data.
  • How SMO picks its working set and keeps the gradient current through kernel evaluations, with the cost per step.
  • The resulting difference in scale and model class, and the data shapes where each one fits.
  • The side effect of folding the bias into the weight vector.

Follow-up Questions Guidance

  • Why does dual coordinate descent slow down when CC is large, and what would you use instead?
  • You need a nonlinear model on 10 million samples. How could you keep most of a kernel's benefit while still training with a linear solver?
  • How does shrinking work, and what goes wrong if a variable is shrunk too early?
  • Why is a linear-kernel SVM in LIBSVM so much slower to train than LIBLINEAR on the same data?