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

探索连续微调以增强大语言模型的语言能力

Exploring Continual Fine-Tuning for Enhancing Language Ability in Large Language Model

Microsoft(微软);Microsoft Research India(微软印度研究院)

Divyanshu Aggarwal, Sankarshan Damle, Navin Goyal, Satya Lokam, Sunayana Sitaram

AI总结:

本文研究了连续微调对大语言模型语言适应性的影响,发现相同比例数据集可保持任务能力,而数据不相似时会导致性能下降,通过层冻结和生成重放方法提升语言能力。

摘要:

大语言模型(LLM)在学习新语言时面临保持现有语言性能的挑战。连续微调(CFT)是一种逐步微调LLM以适应下游任务的方法。本文通过两阶段CFT过程研究LLM的语言适应性:第一阶段使用仅英语的端到端微调模型,第二阶段在多语言数据集上逐步微调以增强语言能力。观察到第二阶段任务与第一阶段的相似性决定了LLM的适应性。对于相似的数据集,第二阶段后的LLM任务能力无下降;反之,数据不相似时任务能力会下降。通过测试开源mis和llm模型的多阶段数据集对,分析了层冻结和生成重放两种CFT方法的变体,发现这些方法在提升语言能力的同时能保持任务性能,优于相关基线。

英文摘要:

A common challenge towards the adaptability of Large Language Models (LLMs) is their ability to learn new languages over time without hampering the model's performance on languages in which the model is already proficient (usually English). Continual fine-tuning (CFT) is the process of sequentially fine-tuning an LLM to enable the model to adapt to downstream tasks with varying data distributions and time shifts. This paper focuses on the language adaptability of LLMs through CFT. We study a two-phase CFT process in which an English-only end-to-end fine-tuned LLM from Phase 1 (predominantly Task Ability) is sequentially fine-tuned on a multilingual dataset -- comprising task data in new languages -- in Phase 2 (predominantly Language Ability). We observe that the ``similarity'' of Phase 2 tasks with Phase 1 determines the LLM's adaptability. For similar phase-wise datasets, the LLM after Phase 2 does not show deterioration in task ability. In contrast, when the phase-wise datasets are not similar, the LLM's task ability deteriorates. We test our hypothesis on the open-source \mis\ and \llm\ models with multiple phase-wise dataset pairs. To address the deterioration, we analyze tailored variants of two CFT methods: layer freezing and generative replay. Our findings demonstrate their effectiveness in enhancing the language ability of LLMs while preserving task performance, in comparison to relevant baselines.

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

↑