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

Tree-of-Code:一种用于鲁棒复杂任务规划与执行的混合方法

Tree-of-Code: A Hybrid Approach for Robust Complex Task Planning and Execution

Global Innovation Exchange Institution, Tsinghua University(清华大学全球创新学院);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);Baidu, Inc.(百度公司)

Ziyi Ni, Yifan Li, Daxiang Dong

AI总结:

针对LLM智能体逐步生成代码缺乏一致性和鲁棒性的问题,提出Tree-of-Code(ToC)框架,结合Tree-of-Thought与CodeAct,利用广度优先搜索和投票机制实现端到端的复杂任务规划与执行。

摘要:

大型语言模型(LLMs)的卓越能力极大地加速了智能体的快速崛起和广泛采用。最近的研究表明,生成Python代码以将基于LLM的智能体动作整合到统一的动作空间(CodeAct)中,是开发真实世界LLM智能体的一种有前景的方法。然而,这种逐步代码生成方法通常缺乏一致性和鲁棒性,导致智能体应用不稳定,特别是在复杂推理和领域外任务中。在本文中,我们提出了一种名为Tree-of-Code(ToC)的新方法,以端到端机制解决复杂问题规划和执行的挑战。通过整合Tree-of-Thought和CodeAct的关键思想,ToC结合了两者的优势来增强解决方案探索。在我们的框架中,每个最终代码执行结果被视为决策树中的一个节点,采用广度优先搜索策略来探索潜在解决方案。最终结果通过基于节点输出的投票机制确定。

英文摘要:

The exceptional capabilities of large language models (LLMs) have substantially accelerated the rapid rise and widespread adoption of agents. Recent studies have demonstrated that generating Python code to consolidate LLM-based agents' actions into a unified action space (CodeAct) is a promising approach for developing real-world LLM agents. However, this step-by-step code generation approach often lacks consistency and robustness, leading to instability in agent applications, particularly for complex reasoning and out-of-domain tasks. In this paper, we propose a novel approach called Tree-of-Code (ToC) to tackle the challenges of complex problem planning and execution with an end-to-end mechanism. By integrating key ideas from both Tree-of-Thought and CodeAct, ToC combines their strengths to enhance solution exploration. In our framework, each final code execution result is treated as a node in the decision tree, with a breadth-first search strategy employed to explore potential solutions. The final outcome is determined through a voting mechanism based on the outputs of the nodes.

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

↑