TL;DR
Using large language models (LLMs) as high-level planners enables embodied agents to solve complex tasks, but querying them constantly is expensive and querying them only on plan completion is brittle. When2Ask introduces a reinforcement learning (RL) framework that trains an explicit "asking policy" to decide exactly when to consult an LLM for a new plan and when to stick with the current one. The result is comparable or superior task performance to step-by-step LLM querying while slashing interaction costs by up to 90%.
What Problem Does This Paper Address?
LLMs possess vast commonsense knowledge and excel at breaking high-level goals into abstract sub-tasks (options). However, deploying them in embodied agents presents a dilemma in interaction timing:
- Querying at every timestep ("Always"): Ensures the agent responds immediately to new environmental cues, but incurs massive latency, communication overhead, and API monetary costs.
- Querying only upon option completion ("Hard-coded"): Drastically cuts queries, but the agent cannot interrupt an ongoing plan. For example, if an agent executing an exhaustive "explore" routine spots the goal key on step two, it stubbornly finishes exploring the entire room before acting on what it saw—often timing out or failing.
The authors address how to balance autonomy and guidance: can an agent learn when an LLM consultation is truly worth the cost?
Methods
The authors build on the Planner-Actor-Mediator framework:
- Planner: A pre-trained LLM (Vicuna-7b / Vicuna-13b) that reads textual state descriptions and generates high-level option sequences (e.g.,
go to [key],pickup [key]). - Actor: Executes low-level motor actions using either expert-coded rules or option-conditioned policies (e.g., trained via RL with ResNet-LSTM backbones).
- Mediator: Houses a translator (which converts visual/symbolic states into structured text prompts) and a learned asking policy ($\pi^{\text{ask}}_\theta$).
Learning When to Ask via RL: The asking policy treats the LLM as part of the environment MDP. It observes changes across consecutive frames and outputs a binary decision: Ask or Not Ask.
It is trained using Proximal Policy Optimization (PPO) with an objective that balances task success against unnecessary queries: $$\max_{\theta} \sum_t \left[ \gamma^t r_t - \lambda \cdot \mathbf{1}(y_t == \text{Ask} \wedge \omega_t == \omega_{t-1}) \right]$$ Here, the agent incurs a penalty $\lambda$ whenever it queries the LLM ($y_t = \text{Ask}$) but receives the exact same option it was already executing ($\omega_t = \omega_{t-1}$). This forces the policy to query the LLM only when environmental changes are likely to elicit a meaningfully updated plan.
Datasets
The approach is evaluated across two simulation suites:
- MiniGrid (2D Grid-World): Partially observable environments with "fog-of-war" mechanics where layouts are procedurally generated. Tasks include
SimpleDoorKey,KeyInBox,RandomBoxKey,ColoredDoorKey(requiring matching key/door colors), andMovingObstacle. Evaluated on a held-out test set of 100 seeds. - Habitat 2.0 (Photorealistic 3D Embodyment): A continuous, 11-DoF mobile manipulator task (
Pick&Place), requiring an agent to find an object, pick it from a table, navigate to a kitchen sink, and place it inside.
Key Insights and Ideas
- Autonomous Early Stopping: Rather than running an option to its predefined timeout, When2Ask learns to interrupt ongoing actions (e.g., aborting random search the moment a relevant key enters the field of view).
- Tolerance to Imperfect Translators: In
ColoredDoorKey, the symbolic state translator occasionally loses relative spatial detail and produces identical text descriptions across different agent poses. A naive "Always" baseline enters repeated loops; When2Ask learns "not to ask" in ambiguous intermediate states, executing physical actions to completion before requesting advice. - Overcoming the "Hand-off Problem": In continuous rearrangement tasks (Habitat), sequential options often fail because the preceding option (Navigate) terminates at an awkward angle for the succeeding option (Pick). When2Ask learns to query the LLM mid-navigation once the object is spotted from an advantageous viewpoint, bypassing the terminal alignment bottleneck.
Key Results
- MiniGrid Performance: Across all five environments, When2Ask matched or outperformed the full-query "Always" baseline in success rate while using only a fraction of the queries.
- In
ColoredDoorKey, When2Ask achieved an 83% success rate with only 3.29 interactions, compared to the "Always" baseline’s 49% success rate across 61.96 interactions (due to translator failures causing loops). - In simpler rooms (
SimpleDoorKey), When2Ask achieved 100% success in 4.24 queries, versus 100% in 25.78 queries for "Always". The "Hard-coded" baseline succeeded only 59% of the time. - Habitat 3D Manipulation: On the 3-stage
Pick&Placetask, When2Ask completed Stage 3 with a 35.6% success rate averaging 7.99 LLM interactions. The "Hard-coded" baseline completed Stage 3 at just 2.0% (1.00 interaction), and a random asking strategy managed only 1.2% despite burning 295.60 interactions.
Limitations and Future Work
- State Translators: The translation module relies on structured rules and scene-graph heuristics to turn visual states into text prompts, which can drop critical spatial information.
- Separated Training: Low-level option policies, mediator asking policies, and LLM reasoning are decoupled rather than optimized jointly.
- Future Work: The authors propose investigating fully end-to-end differentiable mappings between low-level sensorimotor streams and LLM planners to minimize reliance on handcrafted state descriptions.
Summary updated