AI summary · arXiv: 2404.03626v1 · cs.CL
Training LLMs over Neurally Compressed Text
The essentials
- The paper explores training large language models (LLMs) using highly compressed text.
- Authors investigate benefits of training LLMs on neurally compressed text, including improved efficiency in training and serving processes and enhanced handling of long text spans.
- One major challenge is that strong compression can hinder effective learning from the data.
- Authors introduce Equal-Info Windows, a novel compression technique that segments text into blocks with uniform bit-length compression.
- Results show successful learning over neurally compressed text and improvements in performance compared to traditional subword tokenizers as scale increases.
- Comparative evaluations against byte-level baselines reveal that Equal-Info Windows outperforms them significantly on perplexity and inference speed benchmarks.
- While it may have slightly worse perplexity compared to subword tokenizers for models trained with equivalent parameters, it offers the advantage of shorter sequence lengths, leading to fewer autoregressive generation steps and decreased latency during model inference.
- The paper includes an extensive analysis of factors contributing to learnability and provides practical recommendations for enhancing the performance of high-compression tokenizers.
Key points written by AI: they may contain errors, check them against the paper.
A question about this paper?
The AI assistant reads the full text and shows the passage of the paper behind each answer.
Ask questions about this paper to our AI assistant
How to chat with this paper? Illustrated guide
You can also chat with multiple papers at once here.
Keep this conversation — a free account saves your questions and answers, your collections of papers and your alerts.
Continue with Google Create a free accountTools for this paper
Advanced tools Premium
For researchers who follow a field closely: citation alerts, journal-club slides, version comparison and Zotero export. Discover Premium
Among the 31 papers around this one, the name that comes back most: Sai-Bo Geng (3 papers)
3 more people sign several of them. The full map adds their institutions and approaches, from the papers of the last years.
Papers around this one
See them on a mapRanked by how close their title and abstract are to this paper’s. Select some to read them together.
Closest papers
-
Aggressive Post-Training Compression on Extremely Large Language ModelsZi-Ning Zhang, Yao Chen, Bing-Sheng He et al. · 2024 · arXiv.org · preprint, not peer reviewed · Not summarized yet
Abstract
The increasing size and complexity of Large Language Models (LLMs) pose challenges for their deployment on personal computers and mobile devices. Aggressive post-training model compression is necessary to reduce the models' size, but it often results in significant accuracy loss. To address this challenge, we propose a novel network pruning technology that utilizes over 0.7 sparsity and less than 8 bits of quantization. Our approach enables the compression of prevailing LLMs within a couple of hours while maintaining a relatively small accuracy loss. In experimental evaluations, our method demonstrates effectiveness and potential for practical deployment. By making LLMs available on domestic…
-
Learning to Compress: Unlocking the Potential of Large Language Models for Text RepresentationYeqin Zhang, Yizheng Zhao, Chen Hu et al. · 2025 · AAAI Conference on Artificial Intelligence · cited 3 times · Not summarized yet
Abstract
Text representation plays a critical role in tasks like clustering, retrieval, and other downstream applications. With the emergence of large language models (LLMs), there is increasing interest in harnessing their capabilities for this purpose. However, most of the LLMs are inherently causal and optimized for next-token prediction, making them suboptimal for producing holistic representations. To address this, recent studies introduced pretext tasks to adapt LLMs for text representation. Most of these tasks, however, rely on token-level prediction objectives, such as the masked next-token prediction (MNTP) used in LLM2Vec. In this work, we explore the untapped potential of context compressi…
-
FineZip : Pushing the Limits of Large Language Models for Practical Lossless Text CompressionFazal Mittu, Yihuan Bu, Akshat Gupta et al. · 2024 · arXiv.org · preprint, not peer reviewed · cited 23 times · Not summarized yet
Abstract
While the language modeling objective has been shown to be deeply connected with compression, it is surprising that modern LLMs are not employed in practical text compression systems. In this paper, we provide an in-depth analysis of neural network and transformer-based compression techniques to answer this question. We compare traditional text compression systems with neural network and LLM-based text compression methods. Although LLM-based systems significantly outperform conventional compression methods, they are highly impractical. Specifically, LLMZip, a recent text compression system using Llama3-8B requires 9.5 days to compress just 10 MB of text, although with huge improvements in co…
-
ARC-Encoder: learning compressed text representations for large language modelsHippolyte Pilchen, Edouard Grave, Patrick Pérez · 2025 · Trans. Mach. Learn. Res. · cited 4 times · Not summarized yet
Abstract
Recent techniques such as retrieval-augmented generation or chain-of-thought reasoning have led to longer contexts and increased inference costs. Context compression techniques can reduce these costs, but the most effective approaches require fine-tuning the target model or even modifying its architecture. This can degrade its general abilities when not used for this specific purpose. Here we explore an alternative approach: an encoder that compresses the context into continuous representations which replace token embeddings in decoder LLMs. First, we perform a systematic study of training strategies and architecture choices for the encoder. Our findings led to the design of an Adaptable tex…
-
Large Language Model as Token Compressor and DecompressorWen-Bing Li, Zi-Kai Song, Jie-Lei Zhang et al. · 2026 · arXiv.org · preprint, not peer reviewed · cited 6 times · Not summarized yet
Abstract
In this paper, we study whether an off-the-shelf LLM can be adapted into a discrete, variable-length token compressor and decompressor for long-context processing. To this end, we design a self-expressive autoencoding framework that fine-tunes a pretrained LLM with lightweight LoRA adapters to map long texts into compact sequences of learned latent codes, termed Z-tokens, and to decode them back into natural language or task outputs. The resulting representation is content-adaptive: less predictable or information-dense segments can receive more Z-tokens, while redundant regions can be represented more compactly through a budget-aware length regularizer. Our method is evaluated on long-conte…
-
Sentence-Anchored Gist Compression for Long-Context LLMsDmitrii Tarasov, E. Goncharova, Kuznetsov Andrey · 2025 · arXiv.org · preprint, not peer reviewed · cited 2 times · Not summarized yet
Abstract
This work investigates context compression for Large Language Models (LLMs) using learned compression tokens to reduce the memory and computational demands of processing long sequences. We demonstrate that pre-trained LLMs can be fine-tuned to compress their context by factors of 2x to 8x without significant performance degradation, as evaluated on both short-context and long-context benchmarks. Furthermore, in experiments on a 3-billion-parameter LLaMA model, our method achieves results on par with alternative compression techniques while attaining higher compression ratios.
-
Language Modeling Is CompressionGrégoire Delétang, Anian Ruoss, Paul-Ambroise Duquenne et al. · 2023 · Machine Learning · cited 316 times · AI summary available
Abstract
It has long been established that predictive models can be transformed into lossless compressors and vice versa. Incidentally, in recent years, the machine learning community has focused on training increasingly large and powerful self-supervised (language) models. Since these large language models exhibit impressive predictive capabilities, they are well-positioned to be strong compressors. In this work, we advocate for viewing the prediction problem through the lens of compression and evaluate the compression capabilities of large (foundation) models. We show that large language models are powerful general-purpose predictors and that the compression viewpoint provides novel insights into s…
-
LLMZip: Lossless Text Compression using Large Language ModelsChandra Shekhara Kaushik Valmeekam, K. Narayanan, D. Kalathil et al. · 2023 · arXiv.org · preprint, not peer reviewed · cited 65 times · Not summarized yet
Abstract
We provide new estimates of an asymptotic upper bound on the entropy of English using the large language model LLaMA-7B as a predictor for the next token given a window of past tokens. This estimate is significantly smaller than currently available estimates in \cite{cover1978convergent}, \cite{lutati2023focus}. A natural byproduct is an algorithm for lossless compression of English text which combines the prediction from the large language model with a lossless compression scheme. Preliminary results from limited experiments suggest that our scheme outperforms state-of-the-art text compression schemes such as BSC, ZPAQ, and paq8h.
Prior work it builds on
-
Unpacking Tokenization: Evaluating Text Compression and its Correlation with Model PerformanceOmer Goldman, Avi Caciularu, Matan Eyal et al. · 2024 · Annual Meeting of the Association for Computational Linguistics · cited 81 times · Not summarized yet
Abstract
Despite it being the cornerstone of BPE, the most common tokenization algorithm, the importance of compression in the tokenization process is still unclear. In this paper, we argue for the theoretical importance of compression, that can be viewed as 0-gram language modeling where equal probability is assigned to all tokens. We also demonstrate the empirical importance of compression for downstream success of pre-trained language models. We control the compression ability of several BPE tokenizers by varying the amount of documents available during their training: from 1 million documents to a character-based tokenizer equivalent to no training data at all. We then pre-train English language …
-
Less is More: Parameter-Free Text Classification with GzipZhi-Ying Jiang, Matthew Y. R. Yang, Mikhail Tsirlin et al. · 2022 · arXiv.org · preprint, not peer reviewed · cited 12 times · Not summarized yet
Abstract
Deep neural networks (DNNs) are often used for text classification tasks as they usually achieve high levels of accuracy. However, DNNs can be computationally intensive with billions of parameters and large amounts of labeled data, which can make them expensive to use, to optimize and to transfer to out-of-distribution (OOD) cases in practice. In this paper, we propose a non-parametric alternative to DNNs that's easy, light-weight and universal in text classification: a combination of a simple compressor like gzip with a $k$-nearest-neighbor classifier. Without any training, pre-training or fine-tuning, our method achieves results that are competitive with non-pretrained deep learning method…
-
ByT5: Towards a Token-Free Future with Pre-trained Byte-to-Byte ModelsLin-Ting Xue, Aditya Barua, Noah Constant et al. · 2021 · Transactions of the Association for Computational Linguistics · cited 821 times · Not summarized yet
Abstract
Most widely used pre-trained language models operate on sequences of tokens corresponding to word or subword units. By comparison, token-free models that operate directly on raw text (bytes or characters) have many benefits: They can process text in any language out of the box, they are more robust to noise, and they minimize technical debt by removing complex and error-prone text preprocessing pipelines. Because byte or character sequences are longer than token sequences, past work on token-free models has often introduced new model architectures designed to amortize the cost of operating directly on raw text. In this paper, we show that a standard Transformer architecture can be used with …
-
Bridging the Gap for Tokenizer-Free Language ModelsDokook Choe, Rami Al-Rfou, Mandy Guo et al. · 2019 · arXiv.org · preprint, not peer reviewed · cited 28 times · Not summarized yet
Abstract
Purely character-based language models (LMs) have been lagging in quality on large scale datasets, and current state-of-the-art LMs rely on word tokenization. It has been assumed that injecting the prior knowledge of a tokenizer into the model is essential to achieving competitive results. In this paper, we show that contrary to this conventional wisdom, tokenizer-free LMs with sufficient capacity can achieve competitive performance on a large scale dataset. We train a vanilla transformer network with 40 self-attention layers on the One Billion Word (lm1b) benchmark and achieve a new state of the art for tokenizer-free LMs, pushing these models to be on par with their word-based counterparts…
-
Exploring the Limits of Transfer Learning with a Unified Text-to-Text TransformerColin A. Raffel, Noam Shazeer, Adam Roberts et al. · 2019 · Journal of machine learning research · cited 28,232 times · AI summary available
Abstract
Transfer learning, where a model is first pre-trained on a data-rich task before being fine-tuned on a downstream task, has emerged as a powerful technique in natural language processing (NLP). The effectiveness of transfer learning has given rise to a diversity of approaches, methodology, and practice. In this paper, we explore the landscape of transfer learning techniques for NLP by introducing a unified framework that converts every language problem into a text-to-text format. Our systematic study compares pre-training objectives, architectures, unlabeled datasets, transfer approaches, and other factors on dozens of language understanding tasks. By combining the insights from our explorat…
Papers that cite it
-
Proxy Compression for Language ModelingLin Zheng, Xinyu Li, Qi Liu et al. · 2026 · arXiv.org · preprint, not peer reviewed · cited 3 times · Not summarized yet
Abstract
Modern language models are trained almost exclusively on token sequences produced by a fixed tokenizer, an external lossless compressor often over UTF-8 byte sequences, thereby coupling the model to that compressor. This work introduces proxy compression, an alternative training scheme that preserves the efficiency benefits of compressed inputs while providing an end-to-end, raw-byte interface at inference time. During training, a single language model is jointly trained on raw byte sequences and compressed views generated by external compressors; through the process, the model learns to internally align compressed sequences and raw bytes. This alignment enables strong transfer between the t…
-
LCIRC: A Recurrent Compression Approach for Efficient Long-form Context and Query Dependent Modeling in LLMsSumin An, Junyoung Sung, Wonpyo Park et al. · 2025 · North American Chapter of the Association for Computational Linguistics · cited 2 times · Not summarized yet
Abstract
While large language models (LLMs) excel in generating coherent and contextually rich outputs, their capacity to efficiently handle long-form contexts is limited by fixed-length position embeddings. Additionally, the computational cost of processing long sequences increases quadratically, making it challenging to extend context length. To address these challenges, we propose Long-form Context Injection with Recurrent Compression (LCIRC), a method that enables the efficient processing long-form sequences beyond the model's length limit through recurrent compression without retraining the entire model. We further introduce query dependent context modeling, which selectively compresses query-re…
-
zip2zip: Inference-Time Adaptive Tokenization via Online CompressionSai-Bo Geng, Nathan Ranchin, Yunzhen Yao et al. · 2025 · Neural Information Processing Systems · cited 8 times · Not summarized yet
Abstract
Tokenization efficiency plays a critical role in the performance and cost of large language models (LLMs), yet most models rely on static tokenizers optimized on general-purpose corpora. These tokenizers'fixed vocabularies often fail to adapt to domain- or language-specific inputs, leading to longer token sequences and higher computational costs. We introduce zip2zip, a novel method for achieving context-adaptive tokenization in LLMs at inference time. Leveraging an online data compression algorithm (Lempel-Ziv-Welch), zip2zip dynamically expands its active vocabulary at inference time by continuously replacing fragmented token sequences with more compact hypertokens, which it can immediatel…
-
Compression via Pre-trained Transformers: A Study on Byte-Level Multimodal DataDavid Heurtel-Depeiges, Anian Ruoss, J. Veness et al. · 2024 · International Conference on Machine Learning · cited 17 times · Not summarized yet
Abstract
Foundation models are strong data compressors, but when accounting for their parameter size, their compression ratios are inferior to standard compression algorithms. Naively reducing the parameter count does not necessarily help as it deteriorates predictions and, accordingly, compression. We conduct a large-scale empirical study to find a sweet spot where pre-trained vanilla transformers can achieve competitive compression ratios. To this end, we train models on 165GB of raw byte sequences of either text, image, or audio data (and all possible combinations of the three) and then compress 1GB of out-of-distribution (OOD) data from each modality. We find that relatively small models (million…
-
When Worse is Better: Navigating the compression-generation tradeoff in visual tokenizationV. Ramanujan, Kushal Tirumala, Armen Aghajanyan et al. · 2024 · arXiv.org · preprint, not peer reviewed · cited 17 times · Not summarized yet
Abstract
Current image generation methods are based on a two-stage training approach. In stage 1, an auto-encoder is trained to compress an image into a latent space; in stage 2, a generative model is trained to learn a distribution over that latent space. This reveals a fundamental trade-off, do we compress more aggressively to make the latent distribution easier for the stage 2 model to learn even if it makes reconstruction worse? We study this problem in the context of discrete, auto-regressive image generation. Through the lens of scaling laws, we show that smaller stage 2 models can benefit from more compressed stage 1 latents even if reconstruction performance worsens, demonstrating that genera…
Go further
How are these papers found?
We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.
Updated on 3 November 2026.
The previous summary was created more than a year ago and can be re-run (if necessary) by clicking on the Run button below.
Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.