arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.10866cs.LGcs.CL
收藏

Hyena Hierarchy:迈向更大的卷积语言模型

Hyena Hierarchy: Towards Larger Convolutional Language Models

Stanford University(斯坦福大学);Mila(米拉人工智能研究所);Université de Montréal(蒙特利尔大学)

Michael Poli, Stefano Massaroli, Eric Nguyen, Daniel Y. Fu, Tri Dao, Stephen Baccus, Yoshua Bengio, Stefano Ermon, Christopher Ré

AI总结:

本文提出 Hyena 次二次注意力替代算子,利用隐式长卷积与数据控制门控,在长序列回忆推理及语言建模上匹敌 Transformer,并显著降低计算成本。

摘要:

深度学习的最新进展严重依赖大型 Transformer 的使用,因为它们具备规模化学习能力。然而,Transformer 的核心构建模块——注意力算子——在序列长度上呈现二次成本,限制了可访问的上下文量。现有基于低秩和稀疏近似的次二次方法需要与稠密注意力层结合才能匹敌 Transformer,这表明其在能力上存在差距。在本研究中,我们提出 Hyena,这是一种注意力的次二次直接替代方案,通过交错隐式参数化的长卷积与数据控制的门控构建而成。在包含数千至数十万 token 的序列上的回忆和推理任务中,Hyena 相比依赖状态空间及其他隐式和显式方法的算子,将准确率提高了 50 分以上,与基于注意力的模型相当。我们在标准数据集(WikiText103 和 The Pile)的语言建模任务上为无稠密注意力架构设定了新的最先进水平,在序列长度 2K 时达到 Transformer 的质量,同时所需训练计算量减少 20%。Hyena 算子在序列长度 8K 时速度是高度优化的注意力的两倍,在序列长度 64K 时则快 100 倍。

英文摘要:

Recent advances in deep learning have relied heavily on the use of large Transformers due to their ability to learn at scale. However, the core building block of Transformers, the attention operator, exhibits quadratic cost in sequence length, limiting the amount of context accessible. Existing subquadratic methods based on low-rank and sparse approximations need to be combined with dense attention layers to match Transformers, indicating a gap in capability. In this work, we propose Hyena, a subquadratic drop-in replacement for attention constructed by interleaving implicitly parametrized long convolutions and data-controlled gating. In recall and reasoning tasks on sequences of thousands to hundreds of thousands of tokens, Hyena improves accuracy by more than 50 points over operators relying on state-spaces and other implicit and explicit methods, matching attention-based models. We set a new state-of-the-art for dense-attention-free architectures on language modeling in standard datasets (WikiText103 and The Pile), reaching Transformer quality with a 20% reduction in training compute required at sequence length 2K. Hyena operators are twice as fast as highly optimized attention at sequence length 8K, and 100x faster at sequence length 64K.

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

↑