Why the Feature Map Matters
An interpolating predictor fits every observed label, but this condition does not generally determine its predictions away from the training points. When there are more coefficients than observations, many coefficient vectors can fit the same sample. Gradient descent from zero selects the minimum-Euclidean-norm interpolating coefficient vector in the linear setting. That selection depends on how the predictor is represented: changing the feature map changes the geometry in which “minimum norm” is measured.
This tutorial compares fixed feature maps on the same sample. The sample labels and the requirement of exact fit stay fixed; the features used to represent the predictor change. The comparison separates two questions: which interpolating function is selected, and what prediction risk that function has under a specified test distribution.
Minimum-Norm Interpolation for a Fixed Feature Map
Let \(X_1,\ldots,X_n\) be training inputs and \(Y=(Y_1,\ldots,Y_n)^T\) their labels. A fixed feature map \(\phi\) takes each input to a vector in \(\mathbb{R}^p\). Write \(Z\) for the \(n\) by \(p\) design matrix whose \(i\)th row is \(\phi(X_i)^T\). A coefficient vector \(\beta\in\mathbb{R}^p\) defines the predictor \(x\mapsto\phi(x)^T\beta\).
Full row rank means that the \(n\) rows of \(Z\) are linearly independent. In particular, \(p\) must be at least \(n\). Under this condition, \(K=ZZ^T\) is invertible. The solution can be written in terms of \(K\), the training Gram matrix: its entry \(K_{ij}\) is the inner product \(\phi(X_i)^T\phi(X_j)\).
Proof. Define \(\beta_0=Z^T(ZZ^T)^{-1}Y\). Then \(Z\beta_0=ZZ^T(ZZ^T)^{-1}Y=Y\), so \(\beta_0\) interpolates. Every other interpolating vector has the form \(\beta_0+v\), where \(Zv=0\). Since \(\beta_0\) lies in the row space of \(Z\), it is orthogonal to every vector in the null space of \(Z\). Therefore \(\|\beta_0+v\|_2^2=\|\beta_0\|_2^2+\|v\|_2^2\), which is minimized uniquely at \(v=0\). Finally, \(\phi(x)^T\beta_0=\phi(x)^TZ^TK^{-1}Y=(Z\phi(x))^TK^{-1}Y\), as claimed. \(\square\)
This formula makes the role of geometry explicit. Even for the same labels \(Y\), another feature map generally changes both \(K\) and the test-point vector \(k(x)\), and hence can change \(\hat f(x)\). Interpolation alone only guarantees \(\hat f(X_i)=Y_i\) at the observed inputs.
Worked Comparisons on the Same Sample
Worked Example: Two Maps Agree on the Training Fit but Not at a Test Point
There are two possible inputs, \(a\) and \(b\). The training sample consists of \(X_1=a\), \(Y_1=1\). Consider feature maps \(\phi_A(a)=(1,0)^T\), \(\phi_A(b)=(0,1)^T\), and \(\phi_B(a)=(1,0)^T\), \(\phi_B(b)=(1,1)^T\). Each training design matrix is the one-row matrix \((1,0)\), so it has full row rank.
For either map, interpolation requires \(\beta_1=1\). The smallest-norm choice is \(\hat\beta_A=\hat\beta_B=(1,0)^T\), with norm \(1\). At the training input, both predictors return \((1,0)(1,0)^T=1\). At \(b\), however, \(\hat f_A(b)=(0,1)(1,0)^T=0\), while \(\hat f_B(b)=(1,1)(1,0)^T=1\).
Suppose the test input is equally likely to be \(a\) or \(b\), and the regression function has values \(f^*(a)=1\) and \(f^*(b)=1\). The squared prediction risk, averaged over this test distribution, is \(R_A=\tfrac12(1-1)^2+\tfrac12(0-1)^2=\tfrac12\) for map A, and \(R_B=\tfrac12(1-1)^2+\tfrac12(1-1)^2=0\) for map B. The change in risk comes entirely from the off-sample prediction.
Worked Example: Feature Redundancy Changes the Selected Prediction
Let the inputs be \(a,b,c\), with training inputs \(a,b\) and labels \(Y=(1,1)^T\). Under map A, set \(\phi_A(a)=(1,0,0)^T\), \(\phi_A(b)=(0,1,0)^T\), and \(\phi_A(c)=(1,1,0)^T\). The constraints give \(\beta_1=\beta_2=1\); minimum norm sets the unconstrained \(\beta_3=0\). Thus \(\hat f_A(c)=(1,1,0)(1,1,0)^T=2\).
Under map B, set \(\phi_B(a)=(1,0,0)^T\), \(\phi_B(b)=(0,1,1)^T\), and \(\phi_B(c)=(1,1,0)^T\). The constraints are \(\beta_1=1\) and \(\beta_2+\beta_3=1\). To minimize \(\|\beta\|_2^2=1+\beta_2^2+\beta_3^2\) subject to their sum being one, use \(\beta_2^2+\beta_3^2=\tfrac12(\beta_2+\beta_3)^2+\tfrac12(\beta_2-\beta_3)^2\). This is minimized when \(\beta_2=\beta_3=\tfrac12\). Hence \(\hat\beta_B=(1,\tfrac12,\tfrac12)^T\), and \(\hat f_B(c)=(1,1,0)(1,\tfrac12,\tfrac12)^T=\tfrac32\).
Both maps interpolate both labels exactly, and both have full-row-rank training matrices. If the test distribution puts all its mass at \(c\) and \(f^*(c)=2\), map A has squared prediction risk \(0\), while map B has risk \((\tfrac32-2)^2=\tfrac14\). In map B, the second training constraint can be met by sharing its coefficient across two features; that sharing changes the minimum-norm solution and its prediction at \(c\).
A Risk Decomposition for a Representable Regression Function
A useful comparison separates the effect of fitting noisy labels from the effect of the test distribution. Suppose, for one fixed feature map, the regression function is represented as \(f^*(x)=\phi(x)^T\beta^*\). The observed labels are \(Y=Z\beta^*+\varepsilon\), where the noise vector \(\varepsilon\) has conditional mean zero and conditional covariance \(\sigma^2 I_n\) given the training inputs. Assume \(Z\) has full row rank and that the test feature vector has finite second moments. Define \(\Sigma=E[\phi(X)\phi(X)^T]\) for an independent test input \(X\), and define prediction risk against the regression function by \(R=E[(\hat f(X)-f^*(X))^2\mid X_1,\ldots,X_n,\varepsilon]\).
Proof. By the minimum-norm formula, \(\hat\beta=Z^T(ZZ^T)^{-1}(Z\beta^*+\varepsilon)=P\beta^*+Z^T(ZZ^T)^{-1}\varepsilon\). Consequently, \(\hat\beta-\beta^*=-(I-P)\beta^*+Z^T(ZZ^T)^{-1}\varepsilon\). For any fixed coefficient error \(u\), the test risk is \(E[(\phi(X)^Tu)^2]=u^T\Sigma u\), by the definition of \(\Sigma\). Averaging this quadratic form over \(\varepsilon\), the cross term vanishes because \(E[\varepsilon\mid X_1,\ldots,X_n]=0\). The squared bias term is the first term in the result. For the noise term, set \(A=Z^T(ZZ^T)^{-1}\); then \(E[\varepsilon^TA^T\Sigma A\varepsilon]=\sigma^2\operatorname{tr}(A^T\Sigma A)\), using \(E[\varepsilon\varepsilon^T\mid X_1,\ldots,X_n]=\sigma^2I_n\). Substituting \(A\) gives \(\sigma^2\operatorname{tr}(\Sigma Z^T(ZZ^T)^{-2}Z)\). This proves the decomposition. \(\square\)
The projection \(P\) is the Euclidean orthogonal projection onto the row space of \(Z\). Its appearance shows why interpolation does not imply recovery of \(\beta^*\): the minimum-norm fit retains only the component visible in that row space. The matrix \(\Sigma\) then weights coefficient errors according to how much they affect predictions under the test distribution. For two feature maps, both the projection and the test-feature covariance can differ, as can the noise term involving the inverse Gram matrix.
Worked Example: Noise Variance Depends on the Feature Geometry
Use inputs \(a,b\) with test probabilities \(P(X=a)=P(X=b)=\tfrac12\). The training input is \(a\), and its label is \(Y_1=\varepsilon\), where the regression function is zero and \(E[\varepsilon]=0\), \(\operatorname{Var}(\varepsilon)=1\). For map A let \(\phi_A(a)=(1,0)^T\), \(\phi_A(b)=(0,1)^T\); for map B let \(\phi_B(a)=(1,0)^T\), \(\phi_B(b)=(1,1)^T\). Each one-row training matrix is \((1,0)\), so the minimum-norm coefficient is \((\varepsilon,0)^T\) for both.
Map A predicts \(\varepsilon\) at \(a\) and \(0\) at \(b\). Its risk conditional on \(\varepsilon\) is \(\tfrac12\varepsilon^2+\tfrac12(0)^2=\tfrac12\varepsilon^2\), so its expected risk is \(\tfrac12\). Map B predicts \(\varepsilon\) at both inputs, so its conditional risk is \(\tfrac12\varepsilon^2+\tfrac12\varepsilon^2=\varepsilon^2\), with expected risk \(1\). Both fit the observed label exactly, but the second map carries the training noise into more of the test distribution.
When a Change of Coordinates Does—and Does Not—Matter
Not every change in feature coordinates changes the interpolating predictor. If a feature map is transformed by a common orthogonal matrix \(Q\), so that \(\tilde\phi(x)=Q\phi(x)\) and \(Q^TQ=I\), then all feature inner products are unchanged: \(\tilde\phi(x)^T\tilde\phi(x')=\phi(x)^T\phi(x')\). Thus the training Gram matrix and every test-point vector \(k(x)\) are unchanged, and the minimum-norm predictions are identical. The coefficient norm is also preserved.
A general invertible transformation need not preserve Euclidean lengths or feature inner products. It can change which interpolating coefficient vector has minimum norm and, consequently, the prediction away from the sample. A scalar rescaling of every feature by the same nonzero constant is a special case where the fitted predictor remains unchanged: the coefficient rescales inversely, and the training and test feature factors cancel in \(k(x)^TK^{-1}Y\). Unequal rescaling of feature directions generally does not have this invariance.
Common Mistake: Treating Exact Fit as a Risk Guarantee
A tempting but incorrect argument is: “Both models interpolate the data, so they must have the same predictions and risk.” Interpolation says only that their predictions coincide with the observed labels at the training inputs. It places no such requirement on an unobserved input. The worked examples show that different feature maps can produce different test-point predictions—and different risks—while fitting exactly the same sample.
A second pitfall is to compare coefficient norms across feature maps as though they were directly comparable measures of predictive complexity. The norm is defined in the coordinates of each representation. To understand the resulting predictions, inspect the induced feature inner products, or equivalently the Gram matrix and test-point feature vectors. A small coefficient norm in one representation does not by itself establish lower prediction risk.
Check Your Understanding
Answer each question by identifying the relevant feature geometry, not just whether the sample is interpolated.
- Why does full row rank of \(Z\) guarantee that every label vector \(Y\) can be interpolated?
- In the risk decomposition, what does the projection \(P\) project onto, and why does the noise cross term vanish?
- What condition on a coordinate transformation guarantees that all feature inner products, and therefore the minimum-norm predictions, are preserved?
- For map B in the feature-redundancy example, verify that \((1,\tfrac12,\tfrac12)^T\) interpolates both training labels.
- Can two feature maps have the same training Gram matrix but different predictions at a test input? State what additional feature quantity determines the prediction.