2025-02-13 · 进阶 · 自然语言处理 · 机器学习

LLM Modules: Knowledge Transfer from a Large to a Small Model using Enhanced Cross-Attention

本文提出了一种基于LLM模块和增强交叉注意力机制的架构,能够将大型预训练模型的知识迁移到小型模型,从而在有限计算资源下实现高效的文本生成。

更新于 2025-02-13。作者:Konstantin Kolomeitsev。

中文摘要

在这项工作中,我们提出了一种LLM模块的架构,该架构通过增强交叉注意力机制,使大型预训练模型的知识能够迁移到较小的模型中。在所提出的方案中,Qwen2-1.5B模型被冻结,其表示通过特别设计的注意力层传递到训练在有限计算资源上的GPT-Neo-125M模型。在Bespoke-Stratos-17k数据集上的实验结果表明,经过15个时期的训练后,该组合模型生成的响应与通过知识蒸馏获得的响应质量相当。我们讨论了模块化方法的优点,提供了输入查询示例和比较分析,并概述了方法进一步扩展的前景。

英文摘要

In this work, we propose an architecture of LLM Modules that enables the transfer of knowledge from a large pre-trained model to a smaller model using an Enhanced Cross-Attention mechanism. In the proposed scheme, the Qwen2-1.5B model is frozen and its representations are passed through specially designed attention layers to the GPT-Neo-125M model, which is trained on limited computational resources. Experimental results on the Bespoke-Stratos-17k dataset demonstrate that after 15 epochs of training, the combined model generates responses comparable in quality to those obtained by distillation. We discuss the advantages of the modular approach, provide examples of input queries and comparative analysis, and outline prospects for further extension of the method.

解读

一句话总结

本文提出了一种基于LLM模块和增强交叉注意力机制的架构,能够将大型预训练模型的知识迁移到小型模型,从而在有限计算资源下实现高效的文本生成。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源