[論文レビュー] Enabling Intelligent Interactions between an Agent and an LLM: A Reinforcement Learning Approach
When2Askは情報量がある場合にのみLLMを照会するようエージェントを訓練し、MiniGridおよびHabitat環境でLLM相互作用コストを削減しつつタスク成功率を競合的に維持します。
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エージェントにおけるLLMプランナーとの高コストな相互作用の削減を動機付ける。
- Learnable Askingポリシーを持つPlanner-Actor-Mediatorフレームワークを開発する。
- 部分観測環境(MiniGrid)と現実的な設定(Habitat)でコスト効果の高いプランニングを実証する。
- LLM支援RLの研究を進めるオープンソースコードを提供する。
提案手法
- Planner-Actor-Mediatorアーキテクチャを利用し、プランナーは事前学習済みのLLM。
- 問いかけポリシーをPPOで訓練しLLM照会の時期を決定するメディエータを定義する。
- LLMプランナーへ入力を与える翻訳機を通して観測をテキストとして表現する。
- 低レベル行動のために事前定義されたオプションポリシー(Explore、Go to、Pickup、Toggle)を採用する。
- 報酬をタスク性能と相互作用コストのバランスで設計し、メディエータの問いかけポリシーを訓練する。
実験結果
リサーチクエスチョン
- RQ1RLで訓練された問いかけポリシーは情報量の多い照会を回避しつつタスク成功を損なわないか?
- RQ2LLMへの照会を学習することで部分観測下のロバスト性は向上するか?
- RQ3When2AskはMiniGridとHabitatにおいて相互作用コストと成功率の点でベースラインとどう比較されるか?
- RQ4アプローチは多様な embodied環境とタスクに一般化可能か?
主な発見
- 本手法は環境を跨いで高いタスク成功率を維持しつつLLMとの相互作用回数を削減する。
- MiniGridでは、Always/Randomベースラインと比較して同等以下のLLM相互作用で同等またはそれ以上の成功を達成。
- ColoredDoorKeyとMovingObstacleでは、学習済みメディエータが環境ノイズと翻訳機の不確実性に対する頑健性を高める。
- 単純なグリッドタスクから視覚的に現実的なHabitatタスクへと一般化し、成功率でベースラインを上回る。
- 再現性とさらなる研究のためにオープンソースコードを提供する。
この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。