Transformer层注入:一种高效扩展大语言模型的新方法
Transformer Layer Injection: A Novel Approach for Efficient Upscaling of Large Language Models
AI总结:
本文提出Transformer Layer Injection(TLI)方法,通过在每K层注入新层高效扩展大语言模型,减少初始损失与微调需求,在多项任务上以更少训练步骤实现更优性能且具成本效益。
摘要:
在本文中,我们提出了Transformer Layer Injection(TLI),一种在最小化计算成本并保持模型性能的同时,高效扩展大语言模型(LLMs)的新方法。模型规模是提升机器学习模型质量的关键因素,TLI通过减少初始损失、最小化微调需求并保持模型复杂性,解决了扩展的挑战。我们的方法改进了传统的Depth Up-Scaling(DUS)技术,通过在每K层集合中注入新层,使隐藏表示能够以最小的干扰通过transformer块。我们将TLI与现有方法(包括Mixture of Experts(MoE)和DUS)进行比较,并通过在小型LLM(LLama3 1B、3B和8B)上的实验验证了其效率。结果表明,TLI实现了更好的初始化,需要更少的训练步骤,并在KoBEST和KMCQA等任务上提供了卓越的准确性,模型即使无需额外训练也能有效运行。实验证明TLI既具有数据效率又具有成本效益,显著优于现有方法。其可扩展性和简单性使其成为扩展基于transformer的模型的有前途的解决方案,在将模型从10B扩展到405B参数方面具有潜在应用。
英文摘要:
In this paper, we propose Transformer Layer Injection (TLI), a novel method for efficiently upscaling large language models (LLMs) while minimizing computational costs and maintaining model performance. Model scale is a key factor in enhancing the quality of machine learning models, and TLI addresses the challenge of scaling by reducing initial loss, minimizing fine-tuning requirements, and preserving model complexity. Our approach improves upon the conventional Depth Up-Scaling (DUS) technique by injecting new layers into every set of K layers, enabling hidden representations to pass through transformer blocks with minimal disruption. We compare TLI with existing approaches, including Mixture of Experts (MoE) and DUS, and validate its efficiency through experiments on small LLMs (LLama3 1B, 3B, and 8B). Results show that TLI achieves better initialization, requires fewer training steps, and delivers superior accuracy on tasks such as KoBEST and KMCQA, with models performing effectively even without additional training. TLI is demonstrated to be both data-efficient and cost-effective, significantly outperforming existing methods. Its scalability and simplicity make it a promising solution for upscaling transformer-based models, with potential applications in scaling models from 10B to 405B parameters.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。