arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2412.12674cs.CL
收藏

训练更多参数但注意其放置位置:关于使用PEFT进行语言适配的见解

Train More Parameters But Mind Their Placement: Insights into Language Adaptation with PEFT

Linköping University(林雪平大学)

Jenny Kunz

AI总结:

本研究通过冰岛语案例,探索使用PEFT方法适配LLM,发现增加可训练参数(如LoRA置于前馈层和瓶颈适配器)能提升语言适配性能,但需注意放置位置以避免影响长上下文处理。

摘要:

较小的LLM即使在中资源语言中仍面临重大挑战,尤其是在语言特定知识方面——这个问题不易通过机器翻译数据解决。在这项针对冰岛语的案例研究中,我们旨在通过使用非结构化文本语料库对LLM进行专门化来提升其生成性能。一个关键焦点是防止在此适配过程中干扰模型处理更长上下文的能力。通过使用各种参数高效微调(PEFT)方法和设置的消融研究,我们发现增加可训练参数数量会导致更好且更稳健的语言适配。放置在 feed-forward 层和瓶颈适配器中的LoRA在参数充足时显示出有前景的结果,而前缀微调和(IA)3则不适用。尽管在零样本摘要中改进是一致的,但一些适配模型在处理更长上下文长度时存在困难,这个问题可以通过仅适配最后几层来缓解。

英文摘要:

Smaller LLMs still face significant challenges even in medium-resourced languages, particularly when it comes to language-specific knowledge -- a problem not easily resolved with machine-translated data. In this case study on Icelandic, we aim to enhance the generation performance of an LLM by specialising it using unstructured text corpora. A key focus is on preventing interference with the models' capabilities of handling longer context during this adaptation. Through ablation studies using various parameter-efficient fine-tuning (PEFT) methods and setups, we find that increasing the number of trainable parameters leads to better and more robust language adaptation. LoRAs placed in the feed-forward layers and bottleneck adapters show promising results with sufficient parameters, while prefix tuning and (IA)3 are not suitable. Although improvements are consistent in 0-shot summarisation, some adapted models struggle with longer context lengths, an issue that can be mitigated by adapting only the final layers.

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

↑