The Invocation Bottleneck in LLM-Based Lossless Compression: What Can Be Removed and What Must Be Traded
Abstract
Large language models (LLMs) compress text far better than classical compressors, but LLM-based compressors are slow, particularly during decompression. We argue that their decoding time has two fundamentally different sources. Execution redundancy, such as per-token host transfers, CPU-side coding, and token-by-token encoding, is work that the coded output does not require and can be removed without changing a single output bit. Sequential dependency, one model call per decoded token, is inherent to lossless decoding and cannot be removed by better execution, only traded for more calls or for more bits. We remove execution redundancy with a GPU-resident pipeline whose block-parallel encoding is made lossless in half precision by batch-invariant kernels, speeding up arithmetic coding by up to 5.8x in encoding and 3.0x in decoding without changing its compression rate. We then study the two ways of trading sequential dependency, speculative dual-model coding (SDMC) and multi-token single-model coding (MSMC), characterize the compression cost of predicting several tokens from a shared prefix, and identify the workloads in which fewer model calls are worth that cost.
Create a lesson
Metadata
- Categories
- cs.IT, cs.DB, math.IT
- Comments
- 14 pages, 7 figures, 4 tables. Code: https://github.com/Angie-Yan/LLM-based-Data-Compression
Related papers
An Alphabet-Size Bound for the Information Bottleneck Function
Shared title terminologycs.ITChristoph Hirche, Andreas Winter
Practical Semantic Communication for General-Purpose Networks: Compression of High-Dimensional Embeddings Under Quantization
Shared title terminologycs.ITLeonardo Roque, Louis-Adrien Dufrène, Quentin Lampin et al.
Third-Order Asymptotics for Fixed-Length Lossy Compression of Discrete Memoryless Sources
Shared title terminologycs.ITVincent Y. F. Tan
Compression of Sources with Memory and Private Random Access
Shared title terminologycs.ITVenkat Chandar, Aslan Tchamkerten, Shashank Vatedka
Dynamics Aware Past-Future Information Bottleneck
Shared title terminologycs.ITWooyoung Chung, Stas Tiomkin
Lossless Source Coding with Marginal Distribution Constraint
Shared title terminologycs.ITCheuk Ting Li, Jun Chen, Shahab Asoodeh