The Functionalizer: Lossless Functional Decomposition for Subword Tokenization
Abstract
Standard subword tokenizers either treat every orthographic variation of a word (such as hello, Hello, HELLO, and Héllo) as unrelated vocabulary entries, which fragments the embedding space, or discard this variation through lossy normalization. We present the Functionalizer, a lossless pre-tokenizer framework that factors orthographic and structural variations into a compositional opcode/operand prefix stream before tokenization: a canonical base token (operand) prefixed by parametric transformation operators (opcodes) encoded in the Unicode Private Use Area. We introduce operators covering casing (CAPITALIZE), diacritics (13 dedicated opcodes), and character repetition (REPEAT, MULTIREPEAT), which are fully reversible. Across natural language and code corpora, the Functionalizer enables complete corpus coverage with significantly smaller vocabularies under unconstrained exhaustion conditions, reducing actual vocabulary slot requirements by up to 19.7%. Downstream evaluations on 98M-parameter GPT-2 models show that the Functionalizer improves Python code syntax validity (9.12% vs. 7.70%) while reducing duplicate n-gram repetition in natural language prose. These findings demonstrate that functional decomposition can be an effective mechanism for vocabulary-efficient, structurally aware language modeling, and motivate further validation at production scale.
Community
Excited to release Functionalizer, a new framework for preprocessing LLM training data! Early models are already showing >18% performance improvements and we're looking forward to see what people do with it.
The ability to use less vocab slots is pretty exciting for me. Can't wait to get feedback from the community.
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- A Grapheme-Aware Indic Tokenizer for Tamil: Large-Scale Training and Intrinsic Evaluation (2026)
- To Each Language Its Tokenizer: Modular Tokenizers for Efficient Multilingual LLMs (2026)
- Pruned BPE: Post-training Visibility Pruning and Token Reallocation for Byte Pair Encoding (2026)
- BHARATI: Morphology-Aware Tokenizers for Classical Indian Languages with Subword Fertility Analysis (2026)
- TokEval: A Tokenizer Evaluation Suite (2026)
- Beyond Atomic Tokens: Factorizing Syllables for Language Model Pretraining (2026)
- Beyond Initialization Loss: A Systematic Study of Token Embedding Initialization Strategies for LLM Vocabulary Extension (2026)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend
Get this paper in your agent:
hf papers read 2609.15991 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 10
mrkwanzaa/functionalizer-100M-fineweb-edu-seed2
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper