Fast Generalized Neural Tangent Kernel Statistics via Trace Estimation
cs.LG, cs.AI, cs.NA, math.NA
Submitted: 2025-11-13
Updated: 2026-09-30
License: http://creativecommons.org/licenses/by-nc-sa/4.0/
The gist: The empirical state-space Neural Tangent Kernel (NTK) describes the local learning geometry of a finite-width neural network, but computing it explicitly is almost always impractical in terms of
Terminology
Abstract
The empirical state-space Neural Tangent Kernel (NTK) describes the local learning geometry of a finite-width neural network, but computing it explicitly is almost always impractical in terms of computation and memory costs. Here, we show that many useful NTK statistics that characterize, for example, the dimensionality of learned updates or how two models or learning rules relate, can instead be efficiently approximated to very high accuracy via matrix-free products using randomized trace estimation. Namely, we use Hutch++ to estimate the NTK trace, Frobenius norm, effective rank, and alignment. Furthermore, we show that the positive-semidefinite structure of the NTK yields one-sided estimators that require only forward- or reverse-mode automatic differentiation. We validate these estimators across MLPs, recurrent GRUs, and a natural-language Transformer with up to 410 million parameters, in which the state-space contains high-dimensional four-tensors. We demonstrate orders-of-magnitude speedups, with the fastest estimator in a given application depending on the ratio of parameter and state dimensions. Equipped with these estimators, we examine rich and lazy RNN training using hidden-state NTK alignment and use NTK alignment as a regularizer for data-scarce knowledge distillation. We find that this regularization can modestly improve generalization, especially in very data-scarce settings. Together, these results suggest state-space NTK diagnostics are practical even at large scales.
Sources
- On Exact Computation with an Infinitely Wide Neural Net
- Neural Networks as Kernel Learners: The Silent Alignment Effect
- Pythia: A Suite for Analyzing Large Language Models Across Training and Scaling
- Beyond variance: sensitivity-based dimensions in brain networks underlie individual differences in cognitive ability
- Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translation
- Position: Curvature Matrices Should Be Democratized via Linear Operators
- On the Neural Tangent Kernel of Equilibrium Models
- Disentangling feature and lazy training in deep neural networks
- The Global Empirical NTK: Self-Referential Bias and Dimensionality of Gradient Descent Learning
- Beyond Scaling Curves: Internal Dynamics of Neural Networks Through the NTK Lens
- Neural Tangents: Fast and Easy Infinite Neural Networks in Python
- PyTorch: An Imperative Style, High-Performance Deep Learning Library
- A Theory of Neural Tangent Kernel Alignment and Its Influence on Training
- NTK-SAP: Improving neural network pruning by aligning training dynamics
- Neural Tangent Knowledge Distillation for Optical Convolutional Networks
- Tensor Programs II: Neural Tangent Kernel for Any Architecture
Related papers
- Polynomial-Augmented Neural Networks (PANNs) with Weak Orthogonality Constraints for Enhanced Function and PDE Approximation
- AIRL-S: Unifying Reinforcement Learning and Search-Based Test-Time Scaling via Adversarial Inverse Reinforcement Learning
- Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
- Convergence issues in Relational Concept Analysis based on AOC-posets
- Beliefs Beyond Posteriors: The Predictive Cost of ELBO Binding
- Understanding Diffusion Models via Ratio-Based Function Approximation with SignReLU Networks