arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.02238cs.LGcs.FLcs.LO
收藏

Transformer的长度泛化界

Length Generalization Bounds for Transformers

University of Cambridge(剑桥大学)

Andy Yang, Pascal Bergsträßer, Georg Zetzsche, David Chiang, Anthony W. Lin

AI总结:

本文证明C-RASP(与Transformer紧密相关的语言类)不存在可计算的长度泛化界,但为正片段(等价于固定精度Transformer)提供了可计算的指数级最优界。

摘要:

长度泛化是学习算法的一个关键性质,它使得算法在给定有限训练数据的情况下,能够对任意长度的输入做出正确预测。为了提供这样的保证,需要能够计算一个长度泛化界,超过该界模型保证泛化。本文关注C-RASP(一类与Transformer紧密相关的语言)的此类泛化界的可计算性这一开放问题。最近Chen等人针对仅有一层C-RASP以及在限制条件下针对两层C-RASP给出了部分正面结果。我们对该开放问题给出了完整答案。主要结果是C-RASP(已有两层)以及因此Transformer不存在可计算的长度泛化界。作为补充,我们为C-RASP的正片段(我们证明其等价于固定精度Transformer)提供了一个可计算的界。对于正C-RASP和固定精度Transformer,我们证明长度复杂度是指数级的,并证明了界的优性。

英文摘要:

Length generalization is a key property of a learning algorithm that enables it to make correct predictions on inputs of any length, given finite training data. To provide such a guarantee, one needs to be able to compute a length generalization bound, beyond which the model is guaranteed to generalize. This paper concerns the open problem of the computability of such generalization bounds for C-RASP, a class of languages which is closely linked to transformers. A positive partial result was recently shown by Chen et al. for C-RASP with only one layer and, under some restrictions, also with two layers. We provide complete answers to the above open problem. Our main result is the non-existence of computable length generalization bounds for C-RASP (already with two layers) and hence for transformers. To complement this, we provide a computable bound for the positive fragment of C-RASP, which we show equivalent to fixed-precision transformers. For both positive C-RASP and fixed-precision transformers, we show that the length complexity is exponential, and prove optimality of the bounds.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑