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

针对句子与文档嵌入任务微调SwissBERT编码器模型

Fine-tuning the SwissBERT Encoder Model for Embedding Sentences and Documents

University of Zurich(苏黎世大学)

Juri Grosjean, Jannis Vamvas

AI总结:

本研究针对句子与文档嵌入需求,基于含瑞士四国语适配器的SwissBERT,用新闻文章子集通过对比学习微调得到SentenceSwissBERT,在瑞士场景的多语言任务中准确率优于原模型与基线,且开放研究使用。

摘要:

经训练用于句子或短文档嵌入的编码器模型已被证明在语义搜索、主题建模等任务中颇具效用。本文提出一款专门为此类任务微调的SwissBERT编码器模型版本。SwissBERT内置适配瑞士四种官方语言——德语、法语、意大利语、罗曼什语——的语言适配器,且已基于上述语言的大量新闻文章完成预训练。我们基于这些文章的一个子集,采用对比学习训练出微调版本,将其命名为SentenceSwissBERT。在瑞士特定场景下开展的文档检索与文本分类多语言实验表明,SentenceSwissBERT的准确率优于原始SwissBERT模型及同类基线模型。该模型已开放供研究使用。

英文摘要:

Encoder models trained for the embedding of sentences or short documents have proven useful for tasks such as semantic search and topic modeling. In this paper, we present a version of the SwissBERT encoder model that we specifically fine-tuned for this purpose. SwissBERT contains language adapters for the four national languages of Switzerland -- German, French, Italian, and Romansh -- and has been pre-trained on a large number of news articles in those languages. Using contrastive learning based on a subset of these articles, we trained a fine-tuned version, which we call SentenceSwissBERT. Multilingual experiments on document retrieval and text classification in a Switzerland-specific setting show that SentenceSwissBERT surpasses the accuracy of the original SwissBERT model and of a comparable baseline. The model is openly available for research use.

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

↑