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

向我展示如何做:解释在微调语言模型中的作用

Show Me How It's Done: The Role of Explanations in Fine-Tuning Language Models

University of Osnabrück(奥斯纳布吕克大学)

Mohamad Ballout, Ulf Krumnack, Gunther Heidemann, Kai-Uwe Kuehnberger

AI总结:

本研究探讨在微调语言模型时引入解释的作用,发现使用包含解释的数据进行微调能显著提升模型性能,尤其使小模型获益更多,并能减少训练数据量、增强泛化能力。

摘要:

我们的研究证明了使用带有解释的微调来提升语言模型性能的显著益处。与保持模型参数不变的提示不同,微调允许模型在训练阶段学习并更新其参数。在本研究中,我们对不同规模的语言模型应用了微调,使用的数据包含对输出的解释,而不仅仅是呈现答案。我们发现,即使是少至6000万参数的小型语言模型也从这种方法中获益匪浅。有趣的是,我们的结果表明,详细的解释对较小的模型比较小的模型更有益,而较大的模型则从任何形式的解释中都能获得几乎相同的优势,无论其长度如何。此外,我们证明包含解释使模型能够解决在没有解释时无法解决的任务。最后,我们认为,尽管添加解释具有挑战性,但包含解释的样本不仅减少了训练所需的数据量,还促进了模型更有效的泛化。本质上,我们的发现表明,带有解释的微调显著增强了大型语言模型的性能。

英文摘要:

Our research demonstrates the significant benefits of using fine-tuning with explanations to enhance the performance of language models. Unlike prompting, which maintains the model's parameters, fine-tuning allows the model to learn and update its parameters during a training phase. In this study, we applied fine-tuning to various sized language models using data that contained explanations of the output rather than merely presenting the answers. We found that even smaller language models with as few as 60 million parameters benefited substantially from this approach. Interestingly, our results indicated that the detailed explanations were more beneficial to smaller models than larger ones, with the latter gaining nearly the same advantage from any form of explanation, irrespective of its length. Additionally, we demonstrate that the inclusion of explanations enables the models to solve tasks that they were not able to solve without explanations. Lastly, we argue that despite the challenging nature of adding explanations, samples that contain explanations not only reduce the volume of data required for training but also promote a more effective generalization by the model. In essence, our findings suggest that fine-tuning with explanations significantly bolsters the performance of large language models.

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

↑