LLM Modules:使用增强交叉注意力从大模型向小模型进行知识迁移
LLM Modules: Knowledge Transfer from a Large to a Small Model using Enhanced Cross-Attention
AI总结:
提出LLM Modules架构,通过增强交叉注意力将冻结的Qwen2-1.5B模型的知识迁移至有限资源训练的GPT-Neo-125M模型,在Bespoke-Stratos-17k数据集上经15轮训练后响应质量可与蒸馏方法媲美。
摘要:
在这项工作中,我们提出了一种LLM Modules架构,该架构通过增强交叉注意力(Enhanced Cross-Attention)机制实现从大型预训练模型向小型模型的知识迁移。在该方案中,Qwen2-1.5B模型被冻结,其表示通过专门设计的注意力层传递给GPT-Neo-125M模型,后者在有限的计算资源上进行训练。在Bespoke-Stratos-17k数据集上的实验结果表明,经过15个epoch的训练后,组合模型生成的响应质量可与蒸馏方法获得的响应相媲美。我们讨论了模块化方法的优势,提供了输入查询示例和对比分析,并概述了该方法进一步扩展的前景。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。