Scaling Autonomous Agents via Automatic Reward Modeling And Planning
Zhenfang Chen, Delin Chen, Rui Sun, Wenjun Liu, Chuang Gan
TL;DR
The paper tackles the challenge of enabling LLM-based agents to perform multi-step decision-making in interactive environments without heavy reliance on expensive APIs or labor-intensive labeling. It introduces ARMAP, a framework that automatically learns a task-specific reward signal from environment interactions by generating positive and negative trajectories with LLM navigators and refining task intents, then training a Vision-Language scoring backbone (VILA) to evaluate trajectory satisfaction. This learned reward signal is integrated with planning algorithms (Best-of-N, Reflexion, MCTS) to improve action planning across diverse benchmarks including Webshop, ScienceWorld, and Game of 24, with demonstrated controllable generation via reward-target customization. The results show robust improvements across model sizes, data efficiency, and cross-domain applicability, highlighting ARMAP’s potential to reduce labeling needs and API dependence while enabling flexible, goal-directed autonomous agents.
Abstract
Large language models (LLMs) have demonstrated remarkable capabilities across a range of text-generation tasks. However, LLMs still struggle with problems requiring multi-step decision-making and environmental feedback, such as online shopping, scientific reasoning, and mathematical problem-solving. Unlike pure text data, collecting large-scale decision-making data is challenging. Moreover, many powerful LLMs are only accessible through APIs, which hinders their fine-tuning for agent tasks due to cost and complexity. To address LLM agents' limitations, we propose a framework that can automatically learn a reward model from the environment without human annotations. This model can be used to evaluate the action trajectories of LLM agents and provide heuristics for task planning. Specifically, our approach involves employing one LLM-based agent to navigate an environment randomly, generating diverse action trajectories. Subsequently, a separate LLM is leveraged to assign a task intent and synthesize a negative response alongside the correct response for each trajectory. These triplets (task intent, positive response, and negative response) are then utilized as training data to optimize a reward model capable of scoring action trajectories. The effectiveness and generalizability of our framework are demonstrated through evaluations conducted on different agent benchmarks. In conclusion, our proposed framework represents a significant advancement in enhancing LLM agents' decision-making capabilities. By automating the learning of reward models, we overcome the challenges of data scarcity and API limitations, potentially revolutionizing the application of LLMs in complex and interactive environments. This research paves the way for more sophisticated AI agents capable of tackling a wide range of real-world problems requiring multi-step decision-making.
