Saved in:
Bibliographic Details
Main Authors: Lu, Yi, Yan, Jing Nathan, Yang, Songlin, Chiu, Justin T., Ren, Siyu, Yuan, Fei, Zhao, Wenting, Wu, Zhiyong, Rush, Alexander M.
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2409.12181
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914955106713600
author Lu, Yi
Yan, Jing Nathan
Yang, Songlin
Chiu, Justin T.
Ren, Siyu
Yuan, Fei
Zhao, Wenting
Wu, Zhiyong
Rush, Alexander M.
author_facet Lu, Yi
Yan, Jing Nathan
Yang, Songlin
Chiu, Justin T.
Ren, Siyu
Yuan, Fei
Zhao, Wenting
Wu, Zhiyong
Rush, Alexander M.
contents Broad textual understanding and in-context learning require language models that utilize full document contexts. Due to the implementation challenges associated with directly training long-context models, many methods have been proposed for extending models to handle long contexts. However, owing to differences in data and model classes, it has been challenging to compare these approaches, leading to uncertainty as to how to evaluate long-context performance and whether it differs from standard evaluation. We implement a controlled protocol for extension methods with a standardized evaluation, utilizing consistent base models and extension data. Our study yields several insights into long-context behavior. First, we reaffirm the critical role of perplexity as a general-purpose performance indicator even in longer-context tasks. Second, we find that current approximate attention methods systematically underperform across long-context tasks. Finally, we confirm that exact fine-tuning based methods are generally effective within the range of their extension, whereas extrapolation remains challenging. All codebases, models, and checkpoints will be made available open-source, promoting transparency and facilitating further research in this critical area of AI development.
format Preprint
id arxiv_https___arxiv_org_abs_2409_12181
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle A Controlled Study on Long Context Extension and Generalization in LLMs
Lu, Yi
Yan, Jing Nathan
Yang, Songlin
Chiu, Justin T.
Ren, Siyu
Yuan, Fei
Zhao, Wenting
Wu, Zhiyong
Rush, Alexander M.
Computation and Language
Machine Learning
Broad textual understanding and in-context learning require language models that utilize full document contexts. Due to the implementation challenges associated with directly training long-context models, many methods have been proposed for extending models to handle long contexts. However, owing to differences in data and model classes, it has been challenging to compare these approaches, leading to uncertainty as to how to evaluate long-context performance and whether it differs from standard evaluation. We implement a controlled protocol for extension methods with a standardized evaluation, utilizing consistent base models and extension data. Our study yields several insights into long-context behavior. First, we reaffirm the critical role of perplexity as a general-purpose performance indicator even in longer-context tasks. Second, we find that current approximate attention methods systematically underperform across long-context tasks. Finally, we confirm that exact fine-tuning based methods are generally effective within the range of their extension, whereas extrapolation remains challenging. All codebases, models, and checkpoints will be made available open-source, promoting transparency and facilitating further research in this critical area of AI development.
title A Controlled Study on Long Context Extension and Generalization in LLMs
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2409.12181