Saved in:
Bibliographic Details
Main Authors: Yang, Rubing, Chaudhari, Pratik
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2504.16450
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917006138146816
author Yang, Rubing
Chaudhari, Pratik
author_facet Yang, Rubing
Chaudhari, Pratik
contents We derive a differential equation that governs the evolution of the generalization gap when a deep network is trained by gradient descent. This differential equation is controlled by two quantities, a contraction factor that brings together trajectories corresponding to slightly different datasets, and a perturbation factor that accounts for them training on different datasets. We analyze this differential equation to compute an ``effective Gram matrix'' that characterizes the generalization gap in terms of the alignment between this Gram matrix and a certain initial ``residual''. Empirical evaluations on image classification datasets indicate that this analysis can predict the test loss accurately. Further, during training, the residual predominantly lies in the subspace of the effective Gram matrix with the smallest eigenvalues. This indicates that the generalization gap accumulates slowly along the direction of training, charactering a benign training process. We provide novel perspectives for explaining the generalization ability of neural network training with different datasets and architectures through the alignment pattern of the ``residual" and the ``effective Gram matrix".
format Preprint
id arxiv_https___arxiv_org_abs_2504_16450
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle An Effective Gram Matrix Characterizes Generalization in Deep Networks
Yang, Rubing
Chaudhari, Pratik
Machine Learning
We derive a differential equation that governs the evolution of the generalization gap when a deep network is trained by gradient descent. This differential equation is controlled by two quantities, a contraction factor that brings together trajectories corresponding to slightly different datasets, and a perturbation factor that accounts for them training on different datasets. We analyze this differential equation to compute an ``effective Gram matrix'' that characterizes the generalization gap in terms of the alignment between this Gram matrix and a certain initial ``residual''. Empirical evaluations on image classification datasets indicate that this analysis can predict the test loss accurately. Further, during training, the residual predominantly lies in the subspace of the effective Gram matrix with the smallest eigenvalues. This indicates that the generalization gap accumulates slowly along the direction of training, charactering a benign training process. We provide novel perspectives for explaining the generalization ability of neural network training with different datasets and architectures through the alignment pattern of the ``residual" and the ``effective Gram matrix".
title An Effective Gram Matrix Characterizes Generalization in Deep Networks
topic Machine Learning
url https://arxiv.org/abs/2504.16450