2025-02-21 · 进阶 · 自然语言处理 · 机器学习

How Much Knowledge Can You Pack into a LoRA Adapter without Harming LLM?

这篇论文研究了如何在保持大型语言模型(LLM)之前学到的知识的前提下,利用LoRA技术将其适应于新的知识,并探讨了这种方法可能带来的风险。

更新于 2026-10-07。作者:Sergey Pletenev、Maria Marina、Daniil Moskovskiy、Vasily Konovalov、Pavel Braslavski、Alexander Panchenko、Mikhail Salnikov。

中文摘要

大型语言模型(LLMs)在许多任务上的表现受到预训练期间学习并存储在模型参数中的知识的极大限制。低秩适应(LoRA)是一种流行且高效的LLMs更新或特定领域适应的训练技术。在本研究中,我们探讨了如何使用LoRA将新事实纳入LLM,同时不损害先前学习到的知识。我们使用不同量的新知识对Llama-3.1-8B-instruct进行了微调,使用LoRA。我们的实验表明,当训练数据包含已知和新事实的混合时,可以获得最佳结果。然而,这种方法仍然可能是有害的,因为在此微调后,模型在外部问答基准测试中的表现会下降。当训练数据偏向某些实体时,模型往往会回归到少数过度表示的答案。此外,我们发现模型在极少数情况下变得更加自信,并拒绝提供答案。这些发现突显了基于LoRA的LLM更新的潜在陷阱,并强调了训练数据组成和调整参数的重要性,以平衡新知识的整合和模型的一般能力。

英文摘要

The performance of Large Language Models (LLMs) on many tasks is greatly limited by the knowledge learned during pre-training and stored in the model's parameters. Low-rank adaptation (LoRA) is a popular and efficient training technique for updating or domain-specific adaptation of LLMs. In this study, we investigate how new facts can be incorporated into the LLM using LoRA without compromising the previously learned knowledge. We fine-tuned Llama-3.1-8B-instruct using LoRA with varying amounts of new knowledge. Our experiments have shown that the best results are obtained when the training data contains a mixture of known and new facts. However, this approach is still potentially harmful because the model's performance on external question-answering benchmarks declines after such fine-tuning. When the training data is biased towards certain entities, the model tends to regress to few overrepresented answers. In addition, we found that the model becomes more confident and refuses to provide an answer in only few cases. These findings highlight the potential pitfalls of LoRA-based LLM updates and underscore the importance of training data composition and tuning parameters to balance new knowledge integration and general model capabilities.

解读

一句话总结

这篇论文研究了如何在保持大型语言模型(LLM)之前学到的知识的前提下,利用LoRA技术将其适应于新的知识,并探讨了这种方法可能带来的风险。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源