potentialpaper

Token Folding: Shortening Language-Model Sequences by Fusing Predictable Tokens into Content Words

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 20:23 UTC · e395337c7de0 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "OY2s4NAT2Z"
- }
- ],
- "title": "Token Folding: Shortening Language-Model Sequences by Fusing Predictable Tokens into Content Words",
- "authors": [],
- "abstract": "When using a standard tokenizer, LLM sequences carry many low-entropy tokens such as\nfunction words, punctuation, capitalization, common suffixes, etc, which we call modifier tokens\nwhose identity in context is often low entropy, and that serve to modify the function of the\n”base” word in the sentence. For example, if ”the buildings” was 3 tokens, ”[the] [building]\n[s]”, the main word would be [building], while [the] and [s] are modifiers. We introduce token\nfolding: a preprocessing step that fuses such modifier tokens into an adjacent content token,\nso that a single sequence position now represents the ”base” word with its modifiers. The\nfolded modifiers are predicted by a small auxiliary head, while the full transformer capacity\nis only spent on the ”base” word prediction. We test folded and unfolded models from 71M\nto 1B parameters against compute-matched no-fold twins. Folding reduces sequence length by\n14.2% for a small but statistically resolved cost: +0.0064 bits per character at 356M, with\na 95% interval of [+0.0056, +0.0073] over three seeds. The shorter sequence requires 14.2%\nfewer autoregressive forward passes, 14.2% less KV cache per unit of text, and 26.4% fewer\npairwise attention interactions. At 16K context, this translates to 24.6% higher measured prefill\nthroughput, or 17.4% after charging our current unoptimised prompt-folding implementation,\nwith peak memory at 0.87×. The quality cost remains nearly unchanged from the compute-\noptimal training budget to 2.6× that budget and decreases across our 163M to 1B scale sweep.\nPredictable surface-form tokens can therefore be moved out of the main autoregressive sequence\nat a small quality cost, reducing both sequential and attention work at inference.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "93754d8c-a5e9-47ac-aacd-588407b5c3f0"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "Token Folding: Shortening Language-Model Sequences by Fusing Predictable Tokens into Content Words",
+ "authors": [],
+ "abstract": "When using a standard tokenizer, LLM sequences carry many low-entropy tokens such as\nfunction words, punctuation, capitalization, common suffixes, etc, which we call modifier tokens\nwhose identity in context is often low entropy, and that serve to modify the function of the\n”base” word in the sentence. For example, if ”the buildings” was 3 tokens, ”[the] [building]\n[s]”, the main word would be [building], while [the] and [s] are modifiers. We introduce token\nfolding: a preprocessing step that fuses such modifier tokens into an adjacent content token,\nso that a single sequence position now represents the ”base” word with its modifiers. The\nfolded modifiers are predicted by a small auxiliary head, while the full transformer capacity\nis only spent on the ”base” word prediction. We test folded and unfolded models from 71M\nto 1B parameters against compute-matched no-fold twins. Folding reduces sequence length by\n14.2% for a small but statistically resolved cost: +0.0064 bits per character at 356M, with\na 95% interval of [+0.0056, +0.0073] over three seeds. The shorter sequence requires 14.2%\nfewer autoregressive forward passes, 14.2% less KV cache per unit of text, and 26.4% fewer\npairwise attention interactions. At 16K context, this translates to 24.6% higher measured prefill\nthroughput, or 17.4% after charging our current unoptimised prompt-folding implementation,\nwith peak memory at 0.87×. The quality cost remains nearly unchanged from the compute-\noptimal training budget to 2.6× that budget and decreases across our 163M to 1B scale sweep.\nPredictable surface-form tokens can therefore be moved out of the main autoregressive sequence\nat a small quality cost, reducing both sequential and attention work at inference.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}