跳到主要导航 跳到搜索 跳到主要内容

Length Generalization of Causal Transformers without Position Encoding

  • Jie Wang
  • , Tao Ji
  • , Yuanbin Wu
  • , Hang Yan
  • , Tao Gui
  • , Qi Zhang
  • , Xuanjing Huang
  • , Xiaoling Wang
  • East China Normal University
  • Fudan University
  • Shanghai AI Laboratory
  • International Human Phenome Institutes

科研成果: 书/报告/会议事项章节 › 会议稿件 › 同行评审

摘要

Generalizing to longer sentences is important for recent Transformer-based language models. Besides algorithms manipulating explicit position features, the success of Transformers without position encodings (NoPE) provides a new way to overcome the challenge. In this paper, we study the length generalization property of NoPE. We find that although NoPE can extend to longer sequences than the commonly used explicit position encodings, it still has a limited context length. We identify a connection between the failure of NoPE's generalization and the distraction of attention distributions. We propose a parameter-efficient tuning for searching attention heads' best temperature hyper-parameters, which substantially expands NoPE's context size. Experiments on long sequence language modeling, the synthetic passkey retrieval task and real-world long context tasks show that NoPE can achieve competitive performances with state-of-the-art length generalization algorithms. The source code is publicly accessible.

源语言英语
主期刊名The 62nd Annual Meeting of the Association for Computational Linguistics
主期刊副标题Findings of the Association for Computational Linguistics, ACL 2024
编辑Lun-Wei Ku, Andre Martins, Vivek Srikumar
出版商Association for Computational Linguistics (ACL)
页14024-14040
页数17
ISBN(电子版)9798891760998
DOI
出版状态已出版 - 2024
活动Findings of the 62nd Annual Meeting of the Association for Computational Linguistics, ACL 2024 - Hybrid, Bangkok, 泰国
期限: 11 8月 2024 → 16 8月 2024

丛书

姓名Proceedings of the Annual Meeting of the Association for Computational Linguistics
ISSN(印刷版)0736-587X

会议

会议Findings of the 62nd Annual Meeting of the Association for Computational Linguistics, ACL 2024
国家/地区泰国
市Hybrid, Bangkok
时期11/08/24 → 16/08/24

学术指纹

探究 'Length Generalization of Causal Transformers without Position Encoding' 的科研主题。它们共同构成独一无二的学术指纹。

引用此