What is the training time complexity of an exact kernel SVM with respect to the number of training samples?

Quick Overview

Asks how the training time of an exact kernel SVM grows with the number of training samples. Tests understanding of the dual optimization problem, the time and memory cost of the kernel matrix, how practical solvers behave, and what to use when the dataset is too large.

What is the training time complexity of an exact kernel SVM with respect to the number of training samples?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

What is the training time complexity of an exact kernel SVM with respect to the number of training samples? ```hint Look at the dual Write down the dual problem a kernel SVM solves. Count its variables and the size of the matrix that couples them. ``` ```hint Theory versus practice Consider whether the solvers people actually use need the whole kernel matrix at once, and what makes them slower on some datasets than others. ``` ### What a Strong Answer Covers - The scaling range in $n$ for exact training, and the memory cost of the full kernel matrix. - Where the cost comes from in the optimization problem. - How decomposition solvers such as SMO change the practical cost, and which data or settings slow them down. - What to use instead when $n$ is too large for an exact kernel SVM. ### Follow-up Questions - What does prediction cost for a kernel SVM, and how does the number of support vectors affect it? - How do Nyström and random Fourier features approximate a kernel, and how would you choose the number of components? - Why do a large `C` and noisy labels tend to slow SMO down? - You have 10 million rows and need a nonlinear classifier with SVM-like behavior. What would you train?

Overview: Asks how the training time of an exact kernel SVM grows with the number of training samples. Tests understanding of the dual optimization problem, the time and memory cost of the kernel matrix, how practical solvers behave, and what to use when the dataset is too large.

Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

What is the training time complexity of an exact kernel SVM with respect to the number of training samples?

What a Strong Answer Covers Guidance

  • The scaling range in nn for exact training, and the memory cost of the full kernel matrix.
  • Where the cost comes from in the optimization problem.
  • How decomposition solvers such as SMO change the practical cost, and which data or settings slow them down.
  • What to use instead when nn is too large for an exact kernel SVM.

Follow-up Questions Guidance

  • What does prediction cost for a kernel SVM, and how does the number of support vectors affect it?
  • How do Nyström and random Fourier features approximate a kernel, and how would you choose the number of components?
  • Why do a large C and noisy labels tend to slow SMO down?
  • You have 10 million rows and need a nonlinear classifier with SVM-like behavior. What would you train?