Skip to main content
QUICK REVIEW

[论文解读] Aviary: training language agents on challenging scientific tasks

S. Narayanan, James D. Braza|arXiv (Cornell University)|Dec 30, 2024
Natural Language Processing TechniquesComputer Science被引用 7
一句话总结

Aviary 为语言代理引入一个 gym 框架,并展示通过专家迭代在线训练的开源 LLM 可以在多步科学任务上达到或超过前沿模型,且推理成本低得多。

ABSTRACT

Solving complex real-world tasks requires cycles of actions and observations. This is particularly true in science, where tasks require many cycles of analysis, tool use, and experimentation. Language agents are promising for automating intellectual tasks in science because they can interact with tools via natural language or code. Yet their flexibility creates conceptual and practical challenges for software implementations, since agents may comprise non-standard components such as internal reasoning, planning, tool usage, as well as the inherent stochasticity of temperature-sampled language models. Here, we introduce Aviary, an extensible gymnasium for language agents. We formalize agents as policies solving language-grounded partially observable Markov decision processes, which we term language decision processes. We then implement five environments, including three challenging scientific environments: (1) manipulating DNA constructs for molecular cloning, (2) answering research questions by accessing scientific literature, and (3) engineering protein stability. These environments were selected for their focus on multi-step reasoning and their relevance to contemporary biology research. Finally, with online training and scaling inference-time compute, we show that language agents backed by open-source, non-frontier LLMs can match and exceed both frontier LLM agents and human experts on multiple tasks at up to 100x lower inference cost.

研究动机与目标

  • 定义语言决策过程(LDPs)并将语言代理框架为培训的随机计算图。
  • 开发 Aviary,包含五个环境,其中三个科学任务,强调多步推理和工具使用。
  • 证明通过在线训练和采样,非前沿的 LLMs 可以在若干任务上达到或超过前沿模型。
  • 提供开源框架(Aviary 和 LDP)以实现跨环境、代理和优化器的模块化实验。

提出的方法

  • 将 LDPs 正式化为带有自然语言状态和动作空间的 POMDPs。
  • 将语言代理表示为结合确定性节点和随机节点的随机计算图。
  • 使用行为克隆和专家迭代,通过环境中的在线数据来训练代理。
  • 在推理阶段通过多数投票实现推断规模化以提升任务表现。
  • 在 Aviary gym 中实现五个环境——包括 DNA 构建工程、文献问答,以及蛋白质稳定性任务。
Figure 1: An overview of the five implemented Aviary environments and the language decision process (LDP) framework. The term language decision process here jointly refers to our theoretical description of the class of problems solved by language agents, as well as a software framework for implement
Figure 1: An overview of the five implemented Aviary environments and the language decision process (LDP) framework. The term language decision process here jointly refers to our theoretical description of the class of problems solved by language agents, as well as a software framework for implement

实验结果

研究问题

  • RQ1以语言决策过程为基础的语言代理能否在具备工具使用和观测反馈的多步科学任务中解决问题?
  • RQ2在线训练方法(行为克隆和专家迭代)是否使非前沿 LLMs 在科学任务上达到前沿模型?
  • RQ3推断时的采样策略(如多数投票)对语言代理在各任务上的表现有何影响?

主要发现

  • 通过在线训练并使用多数采样的非前沿 LLM 可以在几个任务上超过人类专家和前沿 LLM,且推理成本低至前者的 100 倍(如摘要所述)。
  • 行为克隆提供了强大的初始性能提升,随后专家迭代在 SeqQA 和 LitQA2 任务上带来进一步改进。
  • 多数投票显著提升 SeqQA 和 LitQA2 等选择题的准确性,有时提升约 20 个百分点。
  • 基于 Llama-3.1-8B-Instruct 的代理经过训练后可达到与 Claude 3.5 Sonnet 在具有挑战性的任务上的表现(如 SeqQA、LitQA2)。
  • 训练后的代理发展出多样化的工具使用策略;自我训练的轨迹往往比演示更短更直接。
Figure 3: Ability of LLMs and language agents to solve tasks using Aviary environments. All LDP-trained agents are optimized using behavior cloning and expert iteration. For GSM8K and hotpot QA, EI is performed on gpt-4o ; SeqQA and LitQA2 use Llama-3.1-8B-Instruct (see Section 5.1 ). The difference
Figure 3: Ability of LLMs and language agents to solve tasks using Aviary environments. All LDP-trained agents are optimized using behavior cloning and expert iteration. For GSM8K and hotpot QA, EI is performed on gpt-4o ; SeqQA and LitQA2 use Llama-3.1-8B-Instruct (see Section 5.1 ). The difference

阅读本论文

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

在 Nubint 中阅读本论文

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