• Home
  • Search
  • Extending Context Window of Large Language Models from a Distributional Perspective
  • Cite Icon1
  • https://doi.org/10.18653/v1/2024.emnlp-main.414Copy DOI Icon

Extending Context Window of Large Language Models from a Distributional Perspective

  • Abstract
  • Literature Map
  • Citations
  • Similar Papers
Abstract

Scaling the rotary position embedding (RoPE) has become a common method for extending the context window of RoPE-based large language models (LLMs).However, existing scaling methods often rely on empirical approaches and lack a profound understanding of the internal distribution within RoPE, resulting in suboptimal performance in extending the context window length.In this paper, we propose to optimize the context window extending task from the view of rotary angle distribution.Specifically, we first estimate the distribution of the rotary angles within the model and analyze the extent to which length extension perturbs this distribution.Then, we present a novel extension strategy that minimizes the disturbance between rotary angle distributions to maintain consistency with the pre-training phase, enhancing the model's capability to generalize to longer sequences.Experimental results compared to the strong baseline methods demonstrate that our approach reduces by up to 72% of the distributional disturbance when extending LLaMA2's context window to 8k, and reduces by up to 32% when extending to 16k.On the LongBench-E benchmark, our method achieves an average improvement of up to 4.33% over existing state-of-the-art methods.Furthermore, our method maintains the model's performance on the Hugging Face Open LLM benchmark after context window extension, with only an average performance fluctuation ranging from -0.12 to +0.22.Our code is available at https: //github.com/1180301012/DPRoPE.

Similar Papers
  • Conference Article
  • Citations6

Fewer is More: Boosting Math Reasoning with Reinforced Context Pruning

  • Jan 01, 2024
  • Xijie Huang +4
  • Research Article

Research and selection of Large Learning Models for automation of ABAP-code migration

  • Sep 24, 2025
  • Management of Development of Complex Systems
  • Oleg Pozdnyakov +1
  • Preprint Article

What is your Context Window?

  • Dec 10, 2023
  • Front Matter
  • Amir Aryani
  • Research Article

Evaluating gpt-4 for zero-shot classification of bleeding and clotting events: Can large language models serve as second reviewers?

  • Nov 03, 2025
  • Blood
  • Samantha Rizzo +5
  • Book Chapter

SUBLLM: A Novel Efficient Architecture with Token Sequence Subsampling for LLM

  • Oct 16, 2024
  • Frontiers in artificial intelligence and applications
  • Quandong Wang +8
  • PDF
  • Research Article
  • Citations2

Out of Context! Managing the Limitations of Context Windows in ChatGPT-4o Text Analyses

  • Mar 07, 2025
  • Journal of Data Mining & Digital Humanities
  • Erkki Mervaala +1
  • Research Article
  • Citations18

Large language models: Tools for new environmental decision-making.

  • Feb 01, 2025
  • Journal of environmental management
  • Qiyang Nie +1
  • Research Article

Unlocking the Potential of Large Language Models in Education: Factors Influencing Adoption by Instructional Designers and Academics

  • Jan 01, 2026
  • Journal of Information Technology Education: Research
  • Katherine L Fourie +2
  • Supplementary Content

Large language and vision-language models for robot: safety challenges, mitigation strategies and future directions

  • Jul 29, 2025
  • Industrial Robot: the international journal of robotics research and application
  • Xiangyu Hu +1
  • PDF
  • Conference Article
  • Citations2

Test Large Language Models on Driving Theory Knowledge and Skills for Connected Autonomous Vehicles

  • Nov 18, 2024
  • Zuoyin Tang +5
  • Preprint Article

Is a Large Context Window all you need? Exploring Time To First Token (TTFT)-context size tradeoff for Autoregressive LLMs

  • Jun 02, 2025
  • Anuran Roy +2
  • Research Article
  • Citations7

Legal aspects of generative artificial intelligence and large language models in examinations and theses.

  • Jan 01, 2024
  • GMS journal for medical education
  • Maren März +3
  • Research Article

Enhancing Clinical Workflow Efficiency in Flow Cytometry Reporting with LLMs.

  • Mar 24, 2026
  • Journal of clinical immunology
  • Thomas E Tavolara +4
  • Research Article
  • Citations39

Enhancing the Readability of Online Patient Education Materials Using Large Language Models: Cross-Sectional Study

  • Jun 04, 2025
  • Journal of Medical Internet Research
  • John Will +5
  • Research Article
  • Citations5

Leveraging large language models for automated depression screening

  • Jul 28, 2025
  • PLOS Digital Health
  • Bazen Gashaw Teferra +14
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.