Mecellem模型:从零开始训练并持续预训练的土耳其法律领域模型
Mecellem Models: Turkish Models Trained from Scratch and Continually Pre-trained for the Legal Domain
AI总结:
Mecellem模型通过从零训练和持续预训练,实现了在土耳其法律领域中的高效领域适应,取得前三名成绩并提升生产效率。
摘要:
本文提出了Mecellem模型,一种通过领域适应策略开发专门用于土耳其法律领域的语言模型框架。我们做出了两项贡献:(1)从零开始预训练的编码器模型:基于ModernBERT的双向编码器在由1127亿个词组成的土耳其主导语料上进行预训练。我们实现了检查点选择策略,该策略在训练过程中评估下游检索性能,发现最佳检查点在预训练损失达到最小值之前实现了最佳检索分数。我们的编码器模型在土耳其检索排行榜上获得前三名,较小的模型(15500万参数)在性能上与较大的参考模型(30700万-56700万参数)相当。我们的方法在生产效率方面达到92.36%,相比最先进的模型(embeddinggemma-300m:100.00%,BAAI/bge-m3:99.54%,newmindai/bge-m3-stsb:94.38%),尽管计算资源需求更少,仍排名第四。SOTA模型依赖多阶段、计算强度大的训练流程,使我们的单阶段预训练后高效后训练方法成为更具成本效益的替代方案;(2)带有持续预训练(CPT)的解码器模型:通过受控课程学习适应土耳其法律领域,Qwen3-1.7B和Qwen3-4B模型通过四阶段CPT和最优样本比例实现逐步从通用语言知识到专门法律术语和长上下文推理的过渡。这种方法在土耳其法律文本上实现了36.2%的困惑度降低,展示了领域适应的收益。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。