[Paper Review] Mecellem Models: Turkish Models Trained from Scratch and Continually Pre-trained for the Legal Domain
The paper presents Mecellem: (1) ModernBERT-based Turkish encoders trained from scratch on 112.7B tokens for legal NLP, with a downstream-driven checkpoint strategy; and (2) CPT-adapted Qwen decoder models achieving 36.2% perplexity reduction on Turkish legal text.
This paper presents Mecellem models, a framework for developing specialized language models for the Turkish legal domain through domain adaptation strategies. We make two contributions: (1)Encoder Model Pre-trained from Scratch: ModernBERT-based bidirectional encoders pre-trained on a Turkish-dominant corpus of 112.7 billion tokens. We implement a checkpoint selection strategy that evaluates downstream retrieval performance throughout training, revealing that optimal checkpoints achieve best retrieval scores before pre-training loss reaches its minimum. Our encoder models achieve top-3 rankings on the Turkish retrieval leaderboard, with smaller models (155M parameters) achieving comparable performance to larger reference models (307M-567M parameters). Our approach achieves 92.36% production efficiency compared to state-of-the-art models (embeddinggemma-300m: 100.00%, BAAI/bge-m3: 99.54%, newmindai/bge-m3-stsb: 94.38%), ranking fourth overall despite requiring less computational resources. SOTA models rely on multi-stage, computationally intensive training pipelines, making our single-stage pre-training followed by efficient post-training approach a cost-effective alternative; (2)Decoder Model with Continual Pre-training (CPT): Qwen3-1.7B and Qwen3-4B models adapted to Turkish legal domain through controlled curriculum learning. Four-phase CPT with optimal sample ratios enables gradual transition from general language knowledge to specialized legal terminology and long-context reasoning. This approach achieves 36.2% perplexity reduction on Turkish legal text, demonstrating domain adaptation gains.
Motivation & Objective
- Develop Turkish Legal NLP encoders by pre-training from scratch on a large Turkish-dominant corpus.
- Show that downstream retrieval performance guides effective pre-training checkpoint selection.
- Adapt decoder models to Turkish legal domain using continual pre-training with curriculum learning.
- Evaluate and compare embedding/ retrieval performance against state-of-the-art Turkish legal models.
- Provide a scalable, cost-effective alternative to multi-stage training pipelines for domain adaptation.
Proposed method
- Pre-train ModernBERT-based bidirectional encoders from scratch on 112.7B Turkish-dominant tokens using MLM as the objective.
- Implement a checkpoint selection strategy that monitors downstream retrieval performance to select optimal pre-training checkpoints.
- Post-train encoders for embedding tasks using multiple contrastive learning methods (InfoNCE variants and GISTEmbed with cached guides).
- Apply continual pre-training to Qwen3-1.7B and Qwen3-4B decoders with a four-phase curriculum focusing on Turkish legal content.
- Perform ablation studies to identify effective initialization and data-ratio configurations for CPT and curriculum learning.
- Curate and preprocess a large Turkish legal/general corpus with SemHash-based deduplication and FineWeb quality filtering.

Experimental results
Research questions
- RQ1Can a from-scratch Turkish encoder achieve competitive legal retrieval performance on Turkish data?
- RQ2Does downstream retrieval evaluation during pre-training yield better checkpoints than minimum pre-training loss?
- RQ3How does continual pre-training of decoders with a four-phase curriculum impact Turkish legal terminology usage and long-context reasoning?
- RQ4What dataset construction, deduplication, and filtering strategies best balance domain adaptation with general-language preservation?
- RQ5How do model scale and training strategies compare to existing SOTA Turkish legal NLP approaches?
Key findings
- Encoder models achieve top-3 rankings on the Turkish retrieval leaderboard.
- A smaller encoder (155M parameters) matches the performance of larger models (307M–567M).
- Encoder post-training with contrastive learning achieves competitive Turkish legal embeddings on retrieval benchmarks.
- Decoder CPT on Turkish legal data yields a 36.2% perplexity reduction.
- Four-phase CPT with optimized sample ratios enables gradual domain adaptation while preserving general language skills.
- The approach provides a cost-efficient alternative to multi-stage training pipelines and achieves 92.36% production efficiency relative to selected baselines.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.