Abstract
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.
Abstract (translated)
在这项工作中,我们提出了一种基于LLM模块的架构,该架构利用增强型跨注意力机制将大型预训练模型的知识转移到较小规模的模型中。在提议的方案中,Qwen2-1.5B 模型被冻结,并且其表示通过专门设计的注意力层传递到 GPT-Neo-125M 模型上进行训练,后者可以在有限的计算资源下运行。在 Bespoke-Stratos-17k 数据集上的实验结果表明,在经过 15 轮(epoch)的训练后,组合模型生成的回答质量可以与蒸馏方法得到的结果相媲美。我们讨论了模块化方法的优势,并提供了输入查询示例和比较分析,同时概述了进一步扩展该方法的可能性。
URL
https://arxiv.org/abs/2502.08213