arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.03085cs.LG
收藏

非渐近长度泛化

Non-Asymptotic Length Generalization

Stanford University(斯坦福大学);Toyota Technological Institute at Chicago(芝加哥丰田技术研究所)

Thomas Chen, Tengyu Ma, Zhiyuan Li

AI总结:

本文提出非渐近长度泛化框架,以长度复杂度刻画保证泛化所需最小输入长度,证明其与语言等价问题可判定性的等价关系,并给出自动机及1、2层C-RASP的复杂度界。

摘要:

长度泛化是指学习算法能够学到一个假设,并且该假设可以泛化到比训练集中输入更长的输入上。在本文中,我们在理想化设定下为多种函数类别提供了长度泛化的可证明保证。首先,我们形式化了非渐近长度泛化框架;该框架要求给出一个可计算的上界,用以刻画保证长度泛化所需的最小输入长度,而这个长度是在某种给定复杂度度量下真实函数复杂度的函数。我们将这种实现长度泛化所需的最小输入长度称为长度复杂度。我们证明 Minimum-Complexity Interpolator 学习算法可以达到最优长度复杂度。我们进一步证明,一个函数类别是否允许非渐近长度泛化,等价于其语言等价问题是否可判定;这意味着 Context-Free Grammars 的长度复杂度不存在可计算上界。在积极方面,我们证明 Deterministic Finite Automata 的长度复杂度为 $2n-2$,其中 $n$ 是真实自动机的状态数。我们的主要结果是针对一类与 transformer 相关的函数类别(称为 C-RASP,Yang & Chiang,2024)的一个子集给出长度复杂度上界。我们证明,当真实函数的精度为 $T$ 时,1 层 C-RASP 函数的长度复杂度为 $O(T^2)$;而当真实函数的精度为 $T$ 且具有 $K$ 个注意力头时,2 层 C-RASP 函数的长度复杂度为 $O(T^{O(K)})$。

英文摘要:

Length generalization is the ability of a learning algorithm to learn a hypothesis which generalizes to longer inputs than the inputs in the training set. In this paper, we provide provable guarantees of length generalization for various classes of functions in an idealized setting. First, we formalize the framework of non-asymptotic length generalization, which requires a computable upper bound for the minimum input length that guarantees length generalization, as a function of the complexity of ground-truth function under some given complexity measure. We refer to this minimum input length to length generalize as length complexity. We show the Minimum-Complexity Interpolator learning algorithm achieves optimal length complexity. We further show that whether a function class admits non-asymptotic length generalization is equivalent to the decidability of its language equivalence problem, which implies that there is no computable upper bound for the length complexity of Context-Free Grammars. On the positive side, we show that the length complexity of Deterministic Finite Automata is $2n - 2$ where $n$ is the number of states of the ground-truth automaton. Our main results are upper bounds of length complexity for a subset of a transformer-related function class called C-RASP (Yang & Chiang, 2024). We show that the length complexity of 1-layer C-RASP functions is $O(T^2)$ when the ground-truth function has precision $T$, and that the length complexity of 2-layer C-RASP functions is $O(T^{O(K)})$ when the ground-truth function has precision $T$ and $K$ heads.

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

↑