potentialpaper

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

Anonymous authors

ICLR 2027

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. We fold function words and suffixes into "content" words, shorterning the sequence of tokens thus speeding up both prefill and decoding.

Abstract. When using a standard tokenizer, LLM sequences carry many low-entropy tokens such as function words, punctuation, capitalization, common suffixes, etc, which we call modifier tokens whose identity in context is often low entropy, and that serve to modify the function of the ”base” word in the sentence. For example, if ”the buildings” was 3 tokens, ”[the] [building] [s]”, the main word would be [building], while [the] and [s] are modifiers. We introduce token folding: a preprocessing step that fuses such modifier tokens into an adjacent content token, so that a single sequence position now represents the ”base” word with its modifiers. The folded modifiers are predicted by a small auxiliary head, while the full transformer capacity is only spent on the ”base” word prediction. We test folded and unfolded models from 71M to 1B parameters against compute-matched no-fold twins. Folding reduces sequence length by 14.2% for a small but statistically resolved cost: +0.0064 bits per character at 356M, with a 95% interval of [+0.0056, +0.0073] over three seeds. The shorter sequence requires 14.2% fewer autoregressive forward passes, 14.2% less KV cache per unit of text, and 26.4% fewer pairwise attention interactions. At 16K context, this translates to 24.6% higher measured prefill throughput, or 17.4% after charging our current unoptimised prompt-folding implementation, with peak memory at 0.87×. The quality cost remains nearly unchanged from the compute- optimal training budget to 2.6× that budget and decreases across our 163M to 1B scale sweep. Predictable surface-form tokens can therefore be moved out of the main autoregressive sequence at a small quality cost, reducing both sequential and attention work at inference.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
19 Sep 2026ICLR 2027submittedICLR 2027Desk rejectedreviews ↓[1]PDF[1]
Missing a version?

ICLR 2027

Desk rejected · OpenReview

Updated 24 Nov 2026, 16:58 UTC.

The venue hasn't published any reviews yet.

Missing a submission?

Loading the discussion…