Exploring Context Window of Large Language Models via Decomposed Positional Vectors
Not on the map. Why?
Abstract (arXiv)
Transformer-based large language models (LLMs) typically have a limited context window, resulting in significant performance degradation when processing text beyond the length of the context window. Extensive studies have been proposed to extend the context window and achieve length extrapolation of LLMs, but there is still a lack of in-depth interpretation of these approaches. In this study, we explore the positional information within and beyond the context window for deciphering the underlying mechanism of LLMs. By using a mean-based decomposition method, we disentangle positional vectors from hidden states of LLMs and analyze their formation and effect on attention. Furthermore, when texts exceed the context window, we analyze the change of positional vectors in two settings, i.e., direct extrapolation and context window extension. Based on our findings, we design two training-free context window extension methods, positional vector replacement and attention window extension. Experimental results show that our methods can effectively extend the context window length.
Key facts. Cited by 18 papers in the map (data through 7 Oct 2026). Builds on 29 of its 33 references that are in the map. First posted on arXiv 28 May 2024.
Builds on
29 of 33 references.
References · 29
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2023Qwen Technical Reportcited by 3,273
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2023A Survey of Large Language Modelscited by 2,537
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
17 more
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
- 2024Yi: Open Foundation Models by 01.AIcited by 706
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 319
- 2022Transformer Language Models without Positional Encodings Still Learn Positional Informationcited by 148
- 2024LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuningcited by 133
- 2022KERPLE: Kernelized Relative Positional Embedding for Length Extrapolationcited by 84
- 2023BAMBOO: A Comprehensive Benchmark for Evaluating Long Text Modeling Capacities of Large Language Modelscited by 53
- 2024Length Generalization of Causal Transformers without Position Encodingcited by 46
- 2022Dissecting Transformer Length Extrapolation via the Lens of Receptive Field Analysiscited by 39
- 2024The What, Why, and How of Context Length Extension Techniques in Large Language Models -- A Detailed Surveycited by 32
- 2024REAR: A Relevance-Aware Retrieval-Augmented Framework for Open-Domain Question Answeringcited by 28
- 2023Latent Positional Information is in the Self-Attention Variance of Transformer Language Models Without Positional Embeddingscited by 23
- 2023Uncovering hidden geometry in Transformers via disentangling position and contextcited by 15
Built on by
Citing papers per year: 2024: 4; 2025: 9; 2026: 5.
18 papers.
Sort:
By area:
- 2024Round and Round We Go! What makes Rotary Positional Encodings useful?cited by 111
- 2024Fourier Position Embedding: Enhancing Attention's Periodic Extension for Length Generalizationcited by 37
- 2025Extending the Context of Pretrained LLMs by Dropping Their Positional Embeddingscited by 23
- 2025LongReD: Mitigating Short-Text Degradation of Long-Context Large Language Models via Restoration Distillationcited by 14
- 2025ADMIT: Few-shot Knowledge Poisoning Attacks on RAG-based Fact Checkingcited by 9
- 2025Failure Modes in LLM Systems: A System-Level Taxonomy for Reliable AI Applicationscited by 9
- 2024From Text to Life: On the Reciprocal Relationship between Artificial Life and Large Language Modelscited by 8
- 2025PANDAS: Improving Many-shot Jailbreaking via Positive Affirmation, Negative Demonstration, and Adaptive Samplingcited by 6
- 2025LogiDebrief: A Signal-Temporal Logic based Automated Debriefing Approach with Large Language Models Integrationcited by 5
- 2024Disentangling Latent Shifts of In-Context Learning with Weak Supervisioncited by 3
- 2025Evaluating Large Language Models in Vulnerability Detection Under Variable Context Windowscited by 2
- 2025Context-aware Biases for Length Extrapolationcited by 2
6 more
- 2025Real-time Spatial Retrieval Augmented Generation for Urban Environmentscited by 1
- 2026Empowering 9-1-1 Calltaking Training with Generative AI: Experiences and Lessons Learnedcited by 1
- 2026Compressing Long Context into Answer-Aligned Memory Embeddings for LLM Inferencecited by 1
- 2026GPT-5 vs Other LLMs in Long Short-Context Performancecited by 0
- 2026Can LLMs Reason Like Automated Theorem Provers for Rust Verification? VCoT-Bench: Evaluating via Verification Chain of Thoughtcited by 0
- 2026ZetaGPT: A Reference Implementation of Positional--Encoding--Free State--Space--Attention Language Modelscited by 0
- 2026Compressing Long Context into Answer-Aligned Memory Embeddings for LLM Inference22 Sep 2026
- 2026ZetaGPT: A Reference Implementation of Positional--Encoding--Free State--Space--Attention Language Models10 Aug 2026
- 2026Can LLMs Reason Like Automated Theorem Provers for Rust Verification? VCoT-Bench: Evaluating via Verification Chain of Thought18 Mar 2026
- 2026GPT-5 vs Other LLMs in Long Short-Context Performance15 Feb 2026
- 2026Empowering 9-1-1 Calltaking Training with Generative AI: Experiences and Lessons Learned30 Jan 2026
- 2025Extending the Context of Pretrained LLMs by Dropping Their Positional Embeddings13 Dec 2025
- 2025Failure Modes in LLM Systems: A System-Level Taxonomy for Reliable AI Applications25 Nov 2025
- 2025ADMIT: Few-shot Knowledge Poisoning Attacks on RAG-based Fact Checking11 Oct 2025
- 2025LogiDebrief: A Signal-Temporal Logic based Automated Debriefing Approach with Large Language Models Integration6 May 2025
- 2025Real-time Spatial Retrieval Augmented Generation for Urban Environments4 May 2025
- 2025Context-aware Biases for Length Extrapolation11 Mar 2025
- 2025LongReD: Mitigating Short-Text Degradation of Long-Context Large Language Models via Restoration Distillation11 Feb 2025
6 more
- 2025PANDAS: Improving Many-shot Jailbreaking via Positive Affirmation, Negative Demonstration, and Adaptive Sampling4 Feb 2025
- 2025Evaluating Large Language Models in Vulnerability Detection Under Variable Context Windows30 Jan 2025
- 2024Fourier Position Embedding: Enhancing Attention's Periodic Extension for Length Generalization23 Dec 2024
- 2024Round and Round We Go! What makes Rotary Positional Encodings useful?8 Oct 2024
- 2024Disentangling Latent Shifts of In-Context Learning with Weak Supervision2 Oct 2024
- 2024From Text to Life: On the Reciprocal Relationship between Artificial Life and Large Language Models14 Jun 2024
- 2024Round and Round We Go! What makes Rotary Positional Encodings useful?cited by 111
- 2024Fourier Position Embedding: Enhancing Attention's Periodic Extension for Length Generalizationcited by 37
- 2025Extending the Context of Pretrained LLMs by Dropping Their Positional Embeddingscited by 23
- 2025LongReD: Mitigating Short-Text Degradation of Long-Context Large Language Models via Restoration Distillationcited by 14
- 2025Failure Modes in LLM Systems: A System-Level Taxonomy for Reliable AI Applicationscited by 9
- 2024From Text to Life: On the Reciprocal Relationship between Artificial Life and Large Language Modelscited by 8
- 2025LogiDebrief: A Signal-Temporal Logic based Automated Debriefing Approach with Large Language Models Integrationcited by 5
- 2024Disentangling Latent Shifts of In-Context Learning with Weak Supervisioncited by 3
- 2025Evaluating Large Language Models in Vulnerability Detection Under Variable Context Windowscited by 2
- 2025Context-aware Biases for Length Extrapolationcited by 2
- 2026Empowering 9-1-1 Calltaking Training with Generative AI: Experiences and Lessons Learnedcited by 1
- 2026GPT-5 vs Other LLMs in Long Short-Context Performancecited by 0
12 most cited of 13 All 13 (JSON)
- 2026ZetaGPT: A Reference Implementation of Positional--Encoding--Free State--Space--Attention Language Models10 Aug 2026
- 2026GPT-5 vs Other LLMs in Long Short-Context Performance15 Feb 2026
- 2026Empowering 9-1-1 Calltaking Training with Generative AI: Experiences and Lessons Learned30 Jan 2026
- 2025Extending the Context of Pretrained LLMs by Dropping Their Positional Embeddings13 Dec 2025
- 2025Failure Modes in LLM Systems: A System-Level Taxonomy for Reliable AI Applications25 Nov 2025
- 2025LogiDebrief: A Signal-Temporal Logic based Automated Debriefing Approach with Large Language Models Integration6 May 2025
- 2025Context-aware Biases for Length Extrapolation11 Mar 2025
- 2025LongReD: Mitigating Short-Text Degradation of Long-Context Large Language Models via Restoration Distillation11 Feb 2025
- 2025Evaluating Large Language Models in Vulnerability Detection Under Variable Context Windows30 Jan 2025
- 2024Fourier Position Embedding: Enhancing Attention's Periodic Extension for Length Generalization23 Dec 2024
- 2024Round and Round We Go! What makes Rotary Positional Encodings useful?8 Oct 2024
- 2024Disentangling Latent Shifts of In-Context Learning with Weak Supervision2 Oct 2024
12 newest of 13 All 13 (JSON)