Exploring Context Window of Large Language Models via Decomposed Positional Vectors
Zican Dong, Junyi Li, Xin Men, Wayne Xin Zhao, Bingbing Wang, Zhen, Tian, Weipeng Chen, Ji-Rong Wen

TL;DR
This paper investigates how positional vectors influence large language models' performance beyond their context window, proposing two training-free methods to extend the context window effectively.
Contribution
It introduces a mean-based decomposition method to analyze positional vectors and develops two novel, training-free techniques for context window extension.
Findings
Positional vectors significantly impact LLM attention beyond the context window.
The proposed methods effectively extend the context window length.
Experimental results demonstrate improved performance with the new extension techniques.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
Taxonomy
TopicsNatural Language Processing Techniques · Topic Modeling
