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

低资源情境下大型语言模型的知识注入方法比较

Comparing Knowledge Injection Methods for LLMs in a Low-Resource Regime

Faculdade de Engenharia Elétrica e de Computação (FEEC), University of Campinas (Unicamp)(电子工程与计算学院(FEEC),坎皮纳斯大学);Instituto de Computação (IC), University of Campinas (Unicamp)(计算研究所(IC),坎皮纳斯大学)

Hugo Abonizio, Thales Almeida, Roberto Lotufo, Rodrigo Nogueira

AI总结:

本文研究了在低资源情境下向LLMs注入小型非结构化信息的方法,发现通过多样化提示生成合成数据能显著提升新知识学习效果并缓解灾难性遗忘,同时揭示了RAG方法的敏感性及模型自我生成数据更新的潜力。

摘要:

大型语言模型(LLMs)通常需要海量的文本才能有效获取新知识。尽管在大型语料库上继续预训练或采用检索增强生成(RAG)已被证明是成功的,但仅用几千或几百万个token来更新LLM仍然具有挑战性。在这项工作中,我们研究了将小型、非结构化信息注入LLMs的任务及其与灾难性遗忘现象的关系。我们使用了一个近期新闻的数据集——确保与模型的预训练数据没有重叠——通过用与所学信息相关的问答对探测模型来评估知识获取情况。从继续预训练的基线开始,我们探索了不同的增强算法来生成合成数据,以提升知识获取能力。我们的实验表明,仅在有限数据上继续预训练只能带来适度的提升,而让模型接触多样的文本变体则能显著改善对新事实的学习——尤其是那些通过多样化提示诱导更大变异性的方法。此外,我们揭示了小数据情境下的遗忘现象,说明了学习新内容与保留现有能力之间的微妙平衡。我们还证实了基于RAG的知识注入方法的敏感性,与参数化方法相比,它们往往在控制数据集上导致更大的退化。最后,我们证明了模型自身能够生成有效的合成训练数据,这为自我改进的模型更新提供了一条途径。我们在实验中使用的所有代码和生成的数据均公开可用,为研究在有限数据下LLMs的高效知识注入提供了资源,网址为https://github.com/hugoabonizio/knowledge-injection-methods。

英文摘要:

Large language models (LLMs) often require vast amounts of text to effectively acquire new knowledge. While continuing pre-training on large corpora or employing retrieval-augmented generation (RAG) has proven successful, updating an LLM with only a few thousand or million tokens remains challenging. In this work, we investigate the task of injecting small, unstructured information into LLMs and its relation to the catastrophic forgetting phenomenon. We use a dataset of recent news -- ensuring no overlap with the model's pre-training data -- to evaluate the knowledge acquisition by probing the model with question-answer pairs related the learned information. Starting from a continued pre-training baseline, we explored different augmentation algorithms to generate synthetic data to improve the knowledge acquisition capabilities. Our experiments show that simply continuing pre-training on limited data yields modest improvements, whereas exposing the model to diverse textual variations significantly improves the learning of new facts -- particularly with methods that induce greater variability through diverse prompting. Furthermore, we shed light on the forgetting phenomenon in small-data regimes, illustrating the delicate balance between learning new content and retaining existing capabilities. We also confirm the sensitivity of RAG-based approaches for knowledge injection, which often lead to greater degradation on control datasets compared to parametric methods. Finally, we demonstrate that models can generate effective synthetic training data themselves, suggesting a pathway toward self-improving model updates. All code and generated data used in our experiments are publicly available, providing a resource for studying efficient knowledge injection in LLMs with limited data at https://github.com/hugoabonizio/knowledge-injection-methods.

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

↑