English

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

Computation and Language 2025-02-13 v1 Machine Learning

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.

Keywords

Cite

@article{arxiv.2502.08213,
  title  = {LLM Modules: Knowledge Transfer from a Large to a Small Model using Enhanced Cross-Attention},
  author = {Konstantin Kolomeitsev},
  journal= {arXiv preprint arXiv:2502.08213},
  year   = {2025}
}

Comments

Code and pre-trained weights available at https://huggingface.co/kkolomeitsev/llm-modules

R2 v1 2026-06-28T21:41:21.286Z