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

低维到高维的泛化及其对长度泛化的启示

Low-Dimension-to-High-Dimension Generalization And Its Implications for Length Generalization

State Key Lab of General Artificial Intelligence, School of Intelligence Science and Technology, Peking University(国家一般人工智能重点实验室,智能科学与技术学院,北京大学);Institute for Artificial Intelligence, Peking University(人工智能研究院,北京大学);Beijing Institute for General Artificial Intelligence(北京一般人工智能研究院);Pazhou Laboratory (Huangpu), Guangzhou, Guangdong, China(黄埔实验室(华南),广州,广东,中国)

Yang Chen, Long Yang, Yitao Liang, Zhouchen Lin

AI总结:

该研究聚焦低维到高维(LDHD)泛化问题,从理论上证明无归纳偏置时LDHD泛化难以实现,解释了CoT的有效性,并提出RPE-Square位置嵌入以优化长度泛化。

摘要:

低维到高维(LDHD)泛化是分布外(OOD)泛化的一种特殊情况,其中训练数据被限制在高维测试空间的一个低维子空间内。假设每个样本由一个潜变量生成,且潜变量的维度反映了问题规模,那么长度泛化中固有的缩放挑战可以通过潜空间中的LDHD泛化来刻画。我们从理论上证明,若不利用先验知识提供合适的归纳偏置,LDHD泛化通常是无法实现的。具体而言,我们研究了布尔函数中的LDHD泛化,验证了经(S)GD训练的不同架构会收敛到“关于不同独立集的最小度插值器”。当且仅当目标函数与该归纳偏置一致时,LDHD泛化才可实现。将LDHD泛化的见解应用于长度泛化,我们解释了CoT(思维链)的有效性在于其改变了潜空间结构,从而实现更好的LDHD泛化。我们还提出了一项位置嵌入设计原则,以同时应对固有的LDHD泛化问题和数据格式等干扰因素。遵循该原则,我们提出了一种名为RPE-Square的新型位置嵌入,它修正了RPE(相对位置编码)在处理数据格式干扰时的不足。

英文摘要:

Low-Dimension-to-High-Dimension (LDHD) generalization is a special case of Out-of-Distribution (OOD) generalization, where the training data are restricted to a low-dimensional subspace of the high-dimensional testing space. Assuming that each instance is generated from a latent variable and the dimension of the latent variable reflects the problem scale, the inherent scaling challenge in length generalization can be captured by the LDHD generalization in the latent space. We theoretically demonstrate that LDHD generalization is generally unattainable without exploiting prior knowledge to provide appropriate inductive bias. Specifically, we explore LDHD generalization in Boolean functions. We verify that different architectures trained with (S)GD converge to \emph{min-degree interpolators w.r.t. different independent sets}. LDHD generalization is achievable if and only if the target function coincides with this inductive bias. Applying the insights from LDHD generalization to length generalization, we explain the effectiveness of CoT as changing the structure latent space to enable better LDHD generalization. We also propose a principle for position embedding design to handle both the inherent LDHD generalization and the nuisances such as the data format. Following the principle, we propose a novel position embedding called RPE-Square that remedies the RPE for dealing with the data format nuisance.

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

↑