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

即插即用与微调:弥合小型语言模型与大型语言模型之间的差距

Plug-in and Fine-tuning: Bridging the Gap between Small Language Models and Large Language Models

Chung-Ang University(Chung-Ang 大学);AITRICS;DATUMO

Kyeonghyun Kim, Jinhee Jang, Juhwan Choi, Yoonji Lee, Kyohoon Jin, YoungBin Kim

AI总结:

本文提出 PiFi 框架,通过将 LLM 的单个冻结层插入 SLM 并进行任务微调,以较低计算成本提升小模型在理解、生成及未见领域上的性能。

摘要:

大型语言模型(LLM)以其丰富的语言知识和强大的泛化能力而闻名,但其高昂的计算需求使其不适用于资源受限的环境。相比之下,小型语言模型(SLM)计算效率较高,但往往缺乏 LLM 的广泛泛化能力。为弥合这一差距,我们提出 PiFi,这是一种结合 LLM 与 SLM 双方优势的新颖框架,可在保持效率的同时实现高性能。PiFi 将来自 LLM 的单个冻结层集成到 SLM 中,并针对特定任务微调组合后的模型,从而在不显著增加计算成本的情况下提升性能。我们表明,PiFi 在一系列自然语言处理任务(包括自然语言理解和生成)上均带来稳定的性能提升。此外,研究结果证明 PiFi 能够有效利用 LLM 知识,增强对未见领域的泛化能力,并促进语言能力的迁移。

英文摘要:

Large language models (LLMs) are renowned for their extensive linguistic knowledge and strong generalization capabilities, but their high computational demands make them unsuitable for resource-constrained environments. In contrast, small language models (SLMs) are computationally efficient but often lack the broad generalization capacity of LLMs. To bridge this gap, we propose PiFi, a novel framework that combines the strengths of both LLMs and SLMs to achieve high performance while maintaining efficiency. PiFi integrates a single frozen layer from an LLM into a SLM and fine-tunes the combined model for specific tasks, boosting performance without a significant increase in computational cost. We show that PiFi delivers consistent performance improvements across a range of natural language processing tasks, including both natural language understanding and generation. Moreover, our findings demonstrate PiFi's ability to effectively leverage LLM knowledge, enhancing generalization to unseen domains and facilitating the transfer of linguistic abilities.

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

↑