arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2410.05563cs.CLcs.AIcs.LG
收藏

大型语言模型中的理性元推理

Rational Metareasoning for Large Language Models

Princeton University(普林斯顿大学);EPFL(洛桑联邦理工学院);Anthropic(Anthropic公司)

C. Nicolò De Sabbata, Theodore R. Sumers, Badr AlKhamissi, Antoine Bosselut, Thomas L. Griffiths

AI总结:

本研究基于认知科学的元推理计算模型,通过引入惩罚不必要推理的奖励函数并结合专家迭代训练LLM,使其在保持任务性能的同时显著降低推理成本。

摘要:

被提示进行推理已成为使用大型语言模型(LLMs)的一项核心技术,通过部署额外的推理时计算来提升任务性能。然而,随着LLMs在规模和应用上的增长,推理成本也相应地变得日益沉重。那么,我们该如何优化推理的成本-性能权衡?本研究基于认知科学中使用的元推理计算模型,引入了一种新方法,训练LLMs仅在必要时选择性地使用中间推理步骤。我们首先开发了一个奖励函数,该函数通过惩罚不必要的推理来纳入计算价值,然后使用该奖励函数结合专家迭代来训练LLM。与少样本思维链提示和STaR相比,我们的方法显著降低了推理成本(在三个模型中生成的token减少了20-37%),同时在多样化数据集上保持了任务性能。

英文摘要:

Being prompted to engage in reasoning has emerged as a core technique for using large language models (LLMs), deploying additional inference-time compute to improve task performance. However, as LLMs increase in both size and adoption, inference costs are correspondingly becoming increasingly burdensome. How, then, might we optimize reasoning's cost-performance tradeoff? This work introduces a novel approach based on computational models of metareasoning used in cognitive science, training LLMs to selectively use intermediate reasoning steps only when necessary. We first develop a reward function that incorporates the Value of Computation by penalizing unnecessary reasoning, then use this reward function with Expert Iteration to train the LLM. Compared to few-shot chain-of-thought prompting and STaR, our method significantly reduces inference costs (20-37\% fewer tokens generated across three models) while maintaining task performance across diverse datasets.

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

↑