Turnip: Tokenizers Are Secretly Context Compressors for Transformers
Add the PDF
@openreview[bot] · 2026-11-22 21:38 UTC · 3de1928a1a02 ·
versions/v_5rkpfzjb.json modified
+++ b/versions/v_5rkpfzjb.json@@ -10,8 +10,12 @@}],"title": "Turnip: Tokenizers Are Secretly Context Compressors for Transformers","url": "https://openreview.net/forum?id=tlYzFXxkji",+ "pdf": {+ "source": "https://openreview.net/forum?id=tlYzFXxkji",+ "license": "CC-BY-4.0"+ },"evidence": ["https://openreview.net/forum?id=tlYzFXxkji"],"abstract": "Transformer language models process text as sequences of tokens, and their self-attention cost grows quadratically with\nthe number of tokens. As a result, tokenization largely determines the computational cost as contexts grow. However, the\nde facto standard tokenizer byte-pair encoding (BPE) produces token sequences longer than the information content of\ntext requires. In this paper, we formulate tokenization as a constrained predictive-compression problem. Under this\nformulation, we show that the compression of BPE is limited by two constraints: its tokens are lossless and\ncontext-independent. Guided by this theory, we introduce Turnip (**t**he ne**ur**al toke**ni**zer **p**ipeline), a\nneural tokenizer that removes both constraints and provides direct control over the compression ratio. Turnip is\nmodel-agnostic and can be used with existing pretrained language models. On different models and benchmarks, Turnip\nnearly doubles the compression ratio of BPE while matching its generation quality."
versions/v_5rkpfzjb.pdf added
+++ b/versions/v_5rkpfzjb.pdf@@ -0,0 +1,3 @@+version https://git-lfs.github.com/spec/v1+oid sha256:e1b169a45df0bf3f412ac66864bb85b5939e9113ea3f2ac6dd17a87f5b3f7e0c+size 1394233