多层 Transformer 的泛化定量界:少量长序列可胜过大量短序列
Quantitative Generalization Bounds for Multi-Layer Transformers: A Few Long Strings can Beat Many Short Ones
AI 导读
arXiv 论文对固定精度多层 Transformer 给出同时覆盖分布内统计泛化与长度泛化的定量界,界由模型参数规模、量化空间和字母表大小刻画。研究还分析样本量与训练长度的权衡,发现增加训练长度可能比增加样本量在指数级上更高效,实验支持了理论预测。
正文 · 原文
Abstract:Transformer-based language models exhibit an astonishing capacity to generalize to longer and more difficult problem instances than those seen in training. However, theoretical understanding of this phenomenon still lags behind. Unlike most machine learning models, the generalisation abilities of transformers inherently require considering two axes. On one hand, one must examine in-distribution statistical generalisation, which concerns the ability of a model to broaden a function from training samples to novel samples of the same distribution. On the other hand, given the sequential nature of language data, one must also consider length generalisation, which reflects whether a model trained on inputs of a given length can extrapolate to longer this http URL two notions have mostly been studied separately, leaving open how they interact. In this work, we give a joint treatment of both axes for fixed-precision transformers. We give generalisation guarantees in terms of the parameter sizes of the involved models, as well as the quantization space and the alphabet size that supply the sequences. Finally, we illustrate how the requirements in the sample count and training length trade off. In particular, we find that increasing training length can be exponentially more efficient than increasing the sample size. Experiments support predictions of the theory.
| Subjects: | Machine Learning (cs.LG); Artificial Intelligence (cs.AI); Computation and Language (cs.CL) |
| Cite as: | arXiv:2610.35715 [cs.LG] |
| (or arXiv:2610.35715v1 [cs.LG] for this version) | |
| https://doi.org/10.48550/arXiv.2610.35715 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Marius Henry [view email]
[v1]
Mon, 26 Oct 2026 16:36:27 UTC (871 KB)
来源:arXiv cs.AI · arxiv.org