ReWOO:将推理与观察解耦以实现高效增强语言模型
ReWOO: Decoupling Reasoning from Observations for Efficient Augmented Language Models
AI总结:
本文提出ReWOO模块化范式,将推理与外部观察解耦以降低token消耗,在多个基准上实现5倍token效率和4%准确率提升,并支持将大模型推理能力卸载到小模型。
摘要:
增强语言模型(ALMs)将大型语言模型(LLMs)的推理能力与允许知识检索和动作执行的工具相结合。现有的ALM系统以交错方式触发LLM思维过程,同时从这些工具中获取观察结果。具体而言,LLM进行推理以调用外部工具,然后被暂停以获取工具的响应,再根据所有先前的响应token决定下一步动作。这种范式虽然直接且易于实现,但往往因冗余提示和重复执行而导致巨大的计算复杂度。本研究首次应对这些挑战,提出了一种模块化范式ReWOO(Reasoning WithOut Observation,无观察推理),将推理过程与外部观察分离,从而显著减少token消耗。在六个公共NLP基准和一个精心构建的数据集上的综合评估表明,我们所提出的方法带来了一致的性能提升。值得注意的是,ReWOO在多步推理基准HotpotQA上实现了5倍的token效率和4%的准确率提升。此外,ReWOO在工具故障场景下表现出鲁棒性。除了提示效率之外,将参数化模块与非参数化工具调用解耦,还使得指令微调能够将LLMs卸载到更小的语言模型中,从而大幅减少模型参数。我们的示例性工作将推理能力从175B参数的GPT3.5卸载到7B参数的LLaMA中,展示了真正高效且可扩展的ALM系统的巨大潜力。
英文摘要:
Augmented Language Models (ALMs) blend the reasoning capabilities of Large Language Models (LLMs) with tools that allow for knowledge retrieval and action execution. Existing ALM systems trigger LLM thought processes while pulling observations from these tools in an interleaved fashion. Specifically, an LLM reasons to call an external tool, gets halted to fetch the tool's response, and then decides the next action based on all preceding response tokens. Such a paradigm, though straightforward and easy to implement, often leads to huge computation complexity from redundant prompts and repeated execution. This study addresses such challenges for the first time, proposing a modular paradigm ReWOO (Reasoning WithOut Observation) that detaches the reasoning process from external observations, thus significantly reducing token consumption. Comprehensive evaluations across six public NLP benchmarks and a curated dataset reveal consistent performance enhancements with our proposed methodology. Notably, ReWOO achieves 5x token efficiency and 4% accuracy improvement on HotpotQA, a multi-step reasoning benchmark. Furthermore, ReWOO demonstrates robustness under tool-failure scenarios. Beyond prompt efficiency, decoupling parametric modules from non-parametric tool calls enables instruction fine-tuning to offload LLMs into smaller language models, thus substantially reducing model parameters. Our illustrative work offloads reasoning ability from 175B GPT3.5 into 7B LLaMA, demonstrating the significant potential for truly efficient and scalable ALM systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。