arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.19112cs.LG
收藏

一个教师胜过百万条指令

A Teacher Is Worth A Million Instructions

Flipkart

Nikhil Kothari, Ravindra Nayak, Shreyas Shetty, Amey Patil, Nikesh Garera

AI总结:

提出利用混合专家等更大模型作为教师改进7B/13B小模型训练,并引入领域专家模型对齐阶段,使Mistral 7B等模型性能超越更大参数的最先进模型。

摘要:

大型语言模型(LLMs)展现出了卓越的能力,然而训练这些模型颇具挑战。这严重依赖于数据质量以及寻找最佳指令微调集。此外,训练方法的固有局限性使得训练具有7B和13B参数的相对较小模型面临巨大困难。在我们的研究中,我们提出了一种改进的训练方法,通过利用更大模型的知识,例如混合专家(8x7B)架构。这些更大模型的规模使其能够仅从数据中捕获广泛的变体,成为较小模型的有效教师。此外,我们实施了一种新颖的训练后领域对齐阶段,该阶段采用领域特定专家模型在训练期间增强领域特定知识,同时保持模型的泛化能力。使用我们的方法微调Mistral 7B和2x7B,超越了具有超过7B和13B参数的最先进语言模型的性能:在MT-Bench上达到7.9,在AlpacaEval上达到93.04%。

英文摘要:

Large Language Models(LLMs) have shown exceptional abilities, yet training these models can be quite challenging. There is a strong dependence on the quality of data and finding the best instruction tuning set. Further, the inherent limitations in training methods create substantial difficulties to train relatively smaller models with 7B and 13B parameters. In our research, we suggest an improved training method for these models by utilising knowledge from larger models, such as a mixture of experts (8x7B) architectures. The scale of these larger models allows them to capture a wide range of variations from data alone, making them effective teachers for smaller models. Moreover, we implement a novel post-training domain alignment phase that employs domain-specific expert models to boost domain-specific knowledge during training while preserving the model's ability to generalise. Fine-tuning Mistral 7B and 2x7B with our method surpasses the performance of state-of-the-art language models with more than 7B and 13B parameters: achieving up to $7.9$ in MT-Bench and $93.04\%$ on AlpacaEval.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑