渐进式学习:利用大语言模型中的部分掌握知识优化微调
Gradual Learning: Optimizing Fine-Tuning with Partially Mastered Knowledge in Large Language Models
AI总结:
针对大语言模型微调时易遗忘已掌握知识、新知识学习受限的问题,提出两阶段渐进式微调策略,可提升整体准确率与知识保留度,在WikiQA数据集上知识获取量提升24%。
摘要:
在预训练阶段,大语言模型(LLM)从海量文本语料中获取了大量知识。然而,在微调、推理等后续阶段,模型可能会遇到初始训练未覆盖的知识,这会导致幻觉问题并造成性能下降。该问题对模型能力影响深远,因为模型在预训练后不可避免地会遇到超出范围的知识。此外,通常需要通过微调让大语言模型适配特定领域任务,但上述现象限制了模型在微调过程中学习和整合新信息的能力。微调的效果很大程度上取决于所涉及的知识类型。现有研究表明,在部分掌握的知识(例如模型在非贪心解码下有概率给出正确回答的问答对)上微调模型,能够让模型在获取新知识的同时减轻幻觉问题。值得注意的是,这种方法仍会导致模型遗忘已完全掌握的知识,从而将微调数据集限制在更窄的范围内,制约了模型整体的提升潜力。考虑到模型内在的推理能力以及不同知识领域之间的关联性,随着模型在微调过程中运用已有知识的能力提升,此前未掌握的知识可能会变得更易理解。为探究这一假设,我们开展了实验,并基于实验结果提出了一种两阶段微调策略。该方法不仅提升了模型的整体测试准确率和知识保留能力,还能维持其在已掌握内容上的准确率。在WikiQA数据集上进行微调时,我们的方法使模型在该阶段获取的知识量提升了24%。
英文摘要:
During the pretraining phase, large language models (LLMs) acquire vast amounts of knowledge from extensive text corpora. Nevertheless, in later stages such as fine-tuning and inference, the model may encounter knowledge not covered in the initial training, which can lead to hallucinations and degraded performance. This issue has a profound impact on the model's capabilities, as it will inevitably face out-of-scope knowledge after pretraining. Furthermore, fine-tuning is often required to adapt LLMs to domain-specific tasks. However, this phenomenon limits the model's ability to learn and integrate new information during fine-tuning. The effectiveness of fine-tuning largely depends on the type of knowledge involved. Existing research suggests that fine-tuning the model on partially mastered knowledge-for instance, question-answer pairs where the model has a chance of providing correct responses under non-greedy decoding-can enable the model to acquire new knowledge while mitigating hallucination. Notably, this approach can still lead to the forgetting of fully mastered knowledge, constraining the fine-tuning dataset to a narrower range and limiting the model's overall potential for improvement. Given the model's intrinsic reasoning abilities and the interconnectedness of different knowledge areas, it is likely that as the model's capacity to utilize existing knowledge improves during fine-tuning, previously unmastered knowledge may become more understandable. To explore this hypothesis, we conducted experiments and, based on the results, proposed a two-stage fine-tuning strategy. This approach not only improves the model's overall test accuracy and knowledge retention but also preserves its accuracy on previously mastered content. When fine-tuning on the WikiQA dataset, our method increases the amount of knowledge acquired by the model in this stage by 24%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。