Abstract
Effectively training language models on long inputs poses many technical challenges. As a cost consideration, languages models are pretrained on a fixed sequence length before being adapted to longer sequences. We explore various methods for adapting models to longer inputs by training on segmented sequences and an interpolation-based method for extending absolute positional embeddings. We develop a training procedure to extend the input context size of pretrained models with no architectural changes and no additional memory costs than training on the original input lengths. By sub-sampling segments from long inputs while maintaining their original position the model is able to learn new positional interactions. Our method benefits both models trained with absolute positional embeddings, by extending their input contexts, as well as popular relative positional embedding methods showing a reduced perplexity on sequences longer than they were trained on. We demonstrate our method can extend input contexts by a factor of 4× while improving perplexity.
| Original language | English (US) |
|---|---|
| Title of host publication | Findings of the Association for Computational Linguistics |
| Subtitle of host publication | NAACL 2024 - Findings |
| Editors | Kevin Duh, Helena Gomez, Steven Bethard |
| Publisher | Association for Computational Linguistics (ACL) |
| Pages | 3040-3052 |
| Number of pages | 13 |
| ISBN (Electronic) | 9798891761193 |
| DOIs | |
| State | Published - 2024 |
| Event | 2024 Findings of the Association for Computational Linguistics: NAACL 2024 - Hybrid, Mexico City, Mexico Duration: Jun 16 2024 → Jun 21 2024 |
Publication series
| Name | Findings of the Association for Computational Linguistics: NAACL 2024 - Findings |
|---|
Conference
| Conference | 2024 Findings of the Association for Computational Linguistics: NAACL 2024 |
|---|---|
| Country/Territory | Mexico |
| City | Hybrid, Mexico City |
| Period | 6/16/24 → 6/21/24 |
Bibliographical note
Publisher Copyright:© 2024 Association for Computational Linguistics.
Fingerprint
Dive into the research topics of 'Extending Input Contexts of Language Models through Training on Segmented Sequences'. Together they form a unique fingerprint.Cite this
- APA
- Standard
- Harvard
- Vancouver
- Author
- BIBTEX
- RIS