Flexibly Scaling Large Language Models Contexts Through Extensible Tokenization
On the map: Retrieval-augmented generation → Generation and context integration
Abstract (arXiv)
Large language models (LLMs) are in need of sufficient contexts to handle many critical applications, such as retrieval augmented generation and few-shot learning. However, due to the constrained window size, the LLMs can only access to the information within a limited context. Although the size of context window can be extended by fine-tuning, it will result in a substantial cost in both training and inference stage. In this paper, we present Extensible Tokenization as an alternative method which realizes the flexible scaling of LLMs' context. Extensible Tokenization stands as a midware in between of the tokenized context and the LLM, which transforms the raw token embeddings into the extensible embeddings. Such embeddings provide a more compact representation for the long context, on top of which the LLM is able to perceive more information with the same context window. Extensible Tokenization is also featured by its flexibility: the scaling factor can be flexibly determined within a feasible scope, leading to the extension of an arbitrary context length at the inference time. Besides, Extensible Tokenization is introduced as a drop-in component, which can be seamlessly plugged into not only the LLM itself and but also its fine-tuned derivatives, bringing in the extended contextual information while fully preserving the LLM's existing capabilities. We perform comprehensive experiments on long-context language modeling and understanding tasks, which verify Extensible Tokenization as an effective, efficient, flexible, and compatible method to extend LLM's context. Our model and source code will be made publicly available.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Placed in Generation and context integration, one of 15 directions in Retrieval-augmented generation. Builds on 27 of its 32 references that are in the map. First posted on arXiv 15 Jan 2024.
Builds on
27 of 32 references.
Closest ancestors · 1
Same direction, newest first
Other references · 26
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
14 more
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
- 2023Learning to Compress Prompts with Gist Tokenscited by 379
- 2023Adapting Language Models to Compress Contextscited by 350
- 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 279
- 2023LongLoRA: Efficient Fine-tuning of Long-Context Large Language Modelscited by 243
- 2022Memorizing Transformerscited by 219
- 2023Landmark Attention: Random-Access Infinite Context Length for Transformerscited by 206
- 2023LongNet: Scaling Transformers to 1,000,000,000 Tokenscited by 201
- 2023In-context Autoencoder for Context Compression in a Large Language Modelcited by 190
- 2020Funnel-Transformer: Filtering out Sequential Redundancy for Efficient Language Processingcited by 161
- 2023Focused Transformer: Contrastive Training for Context Scalingcited by 133
- 2023Scaling Transformer to 1M tokens and beyond with RMTcited by 97
Built on by
Citing papers per year: 2024: 2; 2025: 3; 2026: 1.
6 papers.
- 2024BPE Gets Picky: Efficient Vocabulary Refinement During Tokenizer Trainingcited by 30
- 2025A Survey of Token Compression for Efficient Multimodal Large Language Modelscited by 22
- 2024Towards LifeSpan Cognitive Systemscited by 13
- 2025Saliency-driven Dynamic Token Pruning for Large Language Modelscited by 5
- 2025Learning to Compress: Unlocking the Potential of Large Language Models for Text Representationcited by 3
- 2026ReconSpan: Reconstruction-Guided Adaptive Latent Tokenizationcited by 0
- 2026ReconSpan: Reconstruction-Guided Adaptive Latent Tokenization13 Aug 2026
- 2025Learning to Compress: Unlocking the Potential of Large Language Models for Text Representation21 Nov 2025
- 2025A Survey of Token Compression for Efficient Multimodal Large Language Models27 Jul 2025
- 2025Saliency-driven Dynamic Token Pruning for Large Language Models6 Apr 2025
- 2024Towards LifeSpan Cognitive Systems20 Sep 2024
- 2024BPE Gets Picky: Efficient Vocabulary Refinement During Tokenizer Training6 Sep 2024
Similar, not cited
Close in wording, no citation either way
- 2024BGE Landmark Embedding: A Chunking-Free Embedding Method For Retrieval Augmented Long-Context Large Language Models
- 2026Stacked from One: Multi-Scale Self-Injection for Context Window Extension
- 2025From 128K to 4M: Efficient Training of Ultra-Long Context Large Language Models
- 2024Enhancing and Accelerating Large Language Models via Instruction-Aware Contextual Compression
- 2024How Can We Effectively Expand the Vocabulary of LLMs with 0.01GB of Target Language Text?
- 2024Beyond the Limits: A Survey of Techniques to Extend the Context Length in Large Language Models
- 2024In-Context Former: Lightning-fast Compressing Context for Large Language Model
- 2023ToolkenGPT: Augmenting Frozen Language Models with Massive Tools via Tool Embeddings