Skip to main navigation Skip to search Skip to main content

Length Extrapolation of Transformers: A Survey from the Perspective of Positional Encoding

  • Liang Zhao
  • , Xiachong Feng
  • , Xiaocheng Feng*
  • , Weihong Zhong
  • , Dongliang Xu
  • , Qing Yang
  • , Hongtao Liu
  • , Bing Qin
  • , Ting Liu
  • *Corresponding author for this work
  • Harbin Institute of Technology
  • The University of Hong Kong
  • Peng Cheng Laboratory
  • Du Xiaoman Financial

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Built upon the Transformer, large language models (LLMs) have captured worldwide attention due to their remarkable abilities.Nevertheless, all Transformer-based models including LLMs suffer from a preset length limit and can hardly generalize from short training sequences to longer inference ones, namely, they cannot perform length extrapolation to handle long sequences, which severely hinders their application in scenarios demanding long input sequences such as legal or scientific documents.Thus, numerous methods have emerged to enhance the length extrapolation of Transformers.Despite the great research efforts, a systematic survey is still lacking.To fill this gap, we delve into these advances in a unified notation from the perspective of positional encoding (PE), as it has been considered the primary factor on length extrapolation.Specifically, we begin with extrapolatable PEs that have dominated this research field.Then, we dive into extrapolation methods based on them, covering position interpolation and randomized position methods.Finally, several challenges and future directions in this area are highlighted.Through this survey, we aim to enable the reader to gain a deep understanding of existing methods and provide stimuli for future research.

Original languageEnglish
Title of host publicationEMNLP 2024 - 2024 Conference on Empirical Methods in Natural Language Processing, Findings of EMNLP 2024
EditorsYaser Al-Onaizan, Mohit Bansal, Yun-Nung Chen
PublisherAssociation for Computational Linguistics (ACL)
Pages9959-9977
Number of pages19
ISBN (Electronic)9798891761681
DOIs
StatePublished - 2024
Event2024 Findings of the Association for Computational Linguistics, EMNLP 2024 - Hybrid, Miami, United States
Duration: 12 Nov 202416 Nov 2024

Publication series

NameEMNLP 2024 - 2024 Conference on Empirical Methods in Natural Language Processing, Findings of EMNLP 2024

Conference

Conference2024 Findings of the Association for Computational Linguistics, EMNLP 2024
Country/TerritoryUnited States
CityHybrid, Miami
Period12/11/2416/11/24

Fingerprint

Dive into the research topics of 'Length Extrapolation of Transformers: A Survey from the Perspective of Positional Encoding'. Together they form a unique fingerprint.

Cite this