When is a polynomial kernel preferred over a linear kernel in an SVM?

Quick Overview

Asks when an SVM should use a polynomial kernel instead of a linear one. Tests whether you can spot underfitting caused by feature interactions, explain what the kernel trick saves over explicit polynomial features, and weigh the tuning, numerical and scaling costs.

When is a polynomial kernel preferred over a linear kernel in an SVM?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

When is a polynomial kernel preferred over a linear kernel in an SVM? Cover the signs in the data and in training that point to it, what the kernel gives you over adding features by hand, and what it costs. ```hint What the kernel computes Expand $(x^\top z + 1)^2$ for two-dimensional inputs and look at which products of the original features appear. ``` ```hint Diagnose first Before changing the kernel, compare the linear SVM's training and validation accuracy and ask what that pattern says about bias and variance. ``` ### What a Strong Answer Covers - The kind of structure a polynomial kernel adds: feature interactions up to a fixed degree - The diagnostics and domain signals that suggest a linear kernel is underfitting - What the kernel trick saves compared with expanding the features explicitly - The hyperparameters, numerical issues and scaling costs that come with it - How it compares with an RBF kernel, and with explicit polynomial features plus a linear model ### Follow-up Questions - In scikit-learn the default `coef0` is 0. What does that do to the features a degree-2 polynomial kernel represents? - Why do high-degree polynomial kernels cause numerical problems, and how does feature scaling help? - With a million training examples and 50 features, how would you get degree-2 interactions into a model that trains in reasonable time? - Why can the RBF kernel be seen as a weighted sum of polynomial kernels of every degree?

Overview: Asks when an SVM should use a polynomial kernel instead of a linear one. Tests whether you can spot underfitting caused by feature interactions, explain what the kernel trick saves over explicit polynomial features, and weigh the tuning, numerical and scaling costs.

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

When is a polynomial kernel preferred over a linear kernel in an SVM?

Cover the signs in the data and in training that point to it, what the kernel gives you over adding features by hand, and what it costs.

What a Strong Answer Covers Guidance

  • The kind of structure a polynomial kernel adds: feature interactions up to a fixed degree
  • The diagnostics and domain signals that suggest a linear kernel is underfitting
  • What the kernel trick saves compared with expanding the features explicitly
  • The hyperparameters, numerical issues and scaling costs that come with it
  • How it compares with an RBF kernel, and with explicit polynomial features plus a linear model

Follow-up Questions Guidance

  • In scikit-learn the default coef0 is 0. What does that do to the features a degree-2 polynomial kernel represents?
  • Why do high-degree polynomial kernels cause numerical problems, and how does feature scaling help?
  • With a million training examples and 50 features, how would you get degree-2 interactions into a model that trains in reasonable time?
  • Why can the RBF kernel be seen as a weighted sum of polynomial kernels of every degree?