Why does the RBF kernel implicitly map inputs into an infinite-dimensional feature space?

Quick Overview

Asks why the RBF kernel corresponds to an infinite-dimensional feature space. Tests whether you can factor and expand the Gaussian kernel into polynomial kernels, explain the role of gamma, and connect infinite capacity to regularization and the representer theorem.

Why does the RBF kernel implicitly map inputs into an infinite-dimensional feature space?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

The RBF (Gaussian) kernel is $K(x, z) = \exp(-\gamma \lVert x - z \rVert^2)$. Why does it implicitly map inputs into an infinite-dimensional feature space? ```hint Split the exponent Expand the squared distance inside the exponent and find the one factor that depends on both x and z. ``` ```hint Use a series Write that factor as a power series and ask what kind of kernel each term of the series is. ``` ### What a Strong Answer Covers - The factorization of the RBF kernel and the series expansion of the factor that couples x and z - Why each term is a polynomial kernel, so the feature map needs monomials of every degree - How the factorial weights and $\gamma$ shape the effective feature space - What the infinite dimension means for capacity, and how $C$ and $\gamma$ control overfitting - Why training stays finite: the kernel trick and the representer theorem ### Follow-up Questions - Write out the explicit feature map for one-dimensional inputs. - What happens to an RBF SVM as $\gamma$ goes to zero, and as it grows very large? - If the feature space is infinite, why does an RBF SVM still generalize? - How do random Fourier features approximate the RBF kernel with a finite feature map?

Overview: Asks why the RBF kernel corresponds to an infinite-dimensional feature space. Tests whether you can factor and expand the Gaussian kernel into polynomial kernels, explain the role of gamma, and connect infinite capacity to regularization and the representer theorem.

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

The RBF (Gaussian) kernel is K(x,z)=exp⁡(−γ∥x−z∥2)K(x, z) = \exp(-\gamma \lVert x - z \rVert^2). Why does it implicitly map inputs into an infinite-dimensional feature space?

What a Strong Answer Covers Guidance

  • The factorization of the RBF kernel and the series expansion of the factor that couples x and z
  • Why each term is a polynomial kernel, so the feature map needs monomials of every degree
  • How the factorial weights and γ\gamma shape the effective feature space
  • What the infinite dimension means for capacity, and how CC and γ\gamma control overfitting
  • Why training stays finite: the kernel trick and the representer theorem

Follow-up Questions Guidance

  • Write out the explicit feature map for one-dimensional inputs.
  • What happens to an RBF SVM as γ\gamma goes to zero, and as it grows very large?
  • If the feature space is infinite, why does an RBF SVM still generalize?
  • How do random Fourier features approximate the RBF kernel with a finite feature map?