arXiv AI

Accelerating Constrained Decoding with Token Space Compression

The paper introduces CFGzip, an offline token space compression technique that reduces the search space for context-free grammar (CFG) decoding engines. By compressing the token vocabulary, CFGzip achieves up to 75‑fold latency reductions during batched inference, bringing overhead on the hardest grammars down to roughly 1.2–2×. This enables scalable constrained decoding for complex CFGs that were previously impractical due to high computational costs.

Hugging Face Trending Papers
Jun 8

End-to-End Context Compression at Scale

Long-context language model inference is bottlenecked by memory, as the KV cache grows with context length. Recent techniques to compress the KV cache fall short: they either degrade model quality substantially or require considerable time and compute to compress a single long prompt.

arXiv AI
Jun 9

End-to-End Context Compression at Scale

arXiv:2606. 09659v1 Announce Type: cross Abstract: Long-context language model inference is bottlenecked by memory, as the KV cache grows with context length.

By Ang Li, Sean McLeish, Haozhe Chen, Nimit Kalra, Zaiqian Chen, Artem Gazizov, Venkata Anoop Suhas Kumar Morisetty, Bhavya Kailkhura, Harshitha Menon, Zhuang Liu, Brian R. Bartoldson, Tom Goldstein, Sanae Lotfi, Micah Goldblum, Pavel Izmailov
arXiv Computation and Language
Nov 4

Theoretical Analysis of Byte-Pair Encoding

arXiv:2411.08671v2 Announce Type: replace-cross Abstract: Byte-Pair Encoding (BPE) is a widely used method for subword tokenization, with origins in grammar-based text compression. It is employed in...

By L\'aszl\'o Kozma, Johannes Voderholzer
arXiv AI
Sep 17

Objective vs. Search: Decomposing What Makes a Good Tokeniser

The paper introduces two new tokenisation algorithms—BottomUpLL and TopDownComp—to systematically explore the 2x2 design space defined by optimisation objective (compression vs. log‑likelihood) and search procedure (bottom‑up merging vs. top‑down pruning). Experiments across model sizes, vocabularies, and domains show that the search procedure, rather than the objective, consistently yields lower bits‑per‑byte, while no clear pattern emerges on the BLiMP benchmark. These findings clarify how tokeniser design choices influence language‑model performance and provide guidance for constructing tokenisers more principledly.

By Ahmetcan Yavuz, Clara Meister, Tiago Pimentel
arXiv Computation and Language
Nov 5

Accelerating Long-Context Decoding in Large-Scale Hybrid LLMs Without Retraining

The paper proposes a method to speed up decoding in large hybrid language models by applying combined sparse attention to the remaining full‑attention layers, without retraining or changing weights. Each layer attends to a sliding window of recent tokens, a pinned prefix, and a limited set of the most relevant tokens, with window size and budget tuned per layer via a multi‑objective search. Experiments on six hybrid models ranging from 4 B to 397 B parameters show that the approach preserves accuracy on 21 long‑context datasets while accelerating decoding of 64k/256k tokens by up to 2.22× on Qwen3.5‑4B, 2.23× on Qwen3.5‑122B‑A10B, and 2.06× on Ornith‑1.0‑397B.

By Jo\~ao Eduardo Batista, Emil Vatai, Mohamed Wahib