arXiv cs.CL· Marius Henry, Michael Rizvi-Martel, Michael Hahn·· 13 小时前AI 评分29
多层 Transformer 的定量泛化边界:少量长字符串可胜过大量短字符串
Quantitative Generalization Bounds for Multi-Layer Transformers: A Few Long Strings can Beat Many Short Ones
AI 导读
研究对固定精度 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.CL · arxiv.org