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

将大型语言模型适配到低资源黏着语:LoRA与QLoRA在巴什基尔语上的比较研究

Adapting Large Language Models to a Low-Resource Agglutinative Language: A Comparative Study of LoRA and QLoRA for Bashkir

Institute of Computational Mathematics and Information Technologies, Kazan Federal University(计算数学与信息科技学院,卡兹安联邦大学)

Mullosharaf K. Arabov, Svetlana S. Khaybullina

AI总结:

本文比较了LoRA和QLoRA两种参数高效微调方法在低资源黏着语巴什基尔语上的适配效果,发现QLoRA在7B规模模型上能在质量和计算成本间取得有效平衡。

摘要:

本文对参数高效微调方法(包括LoRA和QLoRA)在将大型语言模型适配到巴什基尔语(突厥语族的一种低资源黏着语)任务上进行了比较研究。实验在包含71k文档(4690万个token)的巴什基尔语文本语料库上进行,使用了多种架构的模型:DistilGPT2、GPT-2(base、medium)、Phi-2、Qwen2.5-7B、DeepSeek-7B和Mistral-7B。为提高结果可靠性,每种配置使用三种不同的随机种子进行训练。测试集上最低困惑度由全微调的GPT-2 medium获得(3.34)。同时,应用于Mistral-7B(3.79)和Phi-2(3.81)的QLoRA在可训练参数减少40倍以上的情况下达到了相当的质量。然而,我们也观察到某些架构使用PEFT时质量显著下降的情况(例如,DeepSeek-7B,秩为8,困惑度=129.55),这表明结果关键取决于基础模型及其分词器的选择。此外,基于巴什基尔语提示的生成文本定性分析显示,具有最佳困惑度的模型不一定产生最连贯的输出:QLoRA微调的模型生成了单语巴什基尔语续写,而具有最低困惑度的全微调模型则频繁切换到英语。结果表明,对于巴什基尔语,7B规模模型上的QLoRA在质量和计算成本之间提供了有效的折中。为确保可重复性,开放数据、代码和训练好的适配器将在论文被接收后发布。

英文摘要:

This paper presents a comparative study of parameter-efficient fine-tuning (PEFT) methods, including LoRA and QLoRA, applied to the task of adapting large language models to the Bashkir language, a low-resource agglutinative language of the Turkic family. Experimental evaluation is conducted on a Bashkir text corpus of 71k documents (46.9M tokens) using models of various architectures: DistilGPT2, GPT-2 (base, medium), Phi-2, Qwen2.5-7B, DeepSeek-7B, and Mistral-7B. To improve the reliability of results, each configuration was trained with three different random seeds. The lowest perplexity on the test set was obtained for GPT-2 medium with full fine-tuning (3.34). Meanwhile, QLoRA applied to Mistral-7B (3.79) and Phi-2 (3.81) achieved comparable quality with over 40 times fewer trainable parameters. However, we also observed cases of significant quality degradation when using PEFT for certain architectures (e.g., DeepSeek-7B with rank 8, perplexity = 129.55), indicating that the outcome depends critically on the choice of the base model and its tokenizer. Additionally, a qualitative analysis of generated texts based on Bashkir prompts revealed that models with the best perplexity do not necessarily produce the most coherent outputs: QLoRA-tuned models generated monolingual Bashkir continuations, whereas the fully fine-tuned model with the lowest perplexity frequently switched to English. The results suggest that QLoRA on 7B-scale models offers an effective compromise between quality and computational cost for Bashkir. To ensure reproducibility, open data, code, and trained adapters will be released upon acceptance.

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

↑