paper-with-me

Papers

Lossless Token Sequence Compression via Meta-Tokens

2025-05-30 · John Harvill, Ziwei Fan, Hao Wang, Yizhou Sun, Hao Ding, Luke Huan, Anoop Deoras

Existing work on prompt compression for Large Language Models (LLM) focuses on lossy methods that try to maximize the retention of semantic information that is relevant to downstream tasks while significantly reducing the sequence length. In this paper, we introduce a task-agnostic lossless compression technique similar to LZ77 that makes it possible to reduce the input token sequence length on average by 27\% and 18\% for the two evaluation tasks explored here. Given that we use transformer-based LLMs, this equates to 47\% and 33\% less encoding computation, respectively, due to the quadratic nature of attention. The token sequence transformation is trivial to reverse and highlights that no semantic information is lost in the process. We evaluate our proposed approach on two tasks that require strict preservation of semantics/syntax and demonstrate that existing lossy compression methods perform poorly in this setting. We find that our lossless compression technique produces only a small gap in performance compared to using the uncompressed input and posit that larger models and an expanded computing budget would likely erase the gap entirely.

📄 PDF Abstract BibTeX arXiv:2506.00307

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Lossless Prompt Compression via Dictionary-Encoding and In-Context Learning: Enabling Cost-Effective LLM Analysis of Repetitive Data

2026-03-19 · Andresa Rodrigues de Campos, David Lee, Imry Kissos, Piyush Paritosh arxiv

In-context learning has established itself as an important learning paradigm for Large Language Models (LLMs). In this paper, we demonstrate that LLMs can learn encoding keys in-context and perform analysis directly on e…

From Token to Token Pair: Efficient Prompt Compression for Large Language Models in Clinical Prediction

2026-05-12 · Mingcheng Zhu, Zhiyao Luo, Yu Liu, Tingting Zhu arxiv

By processing electronic health records (EHRs) as natural language sequences, large language models (LLMs) have shown potential in clinical prediction tasks such as mortality prediction and phenotyping. However, longitud…

Self-Supervised LearningMortality Prediction

LUMI: Tokenizer-Agnostic LLM-Based Lossless Image Compression

2026-07-09 · Chris Xing Tian, Chengkai Wu, Ziyu Wang, Rongqun Lin 외 arxiv

Large language model (LLM)-based lossless image compression methods typically represent pixel data through the native text interface of a pretrained model, converting pixel values into token sequences that the LLM proces…

Image Compression

Near-Lossless Model Compression Enables Longer Context Inference in DNA Large Language Models

2025-11-18 · Rui Zhu, Xiaopu Zhou, Haixu Tang, Stephen W. Scherer 외 arxiv

Trained on massive cross-species DNA corpora, DNA large language models (LLMs) learn the fundamental "grammar" and evolutionary patterns of genomic sequences. This makes them powerful priors for DNA sequence modeling, pa…

Model Compression

LLMZip: Lossless Text Compression using Large Language Models

2023-06-06 · Chandra Shekhara Kaushik Valmeekam, Krishna Narayanan, Dileep Kalathil, Jean-Francois Chamberland 외

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 smal…

Language ModelingLanguage ModellingLarge Language ModelText Compression