Retokenization reveals a gap between semantics and behaviror
Keep the title, authors and abstract in paper.json
potentialpaper · 2026-11-23 20:29 UTC · 34f4550060e5 ·
.potentialpaper/metadata.json modified
+++ b/.potentialpaper/metadata.json@@ -1,19 +1,5 @@{- "layout": 5,- "identifiers": [- {- "scheme": "openreview",- "value": "gINwr4UNcl"- }- ],- "title": "Retokenization reveals a gap between semantics and behaviror",- "authors": [],- "abstract": "Language models are trained under a deterministic canonical tokenization, yet every byte string admits exponentially many non-canonical token sequences that decode to it. Although such sequences never occur during training, models exhibit partial invariance to them, and in some settings, such as character-level word games, non-canonical inputs even improve accuracy. This invariance is nevertheless fragile: byte-identical prompts can induce divergent behavior, and adversarial tokenizations were found to circumvent safety alignment. We give a mechanistic account of this fragility and introduce a consistency-training\nobjective that enforces agreement across retokenizations of the prompt while keeping the output space canonically tokenized. The resulting models are more robust to adversarial tokenization and exhibit reduced residual-stream sensitivity to segmentation differences. We further show that retokenization cannot serve as a substitute for prompt diversity: although retokenizations of a prompt may share no common tokens, training on them fails to reproduce the generalization gains of a comparable increase in the number of distinct byte strings. Generalization thus appears to be governed by the diversity of latent representations rather than of surface token sequences.",- "year": 2027,- "venue": "ICLR 2027 (under review)",- "source": "openreview",- "license": {- "metadata": "CC0-1.0",- "abstract": "CC0-1.0"- }+ "layout": 6,+ "kind": "paper",+ "key": "7719e856-6f86-426f-89d6-e8ed5fd7a462"}
paper.json added
+++ b/paper.json@@ -0,0 +1,9 @@+{+ "title": "Retokenization reveals a gap between semantics and behaviror",+ "authors": [],+ "abstract": "Language models are trained under a deterministic canonical tokenization, yet every byte string admits exponentially many non-canonical token sequences that decode to it. Although such sequences never occur during training, models exhibit partial invariance to them, and in some settings, such as character-level word games, non-canonical inputs even improve accuracy. This invariance is nevertheless fragile: byte-identical prompts can induce divergent behavior, and adversarial tokenizations were found to circumvent safety alignment. We give a mechanistic account of this fragility and introduce a consistency-training\nobjective that enforces agreement across retokenizations of the prompt while keeping the output space canonically tokenized. The resulting models are more robust to adversarial tokenization and exhibit reduced residual-stream sensitivity to segmentation differences. We further show that retokenization cannot serve as a substitute for prompt diversity: although retokenizations of a prompt may share no common tokens, training on them fails to reproduce the generalization gains of a comparable increase in the number of distinct byte strings. Generalization thus appears to be governed by the diversity of latent representations rather than of surface token sequences.",+ "license": {+ "metadata": "CC0-1.0",+ "abstract": "CC0-1.0"+ }+}