Abstract
Reinforcement Learning (RL) enables robots to learn to perform tasks, but suffers from poor sample efficiency, especially in complex and high-dimensional environments. Due to the rich commonsense knowledge and advanced reasoning capabilities, recent work has explored the integration of robot learning via RL with large language models (LLMs). In this paper, we present Value Initialization and Adaptive Shaping (VIAS), a framework that uses large language models as external critics to provide guidance for value estimation. VIAS is expected to enhance the sample efficiency of robot policy learning via RL by warming-up and shaping its value estimation. We evaluated VIAS in a VirtualHome environment and on two real-world robot platforms in both motion planning and task planning tasks. Experimental results show that VIAS outperforms state-of-the-art methods in both learning speed and task completion. In addition, further analysis shows that VIAS remains effective regardless of the specific LLM model employed and outperforms the LLM directly gener- ated policy, demonstrating its potential for real-world robot applications.
Video 1: Demonstration of Real Robot Experiments with VIAS
Video 1. Demonstration of VIAS performance in robot experiments.
This video demonstrates the learning process and task completion results of a robot completing the goal: "Goal: put plate on kitchentable and then put cup on kitchentable" with the VIAS framework. To validate the proposed approach in a real-world scenario, we conducted a real-robot experiment using a mobile manipulator tasked with setting up a table according to a specified goal. The mobile manipulator used in this demonstration consists of a Segway base for navigation, a UR5e robotic arm equipped with a Hand-E gripper mounted on the Segway base for manipulation, and an overhead RGB-D camera fixed relative to the robot for perception. This setup provides the robot with the capabilities to perceive its environment, navigate within it, and interact with objects effectively.
ALGORITHM 1. VIAS Algorithm
Algorithm 1. Full procedure of VIAS, consisting of an initialization stage where a Q-network is pre-trained using LLM-generated heuristic values, followed by a standard deep Q-learning phase enhanced with ongoing LLM-based shaping.
Algorithm Explanation
Algorithm 1 outlines the full procedure for VIAS, consisting of an initialization stage where a Q-network is pre-trained using LLM-generated heuristic values, followed by a standard deep Q-learning phase enhanced with ongoing LLM-based shaping.
TABLE 1. Key Hyperparameters Used in VIAS
Table 1. Key parameters used in VIAS.
Table 1 summarizes the key hyperparameters used in our VIAS implementation based on the QVIAS agent. We highlight components that are particularly relevant to the integration of Large Language Model (LLM) feedback and TDQN.
FIGURE 1. Q-value Comparison
Figure 1. Three-Dimensional Analysis of Action Selection Policies Across Three Sequential States.
This figure presents a comparative analysis of Q-values generated by different frameworks for various actions under the same state in the VirtualHome environment. The agent's Goal is: "Goal: put 1 cutleryfork on the kitchentable." The Consecutive State axis represents three sequential states experienced by the agent under the optimal policy: "Agent is in Bathroom," "Agent is in Kitchen," and "Agent is close to Cutleryfork." The Valid Actions axis enumerates all executable actions available to the agent across these states. The Q-value axis displays the normalized Q-values scaled to the interval [0,1]. We compare the Baseline TDQN—one is in its initial training phase and another one is under the final optimized policy—with an LLM-based approach that directly generates heuristic Q-values for each state–action pair. Actions marked with a triangle on the bars indicate the ones selected by the agent in the corresponding state. The results demonstrate that the TDQN agent in the early training phase exhibits a near-random Q-value distribution and suboptimal action choices. In contrast, the LLM-driven heuristic values show strong alignment with the TDQN's final optimized policy. This indicates that the large language model can effectively comprehend the task environment and provide reasonable, informed heuristic Q-values, offering robust support for the integration of LLMs in reinforcement learning frameworks.
Q-Value Evaluation Prompt
Q-Value Evaluation Prompt
We design a prompt in a way that the LLM can output estimated cumulative rewards instead of immediate rewards. The prompt also takes advantage of a natural language description of an environment, where the description can be one that the agent has not observed.