arXiv(opens in a new tab)cs.CLAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.25768

MoganBert-TR: A Turkish Encoder Foundation Model Trained from Scratch with a CLM-to-MLM Curriculum

Furkan Yilmaz, Habibe Aleyna Tasdemir, Muhammed Faruk Gozay

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

MoganBert-TR: A Turkish Encoder Foundation Model Trained from Scratch with a CLM→MLM Curriculum

Furkan Yilmaz

furkanyl509@gmail.com

Habibe Aleyna Taşdemir

aleynattasdemir@gmail.com

Muhammed Faruk Gözay

gozayfaruk@gmail.com

Abstract

Publicly available large-scale pretraining data for Turkish exists largely as a subset of multilingual dumps and involves no language-specific quality filtering; existing Turkish encoders, meanwhile, have adopted modern architectures while leaving the pretraining objective fixed. This paper introduces an encoder foundation model trained from scratch on a language-specifically filtered corpus (MoganBert-TR, 149M parameters), together with an embedding model derived from it (MoganBert-Embed).

(1) Training objective. MoganBert-TR is trained over 237.3 billion tokens with a two-stage CLM→MLM curriculum: the first portion of the run uses causal language modelling and the remainder masked language modelling, with the transition made inside the stable phase of a WSD schedule and without touching the learning rate. In a controlled ablation on the same architecture and the same corpus under an equal step budget, this design outperforms pure MLM by 2.7–3.7× on Turkish MS MARCO retrieval; the measured mechanism is embedding geometry a single direction absorbs 28.1% of the variance in the pure-MLM model, against 11.9% under the curriculum. (2) Branched annealing. Long-context extension and learning-rate decay are split into two branches after a shared prefix; running the final portion of decay at 1024 context improves the TrGLUE average by +0.49 ± 0.26 points across five paired seeds (p ≈ 0.013) and beats a model-soup alternative by 0.75 points at ~4.3% additional cost. (3) Results. MoganBert-TR attains 78.41 on TrGLUE, the best among the Turkish ModernBERT models compared here, and 77.73 on TabiBench, second among monolingual Turkish encoders and 0.19 points behind the leader; it leads two of the eight TabiBench categories, with the largest margin on code retrieval (+3.62 points over TabiBERT). (4) Embedding model. MoganBert-Embed, produced through teacher distillation and multi-signal contrastive fine-tuning, ranks first among student models on the MTEB(Turkish) overall average with 68.30 and reaches 99.5% of its 7.57-billion-parameter teacher's score with a 51× smaller backbone. (5) Data and tokenizer. The Turkish portion of FineWeb2, recent months pulled from raw Common Crawl, and domain-dense text extracted from printed and institutional sources with a vision-language model were combined into a single pipeline; since no off-the-shelf Turkish quality classifier exists, the decisions of a fine-tuned Turkish BERT were distilled into fastText (94.4% agreement, ~90× speed-up). The accompanying 50,048-token tokenizer outperforms all compared Turkish tokenizers on both compression and fertility across two independent test sets.

Model weights, tokenizer, embedding model and evaluation code will be released openly at https://huggingface.co/moganai.

Keywords: Turkish natural language processing, encoder language models, pretraining objectives, tokenization, knowledge distillation, embedding models

References (28)