On Generalisation Error Bounds for Transformers
stat.ML, cs.LG, math.FA
Submitted: 2024-10-15
Updated: 2026-09-08
Comments: 29 pages
License: http://creativecommons.org/licenses/by/4.0/
The gist: In this paper, we establish a collection of covering number bounds for linear function classes under various norm constraints on the inputs and matrices.
Terminology
Abstract
In this paper, we establish a collection of covering number bounds for linear function classes under various norm constraints on the inputs and matrices. We then combine these results with existing covering number bounds to derive improved estimates and, based on these estimates, develop generalization error bounds for single-layer Transformers. The resulting generalization bounds improve upon several existing results in the literature and, in particular, are independent of the input sequence length. Moreover, our generalization error bound decays at the rate O(1/sqrt n), where n denotes the sample size, thereby improving upon existing bounds that scale as O((n)/sqrt n). Furthermore, our covering number analysis explicitly incorporates rank constraints on the underlying matrix classes, allowing us to characterize how low-rank structures affect the metric entropy and, consequently, the resulting generalization bounds for Transformer architectures.
Sources
- A PAC-Bayesian Approach to Spectrally-Normalized Margin Bounds for Neural Networks
- On Rademacher Complexity-based Generalization Bounds for Deep Learning
Related papers
- Behavior of prediction performance metrics with rare events
- Optimal Estimation of Generic Dynamics by Path-Dependent Neural Jump ODEs
- A Posterior-Dynamics Framework for Imaging Inverse Problems with Pretrained Diffusion Priors
- One Permutation Is All You Need: Fast, Deterministic Feature Importance and Model Stress-Testing
- Online Conformal Prediction for Non-Exchangeable Panel Data
- Deep Time-Series Forecasting in 10 Years: A Survey