paper-with-me

Papers

Flexibly Scaling Large Language Models Contexts Through Extensible Tokenization

2024-01-15 · Ninglu Shao, Shitao Xiao, Zheng Liu, Peitian Zhang

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.

📄 PDF Abstract BibTeX arXiv:2401.07793

Code (1)

flagopen/flagembedding 공식 구현 pytorch

Tasks

Few-Shot LearningLanguage ModelingLanguage ModellingRetrieval-augmented Generation

Similar Papers 제목 키워드 기반

Modular Networks: Learning to Decompose Neural Computation

2018-11-13 · NeurIPS 2018 12 · Louis Kirsch, Julius Kunze, David Barber

Scaling model capacity has been vital in the success of deep learning. For a typical network, necessary compute resources and training time grow dramatically with model size. Conditional computation is a promising way to…

DiversityLanguage ModelingLanguage Modelling

A Paradigm for Situated and Goal-Driven Language Learning

2016-10-12 · Jon Gauthier, Igor Mordatch

A distinguishing property of human intelligence is the ability to flexibly use language in order to communicate complex ideas with other humans in a variety of contexts. Research in natural language dialogue should focus…

OmniMouse: Scaling properties of multi-modal, multi-task Brain Models on 150B Neural Tokens

2026-04-20 · Konstantin F. Willeke, Polina Turishcheva, Alex Gilbert, Goirik Chakrabarty 외 arxiv

Scaling data and artificial neural networks has transformed AI, driving breakthroughs in language and vision. Whether similar principles apply to modeling brain activity remains unclear. Here we leveraged a dataset of 3.…

Scaling Instruction-Tuned LLMs to Million-Token Contexts via Hierarchical Synthetic Data Generation

2025-04-17 · Linda He, Jue Wang, Maurice Weber, Shang Zhu 외

Large Language Models (LLMs) struggle with long-context reasoning, not only due to the quadratic scaling of computational complexity with sequence length but also because of the scarcity and expense of annotating long-co…

Synthetic Data Generation

Better and Worse with Scale: How Contextual Entrainment Diverges with Model Size

2026-04-14 · Dikshant Kukreja, Kshitij Sah, Gautam Gupta, Avinash Anand 외 arxiv

Larger language models become simultaneously better and worse at handling contextual information -- better at ignoring false claims, worse at ignoring irrelevant tokens. We formalize this apparent paradox through the fir…