Paper deep dive
Morpheus: A Morphology-Aware Neural Tokenizer and Word Embedder for Turkish
Tolga Ćakar
Intelligence
Status: succeeded | Model: Gemma-4-26B-A4B | Prompt: intel-v1 | Confidence: 96%
Last extracted: 6/21/2026, 2:57:46 AM
Summary
Morpheus is a neural, morphology-aware tokenizer and word-embedding model designed specifically for the agglutinative Turkish language. It utilizes a differentiable Poisson-binomial dynamic program to ensure lossless, reversible segmentation (decode(encode(w)) = w), addressing the failures of standard subword tokenizers like WordPiece which often strip diacritics or lose surface fidelity. The model combines boundary supervision from Morfessor with self-supervised objectives (skip-gram, contrastive learning, and MLM) to produce both exact segments and structured 320-dimensional word embeddings. Experimental results show Morpheus achieves superior morphological alignment (MorphScore 0.61) and excels in lexical retrieval tasks compared to BERTurk and BGE-M3, while maintaining a lower memory footprint and high reversibility for generative tasks.
Entities (8)
Relation Signals (4)
Morpheus â implements â Poisson-binomial dynamic program
confidence 100% · A differentiable Poisson-binomial dynamic program turns per-character boundary probabilities into soft morpheme memberships
Morpheus â isa â Morphology-aware Tokenizer
confidence 100% · Morpheus, a neural morpheme-boundary model for Turkish that is at once a lossless, morphology-aware tokenizer and a word-embedding producer.
Morpheus â usessupervisionfrom â Morfessor
confidence 100% · Morpheus combines boundary supervision from an unsupervised analyzer (Morfessor)
Morpheus â outperforms â BERTurk
confidence 90% · 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
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract: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: this https URL model: this https URL interactive demo: this https URL.
Tags
Links
- Source: https://arxiv.org/abs/2606.18717v1
- Canonical: https://arxiv.org/abs/2606.18717v1
Trouble viewing inline? Open PDF directly â
Full Text
46,876 characters extracted from source content.
Expand or collapse full text
Morpheus: A Morphology-Aware Neural Tokenizer and Word Embedder for Turkish Ćakar, Tolga Independent Researcher lonewolf_rd@protonmail.com Abstract 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 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 decodeâ(encodeâ(w))=wdecode(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.4251.425), roughly doubles the gold morphological alignment of the subword family (MorphScore macro-F1 0.610.61 vs. âŒ0.32 0.32), and uses âŒ19% 19\% less GPU memory than 64K-vocabulary subword tokenizers. As an embedder, frozen Morpheus vectors lead on lexical retrieval (root-family MAP 0.850.85) and same-root verification (ROC-AUC 1.001.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. Morpheus: A Morphology-Aware Neural Tokenizer and Word Embedder for Turkish Ćakar, Tolga Independent Researcher lonewolf_rd@protonmail.com 1 Introduction Turkish is an agglutinative language that encodes most of its semantic content in productive chains of derivational and inflectional suffixes attached to a root; a single root can unfold into hundreds of distinct surface forms through the ordering of its morphemes (e.g. ev âhouseâ â evlerimizdekiler âthe ones in our housesâ). The unit that carries meaning in Turkish is therefore the morpheme, not the word and not a frequency-driven fragment of it. This property places two distinct demands on the machinery of modern Turkish NLPâone on tokenization and one on word representationâand, as argued below, current tools meet each of them only partially. The tokenization problem. Subword tokenizers such as BPE, WordPiece, and Unigram Sennrich et al. (2016); Kudo and Richardson (2018) segment words by corpus statistics rather than morphology, and on Turkish this produces two concrete failures. First, several widely used tokenizers are not reversible: decoding the ids back to text does not recover the original string. WordPiece strips Turkish diacritics (ç, Ä, ı, ö, Ć, ĂŒ) and the rule-based TurkishTokenizer applies canonical re-harmonization, so a non-trivial fraction of inflected words cannot be reconstructed. In a generative LLM, where every generated token id must decode to faithful text, this loss directly corrupts model output and silently degrades any task that reads the decoded string. Second, because semantically loaded suffixes are cut at arbitrary positions, words are over-fragmented: more tokens are emitted per word (higher fertility), which inflates sequence length, compute, and memory at both training and inference time. Unsupervised morphological segmenters such as Morfessor Creutz and Lagus (2007) and rule-based analyzers such as Zemberek Akın and Akın (2007) address the morphological-alignment side, but the former is not optimized for language modeling and the latter is lossy and dictionary-bound. In short, existing tokenizers each answer part of the problemâeither reversibility, or morphological alignment, or low fertilityâbut none answers all three at once. The representation problem. The same morphological richness also strains Turkish word representation. Contextual encoders such as BERTurk Schweter (2020) provide strong embeddings, but they are heavyweight (⌠110M+ parameters), tied to their own lossy subword vocabularies, and treat morphology only implicitly. A representation in which morphologically related forms (kitap, kitaplar, kitabımız) sit together by constructionârather than only after large-scale pretrainingâ remains absent. More fundamentally, tokenization and representation are currently solved by two separate systems: a tokenizer produces discrete ids that carry no meaning, and a distinct, much larger model must be trained to turn those ids into vectors. For an agglutinative language, where the boundary information needed to tokenize well and the structure needed to represent well are one and the same morphological signal, this separation is wasteful. This paper. Taken together, these gaps motivate a single Turkish model that is simultaneously a lossless, morphology-aware tokenizer and a structured word-embedding producer. This paper aims to provide exactly that, and introduces Morpheus, a neural morpheme-boundary model for Turkish. Morpheus combines boundary supervision from an unsupervised analyzer (Morfessor) with self-supervised objectives (skip-gram negative sampling, root-family contrastive learning, and masked language modeling), and segments words through a differentiable Poisson-binomial dynamic program: gradients flow over soft morpheme memberships during training, while inference recovers exact hard boundaries with no architectural switch and no string normalization. Because no normalization is applied, the emitted pieces are the surface form, so decodeâ(encodeâ(w))=wdecode(encode(w))=w holds by construction. And because the model is neural, the same forward pass that tokenizes also yields, as a by-product, a structured â320R^320 embedding per wordâmaking Morpheus a tokenizer and a word-embedding model at once. The contributions of this paper are: âą Morpheus, a neural morphology-aware tokenizer for Turkish that is lossless without inference-time normalization, via a differentiable Poisson-binomial soft segmentation that unifies training and inference. âą A demonstration that the same model is a word-embedding producer, evaluated against contextual encoders (BERTurk) and a strong multilingual retriever (BGE-M3) on root-family retrieval, lexical dedup, morphological probing, and Turkish NERâcharacterizing where a morphology-derived embedding helps and where it does not. âą A comprehensive evaluation suiteâreversibility, MorphScore, SIGMORPHON, surface fidelity, and language-modeling BPCâthat cleanly establishes the lossless-vs-lossy distinction against the subword family and existing Turkish tokenizers. 2 Related Work Subword tokenization and its limits for Turkish. BPE (Sennrich et al., 2016), WordPiece (Devlin et al., 2019), and Unigram (Kudo, 2018), implemented at scale through SentencePiece (Kudo and Richardson, 2018), are the de facto interface between text and modern language models. A growing body of work shows that this frequency-driven design is not neutral for morphologically rich languages such as Turkish. Toraman et al. (2023) compare five tokenizers at different granularities and find that a morphological-level tokenizer is competitive with the de facto ones while responding more strongly to vocabulary size, and that the ratio of vocabulary to model parameters is itself a design variable. Kaya and TantuÄ (2024) study vocabulary size for Turkish BERT models across NER, sentiment, and QA, and Altinok (2026) present a systematic evaluation of the dataâvocabularyâmorphology interplay under matched parameter budgets, together with morphology-aware diagnostics (boundary F1, lemma atomicity, over-/under-segmentation). These studies quantify the cost of frequency-driven segmentation; Morpheus instead attacks it at the source, by learning morpheme boundaries with a neural model. Morphology-aware and linguistically informed tokenizers. The unsupervised Morfessor family (Creutz and Lagus, 2002, 2007) induces morpheme-like units via a minimum-description-length objective and remains a standard segmentation baseline for agglutinative languages; we use it as the boundary teacher for Morpheus. Rule-based analyzers such as Zemberek (Akın and Akın, 2007) encode Turkish morphology explicitly but are dictionary-bound. More recent Turkish-specific tokenizers improve linguistic alignment in different ways: Bayram et al. (2025a) propose a hybrid tokenizer (TurkishTokenizer) that combines dictionary-driven root/affix segmentation, phonological normalization mapping allomorphic variants to shared identifiers, and a subword fallback, reporting strong Turkish-token and purity rates and competitive STS and TurBLiMP results; Gulgonul (2025) exploit the closed syllable inventory of Turkish for a resource-light, retrieval-oriented tokenizer. These methods raise morphological alignment, but they do so through runtime normalization (which discards surface information, e.g. mapping allomorphs to a canonical id) or through fixed dictionaries and syllable inventories. Morpheus differs on two axes: it learns boundaries neurally rather than from a lexicon, and it applies no normalization, so segmentation is surface-preserving and exactly invertibleâwhile, uniquely, the same model also yields word embeddings. Evaluation standards for Turkish tokenization. Bayram et al. (2025b) and its conference counterpart (Bayram et al., 2025c) introduce the TR-MMLU benchmark and the Turkish-token (%TR) and pure-token (%Pure) metrics, arguing that linguistic alignment of tokens correlates with downstream performance more strongly than raw token purity. We adopt the %TR/%Pure protocol for vocabulary-level comparison and complement it with metrics that prior comparisons largely omit: exact reversibility, gold morpheme F1 (MorphScore), SIGMORPHON inflection alignment, surface-string fidelity, and bits-per-character under a parameter-equalized language-model budget. Together these make explicit the lossless-versus-lossy axis that, as we show, separates tokenizers that are valid for generation from those that are not. Turkish word representations and the tokenizerâembedding gap. On the representation side, BERTurk (Schweter, 2020) provides strong contextual Turkish embeddings, and recent work adapts multilingual encoders to Turkishâe.g. Bayram et al. (2026) perform cross-lingual tokenizer surgery and offline distillation to build a Turkish sentence-embedding model, while general multilingual retrievers such as BGE-M3 (Chen et al., 2024) are competitive on Turkish out of the box. All of these treat representation as a system separate fromâand much larger thanâthe tokenizer. Morpheus instead couples the two: a single neural model both tokenizes losslessly and emits a morphology-derived embedding, and we evaluate that embedding directly against BERTurk and BGE-M3. 3 Methodology 3.1 Data and preprocessing Morpheus is trained on a large-scale monolingual Turkish corpus that combines a multi-register author corpus with the full cleaned Turkish Wikipedia (⌠10 GB of raw text), assembled to expose the model to diverse morphological constructions across four registers: EkĆisözlĂŒk (informal/colloquial, rich in spoken-language suffixation), Dergipark (academic, derivational morphology and terminology), Turkish news sites (standard journalistic), and Turkish Wikipedia (encyclopedic, broad vocabulary). The web-sourced registers were collected and cleaned with a companion scraping toolkit that documents per-source extraction, HTML/URL stripping, Unicode normalization, and deduplication; the Wikipedia portion is additionally filtered for Turkish-alphabet coverage, stopword/length thresholds, and markup, then deduplicated. All text is processed with Turkish-aware case folding (İâi\.I\!â\!i, IâıI\!â\! 1 ), with the original casing retained as a per-character side channel rather than discarded. 3.2 Caching, supervision, and splits The corpus is split 95/595/5 into train and test partitions with a fixed seed. To remove per-epoch segmentation overhead, each sentence is pre-tokenized once into a cached tensor bundle containing, per word: character ids (padded to max_word_len=32max\_word\_len=32), per-character case flags, a (max_word_lenâ1)(max\_word\_len-1) binary boundary-label vector from the Morfessor teacher, a word id against a 120120K word vocabulary, and a root id against a 3030K root vocabulary (the root being the first Morfessor segment), together with a sentence attention mask. The boundary labels are produced by Morfessor (Creutz and Lagus, 2007) and then root-corrected: for in-dictionary words, intra-root Morfessor boundaries are removed when an independent root lexicon agrees on the root span, reducing root over-segmentation. This correction is applied only to the training labels and is purely positionalâit never rewrites stringsâso Morpheus remains surface-preserving at inference. For Morpheus training the sentence cache is capped at 900900K (train) / 100100K (validation) sentences, while the word and root vocabularies are built from the full corpus; the separate 11M-line cap referred to later applies only to the downstream language-model evaluation (Section 4.6), not to Morpheus itself. 3.3 Model architecture Morpheus maps a word, given as a character sequence, to a set of morpheme boundaries and a single word embedding in one forward pass, through three stages connected by a differentiable segmentation operator. All hidden states share a working dimension of d=320d=320. Character encoder and positional morphology. Each character embedding is concatenated with a learned case-flag embedding, passed through a multi-scale convolution (kernel widths 22â66) that captures local character n-grams, and then through 33 self-attention layers, producing context-aware character vectors H=(h1,âŠ,hL)ââLĂdH=(h_1,âŠ,h_L) ^LĂ d. A defining property of Turkish is that morpheme identity is governed by position relative to the root: suffixes attach in a fixed slot order (number, then possessive, then case), so the same surface syllable plays a different role depending on how many morphemes precede it. In ev â ler â imiz â de (âin our housesâ), -ler is plural in the first post-root slot, -imiz first-person-plural possessive in the second, and -de locative in the third. The model must therefore reason about offsets between charactersâhow far a candidate boundary is from the previous oneârather than their absolute indices. For this reason both the character encoder and the boundary detector apply Rotary Position Embedding (RoPE) (Su et al., 2021) on each attention headâs subspace, injecting relative offsets directly into the attention dot-product so that a single learned pattern (e.g. âtwo characters past the previous boundaryâ) generalizes across roots of different lengths. Boundary detector. A stack of 44 RoPE self-attention layers over H, followed by an adjacent-pair scoring head, emits for each inter-character position a boundary probability pi=Ïâ(scoreâ(hi,hi+1))â[0,1]p_i\;=\;Ï\! (score(h_i,h_i+1) )â[0,1] (1) for each inter-character position i=1,âŠ,Lâ1i=1,âŠ,L-1. The vector =(p1,âŠ,pLâ1)p=(p_1,âŠ,p_L-1) is the only interface to the rest of the model: everything downstream is a differentiable function of p. Differentiable Poissonâbinomial segmentation. The central difficulty is turning soft per-position boundary probabilities into discrete morpheme segments without a non-differentiable argâĄmax /threshold that would block gradients from the semantic objectives back to the boundary detector. We resolve it with a Poissonâbinomial dynamic program that computes, in closed form, the soft assignment of each character to each segment. Let biâ0,1b_iâ\0,1\ be the latent boundary indicator at position i with PrâĄ[bi=1]=pi [b_i\!=\!1]=p_i, taken independent. Character j belongs to segment k (0-indexed) exactly when k boundaries occur before it, i.e. âi<jbi=k _i<jb_i=k. Since the pip_i differ, âi<jbi _i<jb_i follows a Poissonâbinomial distribution, whose mass is accumulated by fjâ[k]=fjâ1â[k]â(1âpjâ1)+fjâ1â[kâ1]âpjâ1,f_j[k]\;=\;f_j-1[k]\,(1-p_j-1)\;+\;f_j-1[k-1]\,p_j-1, (2) with base case f1â[0]=1f_1[0]=1 and fjâ[k]=PrâĄ[âi<jbi=k]f_j[k]= [ _i<jb_i=k]. The resulting matrix Mâ[j,k]=fjâ[k]ââLĂSM[j,k]=f_j[k] ^LĂ S (with S the maximum number of segments and âkMâ[j,k]=1 _kM[j,k]=1) is a soft segment-membership matrix: row j is a distribution over which morpheme character j belongs to. Equation (2) is differentiable in p, costs Oâ(LâS)O(LS), and has three properties exploited by design. (i) Differentiability: gradients from the word-level objectives flow through M into the boundary detector, so boundaries are shaped both by the teacher and by what produces good embeddings. (i) Soft/hard duality: as piâ0,1p_i\!â\!\0,1\ each row of M converges to one-hot, recovering exact hard segmentation; the same module yields soft memberships in training and discrete morphemes at inference, switched only by the training flag. (i) Surface preservation: M only groups charactersâit never inserts, drops, or rewrites themâso concatenating the segments reproduces the input word, which is why decodeâ(encodeâ(w))=wdecode(encode(w))=w holds by construction. Segment pooling and the word embedding. Each segment k is summarized by attention-pooling the character vectors weighted by their membership, sk=âjαjâkâhjs_k= _j _jkh_j with αjâkâMâ[j,k]âexpâĄ(aâ(hj)) _jk M[j,k] (a(h_j)) for a learned scorer aâ(â )a(·), so that within-segment characters compete while cross-segment leakage is suppressed by M. The word embedding is the mean of the valid segment vectors followed by a two-layer feed-forward network with residual LayerNorm, ew=LayerNormâ(FFNâ(1SâČââksk))ââ320e_w=LayerNorm(FFN( 1S _ks_k)) ^320. Because ewe_w comes from the same forward pass that yields the boundaries, the morpheme structure that defines the tokenization is exactly the structure pooled into the embeddingâthe architectural basis for treating Morpheus as a tokenizer and an embedder at once. 3.4 Training The total loss is a weighted sum of four terms, â=wauxââaux+wsgnsââsgns+wctrââctr+wmlmââmlm.L=w_auxL_aux+w_sgnsL_sgns+w_ctrL_ctr+w_mlmL_mlm. (3) âauxL_aux is a deep-supervised boundary BCE plus a count regularizer against the (root-corrected) Morfessor labels; its weight follows a curriculum, decaying geometrically from 0.500.50 to 0.080.08 over 1010 epochs so the teacher anchors early training and then yields to the distributional signals. âsgnsL_sgns is skip-gram negative sampling (1616 negatives, ±6± 6 window, 120120K context vocabulary); âctrL_ctr is an InfoNCE contrastive loss on root identity (the Morfessor first segment, temperature 0.100.10); and âmlmL_mlm is a vocabulary-free character-level reconstruction in which 20%20\% of words in a sentence are masked and regenerated character-by-character by a small encoderâdecoder. We optimize with AdamW, a cosine learning-rate schedule, and gradient clipping, using an effective batch of 512512 (batch 256Ă256Ă gradient accumulation 22) for 1010 epochs. TF32 matmuls are enabled while loss components are computed in FP32 for numerical stability; AMP/BF16 is left off for reproducibility. Training runs in roughly 3030 minutes per epoch (⌠5 hours total) on a single NVIDIA A100 8080GB. Training dynamicsâloss convergence, the per-objective curves, the aux-weight curriculum, and optimization stabilityâare reported in Section 4.1. 4 Results 4.1 Training dynamics Figure 1 shows that the total train and validation loss decrease smoothly and track each other without divergence, while the boundary detectorâs precision, recall, and F1 rise quickly and then plateauâconfirming that the Morfessor-supervised objective is learned early. The four objectives converge jointly (Figure 2): the auxiliary boundary loss drops fastest as the teacher anchors the early epochs, while the skip-gram, contrastive, and MLM losses continue to shape the embedding geometry afterwards. Figure 3 documents the optimization regime behind these curves: the cosine learning-rate schedule, the geometric decay of the auxiliary weight from 0.500.50 to 0.080.08 that realizes the teacher-to-distributional curriculum, and a gradient norm that stays bounded throughoutâevidence that running in full precision (AMP off) yields a stable, reproducible trajectory. Figure 1: Training dynamics. Left: total train/validation loss. Right: boundary-detection precision, recall, F1, and accuracy over training. Figure 2: Per-objective train/validation curves: auxiliary boundary loss, skip-gram (SGNS), root-identity contrastive, and character-level MLM. Figure 3: Optimization regime. Left: cosine learning-rate schedule. Middle: geometric decay of the auxiliary-loss weight (0.50â0.080.50\!â\!0.08), realizing the teacher-to-distributional curriculum. Right: gradient norm, stable throughout under full-precision training. 4.2 Experimental setup All tokenizers are trained on the same corpus to ensure a fair comparison. The baselines are BPE, byte-level BPE, and Unigram (SentencePiece, 6464K), WordPiece (6464K, HuggingFace), Morfessor, and the rule-based TurkishTokenizer (Bayram et al., 2025a); Morpheus uses a 5050K vocabulary distilled from its own hard segmentations. For language modeling we train a parameter-equalized ⌠58M GPT with each tokenizer for an identical 10,00010,000 optimizer steps on the same data and schedule, so that bits-per-character (BPC) reflects the tokenizer rather than model capacity or compute. Intrinsic metrics use a stratified test set (seen / OOV / curated-OOV / nonce) and gold sets: UD_Turkish-Kenet for MorphScore and reversibility (3030K inflected words) and the SIGMORPHON 2022 Turkish inflection set. Embedding evaluations use frozen word vectors and a common probe across encoders, comparing Morpheus to BERTurk (Schweter, 2020) and BGE-M3 (Chen et al., 2024). 4.3 Reversibility: the generation gate Table 1 reports decodeâ(encodeâ(w))=wdecode(encode(w))=w over 30,20430,204 inflected wordforms. Morpheus and the subword family are reversible; the two tokenizers that elsewhere appear strongest are not. WordPiece recovers only 58.2%58.2\% of words because it strips Turkish diacritics, and TurkishTokenizer 95.4%95.4\% because its canonical re-harmonization rewrites surface formsâfor example, it maps saatlerde (âat the hoursâ) to saat || lar || da, which decodes to the non-word saatlarda. Since a generative model must decode every produced id back to faithful text, only the reversible subset is valid for generationâthis is the gate through which the remaining comparisons are read. Tokenizer Roundtrip Gen.? Morpheus 100.0% â BPE / Byte / Unigram 100.0% â TurkishTokenizer 95.4% â WordPiece 58.2% â Table 1: Reversibility over 30,20430,204 inflected words. WordPiece strips diacritics; TurkishTokenizer applies lossy canonicalization. Figure 4: Roundtrip accuracy per tokenizer. The reversible cluster (Morpheus, BPE/ByteBPE/Unigram) versus the lossy WordPiece and TurkishTokenizer. 4.4 Surface fidelity A tokenizer can place boundaries well yet still corrupt the surface string. We probe this with a curated set of 5050 OOV-leaning Turkish words, scoring each segmentation along four increasingly strict criteria (Table 2): root%, whether the first segment is the correct root; count%, whether the number of segments matches the gold; len%, whether the segment lengths match (i.e. the boundaries are placed correctly); and exact%, whether the segment strings exactly match the surface morphemes. The decisive comparison is the drop from len% to exact%, which isolates decode corruption from boundary placement. Morpheus identifies the root best of all tokenizers (66%66\%) and, critically, shows no drop from len to exact (38%â38%38\%\!â\!38\%): every boundary it places is also a faithful surface string, the signature of lossless decoding. TurkishTokenizer presents the opposite pattern: it places boundaries best (count=92%count=92\%, len=78%len=78\%) but its strings match the surface only 10%10\% of the timeâa 6868-point collapse. The mechanism is concrete and systematic: on the loanword-exception forms saatlerde, rollerde, harflerle, TurkishTokenizer returns saat || lar || da, rol || lar || da, harf || lar || laâboundaries correct, but the surface suffixes -ler/-de are rewritten to their canonical vowel-harmonic forms -lar/-da, so the decoded strings (saatlarda, âŠ) are no longer the input words. Morpheus returns saatler || de, rol || lerdeâsurface-exact, hence reversible. The subword tokenizers are low and roughly flat across len and exact (they neither normalize nor align), confirming that the lenâ exact gap is a clean diagnostic for the lossy canonicalization unique to the rule-based system. Table 3 traces this through concrete decode outcomes: notably, even when Morpheus places a boundary incorrectly (çi || çe || Äin), its decode still reconstructs the input, because the segmentation only groups charactersâwhereas TurkishTokenizer and WordPiece, with cleaner-looking or whole-word outputs, decode to non-words. Tokenizer root% count% len% exact% Morpheus 66 46 38 38 Morfessor 46 46 26 26 BPE 36 22 16 16 Unigram 32 20 14 14 ByteBPE 32 24 12 12 TurkishTok.â 64 92 78 10 WordPieceâ 18 22 20 14 Table 2: Qualitative surface fidelity on 5050 curated OOV-leaning words. root%: first segment is the correct root; count%: segment count matches gold; len%: boundaries placed correctly; exact%: segment strings match the surface morphemes. The len%â % drop isolates decode corruption: zero for Morpheus, 6868 points for TurkishTokenizer (e.g. saatlerdeâ || lar || da). â Not reversible. Word (gold) Tokenizer Segmentation decodeâ(encodeâ(w))decode(encode(w)) =w=w? köpeÄim Morpheus köpeÄ | im köpeÄim â TurkishTokenizer köpek | ĂŒm köpekĂŒm â WordPiece kopegim kopegim â BPE köpeÄim köpeÄim â saatlerde Morpheus saatler | de saatlerde â TurkishTokenizer saat | lar | da saatlarda â WordPiece saatlerde saatlerde â BPE saatlerde saatlerde â çiçeÄin Morpheus çi | çe | Äin çiçeÄin â TurkishTokenizer çiçek | ĂŒn çiçekĂŒn â WordPiece cicegin cicegin â BPE çiçeÄin çiçeÄin â Table 3: Representative decode outcomes. Morpheus is surface-preserving: even where its boundaries are imperfect (çi || çe || Äin), the concatenation still reproduces the input. TurkishTokenizer rewrites surface allomorphs to canonical forms (-ĂŒm, -lar/-da, -ĂŒn) and WordPiece strips diacritics (ç,Ä,ı), so both decode to non-words. BPE is reversible but morphology-blind (no split). 4.5 Morphological alignment On gold morphological segmentation, Morpheus and the rule-based TurkishTokenizer far outrank the subword family, with Morpheus the strongest reversible option (Table 4). On MorphScore (UD_Turkish-Kenet), Morpheus reaches a macro-F1 of 0.610.61, roughly double the subword family (⌠0.32) and close to TurkishTokenizer (0.650.65)âbut with zero length-mismatch, whereas TurkishTokenizerâs score carries the canonical-normalization caveat shown above. On SIGMORPHON inflection, Morpheus has the best lemma-prefix rate after Morfessor (0.760.76), and the Kalbur root-correction of its teacher lifts root-in-segments from 0.350.35 (Morfessor) to 0.480.48. MorphScore SIGM. SIGM. Model macro-F1 lemma root Morpheus 0.61 0.76 0.48 TurkishTok.â 0.65 0.71 0.63 Morfessor 0.59 0.78 0.35 BPE 0.32 0.65 0.47 Unigram 0.32 0.61 0.43 WordPieceâ 0.27 0.33 0.26 Table 4: Morphological alignment: MorphScore macro-F1 (UD_Turkish-Kenet) and SIGMORPHON lemma-prefix and root-in-segments rates. Morpheus is the strongest reversible option. â Not reversible. Figure 5: Morphological alignment. Left: MorphScore (UD_Turkish-Kenet) macro-F1. Right: SIGMORPHON inflection rates (lemma-prefix and root-in-segments). 4.6 Language modeling and efficiency To compare tokenizers under equal compute, each ⌠58M GPT is trained for an identical 10,00010,000 optimizer steps on a 11M-line cap of the corpus with the same schedule; Figure 6 shows the resulting training-loss and validation-BPC curves. The curves are well-behaved and stratify clearly: among reversible tokenizers, Morpheus reaches the lowest validation BPC (1.4251.425 vs. 1.4361.436 for BPE, 1.4491.449 for ByteBPE, 1.4371.437 for Unigram, 1.4461.446 for Morfessor). WordPieceâs nominally lower 1.3841.384 is an artifact of modeling diacritic-stripped, lower-entropy text, and TurkishTokenizerâs 1.4421.442 comes with lossy decodingâboth excluded from the valid comparison (Table 5). On TR-MMLU, Morpheus attains the highest frequency-weighted purity (83.5%83.5\% %Pure) and Turkish-token rate (91.8%91.8\% %TR) of all tokenizers, indicating that the tokens it actually emits in running text align with Turkish morphemes. Its fertility (1.731.73 tokens/word) sits between the subword family (⌠1.5) and the rule-based tokenizers (⌠1.9â2.0): the deliberate cost of morpheme-level tokenization. At generation, Morpheus uses ⌠19% less peak GPU memory than the 6464K-vocab subword tokenizers (3,0203,020 vs. 3,7233,723 MB at batch 3232), while its higher fertility lowers raw character throughput (Figure 7). Tokenizer throughput vs. generation throughput. It is important to separate the tokenizerâs own speed from end-to-end generation, as the two tell different stories (Figure 10). Morpheusâs pure-PyTorch encoder runs at ⌠4.0M chars/sâfaster than BPE/ByteBPE (⌠1.0M) and WordPiece (2.22.2M), behind Unigram (4.84.8M)âand its decoder reaches ⌠0.69M words/s, nearly 2Ă2Ă the subword family (⌠0.35â0.38M). TurkishTokenizer is fastest on both (6.16.1M chars/s, 0.920.92M words/s), but this partly reflects its Rust backend rather than a lower algorithmic cost; Morpheus is a research-grade PyTorch implementation and is still competitive. The takeaway is that the ⌠1.6Ă end-to-end generation gap (Figure 7) is driven by Morpheusâs higher fertilityâmore autoregressive forward passes per characterânot by slow tokenization: the tokenizer itself is fast, and its decode is among the quickest measured. Figure 6: Downstream language-model training. Left: training loss versus optimizer step for the param-equalized 5858M GPT under each tokenizer. Right: validation BPC. Among reversible tokenizers Morpheus reaches the lowest BPC. Tokenizer BPC Fert. %Purefw_fw GPU tok/w MB Morpheus 1.425 1.73 83.5 3020 BPE 1.436 1.51 48.8 3723 ByteBPE 1.449 1.53 49.1 3723 Unigram 1.437 1.52 50.0 3723 Morfessor 1.446 1.91 77.8 1977 WordPieceâ 1.384 1.39 40.1 3723 TurkishTok.â 1.442 1.98 78.2 2152 Table 5: Language modeling and efficiency. BPC at equal 1010K steps; frequency-weighted %Pure on TR-MMLU; peak GPU memory at batch 3232. â Not reversibleâexcluded from the valid BPC comparison. Figure 7: BPC versus generation throughput. Among reversible tokenizers Morpheus is on the quality frontier, trading throughput (higher fertility) for the lowest BPC and morphological structure. Figure 8: Language-modeling efficiency. Left: BPC at equal 1010K steps. Middle: peak GPU memory during generation. Right: end-to-end generation throughput. Figure 9: TR-MMLU tokenization quality: Turkish-token (%TR) and pure-token (%Pure) rates. Morpheus leads on the frequency-weighted measures. Figure 10: Tokenizer throughput, separate from end-to-end generation. Left: encoding speed (chars/s). Right: decoding speed (words/s). Morpheusâs decode is ⌠2Ă the subword family; TurkishTokenizer leads on both, partly via its Rust backend. 4.7 Morpheus as a word embedder Because Morpheus is neural, the same forward pass that tokenizes also emits a 320320-dim word embedding. We evaluate it frozen against BERTurk and BGE-M3 (Table 6, Figure 12). The picture splits sharply by task character, and the split is a direct consequence of how the embedding is trained. Where Morpheus wins: lexical / root-level tasks. On retrieving other forms of the same root and on verifying whether two words share a root, Morpheus leads decisivelyâroot-family retrieval MAP 0.850.85 (vs. 0.800.80 for BGE-M3, 0.490.49 for BERTurk) and same-root verification ROC-AUC 1.001.00 (vs. 0.980.98, 0.700.70)âdespite the smallest embedding (320320 vs. 768768/10241024 dims). This is by design: the root-identity contrastive objective explicitly pulls all inflections of a root toward a common point, so the geometry is organized around roots. The t-SNE projections (Figure 11) make this visibleâMorpheus produces the tightest, most clearly separated root-family clusters of the three encoders. Where Morpheus loses: context- and inflection-dependent tasks. On morphological probing of number (0.590.59 vs. 0.950.95 for BERTurk) and case (0.220.22 vs. 0.890.89) and on WikiANN NER (macro-F1 0.480.48 vs. 0.790.79), the heavier contextual encoders win. This too follows from the architecture, on two counts. First, the very objective that sharpens root geometry collapses the inflectional contrasts a probe must read: by pulling kitap, kitaplar, kitabımız together, it deliberately discards the number/case signal that distinguishes them. Second, the embedding is a static, per-word vector with no sentence context, whereas NER is inherently contextualâand BERTurk/BGE-M3 are contextual encoders with 22â3Ă3Ă the dimensionality. Morpheus is therefore not a drop-in replacement for a contextual encoder; it is a complementary, cheap, morphology-aware lexical encoder. In a multi-vector retrieval (RAG) system this is precisely the right division of labor: Morpheus serves the lexical/keyword index (root matching, dedup, stemming), a contextual model serves the dense semantic index. Morpheus BERTurk BGE-M3 (320) (768) (1024) Retrieval MAP â 0.85 0.49 0.80 Dedup ROC-AUC â 1.00 0.70 0.98 Number probe â 0.59 0.95 0.91 Case probe â 0.22 0.89 0.81 NER macro-F1 â 0.48 0.79 0.76 Table 6: Frozen word-embedding evaluation. Morpheus leads on lexical / root-level tasks; contextual encoders lead on inflection- and context-dependent tasks. Figure 11: t-SNE of word embeddings colored by root family, for Morpheus (left), BERTurk (middle), and BGE-M3 (right). Morpheus organizes the space by root identity, producing the tightest root-family clusters. Figure 12: Embedding evaluation across encoders. Morpheus leads on lexical retrieval (MAP) and same-root verification (ROC-AUC); the heavier contextual encoders lead on morphological probing and NER. 5 Discussion One signal, two roles. The results support the paperâs central claim: a single neural morpheme-boundary model can serve as both a lossless tokenizer and a word embedder. The coupling is not incidentalâthe differentiable Poissonâbinomial segmentation lets the same morphological signal that places boundaries also shape the pooled embedding, so quality on one role reinforces the other rather than competing for capacity. Lossless-versus-lossy is the decisive axis. The two tokenizers that appear to dominate on isolated metricsâWordPiece on raw BPC, TurkishTokenizer on gold morphologyâare both disqualified for generation by reversibility. Reading every metric through the generation gate reverses the apparent ranking: among tokenizers whose ids decode to faithful Turkish, Morpheus offers the lowest BPC, the highest frequency-weighted token purity, the strongest morphological alignment, and lower memory, simultaneously. We argue this axis, largely absent from prior Turkish tokenization comparisons, should be reported whenever a tokenizer is proposed for generative use. A root-centric embedding, by design. The embedding results are a genuine finding, not a shortfall to hide. Morpheus wins lexical retrieval and dedup but underperforms on number/case probing and NER, and the cause is mechanistic: the contrastive objective on root identity deliberately pulls all inflections of a root together, which sharpens root-level geometry while collapsing the inflectional contrasts a linear probe would read, and the pooled static vector lacks the sentence context NER needs. This makes Morpheus complementary to, not a replacement for, contextual encoders. In a multi-vector retrieval system its embeddings are a natural fit for the lexical indexâcheap, morphology-aware, and strong at root matchingâ while a contextual model such as BGE-M3 or BERTurk serves the dense semantic index. What you trade. Morpheus brings modeling quality, morphological structure, embeddings, lossless reversibility, and lower memory together, a combination no other Turkish tokenizer offers. The cost is higher fertility (⌠1.73 vs. ⌠1.5 tokens/word) and, because unseen words are segmented by the neural model rather than a lookup table, a heavier tokenizer artifact and lower raw character throughput. For latency-bound generation a subword tokenizer remains preferable; for Turkish systems that value faithful decoding, morphology, or embeddings, Morpheus is the better-informed default. 6 Limitations and Trade-offs We frame the constraints of Morpheus as trade-offs rather than flat deficiencies: each cost is the flip side of a concrete gain, and points to the workloads where Morpheus isâor is notâthe right choice. Fertility for quality and faithfulness. Morpheus emits more tokens per word (⌠1.73 vs. ⌠1.5 for subwords), which lengthens sequences and lowers raw generation throughput (⌠1.6Ă slower than BPE)âa token-count effect rather than slow tokenization, since its own encode/decode are competitive (Section 4.6). In return it delivers the lowest BPC among reversible tokenizers (1.4251.425), morpheme-aligned tokens, lossless decoding, and ⌠19% lower GPU memory. The exchange favors quality- and morphology-sensitive systems; for latency-bound raw generation a subword tokenizer remains preferable. A neural artifact for OOV generalization. Because unseen words are segmented by the model rather than a lookup table, the deployable tokenizer carries a PyTorch checkpoint instead of a few-megabyte vocabulary. That same property is what lets Morpheus segment any Turkish wordâincluding nonce and rare agglutinative formsâwithout a vocabulary cap, which a fixed BPE/WordPiece table cannot do. A root-centric embedding: strength and limit are the same design. The embedding leads on lexical retrieval (MAP 0.850.85) and same-root verification (ROC-AUC 1.001.00) precisely because the contrastive objective concentrates a rootâs inflections; that same concentration is why it trails contextual encoders on number/case probing and NER. The embedding is also static and lower-dimensional (320320 vs. 768768/10241024). Morpheus is therefore complementary to, not a replacement for, contextual encoders: it is the right representation for the lexical component of a system (retrieval, dedup, stemming, keyword matching) and the wrong one for tasks that hinge on sentence context or fine inflectional features. Scope. The model and its supervision are Turkish-specific by design, and the gold sets emphasize inflectional morphology (SIGMORPHON, UD_Turkish-Kenet), so derivational families and long, rare agglutinative chainsâwhere the boundary detector occasionally merges adjacent suffixesâare comparatively under-probed. 7 Conclusion Turkish agglutination breaks the assumptions of the tokenizers that drive modern language models. Frequency-driven subword methods fragment meaning-bearing suffixes and inflate token counts, while the tokenizers that align best with morphologyâWordPiece and the rule-based TurkishTokenizerâdo so by rewriting the surface string and cannot decode their output back to faithful text (only 58.2%58.2\% and 95.4%95.4\% roundtrip). Word representation, meanwhile, is handled by separate, heavyweight models decoupled from tokenization. This is the gap the paper addresses. Novelty and mechanism. We introduced Morpheus, a neural morpheme-boundary model that is at once a lossless, morphology-aware tokenizer and a word embedder. The novelty is a single mechanismâa differentiable Poissonâbinomial segmentationâthat (i) lets word-level objectives train the boundary detector end-to-end, (i) recovers exact hard segmentation at inference with no architectural switch, and (i) only groups characters, so decodeâ(encodeâ(w))=wdecode(encode(w))=w holds by construction and the same forward pass yields a structured embedding. Measured success. Restricted to tokenizers whose ids decode to faithful Turkishâthe set valid for generationâMorpheus simultaneously attains the lowest BPC (1.4251.425), the highest frequency-weighted token purity on TR-MMLU (83.5%83.5\%), the strongest morphological alignment (MorphScore macro-F1 0.610.61, ⌠2Ă the subword family), 100%100\% reversibility, and ⌠19% lower GPU memory. As an embedder it leads on lexical retrieval (root-family MAP 0.850.85) and same-root verification (ROC-AUC 1.001.00), ahead of BGE-M3 (0.800.80/0.980.98) and BERTurk (0.490.49/0.700.70). These survive the reversibility gate that disqualifies the apparent leaders, so they are real gains rather than metric artifacts. Trade-offs and where to use it. The costs are concrete: higher fertility (1.731.73 vs. ⌠1.5 tokens/word, ⌠1.6Ă slower generation), a neural artifact instead of a lookup table, and a root-centric embedding that trails contextual encoders on NER and number/case probing. This yields a clear usage recipe. Morpheus is the better-informed default for Turkish NLU and sequence-labeling (classification, morphological segmentation/analysis), for the lexical / keyword index of a multi-vector RAG system (root matching, dedup, stemming), for pretraining small-to-medium Turkish LMs where faithful decoding and morphology matter, and for memory-constrained inference. It should be paired withânot substituted forâa contextual encoder such as BERTurk or BGE-M3 on context-dependent tasks, and a subword tokenizer remains preferable for latency-bound raw generation. In expanding the Turkish tokenization design space with a lossless, morphology-aware, embedding-producing option, Morpheus gives the many Turkish systems that have so far had to choose among lossy or morphology-blind alternatives a single model that is none of those things. References Akın and Akın (2007) Ahmet AfĆın Akın and Mehmet DĂŒndar Akın. 2007. Zemberek, an open source NLP framework for Turkic languages. Structure. Altinok (2026) Duygu Altinok. 2026. Optimal Turkish subword strategies at scale: Systematic evaluation of dataâvocabularyâmorphology interplay. arXiv preprint arXiv:2602.06942. Bayram et al. (2025a) M. Ali Bayram, Ali Arda Fincan, Ahmet Semih GĂŒmĂŒĆ, Sercan KarakaĆ, Banu Diri, SavaĆ Yıldırım, and Demircan Ăelik. 2025a. Tokens with meaning: A hybrid tokenization approach for Turkish. arXiv preprint arXiv:2508.14292. Bayram et al. (2025b) M. Ali Bayram, Ali Arda Fincan, Ahmet Semih GĂŒmĂŒĆ, Sercan KarakaĆ, Banu Diri, and SavaĆ Yıldırım. 2025b. Tokenization standards for linguistic integrity: Turkish as a benchmark. arXiv preprint arXiv:2502.07057. Bayram et al. (2025c) M. Ali Bayram, Ali Arda Fincan, Ahmet Semih GĂŒmĂŒĆ, Sercan KarakaĆ, Banu Diri, and SavaĆ Yıldırım. 2025c. Tokenization standards and evaluation in natural language processing: A comparative analysis of large language models on Turkish. In 2025 33rd Signal Processing and Communications Applications Conference (SIU). IEEE. Bayram et al. (2026) M. Ali Bayram, Banu Diri, and SavaĆ Yıldırım. 2026. Adapting multilingual embedding models to Turkish via cross-lingual tokenizer surgery and offline distillation. arXiv preprint arXiv:2605.29992. Chen et al. (2024) Jianlv Chen, Shitao Xiao, Peitian Zhang, Kun Luo, Defu Lian, and Zheng Liu. 2024. BGE M3-embedding: Multi-lingual, multi-functionality, multi-granularity text embeddings through self-knowledge distillation. arXiv preprint arXiv:2402.03216. Creutz and Lagus (2002) Mathias Creutz and Krista Lagus. 2002. Unsupervised discovery of morphemes. In Proceedings of the ACL-02 Workshop on Morphological and Phonological Learning (SIGPHON), pages 21â30. Creutz and Lagus (2007) Mathias Creutz and Krista Lagus. 2007. Unsupervised models for morpheme segmentation and morphology learning. ACM Transactions on Speech and Language Processing, 4(1):1â34. Devlin et al. (2019) Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of NAACL, pages 4171â4186. Gulgonul (2025) Senol Gulgonul. 2025. HeceTokenizer: A syllable-based tokenization approach for Turkish retrieval. Preprint. Kaya and TantuÄ (2024) YiÄit Bekir Kaya and A. CĂŒneyd TantuÄ. 2024. Effect of tokenization granularity for Turkish large language models. Intelligent Systems with Applications, 21:200335. Kudo (2018) Taku Kudo. 2018. Subword regularization: Improving neural network translation models with multiple subword candidates. In Proceedings of ACL, pages 66â75. Kudo and Richardson (2018) Taku Kudo and John Richardson. 2018. SentencePiece: A simple and language independent subword tokenizer and detokenizer for neural text processing. In Proceedings of EMNLP: System Demonstrations, pages 66â71. Schweter (2020) Stefan Schweter. 2020. BERTurk â BERT models for Turkish. Zenodo. Sennrich et al. (2016) Rico Sennrich, Barry Haddow, and Alexandra Birch. 2016. Neural machine translation of rare words with subword units. In Proceedings of ACL, pages 1715â1725. Su et al. (2021) Jianlin Su, Yu Lu, Shengfeng Pan, Ahmed Murtadha, Bo Wen, and Yunfeng Liu. 2021. RoFormer: Enhanced transformer with rotary position embedding. arXiv preprint arXiv:2104.09864. Toraman et al. (2023) Cagri Toraman, Eyup Halit Yilmaz, Furkan Ćahınuç, and Oguzhan Ozcelik. 2023. Impact of tokenization on language models: An analysis for Turkish. ACM Transactions on Asian and Low-Resource Language Information Processing, 22(4):1â21.