Skip to main content
QUICK REVIEW

[论文解读] Cognitive Architectures for Language Agents

Theodore R. Sumers, Shunyu Yao|arXiv (Cornell University)|Sep 5, 2023
Topic ModelingComputer Science被引用 56
一句话总结

CoALA 提出了一种用于语言代理的框架,将它们按记忆、行动空间和决策制定进行组织,以统一和引导基于 LLM 的代理的开发。

ABSTRACT

Recent efforts have augmented large language models (LLMs) with external resources (e.g., the Internet) or internal control flows (e.g., prompt chaining) for tasks requiring grounding or reasoning, leading to a new class of language agents. While these agents have achieved substantial empirical success, we lack a systematic framework to organize existing agents and plan future developments. In this paper, we draw on the rich history of cognitive science and symbolic artificial intelligence to propose Cognitive Architectures for Language Agents (CoALA). CoALA describes a language agent with modular memory components, a structured action space to interact with internal memory and external environments, and a generalized decision-making process to choose actions. We use CoALA to retrospectively survey and organize a large body of recent work, and prospectively identify actionable directions towards more capable agents. Taken together, CoALA contextualizes today's language agents within the broader history of AI and outlines a path towards language-based general intelligence.

研究动机与目标

  • 激发需要一个统一框架来比较多样的语言代理。
  • 引入一个受认知体系结构启发的蓝图(CoALA),用于组织语言代理中的记忆、行动和决策制定。
  • 展示 CoALA 如何表达现有代理并突出未来更强代理的方向。

提出的方法

  • 将语言代理映射到 CoALA 的三个维度:记忆(工作记忆和长期记忆)、行动空间(外部和内部)以及决策制定(计划和执行)。
  • 定义记忆子类型:情节记忆、语义记忆、程序记忆和工作记忆,并解释它们在代理推理与学习中的作用。
  • 将 grounding 描述为与物理环境、人与数字环境互动的外部行动,并将内部行动(检索、推理、学习)进行分类。
  • 概述一个循环的决策周期,其中推理和检索规划行动,选择最佳的 grounding 或学习行动并执行。
  • 将 LLMs 置于更广泛的受认知体系结构启发的系统中的核心组件,能够实现基于文本的内部表示和灵活的推理。
Figure 1: Different uses of large language models (LLMs). A : In natural language processing (NLP), an LLM takes text as input and outputs text. B : Language agents (Ahn et al., 2022 ; Huang et al., 2022c ) place the LLM in a direct feedback loop with the external environment by transforming observa
Figure 1: Different uses of large language models (LLMs). A : In natural language processing (NLP), an LLM takes text as input and outputs text. B : Language agents (Ahn et al., 2022 ; Huang et al., 2022c ) place the LLM in a direct feedback loop with the external environment by transforming observa

实验结果

研究问题

  • RQ1认知体系结构框架如何组织多样的语言代理工作?
  • RQ2哪些核心的记忆、行动和决策组件能够可靠地支持语言代理的整体智能?
  • RQ3CoALA 怎样表达现有的语言代理并指导未来的开发?
  • RQ4CoALA 对构建更强大语言代理提出了哪些可执行的步骤?

主要发现

  • CoALA 提供了语言代理的三维结构化——记忆、行动和决策制定——可以表达广泛的现有工作。
  • 代理可以被理解为相互作用的记忆模块、grounding 接口,以及一个循环的决策过程,用于计划和执行。
  • 该框架将产生式系统的概念与现代基于 LLM 的代理联系起来,阐明了内部推理、检索和学习如何构成代理行为。
  • 通过 LLMs 及 grounding 的 grounding 与记忆管理使语言代理的端到端设计更加灵活。
  • 该综述识别了未被充分探索的方向,以及推动语言代理能力走向更广泛智能的实际步骤。
Figure 2: Cognitive architectures augment a production system with sensory groundings, long-term memory, and a decision procedure for selecting actions. A : The Soar architecture, reproduced with permission from Laird ( 2022 ) . B : Soar’s decision procedure uses productions to select and implement
Figure 2: Cognitive architectures augment a production system with sensory groundings, long-term memory, and a decision procedure for selecting actions. A : The Soar architecture, reproduced with permission from Laird ( 2022 ) . B : Soar’s decision procedure uses productions to select and implement

阅读本论文

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

在 Nubint 中阅读本论文

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