arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2402.02801cs.CLcs.AIcs.LG

KS-Lottery:为多语言语言模型寻找经过认证的中奖彩票

KS-Lottery: Finding Certified Lottery Tickets for Multilingual Language Models

Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);The University of Hong Kong(香港大学);Carnegie Mellon University(卡内基梅隆大学)

Fei Yuan, Chang Ma, Shuai Yuan, Qiushi Sun, Lei Li

AI总结:

本文提出 KS-Lottery 方法,利用 Kolmogorov-Smirnov Test 分析微调前后参数分布偏移,以识别多语言微调中极为有效的 LLM 参数小子集,理论上保证其性能与全量微调相当,实验发现微调 LLaMA 的 18 个 token 嵌入即可达到微调翻译性能。

摘要:

彩票假说认为在随机初始化的神经网络中存在“中奖彩票”。在微调场景下,LLM 是否存在中奖彩票?我们如何找到这些中奖彩票?本文提出 KS-Lottery,一种识别 LLM 参数小子集的方法,该子集在多语言微调中极为有效。核心思想是利用 Kolmogorov-Smirnov Test 分析微调前后参数的分布偏移。我们进一步从理论上证明,KS-Lottery 能在嵌入层找到经过认证的中奖彩票,在所找到参数上进行微调,保证能达到与全量微调相当的性能。在翻译任务上对比 KS-Lottery 与其他参数高效微调算法,实验结果表明,KS-Lottery 找到了更小的参数集进行微调,同时实现了与全量微调 LLM 相当的性能。令人惊讶的是,我们发现微调 LLaMA 的 18 个 token 的嵌入即可达到微调的翻译性能。

英文摘要:

The lottery ticket hypothesis posits the existence of ``winning tickets'' within a randomly initialized neural network. Do winning tickets exist for LLMs in fine-tuning scenarios? How can we find such winning tickets? In this paper, we propose KS-Lottery, a method to identify a small subset of LLM parameters highly effective in multilingual fine-tuning. Our key idea is to use Kolmogorov-Smirnov Test to analyze the distribution shift of parameters before and after fine-tuning. We further theoretically prove that KS-Lottery can find the certified winning tickets in the embedding layer, fine-tuning on the found parameters is guaranteed to perform as well as full fine-tuning. Comparing KS-Lottery with other parameter-efficient tuning algorithms on translation tasks, the experimental results show that KS-Lottery finds a much smaller set of parameters for fine-tuning while achieving the comparable performance as full fine-tuning LLM. Surprisingly, we find that fine-tuning 18 tokens' embedding of LLaMA suffices to reach the fine-tuning translation performance~\footnote{https://github.com/CONE-MT/KS-Lottery.}.

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

↑