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

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
1. Verfasser: Kolomeitsev, Konstantin
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866915148050989056
author Kolomeitsev, Konstantin
author_facet Kolomeitsev, Konstantin
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2502_08213
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle LLM Modules: Knowledge Transfer from a Large to a Small Model using Enhanced Cross-Attention
Kolomeitsev, Konstantin
Computation and Language
Machine Learning
I.2.7; D.2.11
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.
title LLM Modules: Knowledge Transfer from a Large to a Small Model using Enhanced Cross-Attention
topic Computation and Language
Machine Learning
I.2.7; D.2.11
url https://arxiv.org/abs/2502.08213