arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.15544cs.CL
收藏

llm-jp-modernbert:在大规模日语语料库上训练的长上下文ModernBERT模型

llm-jp-modernbert: A ModernBERT Model Trained on a Large-Scale Japanese Corpus with Long Context Length

Kyoto University(京都大学);NII LLMC(日本信息处理学会大语言模型中心)

Issa Sugiura, Kouta Nakayama, Yusuke Oda

AI总结:

本文提出llm-jp-modernbert,一个在8192上下文长度的大规模日语语料上训练的ModernBERT编码器模型,虽下游任务未超基线,但在掩码填充和句子嵌入分析中表现良好,并开源模型与代码。

摘要:

像BERT这样的编码器专用Transformer模型被广泛用作句子分类和检索等任务的预训练骨干。然而,与仅解码器Transformer相比,使用大规模语料库和长上下文进行编码器模型的预训练相对未被充分探索。在这项工作中,我们提出了llm-jp-modernbert,一个在公开可用的大规模日语语料库上训练的ModernBERT模型,上下文长度为8192个标记。虽然我们的模型在下游任务上未超越现有基线,但在掩码填充测试评估中取得了良好结果。我们还通过伪困惑度实验分析了上下文长度扩展的影响。此外,我们详细研究了句子嵌入,分析了它们在训练过程中的变化,并将其与现有其他模型的嵌入进行比较,确认了与共享相同架构的模型具有相似趋势。为了支持可复现性并促进长上下文BERT的发展,我们发布了我们的模型以及训练和评估代码。

英文摘要:

Encoder-only transformer models like BERT are widely adopted as a pre-trained backbone for tasks like sentence classification and retrieval. However, pretraining of encoder models with large-scale corpora and long contexts has been relatively underexplored compared to decoder-only transformers. In this work, we present llm-jp-modernbert, a ModernBERT model trained on a publicly available, massive Japanese corpus with a context length of 8192 tokens. While our model does not surpass existing baselines on downstream tasks, it achieves good results on fill-mask test evaluations. We also analyze the effect of context length expansion through pseudo-perplexity experiments. Furthermore, we investigate sentence embeddings in detail, analyzing their transitions during training and comparing them with those from other existing models, confirming similar trends with models sharing the same architecture. To support reproducibility and foster the development of long-context BERT, we release our model, along with the training and evaluation code.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑