Morpheus: A Morphology-Aware Neural Tokenizer and Word Embedder for Turkish
About
Turkish is agglutinative: meaning is carried by morphemes, yet the subword tokenizers that drive modern language models split words by corpus statistics, fragmenting semantically loaded suffixes and -- in the case of WordPiece and rule-based analyzers -- failing to decode their output back to the original text. This paper presents \textbf{Morpheus}, a neural morpheme-boundary model for Turkish that is at once a lossless, morphology-aware tokenizer and a word-embedding producer. A differentiable Poisson-binomial dynamic program turns per-character boundary probabilities into soft morpheme memberships during training and exact segments at inference, with no string normalization, so $\mathrm{decode}(\mathrm{encode}(w)) = w$ holds by construction. Because the model is neural, the same forward pass that tokenizes also emits a structured word embedding. Among reversible tokenizers -- the only ones valid for generation -- Morpheus attains the lowest bits-per-character ($1.425$), roughly doubles the gold morphological alignment of the subword family (MorphScore macro-F1 $0.61$ vs.\ ${\sim}0.32$), and uses ${\sim}19\%$ less GPU memory than 64K-vocabulary subword tokenizers. As an embedder, frozen Morpheus vectors lead on lexical retrieval (root-family MAP $0.85$) and same-root verification (ROC-AUC $1.00$), surpassing the multilingual retriever BGE-M3 and BERTurk; on context- and inflection-dependent tasks (NER, case/number probing) the heavier contextual encoders remain ahead -- a trade-off we attribute to Morpheus's root-centric geometry. Code: https://github.com/lonewolf-rd/TurkishMorpheus; model: https://huggingface.co/lonewolflab/Morpheus-TR-50K; interactive demo: https://huggingface.co/spaces/lonewolflab/morpheus-tr-demo.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Token Purity Analysis | TR-MMLU | Token Purity83.5 | 7 | |
| Language Modeling | Turkish Language Modeling (val) | BPC1.425 | 7 | |
| Morphological Alignment | UD Turkish-Kenet | MorphScore macro-F161 | 6 | |
| Morphological Alignment | SIGMORPHON | Lemma-Prefix Rate76 | 6 | |
| Reversibility | UD Turkish-Kenet (test) | Roundtrip Accuracy100 | 4 | |
| Lexical Retrieval | Turkish Lexical Retrieval Dataset | Retrieval MAP85 | 3 | |
| Root Verification | Turkish Root Identity Dataset | Dedup ROC-AUC1 | 3 | |
| Morphological Probing | Turkish Morphological Probing Dataset | Number Probe Accuracy59 | 3 | |
| Named Entity Recognition | Turkish NER Dataset | Macro F1 (NER)48 | 3 |