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

LangSAMP:语言-文字感知的多语言预训练

LangSAMP: Language-Script Aware Multilingual Pretraining

Center for Information and Language Processing, LMU Munich(信息与语言处理中心,慕尼黑莱茵河大学);Munich Center for Machine Learning (MCML)(慕尼黑机器学习中心(MCML));Bosch Center for Artificial Intelligence(博世人工智能中心)

Yihong Liu, Haotian Ye, Chunlan Ma, Mingyang Wang, Hinrich Schütze

AI总结:

提出LangSAMP方法,通过融合语言和文字嵌入增强多语言预训练,在500+语言上持续预训练XLM-R,提升零样本跨语言迁移性能,并可用于源语言选择。

摘要:

近年来的多语言预训练语言模型(mPLMs)往往避免使用语言嵌入——即分配给单个语言的可学习向量。然而,这给词元表示带来了显著的负担,使其需要编码所有语言特定信息,这可能阻碍语言中立性。为了解决这一局限,我们提出了语言-文字感知的多语言预训练(LangSAMP),一种融合语言嵌入和文字嵌入以增强表示学习的方法。具体而言,我们将这些嵌入集成到Transformer块的输出中,然后再将最终表示传递给语言建模头进行预测。我们将LangSAMP应用于XLM-R的持续预训练,使用的语料覆盖超过500种语言。在多种下游任务的零样本跨语言迁移中,所得模型持续优于基线。大量分析表明,语言和文字嵌入能够捕捉语言和文字特有的细微差别,这有助于形成更语言中立的表示,并通过改进的成对余弦相似度得到证明。在我们的案例研究中,我们还展示了语言和文字嵌入可用于为跨语言迁移选择更好的源语言。我们在https://github.com/cisnlp/LangSAMP公开了代码和模型。

英文摘要:

Recent multilingual pretrained language models (mPLMs) often avoid using language embeddings -- learnable vectors assigned to individual languages. However, this places a significant burden on token representations to encode all language-specific information, which may hinder language neutrality. To address this limitation, we propose Language-Script Aware Multilingual Pretraining (LangSAMP), a method that incorporates both language and script embeddings to enhance representation learning. Specifically, we integrate these embeddings into the output of the Transformer blocks before passing the final representations to the language modeling head for prediction. We apply LangSAMP to the continual pretraining of XLM-R on a highly multilingual corpus covering more than 500 languages. The resulting model consistently outperforms the baseline in zero-shot crosslingual transfer across diverse downstream tasks. Extensive analysis reveals that language and script embeddings capture language- and script-specific nuances, which benefits more language-neutral representations, proven by improved pairwise cosine similarity. In our case study, we also show that language and script embeddings can be used to select better source languages for crosslingual transfer. We make our code and models publicly available at https://github.com/cisnlp/LangSAMP.

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

↑