分而治之?你应该蒸馏大语言模型的哪一部分?
Divide-or-Conquer? Which Part Should You Distill Your LLM?
AI总结:
本文研究将推理任务分解为问题分解与问题求解两阶段,发现问题分解能力更易蒸馏到小模型且泛化良好,而问题求解能力蒸馏困难,提出结合小分解模型与大语言模型实现低成本高效推理。
摘要:
最近的方法已经证明,当鼓励大语言模型(LLMs)先解决主任务的子任务时,它们能够更好地完成推理任务。在本文中,我们设计了一种类似的策略,将推理任务分解为问题分解阶段和问题求解阶段,并表明该策略能够优于单阶段求解方案。此外,我们假设与问题求解能力相比,问题分解能力应当更容易被蒸馏到较小的模型中,因为后者需要大量的领域知识,而前者只需要学习通用的问题求解策略。我们提出了蒸馏这两种能力的方法,并评估了它们对推理结果和推理成本的影响。我们发现,我们可以蒸馏问题分解阶段,同时在不同任务、数据集和模型之间取得良好的泛化效果。然而,在不损失性能的情况下蒸馏问题求解能力更加困难,并且得到的蒸馏模型在泛化方面表现不佳。这些结果表明,通过将较小的、经过蒸馏的问题分解模型与用于问题求解的大语言模型结合使用,我们可以实现具有成本效益的推理和本地适应。
英文摘要:
Recent methods have demonstrated that Large Language Models (LLMs) can solve reasoning tasks better when they are encouraged to solve subtasks of the main task first. In this paper we devise a similar strategy that breaks down reasoning tasks into a problem decomposition phase and a problem solving phase and show that the strategy is able to outperform a single stage solution. Further, we hypothesize that the decomposition should be easier to distill into a smaller model compared to the problem solving because the latter requires large amounts of domain knowledge while the former only requires learning general problem solving strategies. We propose methods to distill these two capabilities and evaluate their impact on reasoning outcomes and inference cost. We find that we can distill the problem decomposition phase and at the same time achieve good generalization across tasks, datasets, and models. However, it is harder to distill the problem solving capability without losing performance and the resulting distilled model struggles with generalization. These results indicate that by using smaller, distilled problem decomposition models in combination with problem solving LLMs we can achieve reasoning with cost-efficient inference and local adaptation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。