mlsanityData to 7 Oct 2026

Flexibly Scaling Large Language Models Contexts Through Extensible Tokenization

arXiv 2401.07793 ↗First posted 15 Jan 2024cs.CLcited by 6

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

  1. 2023RECOMP: Improving Retrieval-Augmented LMs with Compression and Selective Augmentation6 Oct

Other references · 26

  1. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  4. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  5. 2020Longformer: The Long-Document Transformercited by 3,362
  6. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  7. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
  8. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  9. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  10. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  11. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  12. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
14 more
  1. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
  2. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
  3. 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
  4. 2023Learning to Compress Prompts with Gist Tokenscited by 379
  5. 2023Adapting Language Models to Compress Contextscited by 350
  6. 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 279
  7. 2023LongLoRA: Efficient Fine-tuning of Long-Context Large Language Modelscited by 243
  8. 2022Memorizing Transformerscited by 219
  9. 2023Landmark Attention: Random-Access Infinite Context Length for Transformerscited by 206
  10. 2023LongNet: Scaling Transformers to 1,000,000,000 Tokenscited by 201
  11. 2023In-context Autoencoder for Context Compression in a Large Language Modelcited by 190
  12. 2020Funnel-Transformer: Filtering out Sequential Redundancy for Efficient Language Processingcited by 161
  13. 2023Focused Transformer: Contrastive Training for Context Scalingcited by 133
  14. 2023Scaling Transformer to 1M tokens and beyond with RMTcited by 97

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 3; 2026: 1.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024BGE Landmark Embedding: A Chunking-Free Embedding Method For Retrieval Augmented Long-Context Large Language Models
  2. 2026Stacked from One: Multi-Scale Self-Injection for Context Window Extension
  3. 2025From 128K to 4M: Efficient Training of Ultra-Long Context Large Language Models
  4. 2024Enhancing and Accelerating Large Language Models via Instruction-Aware Contextual Compression
  5. 2024How Can We Effectively Expand the Vocabulary of LLMs with 0.01GB of Target Language Text?
  6. 2024Beyond the Limits: A Survey of Techniques to Extend the Context Length in Large Language Models
  7. 2024In-Context Former: Lightning-fast Compressing Context for Large Language Model
  8. 2023ToolkenGPT: Augmenting Frozen Language Models with Massive Tools via Tool Embeddings