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

通过自蒸馏在大型语言模型中高效注入知识

Efficient Knowledge Injection in LLMs via Self-Distillation

Aalto University(阿alto大学);Finnish Center for Artificial Intelligence (FCAI)(芬兰人工智能中心);System 2 AI

Kalle Kujanpää, Pekka Marttinen, Harri Valpola, Alexander Ilin

AI总结:

本文提出用提示蒸馏(一种自蒸馏方法)从自由文档向LLM注入新知识,无需更大教师模型或结构化格式,实验表明其优于监督微调甚至RAG,并分析了关键因素与扩展性。

摘要:

在许多实际应用中,大型语言模型(LLM)需要获取其预训练数据中不存在的新知识。高效利用这些知识通常依赖于监督微调或检索增强生成(RAG)。尽管RAG已成为知识注入的行业标准,但微调尚未取得同等成功。本文提出利用提示蒸馏,一种先前主要用于风格对齐和指令调优的基于自蒸馏的方法,来从自由格式文档中内化新的事实知识。与先前方法不同,我们的方法既不需要更大的教师模型,也不需要结构化的知识格式。在多种LLM规模和模型家族中,我们表明提示蒸馏优于标准监督微调,甚至能超越RAG。我们分析了促成提示蒸馏有效性的关键因素,并考察了其扩展方式。

英文摘要:

In many practical applications, large language models (LLMs) need to acquire new knowledge not present in their pre-training data. Efficiently leveraging this knowledge usually relies on supervised fine-tuning or retrieval-augmented generation (RAG). Although RAG has emerged as the industry standard for knowledge injection, fine-tuning has not yet achieved comparable success. This paper proposes utilizing prompt distillation, a self-distillation-based method previously explored primarily for style alignment and instruction tuning, to internalize new factual knowledge from free-form documents. Unlike prior methods, our approach requires neither larger teacher models nor structured knowledge formats. Across multiple LLM sizes and model families, we show that prompt distillation outperforms standard supervised fine-tuning and can even surpass RAG. We analyze the key factors contributing to prompt distillation's effectiveness and examine how it scales.

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

↑