CLITDec 15, 2023

Extending Context Window of Large Language Models via Semantic Compression

Tsinghua
arXiv:2312.09571v149 citationsh-index: 9ACL
Originality Incremental advance
AI Analysis

This addresses a key bottleneck for users of LLMs in scenarios involving long texts, such as question answering and summarization, though it appears incremental as it builds on existing compression ideas.

The paper tackles the problem of limited context window length in Transformer-based Large Language Models (LLMs) by proposing a semantic compression method that enables generalization to texts 6-8 times longer without significant computational costs or fine-tuning.

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.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes