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

将 LLM 扩展到新语言:Llama 与波斯语适配案例研究

Extending LLMs to New Languages: A Case Study of Llama and Persian Adaptation

University of Tehran(德黑兰大学);Tehran Institute for Advanced Studies(德黑兰高等研究院);Khatam University(哈塔姆大学);Monash University(莫纳什大学)

Samin Mahdizadeh Sani, Pouya Sadeghi, Thuy-Trang Vu, Yadollah Yaghoobzadeh, Gholamreza Haffari

AI总结:

本文以 Llama 适配波斯语为例,采用单语预训练、双语对齐和任务指令微调的参数高效流程,评估其对波斯语及英语生成、分类任务的影响。

摘要:

大型语言模型(LLM)在分类和文本生成任务上取得了巨大进展。然而,它们主要基于英语数据训练,在低资源语言上往往表现不佳。本研究探讨如何利用参数高效微调,将一种新语言(即波斯语)添加到 Llama(一个对波斯语理解有限的模型)中。我们采用多阶段方法,包括在单语波斯语数据上进行预训练、通过双语预训练和指令数据集对齐表征,以及使用特定任务数据集进行指令微调。我们在每个阶段评估模型在生成和分类任务上的性能。研究结果表明,通过双语数据对齐融入波斯语,可以提高波斯语任务的分类准确率,同时不会对英语任务造成不利影响,有时甚至会带来改进。此外,结果强调,在训练数据有限的情况下,模型的初始能力是一个关键因素,而跨语言对齐对低资源语言带来的收益很小。从英语到波斯语的知识迁移效果有限,主要有利于简单的分类任务。

英文摘要:

Large language models (LLMs) have made great progress in classification and text generation tasks. However, they are mainly trained on English data and often struggle with low-resource languages. In this study, we explore adding a new language, i.e., Persian, to Llama (a model with a limited understanding of Persian) using parameter-efficient fine-tuning. We employ a multi-stage approach involving pretraining on monolingual Persian data, aligning representations through bilingual pretraining and instruction datasets, and instruction-tuning with task-specific datasets. We evaluate the model's performance at each stage on generation and classification tasks. Our findings suggest that incorporating the Persian language, through bilingual data alignment, can enhance classification accuracy for Persian tasks, with no adverse impact and sometimes even improvements on English tasks. Additionally, the results highlight the model's initial strength as a critical factor when working with limited training data, with cross-lingual alignment offering minimal benefits for the low-resource language. Knowledge transfer from English to Persian has a marginal effect, primarily benefiting simple classification tasks.

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

↑