When a dataset has thousands of measured variables but only a few hundred samples, as with gene-expression arrays, EEG recordings or fMRI scans, choosing which variables to keep forces a familiar compromise. Cheap statistical filters ignore how the eventual model will use the features. Wrapper methods retrain the model on candidate subsets and do respect the model, but that is far too expensive to do at scale. We propose a middle path built from the model itself. In the limit of infinite width, a trained deep network becomes an exactly solvable kernel method: the neural tangent kernel (NTK), which measures how similar two inputs look to the network's gradients at initialization. For kernel ridge regression, the leave-one-out cross-validation error is available in closed form from a single fit. Put a learnable scale on every input feature, and that leave-one-out error becomes a smooth function of the scales. Gradient descent on it then yields a model-aware, interaction-aware feature selector whose cost is one Gram matrix per step.
Two further ingredients make this more than "automatic relevance determination with a different kernel." First, for a ReLU network the NTK depends on the inputs only through their weighted inner products. This means redundant copies of a feature are interchangeable in the objective, and a plain $\ell_1$ penalty on the scales then pushes weight onto one representative, which gives a precise account of how redundancy is resolved. Second, when inputs are naturally multi-way (channel × frequency × time), we parameterize the scales as a low-rank tensor, a sum of products of per-mode weight vectors. The selector then picks physical channels and bands rather than dense subspace mixtures. It also has far fewer free parameters to overfit the leave-one-out objective in the $N \ll D$ regime.
Core Claim
Let $X \in \mathbb{R}^{N \times D}$ hold the $N$ training inputs and $w \in [0,1]^D$ hold per-feature scales. Let $\Theta_w(x,x') = \Theta(w \odot x, w \odot x')$ be the analytic infinite-width NTK of a fixed-depth ReLU network evaluated on rescaled inputs. Write $K_w$ for its $N \times N$ Gram matrix and $A_w = (K_w + \lambda I)^{-1}$, where $\lambda$ is the ridge strength. The exact leave-one-out residual of kernel ridge regression on sample $i$ is
$$ r_i(w) = \frac{[A_w y]_i}{[A_w]_{ii}}, $$
where $y$ holds the labels. We minimize $\sum_i r_i(w)^2 + \gamma \lVert w \rVert_1$, where $\gamma$ sets how many features survive. The ReLU NTK is a closed-form function of $\lVert x\rVert$, $\lVert x'\rVert$ and $\langle x, x'\rangle$, so all dependence on $w$ passes through the single weighted Gram matrix $\sum_j w_j^2 x_{ij} x_{kj}$. Each gradient step therefore costs $O(N^2 D + N^3)$, which is trivial for microarrays ($N \approx 100$, $D \approx 10^4$) and feasible up to a few thousand samples.
Our central claims are threefold. On small-sample, high-dimensional problems this selector matches or beats both linear-shortcut selectors and nonlinear importance heuristics. Its tensor-structured variant recovers interpretable channel/band subsets on multi-way data. And, the claim that is most distinctively about the NTK, the subsets it chooses are good for the finite networks that the NTK approximates, not just for the kernel.
Relation to Prior Work
The mechanism comes from two lines that the file shows have not met. Closed-form single-model shortcuts exist for linear and kernel-linear models. Gene selection algorithms for microarray data based on least squares support vector machine derives exact leave-one-out error for LS-SVM sub-models and runs gradient descent on gene scaling factors after PCA pre-screening. Feature selection using e-values scores sub-models of a single linear or mixed model by bootstrap data depth, and needs marginal screening when $p > n$. Differentiable Feature Selection by Discrete Relaxation relaxes binary masks and optimizes a Kong-Valiant linear-learnability estimator in $O(ND)$, explicitly leaving nonlinear deep extensions open. We supply the method these papers point toward: we reuse Tang et al.'s leave-one-out-gradient strategy but replace the linear kernel with the NTK. We drop the PCA pre-filter, which Gaussian Image Anomaly Detection with Greedy Eigencomponent Selection gives reason to distrust because high-variance directions there captured background rather than signal.
Harnessing the Power of Infinitely Wide Deep Nets on Small-data Tasks motivates the regime. It shows the analytic NTK beating random forests, Gaussian kernels and finite networks on 90 small UCI tasks, but it always treats the input features as fixed. We make them the optimization variable. The same paper also constrains us: NTK lags finite networks on large data and its Gram matrix scales cubically. We therefore deliberately restrict scope to $N$ in the hundreds to low thousands, which is exactly where wrapper selection is most needed and most prone to overfitting.
On redundancy, Priors for Diversity in Generative Latent Variable Models repels correlated components with a determinant penalty at cubic cost. Quick and Robust Feature Selection: the Strength of Energy-efficient Sparse Training for Autoencoders ranks inputs by the summed outgoing weights of a sparse autoencoder. Our redundancy handling needs neither: duplicated features enter $K_w$ only through the sum of their squared scales, and an $\ell_1$ penalty at fixed sum of squares is minimized at a corner. A determinant term therefore becomes an ablation, not a requirement.
On tensors, Principal Component Analysis with Tensor Train Subspace and Tucker methods such as Efficient Nonnegative Tucker Decompositions: Algorithms and Uniqueness compress multi-way data with dense factor matrices that mix raw variables. We use low-rank structure for the selection mask instead. This keeps coordinates aligned, as An EEG Channel Selection Framework for Driver Drowsiness Detection via Interpretability Guidance requires when it identifies electrodes. We do not attempt to compress the NTK Gram matrix with tensor trains, the gap the file attributes to Tensor Programs II: Neural Tangent Kernel for Any Architecture. In our regime the Gram matrix is small, so the bottleneck is overfitting $D$ scales, not memory.
Research Program
The first component is the flat selector. It uses a sigmoid relaxation of $w$, the analytic ReLU NTK at depths 1 to 5, and the exact leave-one-out objective above, optimized by Adam. Depth and $\lambda$ are themselves chosen by leave-one-out error. After optimization we hard-threshold to a target budget $k$ and refit. Implementation runs on a single GPU in float64 with a Cholesky-based solve.
The second component is the structured selector for inputs of shape $I_1 \times \dots \times I_M$. Here $w_{i_1\dots i_M} = \sum_{r=1}^{R} \prod_m u^{(m)}_{r, i_m}$, with nonnegative per-mode vectors $u^{(m)}_r$ and $\ell_1$ penalties on each. At $R=1$ this reduces to selecting channels and bands independently. Larger $R$ allows a few channel-specific band patterns. The number of free scale parameters drops from $\prod_m I_m$ to $R\sum_m I_m$, and we predict this is what prevents the leave-one-out objective from being overfit when $N$ is small. Because this is a CP-style mask, the mode-ordering sensitivity of tensor trains does not arise. A tensor-train mask is an ablation for $M \ge 4$.
The third component is analysis. We prove the redundancy-corner property for exact duplicates and characterize it for near-duplicates as a function of their correlation. We also measure, on held-out folds, how much leave-one-out error is optimistic after selection, using nested cross-validation throughout so that reported errors never reuse the selection data.
Baselines
The naive reference is the analytic NTK on all features with no selection. On the UCI suite this is a strong reference: Harnessing the Power of Infinitely Wide Deep Nets on Small-data Tasks reports 81.95% average accuracy and a Friedman rank of 28.34, versus 33.51 for random forests. Any selector must at least match accuracy at much smaller $k$. A second naive reference is the ANOVA $F$-test filter followed by the same NTK regressor at the same $k$.
The strongest existing competitor on the flat question is Differentiable Feature Selection from Differentiable Feature Selection by Discrete Relaxation. It is the closest relaxed, single-model selector and the one whose authors flag the nonlinear gap. Its reported AUC of 0.92 with 22 features is on webspam, a 16.6-million-feature, very-large-$N$ problem outside our regime. For the small-$N$ benchmarks we use (Madelon, gisette, mnist35, microarrays) there is no reported result found on Lacuna for DFS, so we will run it ourselves with its order-$k$ estimator ($k$ up to 6).
On microarrays the natural competitors are LOOCSFS/GLGS from Gene selection algorithms for microarray data based on least squares support vector machine, e-values with screening from Feature selection using e-values, and QuickSelection using its released code QuickSelection. For all of these there is no reported result found on Lacuna for Hepatocellular Carcinoma, Glioma, SMK-CAN-187 or GLA-BRA-180 as numbers. We add Lasso/ElasticNet and random-forest permutation importance.
Every method gets the same outer folds and the same feature budgets $k \in \{5, 10, 20, 50, 100\}$. Each method also gets the same hyperparameter budget (40 configurations chosen on inner folds) and is evaluated by three common downstream models fitted on the chosen subset: the NTK regressor, a random forest, and a finite MLP. Beating DFS means higher balanced accuracy or AUC at equal $k$, averaged over datasets, under a Wilcoxon signed-rank test at $p < 0.05$, with the advantage holding for at least two of the three downstream models.
Three ablations isolate the key ingredients. Swapping the NTK for an RBF or Laplace kernel inside the identical leave-one-out pipeline isolates the kernel. Replacing exact leave-one-out with training-set ridge loss isolates the objective. Replacing the low-rank tensor mask with a flat mask over the vectorized input isolates the structure.
Why not just…?
Why not just use Lasso or ElasticNet? These are fast and convex, but they are linear in the features. Feature selection using e-values reports that Lasso over-selects among correlated predictors, the exact failure our $\ell_1$-on-scales corner argument addresses. Madelon, whose label depends on an interaction among a handful of features hidden in noise, is the direct test. If ElasticNet matches us there, our nonlinearity buys nothing.
Why not just use an RBF kernel with per-feature length-scales, tuned by marginal likelihood or leave-one-out error? This is the most serious threat, because it uses almost the same machinery. The kernel-swap ablation settles it. If RBF scales match NTK scales on downstream accuracy for all three downstream models, the contribution reduces to the redundancy analysis and the structured mask, and we will report it that way. The NTK-specific prediction that could separate them is transfer: NTK-chosen subsets should help finite ReLU MLPs more than RBF-chosen subsets do, because the NTK is the lazy limit of those networks. The UCI comparison in Harnessing the Power of Infinitely Wide Deep Nets on Small-data Tasks, where the NTK outranked Gaussian kernels, gives modest prior reason to expect a gap. It does not establish one for selection.
Why not just do greedy forward selection with the exact NTK leave-one-out formula? This is the direct analogue of LOOCSFS, and it avoids nonconvex relaxation. Its cost is $O(kD)$ kernel refits, which is affordable for microarrays. We include it as a baseline. We expect it to be competitive at small $k$ and weaker on interactions, where single features look useless alone, as in Madelon. If it wins, the gradient relaxation is unnecessary.
Why not just use random-forest importance? Random forests capture interactions without kernels. However, the file notes they split arbitrarily among redundant copies, and they lost to the NTK on the UCI rank comparison. The planted-duplicate experiment below measures whether their importance mass spreads across copies while ours concentrates.
Why not flatten multi-way inputs and use a flat mask? This is exactly the structure ablation. Our prediction is that flat masks overfit leave-one-out error when $D \gg N$, producing optimistic inner-fold error and worse outer-fold error, while rank-$R$ masks do not.
Proposed Experiments
We start with a controlled redundancy test. We take Madelon and gisette, plant $c$ noisy copies of each informative feature at correlations $\rho \in \{0.8, 0.95, 1.0\}$, and measure two things: how many distinct informative groups each selector recovers at fixed $k$, and the entropy of selection mass within each copy group. The decisive check is that our method keeps group recovery flat as $c$ grows while Lasso and random-forest importance degrade.
Next comes the small-sample benchmark across the four microarray datasets, Madelon, gisette and mnist35, plus the 20 UCI tasks with the most features from the Arora et al. suite. All results come from nested cross-validation, with balanced accuracy and AUC versus $k$ for each downstream model. On the UCI tasks, the full-feature NTK figures from Arora et al. serve as the bar to stay near while using a fraction of the features.
The transfer test trains finite ReLU MLPs at widths 64 to 4096, with five seeds each, on subsets chosen by NTK, RBF and DFS. If the NTK lens matters, the NTK-subset advantage should grow with width, since wider networks sit closer to the kernel limit. If the advantage is flat or negative, the NTK-specific claim fails.
The multi-way test uses EEG drowsiness data arranged as channel × frequency band × time window, following the setup of An EEG Channel Selection Framework for Driver Drowsiness Detection via Interpretability Guidance, and the fMRI visual voxel data studied in Feature selection using e-values, arranged spatially. We compare the rank-$R$ mask, the flat mask, and the class-activation-map channel selection, reporting accuracy at a fixed channel budget, stability of selected channels across folds (Jaccard index), and the gap between inner leave-one-out error and outer error. For the fMRI data we additionally check whether selected voxels concentrate in visual cortex, as e-values found. A useful structured selector should shrink the inner-outer gap relative to the flat mask while matching or beating its outer accuracy.
References
- Gene selection algorithms for microarray data based on least squares support vector machine
- Feature selection using e-values
- Differentiable Feature Selection by Discrete Relaxation
- Gaussian Image Anomaly Detection with Greedy Eigencomponent Selection
- Harnessing the Power of Infinitely Wide Deep Nets on Small-data Tasks
- Priors for Diversity in Generative Latent Variable Models
- Quick and robust feature selection: the strength of energy-efficient sparse training for autoencoders
- Principal component analysis with tensor train subspace
- Efficient Nonnegative Tucker Decompositions: Algorithms and Uniqueness
- An EEG Channel Selection Framework for Driver Drowsiness Detection via Interpretability Guidance
- Tensor Programs II: Neural Tangent Kernel for Any Architecture