[Paper Review] More Than a Toy: Random Matrix Models Predict How Real-World Neural Representations Generalize
This paper demonstrates that random matrix theory, particularly the generalized cross-validation (GCV) estimator, accurately predicts generalization risk in overparameterized neural networks—outperforming traditional norm- and spectrum-based bounds. It proves GCV converges to true risk under local random matrix laws and shows that representation alignment, not just eigenvalue decay, explains why pretrained models generalize better.
Of theories for why large-scale machine learning models generalize despite being vastly overparameterized, which of their assumptions are needed to capture the qualitative phenomena of generalization in the real world? On one hand, we find that most theoretical analyses fall short of capturing these qualitative phenomena even for kernel regression, when applied to kernels derived from large-scale neural networks (e.g., ResNet-50) and real data (e.g., CIFAR-100). On the other hand, we find that the classical GCV estimator (Craven and Wahba, 1978) accurately predicts generalization risk even in such overparameterized settings. To bolster this empirical finding, we prove that the GCV estimator converges to the generalization risk whenever a local random matrix law holds. Finally, we apply this random matrix theory lens to explain why pretrained representations generalize better as well as what factors govern scaling laws for kernel regression. Our findings suggest that random matrix theory, rather than just being a toy model, may be central to understanding the properties of neural representations in practice.
Motivation & Objective
- To determine which theoretical assumptions are necessary to capture real-world generalization in overparameterized deep learning models.
- To evaluate whether classical generalization bounds (norm- and spectrum-based) hold in realistic settings with large-scale neural networks and real data.
- To investigate why pretrained representations generalize better than randomly initialized ones, despite worse eigenvalue decay.
- To identify the key factors governing scaling laws in kernel ridge regression on neural representations.
- To develop sample-efficient methods for estimating alignment and eigendecay to predict generalization performance.
Proposed method
- Empirically evaluate generalization risk of kernel ridge regression on representations from ResNet-50 and ResNet-34 on CIFAR-100 using real data.
- Compare the performance of the generalized cross-validation (GCV) estimator against norm-based and spectrum-based generalization predictors.
- Prove that GCV converges to true generalization risk when a local random matrix law (Knowles & Yin, 2017) holds, even under anisotropic covariates and high-norm ground truth functions.
- Generalize recent random matrix analyses of high-dimensional ridge regression to settings with realistic neural representations.
- Use the GCV estimator to derive sample-efficient estimators for alignment and eigendecay, which predict scaling law rates.
- Validate the local Marchenko-Pastur law empirically by testing whether $ f( heta, N) = y^T (XX^T + N heta I)^{-1}y $ depends only on $ ilde{ heta}( heta, N) = ig( extstyle extstylerac{1}{N} extstyle extstylerac{1}{ heta + ilde{ u}_i} ig)^{-1} $, confirming consistency across dataset sizes.
Experimental results
Research questions
- RQ1Can classical generalization bounds based on norm or spectrum accurately predict generalization risk in overparameterized neural networks trained on real data?
- RQ2Why do pretrained neural representations generalize better than randomly initialized ones, despite having slower eigendecay?
- RQ3What factors govern the scaling laws observed in kernel ridge regression on neural representations?
- RQ4Does the generalized cross-validation (GCV) estimator consistently predict generalization risk across varying dataset sizes and regularization strengths?
- RQ5To what extent do random matrix laws—particularly the local Marchenko-Pastur law—hold in realistic deep learning settings?
Key findings
- The GCV estimator predicts generalization risk with 19.9% test error on CIFAR-100 using a ResNet-34 empirical NTK, outperforming fine-tuned ResNet (15.9%) in terms of risk prediction accuracy.
- Norm-based generalization bounds are vacuous or increase with dataset size due to the ground truth function having effectively infinite kernel norm.
- The GCV estimator remains accurate across diverse settings: varying dataset sizes, regularization strengths, model architectures (ResNet-50, ResNet-34), and data (CIFAR-100), including both random and pretrained representations.
- Theoretical analysis proves that GCV converges to true generalization risk whenever a local random matrix law holds, even under anisotropic covariates and high-norm ground truth functions.
- Pretrained representations generalize better than random ones not due to faster eigendecay, but due to superior alignment between the ground truth function and the population covariance matrix.
- Sample-efficient estimators for alignment and eigendecay—derived from random matrix theory—accurately predict scaling law rates for kernel ridge regression on natural data.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.