The Functionalizer: Lossless Functional Decomposition for Subword Tokenization

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.

Link
https://huggingface.co/papers/2609.15991
Found by
Hugging Face Papers
Authors
Connor Makowski, Willem Guter
Categories
evaluation, dataset
Published
2026-09-18
Last seen by the radar
2026-09-23
Upvotes
9
Radar score
29.25 / 100 (how it is scored)
Why it scored so
Matched: corpora$, corpus, evaluat; Primary record: Hugging Face Papers
Related links
https://arxiv.org/abs/2609.15991
https://github.com/connor-makowski/functionalizer
Is this record right? If you made this work and something here is wrong or missing, tell us what to fix.

More records found by Hugging Face Papers