arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.12805cs.LGcs.AI
收藏

从小到大:变换器在可变大小输入上的泛化界限

From Small to Large: Generalization Bounds for Transformers on Variable-Size Inputs

Georgia Institute of Technology(佐治亚理工学院)

Anastasiia Alokhina, Pan Li

AI总结:

本文提出了一种理论框架,用于分析变换器在可变大小输入上的泛化界限,通过采样密度和数据流形的内在维数确定误差界,并通过实验验证了理论的准确性。

摘要:

变换器表现出一种显著的'大小泛化'特性,能够从较小的token集合外推到显著更长的集合。这种行为已在点云、图和自然语言等不同应用中得到记录。尽管在经验上取得了成功,这种能力仍然缺乏一些严格的理论描述。在本文中,我们开发了一个理论框架来分析这种现象,针对几何数据,我们将其表示为连续源的离散样本(例如,来自流形的点云,来自图的图)。我们的核心贡献是确定变换器的输出与连续域等价之间的误差界。我们证明,对于具有稳定位置编码的变换器,该界由采样密度和数据流形的内在维数决定。在不同大小的图和点云上的实验验证了我们理论界的紧密性。

英文摘要:

Transformers exhibit a notable property of \emph{size generalization}, demonstrating an ability to extrapolate from smaller token sets to significantly longer ones. This behavior has been documented across diverse applications, including point clouds, graphs, and natural language. Despite its empirical success, this capability still lacks some rigorous theoretical characterizations. In this paper, we develop a theoretical framework to analyze this phenomenon for geometric data, which we represent as discrete samples from a continuous source (e.g., point clouds from manifolds, graphs from graphons). Our core contribution is a bound on the error between the Transformer's output for a discrete sample and its continuous-domain equivalent. We prove that for Transformers with stable positional encodings, this bound is determined by the sampling density and the intrinsic dimensionality of the data manifold. Experiments on graphs and point clouds of various sizes confirm the tightness of our theoretical bound.

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

↑