Learning to Retokenize: Improving Downstream Performance of Frozen Language Models
Keep the title, authors and abstract in paper.json
potentialpaper · 2026-11-23 19:47 UTC · e4b1cb772ff6 ·
.potentialpaper/metadata.json modified
+++ b/.potentialpaper/metadata.json@@ -1,19 +1,5 @@{- "layout": 5,- "identifiers": [- {- "scheme": "openreview",- "value": "vfj1rb7yk1"- }- ],- "title": "Learning to Retokenize: Improving Downstream Performance of Frozen Language Models",- "authors": [],- "abstract": "Language modelling in LLMs begins with tokenization: splitting the input string into tokens drawn from a fixed vocabulary according to predefined rules. Because the tokenizer is trained on a generic corpus before model pre-training and is not tailored to any downstream task, its tokenization strategy can be ill-suited to certain domains or tasks, hindering performance. Adapting tokenization per task could help, but retraining the tokenizer on a new corpus likely changes the vocabulary and requires model adaptation, which is costly in general and infeasible for closed-weight models. A tokenizer that reuses the original vocabulary, however, could be applied to the model seamlessly. In this work, we explore training a task-specific tokenizer that is constrained to the original vocabulary of a given pre-trained LLM. To this end, we propose the retokenizer, a sequence-to-sequence model that maps an input token sequence to a new one within the original vocabulary, while preserving the underlying string content. During training, our retokenizer learns from a task-specific reward and only requires black-box access to the language model, making the approach suitable for closed-weight models. Across arithmetic, character manipulation, and code understanding tasks, our learned retokenization improves accuracy over the default tokenization by 10\\% on average. Moreover, we show that in some settings the retokenizer uncovers intuitive task-dependent tokenization rules, such as right-to-left digit tokenization for arithmetic. These learned rules suggest that, given the right objective, effective tokenization strategies can be discovered automatically rather than designed by hand.",- "year": 2027,- "venue": "ICLR 2027 (under review)",- "source": "openreview",- "license": {- "metadata": "CC0-1.0",- "abstract": "CC0-1.0"- }+ "layout": 6,+ "kind": "paper",+ "key": "7a3a5e90-ae89-4114-be2d-798e423caa75"}
paper.json added
+++ b/paper.json@@ -0,0 +1,9 @@+{+ "title": "Learning to Retokenize: Improving Downstream Performance of Frozen Language Models",+ "authors": [],+ "abstract": "Language modelling in LLMs begins with tokenization: splitting the input string into tokens drawn from a fixed vocabulary according to predefined rules. Because the tokenizer is trained on a generic corpus before model pre-training and is not tailored to any downstream task, its tokenization strategy can be ill-suited to certain domains or tasks, hindering performance. Adapting tokenization per task could help, but retraining the tokenizer on a new corpus likely changes the vocabulary and requires model adaptation, which is costly in general and infeasible for closed-weight models. A tokenizer that reuses the original vocabulary, however, could be applied to the model seamlessly. In this work, we explore training a task-specific tokenizer that is constrained to the original vocabulary of a given pre-trained LLM. To this end, we propose the retokenizer, a sequence-to-sequence model that maps an input token sequence to a new one within the original vocabulary, while preserving the underlying string content. During training, our retokenizer learns from a task-specific reward and only requires black-box access to the language model, making the approach suitable for closed-weight models. Across arithmetic, character manipulation, and code understanding tasks, our learned retokenization improves accuracy over the default tokenization by 10\\% on average. Moreover, we show that in some settings the retokenizer uncovers intuitive task-dependent tokenization rules, such as right-to-left digit tokenization for arithmetic. These learned rules suggest that, given the right objective, effective tokenization strategies can be discovered automatically rather than designed by hand.",+ "license": {+ "metadata": "CC0-1.0",+ "abstract": "CC0-1.0"+ }+}