Skip to main content
QUICK REVIEW

[论文解读] Symbolic Learning Enables Self-Evolving Agents

Wangchunshu Zhou, Yixin Ou|arXiv (Cornell University)|Jun 26, 2024
Evolutionary Algorithms and ApplicationsComputer Science被引用 3
一句话总结

本文提出代理符号学习(agent symbolic learning),一种以数据为中心的框架,使语言代理能够通过符号反向传播和基于自然语言的损失与梯度模拟,自主优化其提示、工具和流程结构。该方法在复杂的真实世界任务和基准测试中实现了显著的性能提升,展示了无需人工干预的自我演化能力。

ABSTRACT

The AI community has been exploring a pathway to artificial general intelligence (AGI) by developing "language agents", which are complex large language models (LLMs) pipelines involving both prompting techniques and tool usage methods. While language agents have demonstrated impressive capabilities for many real-world tasks, a fundamental limitation of current language agents research is that they are model-centric, or engineering-centric. That's to say, the progress on prompts, tools, and pipelines of language agents requires substantial manual engineering efforts from human experts rather than automatically learning from data. We believe the transition from model-centric, or engineering-centric, to data-centric, i.e., the ability of language agents to autonomously learn and evolve in environments, is the key for them to possibly achieve AGI. In this work, we introduce agent symbolic learning, a systematic framework that enables language agents to optimize themselves on their own in a data-centric way using symbolic optimizers. Specifically, we consider agents as symbolic networks where learnable weights are defined by prompts, tools, and the way they are stacked together. Agent symbolic learning is designed to optimize the symbolic network within language agents by mimicking two fundamental algorithms in connectionist learning: back-propagation and gradient descent. Instead of dealing with numeric weights, agent symbolic learning works with natural language simulacrums of weights, loss, and gradients. We conduct proof-of-concept experiments on both standard benchmarks and complex real-world tasks and show that agent symbolic learning enables language agents to update themselves after being created and deployed in the wild, resulting in "self-evolving agents".

研究动机与目标

  • 为解决当前语言代理存在的工程中心化局限,即每个任务都需要手动调整提示和工具。
  • 使语言代理能够从数据中自主学习与演化,实现从模型中心化到数据中心化的转变。
  • 在代理系统中联合优化所有符号化组件——提示、工具和流程结构,以提升整体性能。
  • 证明符号学习能够在真实世界复杂任务中实现稳健且可泛化的优化,即使在真实指标模糊的情况下亦然。
  • 开源一个框架,加速向数据为中心、自我演化代理的人工通用智能研究。

提出的方法

  • 该框架将语言代理建模为符号网络,其中提示、工具及其组合构成类似神经网络权重的可学习组件。
  • 通过执行代理流程并记录输入、输出、提示和工具使用等轨迹,实现前向传播。
  • 基于自然语言的损失函数评估每条轨迹的结果,生成反映任务性能的文本损失分数。
  • 通过自然语言反思与分析模拟反向传播,每个节点根据其对整体损失的贡献进行更新。
  • 通过符号优化器执行类似梯度的更新,基于文本反馈优化提示和工具序列。
  • 该过程通过端到端、联合优化所有组件的方式,迭代改进代理的符号架构,其方式类似于神经网络中的反向传播。

实验结果

研究问题

  • RQ1语言代理能否在无须人工干预的情况下,以数据为中心的方式自我优化其提示、工具和流程结构?
  • RQ2对所有符号化组件进行联合优化,是否能带来优于孤立模块优化的性能提升?
  • RQ3在复杂任务中,符号学习与现有提示优化方法(如 DSPy 或 GPTSwarm)相比,在稳健性和泛化能力方面表现如何?
  • RQ4代理符号学习能否在未显式提示的情况下恢复已知的软件开发模式(例如:计划-写作-修订)?
  • RQ5初始代理设计对符号学习过程的收敛性和性能有何影响?

主要发现

  • 代理符号学习框架在标准大语言模型基准测试中持续优于基线方法,尤其在 MATH 竞赛级别基准测试中表现尤为突出。
  • 在创意写作任务中,该框架在 GPT-3.5 上获得 6.9 分,在 GPT-4 上获得 7.4 分,甚至超过依赖大量手动提示工程的 ToT 方法。
  • 与 AutoPE 和 DSPy 相比,该框架展现出更优的稳健性,后者在性能提升上表现不一致,甚至出现退化。
  • 在软件开发和游戏等复杂真实世界任务中,该方法实现了显著的性能提升,表明其在缺乏精确真实指标环境中的有效性。
  • 该框架成功恢复了已知的代理设计模式(如计划-写作-修订流程),表明其能够学习类人的推理结构。
  • 初始设计质量显著影响最终性能,初始代理越简单,优化结果越稳定且高效。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。