Extending Context Window of Large Language Models via Semantic Compression
Abstract
Transformer-based Large Language Models (LLMs) often impose limitations on the length of the text input to ensure the generation of fluent and relevant responses. This constraint restricts their applicability in scenarios involving long texts. We propose a novel semantic compression method that enables generalization to texts that are 6-8 times longer, without incurring significant computational costs or requiring fine-tuning. Our proposed framework draws inspiration from source coding in information theory and employs a pre-trained model to reduce the semantic redundancy of long inputs before passing them to the LLMs for downstream tasks. Experimental results demonstrate that our method effectively extends the context window of LLMs across a range of tasks including question answering, summarization, few-shot learning, and information retrieval. Furthermore, the proposed semantic compression method exhibits consistent fluency in text generation while reducing the associated computational overhead.
Community
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- Zebra: Extending Context Window with Layerwise Grouped Local-Global Attention (2023)
- CLEX: Continuous Length Extrapolation for Large Language Models (2023)
- TCRA-LLM: Token Compression Retrieval Augmented Large Language Model for Inference Cost Reduction (2023)
- SCCA: Shifted Cross Chunk Attention for long contextual semantic expansion (2023)
- Attention Alignment and Flexible Positional Embeddings Improve Transformer Length Extrapolation (2023)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper