arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.02270cs.LGmath.OCstat.ML
收藏

基于变换器的精确序列插值

Exact Sequence Interpolation with Transformers

Chair for Dynamics, Control, Machine Learning, and Numerics (Alexander von Humboldt Professorship)(动力学、控制、机器学习和数值学教授席位(亚历山大·冯·洪堡教授职位));Friedrich–Alexander–Universität Erlangen–Nürnberg(弗里德里希-亚历山大-埃尔兰根-纽伦堡大学);Departamento de Matemáticas(数学系);Universidad Autónoma de Madrid(马德里自治大学);Chair of Computational Mathematics(计算数学教授席位);Fundación Deusto(德乌斯基金会)

Albert Alcalde, Giovanni Fantuzzi, Enrique Zuazua

AI总结:

本文证明变换器能精确插值有限输入序列数据集,通过构造特定结构的变换器模型,实现不同长度输出序列的精确插值,并探讨其在学习问题中的应用。

摘要:

我们证明变换器能够精确插值有限输入序列数据集,在$\mathbb{R}^d$中,$d\geq 2$,对应的输出序列长度较小或相等。具体而言,给定$N$个任意但有限长度的序列在$\mathbb{R}^d$中,以及输出序列长度$m^1, \dots, m^N \in \mathbb{N}$,我们构造一个具有$\mathcal{O}(\sum_{j=1}^N m^j)$块和$\smash{\mathcal{O}(d \sum_{j=1}^N m^j)}$参数的变换器,能够精确插值数据集。我们的构造提供了与输入序列长度无关的复杂度估计,通过交替使用前馈层和自注意力层,并利用后者固有的聚类效应。我们的新颖构造方法还使用了自注意力机制中的低秩参数矩阵,这是实际变换器实现中的常见特征。这些结果首先在hardmax自注意力设置中建立,其中几何结构允许显式和定量分析,然后扩展到softmax设置。最后,我们展示了我们的精确插值构造在学习问题中的适用性,特别是通过在正则化训练策略下提供对全局极小值的收敛保证。我们的分析有助于深入理解变换器模型,为它们在精确序列到序列插值任务中的出色表现提供解释。

英文摘要:

We prove that transformers can exactly interpolate datasets of finite input sequences in $\mathbb{R}^d$, $d\geq 2$, with corresponding output sequences of smaller or equal length. Specifically, given $N$ sequences of arbitrary but finite lengths in $\mathbb{R}^d$ and output sequences of lengths $m^1, \dots, m^N \in \mathbb{N}$, we construct a transformer with $\mathcal{O}(\sum_{j=1}^N m^j)$ blocks and $\smash{\mathcal{O}(d \sum_{j=1}^N m^j)}$ parameters that exactly interpolates the dataset. Our construction provides complexity estimates that are independent of the input sequence length, by alternating feed-forward and self-attention layers and by capitalizing on the clustering effect inherent to the latter. Our novel constructive method also uses low-rank parameter matrices in the self-attention mechanism, a common feature of practical transformer implementations. These results are first established in the hardmax self-attention setting, where the geometric structure permits an explicit and quantitative analysis, and are then extended to the softmax setting. Finally, we demonstrate the applicability of our exact interpolation construction to learning problems, in particular by providing convergence guarantees to a global minimizer under regularized training strategies. Our analysis contributes to the theoretical understanding of transformer models, offering an explanation for their excellent performance in exact sequence-to-sequence interpolation tasks.

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

↑