通过感受野分析的视角剖析Transformer长度外推
Dissecting Transformer Length Extrapolation via the Lens of Receptive Field Analysis
AI总结:
本文通过感受野分析剖析ALiBi,并基于此提出首个无参数相对位置编码Sandwich,与KERPLE和T5共享对数衰减偏置模式,为未来位置编码设计提供启示。
摘要:
长度外推允许在短序列上训练transformer语言模型,并在测试于显著更长的序列时保持困惑度。相对位置编码设计ALiBi至今有着最广泛的应用。我们通过一种新颖的累积归一化梯度工具所赋能的感受野分析视角来剖析ALiBi。感受野的概念进一步允许我们修改原始的Sinusoidal位置编码以创建~\ extbf{Sandwich},这是首个真正利用比训练序列更长的长度信息的无参数相对位置编码设计。Sandwich与KERPLE和T5共享相同的对数衰减时间偏置模式,并带有可学习的相对位置编码;这些阐明了未来可外推的位置编码设计。
英文摘要:
Length extrapolation permits training a transformer language model on short sequences that preserves perplexities when tested on substantially longer sequences. A relative positional embedding design, ALiBi, has had the widest usage to date. We dissect ALiBi via the lens of receptive field analysis empowered by a novel cumulative normalized gradient tool. The concept of receptive field further allows us to modify the vanilla Sinusoidal positional embedding to create ~\textbf{Sandwich}, the first parameter-free relative positional embedding design that truly length information uses longer than the training sequence. Sandwich shares with KERPLE and T5 the same logarithmic decaying temporal bias pattern with learnable relative positional embeddings; these elucidate future extrapolatable positional embedding design.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。