Skip to main content
QUICK REVIEW

[论文解读] Enabling Intelligent Interactions between an Agent and an LLM: A Reinforcement Learning Approach

Bin Hu, Chenyang Zhao|arXiv (Cornell University)|Jun 6, 2023
Topic ModelingComputer Science被引用 11
一句话总结

When2Ask 在信息量充足时才训练代理查询大型语言模型(LLM),在 MiniGrid 和 Habitat 环境中实现具有竞争力的任务成功率,同时降低与 LLM 的交互成本。

ABSTRACT

Large language models (LLMs) encode a vast amount of world knowledge acquired from massive text datasets. Recent studies have demonstrated that LLMs can assist an embodied agent in solving complex sequential decision making tasks by providing high-level instructions. However, interactions with LLMs can be time-consuming. In many practical scenarios, it requires a significant amount of storage space that can only be deployed on remote cloud servers. Additionally, using commercial LLMs can be costly since they may charge based on usage frequency. In this paper, we explore how to enable intelligent cost-effective interactions between a down stream task oriented agent and an LLM. We find that this problem can be naturally formulated by a Markov decision process (MDP), and propose When2Ask, a reinforcement learning based approach that learns when it is necessary to query LLMs for high-level instructions to accomplish a target task. On one side, When2Ask discourages unnecessary redundant interactions, while on the other side, it enables the agent to identify and follow useful instructions from the LLM. This enables the agent to halt an ongoing plan and transition to a more suitable one based on new environmental observations. Experiments on MiniGrid and Habitat environments that entail planning sub-goals demonstrate that When2Ask learns to solve target tasks with only a few necessary interactions with the LLM, significantly reducing interaction costs in testing environments compared with baseline methods. Our code is available at: https://github.com/ZJLAB-AMMI/LLM4RL.

研究动机与目标

  • 推动在具身代理中减少与 LLM 规划者的高成本交互。
  • 开发一个带可学习询问策略的 Planner-Actor-Mediator 架构。
  • 在部分可观测环境(MiniGrid)和现实场景(Habitat)中演示成本有效的规划。
  • 提供开源代码以推进基于 LLM 的强化学习研究。

提出的方法

  • 使用一个 Planner-Actor-Mediator 架构,其中规划器是一个预训练的 LLM。
  • 定义一个具有通过 PPO 训练的询问策略的中介,以决定何时查询 LLM。
  • 通过翻译器将观测表示为文本以供 LLM 规划器使用。
  • 为低级动作采用预定义的选项策略(探索、前往、捡取、切换)。
  • 用平衡任务表现与交互成本的奖励来训练中介的询问策略。

实验结果

研究问题

  • RQ1经过强化学习训练的询问策略是否能在不牺牲任务成功率的情况下减少不必要的 LLM 查询?
  • RQ2学习查询 LLM 是否能在部分可观测性下提高鲁棒性?
  • RQ3When2Ask 与基线在 MiniGrid 和 Habitat 的交互成本和成功率方面的比较?
  • RQ4该方法是否可在多样化的具身环境和任务中泛化?

主要发现

  • 该方法在保持高任务成功率的同时,减少了与 LLM 的交互次数,适用于多种环境。
  • 在 MiniGrid 中,与 Always/Random 基线相比,我们的方法在显著更少的 LLM 交互下实现相似或更高的成功率。
  • 在 ColoredDoorKey 和 MovingObstacle 中,学习到的中介增强了对环境和翻译器不确定性的鲁棒性。
  • 该方法从简单的网格任务推广到视觉上更真实的 Habitat 任务,在成功率方面优于基线。
  • 提供开源代码以便复现和进一步研究。

阅读本论文

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

在 Nubint 中阅读本论文

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