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)|2023. 06. 06.
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.

연구 동기 및 목표

  • embodied agents에서 LLM 플래너와의 비용이 큰 상호작용을 줄이려는 동기 부여.
  • Planner-Actor-Mediator 프레임워크를 학습 가능한 asking 정책으로 개발.
  • 부분 관찰 환경(MiniGrid)과 현실적인 설정(Habitat)에서 비용 효율적인 계획을 시연한다.
  • LLM 보조 RL에 대한 연구를 발전시키기 위해 오픈 소스 코드를 제공한다.

제안 방법

  • 학습된 LLM인 플래너를 가진 Planner-Actor-Mediator 아키텍처를 활용한다.
  • LLM에 질의할 시점을 결정하도록 PPO로 학습된 asking 정책을 가진 Mediator를 정의한다.
  • LLM 플래너를 feed하기 위해 변환기를 통해 관측을 텍스트로 표현한다.
  • 저수준 행동에 대해 사전에 정의된 옵션 정책(Explore, Go to, Pickup, Toggle)을 사용한다.
  • 작업 성능과 상호작용 비용의 균형을 맞춘 보상으로 Mediator의 asking 정책을 학습시킨다.

실험 결과

연구 질문

  • RQ1 RL로 학습된 asking 정책이 불필요한 LLM 질의를 줄이면서 작업 성공을 해치지 않을 수 있는가?
  • RQ2 LLM 질의를 학습하는 것이 부분 관찰성 하에서 강인성을 향상시키는가?
  • RQ3 MiniGrid와 Habitat에서 상호작용 비용과 성공률 측면에서 When2Ask가 Baseline과 어떻게 비교되는가?
  • RQ4 이 방법은 다양한 구현환경과 작업에서 일반화될 수 있는가?

주요 결과

  • 이 방법은 다양한 환경에서 높은 작업 성공을 유지하면서 LLM 상호작용 수를 줄인다.
  • MiniGrid에서 우리의 방법은 Always/Random 기준선에 비해 훨씬 적은 LLM 상호작용으로 유사하거나 더 높은 성공률을 달성한다.
  • ColoredDoorKey와 MovingObstacle에서 학습된 Mediator는 환경 및 번역기 불확실성에 대한 강인성을 향상시킨다.
  • 이 방법은 단순 그리드 태스크에서 시각적으로 현실적인 Habitat 태스크로 일반화되며 성공률에서 Baseline을 능가한다.
  • 재현성과 향후 연구를 위한 오픈 소스 코드가 제공된다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.