Skip to main content
CenXiv.org
此网站处于试运行阶段,支持我们!
我们衷心感谢所有贡献者的支持。
贡献
赞助
cenxiv logo > cs > arXiv:2507.03254

帮助 | 高级搜索

计算机科学 > 人工智能

arXiv:2507.03254 (cs)
[提交于 2025年7月4日 ]

标题: CodeAgents:一种针对LLMs中编码多智能体推理的令牌高效框架

标题: CodeAgents: A Token-Efficient Framework for Codified Multi-Agent Reasoning in LLMs

Authors:Bruce Yang, Xinfeng He, Huan Gao, Yifan Cao, Xiaofan Li, David Hsu
摘要: 有效的提示设计对于提升大型语言模型(LLM)驱动代理的规划能力至关重要。 然而,现有的结构化提示策略通常仅限于单代理、仅计划的设置,并且通常仅根据任务准确性来评估性能——忽略了多代理环境中至关重要的因素,如令牌效率、模块化和可扩展性。 为解决这些限制,我们引入了CodeAgents,一个将多代理推理编码化的提示框架,并在多代理系统中实现了结构化、令牌高效的规划。 在CodeAgents中,所有代理交互的组件——任务、计划、反馈、系统角色和外部工具调用——都被编码为带有控制结构(例如循环、条件语句)的模块化伪代码,包括布尔逻辑和类型变量。 这种设计将松散连接的代理计划转化为连贯、可解释和可验证的多代理推理程序。 我们在三个不同的基准测试——GAIA、HotpotQA和VirtualHome上评估了所提出的框架,并使用了一系列代表性的LLM。 结果表明,规划性能有稳定的提升,在自然语言提示基线上绝对提升了3-36个百分点。 在VirtualHome上,我们的方法达到了56%的新最先进成功率。 此外,我们的方法分别减少了输入和输出令牌使用量的55-87%和41-70%,强调了在可扩展多代理LLM系统开发中令牌感知评估指标的重要性。 代码和资源可在以下网址获取:https://anonymous.4open.science/r/CodifyingAgent-5A86
摘要: Effective prompt design is essential for improving the planning capabilities of large language model (LLM)-driven agents. However, existing structured prompting strategies are typically limited to single-agent, plan-only settings, and often evaluate performance solely based on task accuracy - overlooking critical factors such as token efficiency, modularity, and scalability in multi-agent environments. To address these limitations, we introduce CodeAgents, a prompting framework that codifies multi-agent reasoning and enables structured, token-efficient planning in multi-agent systems. In CodeAgents, all components of agent interaction - Task, Plan, Feedback, system roles, and external tool invocations - are codified into modular pseudocode enriched with control structures (e.g., loops, conditionals), boolean logic, and typed variables. This design transforms loosely connected agent plans into cohesive, interpretable, and verifiable multi-agent reasoning programs. We evaluate the proposed framework across three diverse benchmarks - GAIA, HotpotQA, and VirtualHome - using a range of representative LLMs. Results show consistent improvements in planning performance, with absolute gains of 3-36 percentage points over natural language prompting baselines. On VirtualHome, our method achieves a new state-of-the-art success rate of 56%. In addition, our approach reduces input and output token usage by 55-87% and 41-70%, respectively, underscoring the importance of token-aware evaluation metrics in the development of scalable multi-agent LLM systems. The code and resources are available at: https://anonymous.4open.science/r/CodifyingAgent-5A86
主题: 人工智能 (cs.AI)
引用方式: arXiv:2507.03254 [cs.AI]
  (或者 arXiv:2507.03254v1 [cs.AI] 对于此版本)
  https://doi.org/10.48550/arXiv.2507.03254
通过 DataCite 发表的 arXiv DOI

提交历史

来自: Xinfeng He [查看电子邮件]
[v1] 星期五, 2025 年 7 月 4 日 02:20:19 UTC (645 KB)
全文链接:

获取论文:

    查看标题为《》的 PDF
  • 查看中文 PDF
  • 查看 PDF
  • HTML(实验性)
  • TeX 源代码
  • 其他格式
查看许可
当前浏览上下文:
cs
< 上一篇   |   下一篇 >
新的 | 最近的 | 2025-07
切换浏览方式为:
cs.AI

参考文献与引用

  • NASA ADS
  • 谷歌学术搜索
  • 语义学者
a 导出 BibTeX 引用 加载中...

BibTeX 格式的引用

×
数据由提供:

收藏

BibSonomy logo Reddit logo

文献和引用工具

文献资源探索 (什么是资源探索?)
连接的论文 (什么是连接的论文?)
Litmaps (什么是 Litmaps?)
scite 智能引用 (什么是智能引用?)

与本文相关的代码,数据和媒体

alphaXiv (什么是 alphaXiv?)
CatalyzeX 代码查找器 (什么是 CatalyzeX?)
DagsHub (什么是 DagsHub?)
Gotit.pub (什么是 GotitPub?)
Hugging Face (什么是 Huggingface?)
带有代码的论文 (什么是带有代码的论文?)
ScienceCast (什么是 ScienceCast?)

演示

复制 (什么是复制?)
Hugging Face Spaces (什么是 Spaces?)
TXYZ.AI (什么是 TXYZ.AI?)

推荐器和搜索工具

影响之花 (什么是影响之花?)
核心推荐器 (什么是核心?)
IArxiv 推荐器 (什么是 IArxiv?)
  • 作者
  • 地点
  • 机构
  • 主题

arXivLabs:与社区合作伙伴的实验项目

arXivLabs 是一个框架,允许合作伙伴直接在我们的网站上开发和分享新的 arXiv 特性。

与 arXivLabs 合作的个人和组织都接受了我们的价值观,即开放、社区、卓越和用户数据隐私。arXiv 承诺这些价值观,并且只与遵守这些价值观的合作伙伴合作。

有一个为 arXiv 社区增加价值的项目想法吗? 了解更多关于 arXivLabs 的信息.

这篇论文的哪些作者是支持者? | 禁用 MathJax (什么是 MathJax?)
  • 关于
  • 帮助
  • contact arXivClick here to contact arXiv 联系
  • 订阅 arXiv 邮件列表点击这里订阅 订阅
  • 版权
  • 隐私政策
  • 网络无障碍帮助
  • arXiv 运营状态
    通过...获取状态通知 email 或者 slack

京ICP备2025123034号