Conference paper · 2025 · Open access
How to Train Long-Context Language Models (Effectively)
Proceedings of the conference - Association for Computational Linguistics. Meeting, 7376–7399 · Published 1 January 2025 · DOI 10.18653/v1/2025.acl-long.366
In brief
“How to Train Long-Context Language Models (Effectively)” is a 2025 conference paper by Tianyu Gao and 3 co-authors, published in Proceedings of the conference - Association for Computational Linguistics. Meeting. OpenAlex counts 215 citations as of 25 November 2026, which puts it in the top 6% of works published in 2025 by citations. It is open access under a CC BY licence: the full text is free to read at Proceedings of the conference - Association for Computational Linguistics. Meeting.
- Citations
- 215
- Most cited in
- 2026 (121)
- Field-weighted impact
- 32.99
- References
- 99
- Authors
- 4
Abstract
We study continued training and supervised fine-tuning (SFT) of a language model (LM) to make effective use of long-context information. We first establish a reliable evaluation protocol to guide model development—instead of perplexity or simple needle-in-a-haystack (NIAH) tests, we use a broad set of long-context downstream tasks, and we evaluate models after SFT as this better reveals long-context abilities. Supported by our robust evaluations, we run thorough experiments to decide the data mix for continued pre-training, the instruction tuning dataset, and many other design choices such as position extrapolation. We find that (1) code repositories and books are excellent sources of long data, but it is crucial to combine them with high-quality short-context data; (2) training with a sequence length beyond the evaluation length boosts long-context performance; (3) for SFT, using only short instruction datasets yields strong performance on long-context tasks. Our final model, ProLong-8B, which is initialized from Llama-3 and trained on 40B tokens, demonstrates state-of-the-art long-context performance among similarly sized models at a length of 128K. ProLong outperforms Llama-3.1-8B-Instruct on the majority of long-context tasks despite using only 5% as many tokens during long-context training. Additionally, ProLong can effectively process up to 512K tokens, one of the longest context windows of publicly available LMs.
Cite this paper
Formatted from the catalogue record. Check names, capitals and page numbers against the paper before you submit.
APA 7
Gao, T., Wettig, A., Yen, H. H., & Chen, D. (2025). How to Train Long-Context Language Models (Effectively). Proceedings of the conference - Association for Computational Linguistics. Meeting, 7376–7399. https://doi.org/10.18653/v1/2025.acl-long.366
MLA 9
Gao, Tianyu, et al. “How to Train Long-Context Language Models (Effectively).” Proceedings of the conference - Association for Computational Linguistics. Meeting, 2025, pp. 7376–7399. https://doi.org/10.18653/v1/2025.acl-long.366.
Chicago
Gao, Tianyu, Alexander Wettig, Howard H Yen, and Danqi Chen. 2025. “How to Train Long-Context Language Models (Effectively).” Proceedings of the conference - Association for Computational Linguistics. Meeting: 7376–7399. https://doi.org/10.18653/v1/2025.acl-long.366.
Harvard
Gao, T. et al. (2025) ‘How to Train Long-Context Language Models (Effectively)’, Proceedings of the conference - Association for Computational Linguistics. Meeting, pp. 7376–7399. doi:10.18653/v1/2025.acl-long.366.
IEEE
T. Gao, A. Wettig, H. H. Yen, and D. Chen, “How to Train Long-Context Language Models (Effectively),” Proceedings of the conference - Association for Computational Linguistics. Meeting, pp. 7376–7399, 2025, doi: 10.18653/v1/2025.acl-long.366.
BibTeX
@inproceedings{gao2025train,
title = {{How to Train Long-Context Language Models (Effectively)}},
author = {Gao, Tianyu and Wettig, Alexander and Yen, Howard H and Chen, Danqi},
booktitle = {Proceedings of the conference - Association for Computational Linguistics. Meeting},
year = {2025},
pages = {7376--7399},
doi = {10.18653/v1/2025.acl-long.366},
url = {https://doi.org/10.18653/v1/2025.acl-long.366}
}
Download for a reference manager: BibTeX (.bib) · RIS for Zotero, Mendeley and EndNote (.ris)
Citations by year
| Year | Citations | Share of the best year |
|---|---|---|
| 2024 | 4 | |
| 2025 | 90 | |
| 2026 | 121 |
Its field-weighted citation impact is 32.99: it has been cited 32.99 times as often as the average work of the same field, type and year (1.00 is the world average).
Topic and keywords
Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
- long-context language models
- continual pre-training
- supervised fine-tuning
- instruction tuning
- software repositories
- books
- sequence length
- Llama 3
Work with this paper
Most-cited papers in Computer Science
- ImageNet classification with deep convolutional neural networksAlex Krizhevsky, Ilya Sutskever, Geoffrey E. Hinton · Communications of the ACM · 2017 · 114,726 citations
- Long Short-Term MemorySepp Hochreiter, Jürgen Schmidhuber · Neural Computation · 1997 · 109,097 citations
- A Mathematical Theory of CommunicationClaude E. Shannon · Bell System Technical Journal · 1948 · 91,736 citations
- Deep learningYann LeCun, Yoshua Bengio, Geoffrey E. Hinton · Nature · 2015 · 90,226 citations
- Faster R-CNN: Towards Real-Time Object Detection with Region Proposal NetworksShaoqing Ren, Kaiming He, Ross Girshick and 1 more · IEEE Transactions on Pattern Analysis and Machine Intelligence · 2016 · 74,143 citations
Questions about this paper
How do I cite this paper in APA style?
Gao, T., Wettig, A., Yen, H. H., & Chen, D. (2025). How to Train Long-Context Language Models (Effectively). Proceedings of the conference - Association for Computational Linguistics. Meeting, 7376–7399. https://doi.org/10.18653/v1/2025.acl-long.366
How many times has this paper been cited?
215 times, according to OpenAlex on 25 November 2026. Google Scholar and Scopus count different sets of sources, so their numbers differ.
Is this paper free to read?
Yes. It is open access at Proceedings of the conference - Association for Computational Linguistics. Meeting: sign in and open the PDF from this page.
Who wrote this paper?
Tianyu Gao, Alexander Wettig, Howard H Yen, Danqi Chen.
What is the DOI of this paper?
10.18653/v1/2025.acl-long.366, permanently at https://doi.org/10.18653/v1/2025.acl-long.366. Sign in and open it from this page.
Bibliographic data from OpenAlex (CC0), last checked 25 November 2026. ResearchGuru does not host this paper; once you are signed in, the links open it at the publisher or the repository that does.