Kernel Matrices and Implicit Feature Maps
Represent inner products of expanded features without storing them explicitly and verify a small polynomial feature map.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
A kernel can evaluate a feature dot product directly
For two-dimensional \(x,z\), the kernel \((x^\top z)^2\) equals the dot product of features \((x_1^2,\sqrt2x_1x_2,x_2^2)\) with the analogous vector for \(z\). Expanding the square gives the equality. An algorithm depending only on these pairwise inner products can therefore operate without explicitly constructing each expanded vector.
The Gram matrix must represent a valid geometry
For real coefficients \(a_i\), a Gram matrix from a feature map satisfies \(a^\top Ka=\|\sum_i a_i\phi(x_i)\|^2\ge0\). A similarity score need not have this property on all finite sets. A dense kernel matrix also takes quadratic storage in sample count, regardless of the implicit dimension. Maximum-margin classification is one application. Embedding similarity discusses distance comparisons using explicit vectors.[1][2]