GateLoop:用于序列建模的完全数据控制线性递推
GateLoop: Fully Data-Controlled Linear Recurrence for Sequence Modeling
AI总结:
本研究针对现有线性递推序列模型潜力未充分发挥的问题,提出采用数据控制状态转移的GateLoop模型,在自回归语言建模上表现更优,还推导出代理注意力模式,为序列建模发展提供新方向。
摘要:
线性递推已被证明是高效建模长序列的有力工具。在本研究中,我们发现现有模型未能充分发挥其潜力。受这一发现启发,我们开发了GateLoop,这是一种基础序列模型,通过采用数据控制的状态转移,对S4、S5、LRU和RetNet等线性递推模型进行了泛化。借助这一理论进展,GateLoop在自回归语言建模任务上的实验表现优于现有模型。我们的方法具备低成本的O(l)递推模式,以及利用高度优化的关联扫描实现的高效O(l log₂l)并行模式。此外,我们推导出了一种O(l²)的代理注意力模式,为Transformer及近期提出的架构带来了显著启示。具体而言,我们证明了我们的方法可被理解为向注意力机制提供数据控制的相对位置信息。虽然许多现有模型仅依赖数据控制的累积和进行上下文聚合,但我们的研究结果表明,引入数据控制的复累积积可能是构建更强大序列模型的关键一步。
英文摘要:
Linear Recurrence has proven to be a powerful tool for modeling long sequences efficiently. In this work, we show that existing models fail to take full advantage of its potential. Motivated by this finding, we develop GateLoop, a foundational sequence model that generalizes linear recurrent models such as S4, S5, LRU and RetNet, by employing data-controlled state transitions. Utilizing this theoretical advance, GateLoop empirically outperforms existing models for auto-regressive language modeling. Our method comes with a low-cost $O(l)$ recurrent mode and an efficient $O(l \log_{2} l)$ parallel mode making use of highly optimized associative scan implementations. Furthermore, we derive an $O(l^2)$ surrogate attention mode, revealing remarkable implications for Transformer and recently proposed architectures. Specifically, we prove that our approach can be interpreted as providing data-controlled relative-positional information to Attention. While many existing models solely rely on data-controlled cumulative sums for context aggregation, our findings suggest that incorporating data-controlled complex cumulative products may be a crucial step towards more powerful sequence models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。