mlsanityData to 14 Oct 2026

DCIS: Efficient Length Extrapolation of LLMs via Divide-and-Conquer Scaling Factor Search

arXiv 2412.18811 ↗First posted 25 Dec 2024cs.CLcited by 3

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) based on the Transformer architecture usually have their context length limited due to the high training cost. Recent advancements extend the context window by adjusting the scaling factors of RoPE and fine-tuning. However, suboptimal initialization of these factors results in increased fine-tuning costs and reduced performance at target length. To address these challenges, we propose a novel RoPE-based fine-tuning framework that diverges from conventional scaling factors search. Specifically, we present a Divide-and-Conquer Incremental Search (DCIS) algorithm that strategically determines the better scaling factors. Further fine-tuning with the identified scaling factors effectively extends the context window of LLMs. Empirical results demonstrate that our methodology not only mitigates performance decay at extended target lengths but also allows the model to fine-tune on short contexts and generalize to long contexts, thereby reducing the cost of fine-tuning. The scaling factors obtained through DCIS can even perform effectively without fine-tuning. Further analysis of the search space reveals that DCIS achieves twice the search efficiency compared to other methods. We also examine the impact of the non-strictly increasing scaling factors utilized in DCIS and evaluate the general capabilities of LLMs across various context lengths.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 23 of its 36 references that are in the map. First posted on arXiv 25 Dec 2024.

Builds on

23 of 36 references.

References · 23

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  4. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  5. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
  6. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
  7. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
  8. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  9. 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,917
  10. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,850
  11. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,417
  12. 2018Self-Attention with Relative Position Representationscited by 1,120
11 more
  1. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,103
  2. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 740
  3. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
  4. 2017Convolutional Sequence to Sequence Learningcited by 552
  5. 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 313
  6. 2023Large Language Model Alignment: A Surveycited by 243
  7. 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 232
  8. 2023Landmark Attention: Random-Access Infinite Context Length for Transformerscited by 213
  9. 2023LongNet: Scaling Transformers to 1,000,000,000 Tokenscited by 204
  10. 2023Evaluating Large Language Models: A Comprehensive Surveycited by 202
  11. 2024FuxiTranyu: A Multilingual Large Language Model Trained with Balanced Datacited by 10

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 1.

3 papers.