Cheap Per-Feature Bandwidths for Kernel Ridge Regression on Tabular Benchmarks

Kernel ridge regression predicts a new point by taking a weighted average of training targets, with weights set by a similarity function (the kernel) that decays with distance. Its behavior depends on two knobs. The bandwidth sets how far that similarity reaches. The ridge penalty sets how strongly the fit is smoothed. On tabular data the bandwidth problem has a hidden third knob: before any distance is computed, each column is rescaled (min-max, z-score, or some robust variant). That choice is itself a per-feature bandwidth. It is made blindly, without looking at the target, and it varies silently across papers. We propose to treat it as part of the model. The method first fits a fast isotropic kernel model, one that uses a single bandwidth for every feature. It then measures how strongly the fitted function actually changes along each input column. It uses those measurements to reset the per-column scales, and finally picks the overall bandwidth and the ridge penalty in closed form. The whole procedure costs a handful of linear solves instead of hundreds of tuning trials.

This matters for a concrete reason. The large tabular benchmarks that decided "trees beat everything else" never included a well-tuned kernel method. They also disagreed with each other on how much tuning each method gets: 30 trials in one study, 400 in another. Grinsztajn et al. attribute the trees' advantage partly to their robustness to uninformative features and to their reliance on coordinate axes. A kernel with one bandwidth per feature is also axis-aligned and can shrink irrelevant features toward zero influence. So whether a cheap, target-aware, per-feature kernel closes part of the gap is a testable question, not a settled one. The note also asks it under a matched compute budget, so that the answer is not an artifact of unequal tuning.

Core Claim

The claim is that almost all of the benefit of per-feature ("anisotropic") bandwidths can be captured without iterative likelihood optimization, using three steps:

  1. An isotropic kernel ridge fit whose bandwidth is chosen by the closed-form Jacobian-control rule.
  2. A one-shot estimate of per-feature relevance: the average squared partial derivative of that fitted function along each coordinate. This is available analytically from the kernel expansion.
  3. A refit on the reweighted coordinates, with the ridge penalty chosen by generalized cross-validation from a single eigendecomposition.

Concretely, with inverse squared bandwidths $a_j$ and kernel $k(x,x')=\exp(-\sum_j a_j (x_j-x'_j)^2)$, the method sets

$$a_j \propto \frac{1}{n}\sum_{i=1}^n \left(\partial_j \hat f(x_i)\right)^2 ,$$

where $\hat f$ is the current fit and $\partial_j$ is the derivative along feature $j$. It normalizes the $a_j$ and rescales them as a whole with the Jacobian-control formula applied to the reweighted data. The procedure may repeat for two or three rounds.

The claims that would be new are two. First, this target-aware rescaling matches per-feature marginal-likelihood tuning at a small fraction of the cost. Second, on standardized tabular suites it separates kernel methods from the "smooth, rotation-invariant" failure mode that the benchmarks attribute to neural networks.

Grounding in Prior Work

Theory motivates the direction. Optimal learning rates for least squares SVMs using Gaussian kernels proves that a Gaussian kernel whose bandwidth and ridge penalty shrink together with sample size reaches minimax rates for rough targets. It also shows that hold-out search achieves this without knowing the target's smoothness. That result covers only a single bandwidth on a compact domain; we keep its lesson (tune both knobs jointly) and move it to many bandwidths.

Anisotropic function estimation using multi-bandwidth Gaussian processes supplies the key negative result for the isotropic case. A single-bandwidth Gaussian process is provably suboptimal when smoothness differs across coordinates. A per-coordinate prior with inverse bandwidths $a_j$ adapts, and it performs variable selection when some $a_j$ go to near zero. Its method relies on Markov chain Monte Carlo sampling, which does not scale. We borrow its parameterization but replace the sampler with a derivative-based plug-in, and we give up its guarantees in exchange for speed. The theory cannot promise that our plug-in estimate of $a_j$ is consistent, so that has to be settled empirically.

Bandwidth Selection for Gaussian Kernel Ridge Regression via Jacobian Control supplies the method. It gives a closed-form (Lambert W) rule for a single bandwidth by trading off how fast the fit decays away from the data against how well-conditioned the kernel matrix is. The authors report speedups of up to six orders of magnitude over generalized cross-validation and marginal likelihood, with comparable $R^2$. That rule takes the ridge penalty as fixed and is isotropic. We use it only for the global scale, after the per-feature scales are set, and we add a cheap penalty selection.

Two tabular benchmark papers define the evaluation question and set constraints. Why do tree-based models still outperform deep learning on typical tabular data? identifies three reasons trees win: irregular targets, harmful uninformative features, and the fact that trees are not rotation-invariant. It evaluates with 400 random-search trials. When Do Neural Nets Outperform Boosted Trees on Tabular Data? uses 30 Optuna trials across 176 datasets. Neither study includes kernel methods with automated scale selection, and their conflicting budgets are the benchmarking inconsistency we build into the protocol.

Research Program

We will build one small library that implements four kernel pipelines under a shared splitting and scaling interface. The first is isotropic Jacobian control. The second is the proposed derivative-reweighted multi-bandwidth kernel ridge regression. The third is per-feature Gaussian processes tuned by marginal likelihood, with each feature's scale learned by maximizing how well the model explains the training data (commonly called automatic relevance determination). The fourth is cross-validated kernel ridge regression.

For classification, kernel ridge regression on one-hot targets serves as a least-squares classifier. All sets are capped at 10,000 training rows, following the Grinsztajn protocol, so exact solves remain feasible on one GPU.

The analysis has three parts. The first is a budget curve: test performance as a function of wall-clock time for every method, rather than a single point at an arbitrary trial count. The second is a preprocessing-sensitivity audit. For each kernel baseline we will report the spread of results across min-max, z-score, and robust-quantile scaling. This measures how much of the reported difference between methods is really scaling choice, which is the benchmarking-inconsistency question applied to kernels. The third is a mechanism check: whether the learned $a_j$ recover the true relevant features and their relative roughness on synthetic targets with known axis-wise smoothness.

Baselines

The naive reference point is z-score scaling followed by an isotropic Gaussian kernel with the median-distance bandwidth and a fixed ridge penalty. This is what a practitioner gets from default tools without tuning. Any proposed method that fails to beat it on most datasets is not worth its complexity.

The strongest closed-form competitor is isotropic Jacobian control from Bandwidth Selection for Gaussian Kernel Ridge Regression via Jacobian Control. Its ridge penalty will be chosen by the same eigendecomposition-based generalized cross-validation we use. That way, the only difference from our method is the per-feature reweighting, and this comparison is the core ablation. For that paper, no specific numeric $R^2$ result on its benchmark datasets was found on Lacuna. We will therefore rerun it ourselves on California Housing and report both numbers side by side.

The strongest kernel competitor overall is the per-feature marginal-likelihood Gaussian process. It is the standard way to get anisotropic bandwidths and the practical stand-in for the multi-bandwidth prior of Anisotropic function estimation using multi-bandwidth Gaussian processes. It will be given multiple random restarts, and it will be run both to convergence and truncated to our method's wall-clock time.

Cross-validated isotropic kernel ridge regression will be run at both 30 and 400 trials. This mirrors the two conflicting benchmark budgets.

The strongest method on the task is gradient-boosted trees. When Do Neural Nets Outperform Boosted Trees on Tabular Data? reports that CatBoost had the best average rank, 5.06, across its 104 primary datasets. Revisiting Deep Learning Models for Tabular Data reports an average rank of 1.8 for FT-Transformer and 3.3 for ResNet among its models, and notes that gradient-boosted trees hold a significant lead on California Housing. We will run CatBoost and XGBoost with defaults and with 30 Optuna trials, on identical splits.

Two ablations isolate the key ingredient. The first sets per-feature scales from a target-blind statistic, the inverse interquartile range, before isotropic Jacobian control. The second replaces derivative-based relevance with permutation importance from the first fit. "Beating" the baselines means three things. Against isotropic Jacobian control and the target-blind ablation, the proposed method must win on a clear majority of datasets under a paired rank test. Against marginal-likelihood per-feature Gaussian processes, it must reach statistically indistinguishable accuracy in at least an order of magnitude less time. Against trees, the claim is modest: a significantly smaller average rank gap than isotropic kernels have. It is not a claim to beat CatBoost outright.

Why not just…?

Why not just use per-feature Gaussian processes tuned by marginal likelihood? This is the real threat. If it matches our accuracy at similar cost, the proposal collapses into "use automatic relevance determination." Two things argue for testing rather than conceding. First, marginal likelihood is iterative, non-convex, and prone to local minima, and its per-iteration cost is a cubic solve, as noted in Bandwidth Selection for Gaussian Kernel Ridge Regression via Jacobian Control. With $d$ bandwidths the landscape only gets harder. Second, the question is posed at matched wall-clock time. The budget curve will settle it directly. If the likelihood-tuned model dominates at every budget, we will report that and recommend it as the kernel baseline for tabular suites. That would still fill the documented omission of kernels from those benchmarks.

Why not just pick a better scaler, such as a robust or quantile scaler, and keep one bandwidth? Scaling that ignores the target cannot tell a noisy irrelevant column from an informative one with the same spread. Grinsztajn et al. show that uninformative features are exactly what hurts smooth, rotation-invariant learners. The target-blind ablation tests this alternative head-on. The uninformative-feature experiment below should show it degrading while the reweighted kernel does not.

Why not just use gradient-boosted trees? On typical medium-sized tabular data they will probably still win, and we do not claim otherwise. The value here is different. The work gives a fair, cheap kernel baseline, plus evidence about which of the trees' advantages are specific to trees and which come from being axis-aligned and ignoring irrelevant features. Trees are fragile to rotation per Why do tree-based models still outperform deep learning on typical tabular data?. Our kernel is axis-aligned too, so it should share that fragility, and the rotation experiment checks this honestly.

Why not select features first and then fit an isotropic kernel? Hard selection is a special case of our reweighting, with each $a_j$ set to either zero or one. It discards the relative-roughness information that the multi-bandwidth theory says matters when smoothness differs across axes. We will include a top-$k$-by-importance variant with $k$ chosen by generalized cross-validation, to see whether graded scales actually help.

Proposed Experiments

The main suites are the regression and classification sets of the Grinsztajn 45-dataset OpenML benchmark, the TabZilla hard subset of 36 datasets, and California Housing, CASP, and appliance energy from the Jacobian-control paper. Each method gets five random splits, and we report $R^2$ or accuracy, average rank, and wall-clock time.

The first decisive check is synthetic. The targets have axis-wise Sobolev smoothness chosen per coordinate, with $d_0$ active features out of $d$. We test whether the learned $a_j$ order the features correctly. We also test whether error falls with $n$ faster than it does for the isotropic kernel, as the multi-bandwidth theory predicts for adapted scales.

The second decisive check repeats Grinsztajn's protocol of appending uninformative features. The isotropic and target-blind kernels should degrade. If the proposed kernel degrades at the same rate, the core idea has failed.

The third check applies random rotations. We expect our kernel to lose accuracy like trees do, confirming that it exploits the coordinate axes rather than merely being well tuned.

The fourth check is the preprocessing audit. If the spread across scalers for isotropic kernels is larger than the gaps between methods, while our method's spread is small, that is direct evidence that scaling choice is a hidden benchmarking confound, and that target-aware reweighting removes it.