arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.05919cs.CLcs.LG
收藏

从风格到事实:映射通过微调注入知识的边界

From Style to Facts: Mapping the Boundaries of Knowledge Injection with Finetuning

Google Research(谷歌研究院);University of California, Berkeley(加利福尼亚大学伯克利分校)

Eric Zhao, Pranjal Awasthi, Nika Haghtalab

AI总结:

本文通过大规模实验研究Gemini v1.5微调,揭示数据格式、信息类型和推理需求等因素决定了知识注入的难度,并论证任务定制与知识注入并无本质区别。

摘要:

微调为针对特定任务或响应风格定制语言模型提供了一种可扩展且成本效益高的手段,其可靠性高于提示工程或上下文学习。相比之下,传统观点认为通过微调注入知识会导致性能脆弱且泛化能力差。我们认为,“任务定制”(例如指令微调)与“知识注入”(例如教授新事实)之间的二分法是一种没有差异的区分。相反,我们识别出能够解释微调中观察到的异质性效果的具体因素。为此,我们对前沿的 Gemini v1.5 模型家族进行了一项大规模实验研究,使用一系列经过人工设计的数据集,这些数据集在微调的优势与失败模式之间进行插值。我们的研究结果表明,问答式训练数据格式比文档/文章式训练数据能提供更强的知识泛化能力;数值信息比类别信息更难通过微调保留;并且即使模型在类似示例上训练过,在多步推理过程中也难以应用微调所得的知识——所有这些因素都使得“知识注入”尤其困难,即便在控制了数据增强和信息量等考虑因素之后也是如此。另一方面,我们的研究结果还表明,微调关于真实世界事件的信息并不比微调关于模型写作风格应为何种样式的信息在根本上更加困难。

英文摘要:

Finetuning provides a scalable and cost-effective means of customizing language models for specific tasks or response styles, with greater reliability than prompting or in-context learning. In contrast, the conventional wisdom is that injecting knowledge via finetuning results in brittle performance and poor generalization. We argue that the dichotomy of "task customization" (e.g., instruction tuning) and "knowledge injection" (e.g., teaching new facts) is a distinction without a difference. We instead identify concrete factors that explain the heterogeneous effectiveness observed with finetuning. To this end, we conduct a large-scale experimental study of finetuning the frontier Gemini v1.5 model family on a spectrum of datasets that are artificially engineered to interpolate between the strengths and failure modes of finetuning. Our findings indicate that question-answer training data formats provide much stronger knowledge generalization than document/article-style training data, numerical information can be harder for finetuning to retain than categorical information, and models struggle to apply finetuned knowledge during multi-step reasoning even when trained on similar examples -- all factors that render "knowledge injection" to be especially difficult, even after controlling for considerations like data augmentation and information volume. On the other hand, our findings also indicate that it is not fundamentally more difficult to finetune information about a real-world event than information about what a model's writing style should be.

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

↑