TL;DR
PlanU is a novel framework that enables Large Language Models (LLMs) to reason effectively in stochastic environments by integrating uncertainty-aware Monte Carlo Tree Search (MCTS). By modeling potential outcomes as quantile distributions and employing a curiosity-driven exploration score, PlanU significantly outperforms existing reasoning methods in tasks where actions have unpredictable results.
What Problem Does This Paper Address?
While LLMs have shown brilliance in deterministic reasoning (like math or coding), they often stumble in the "real world" where things are messy and unpredictable. The authors identify two primary hurdles:
- LLM Uncertainty: The stochastic nature of token generation, which can lead to hallucinations or inconsistent logic.
- Environmental Uncertainty: Stochastic state transitions where the same action might lead to different outcomes (e.g., a robot trying to pick up a block might slip 20% of the time).
Existing LLM-based Decision-Making (LDM) methods like Tree of Thoughts (ToT) or Reasoning via Planning (RAP) typically handle LLM noise by searching for the "most frequent" or "average" outcome. However, in a random environment, the "average" outcome is often a poor representation of reality, leading to brittle plans that fail when things don't go exactly as expected.
Methods
PlanU builds upon the MCTS algorithm but replaces the standard "mean value" estimation with a more robust statistical approach designed for uncertainty.
- Quantile Distribution Modeling: Instead of representing the value of a state-action pair as a single number (the mean), PlanU models it as a quantile distribution. This allows the agent to capture the full spread of possible rewards, making it "risk-aware."
- UCC Score (Upper Confidence Bounds with Curiosity): To decide which path to explore, PlanU uses a new selection metric. It combines the predicted return with a "curiosity" reward. This curiosity is calculated by comparing a trainable predictor network against a fixed random target network. If the networks disagree, the state is "novel," and the agent is encouraged to explore it.
- Distributional Backpropagation: During the update phase, PlanU uses Quantile Regression (QR) loss to propagate the distribution of rewards back up the tree, ensuring the model learns the variance of the environment, not just the average.
Datasets
The authors evaluated PlanU across five diverse decision-making benchmarks, introducing environmental stochasticity (typically a 20% action failure rate) to test robustness:
- Blocksworld: Stacking blocks into specific configurations.
- Overcooked: Multi-step cooking and delivery tasks in a grid world.
- VirtualHome: Household tasks like "heating a pancake" or "watching TV."
- TravelPlanner: Complex itinerary generation with simulated flight/train delays.
- WebShop: Online shopping tasks with simulated network latency and failures.
Key Insights and Ideas
- The "Mean" Trap: In stochastic settings, the most frequent outcome isn't always the truth. For example, in a simulated Stock Investment task, standard LLM-MCTS might choose a risky stock because it "usually" pays out more, whereas PlanU correctly calculates the expected value across the entire distribution to maximize average profit.
- Semantic State Grouping: To combat LLM uncertainty (where the model describes the same state using different words), PlanU uses a text encoder to map descriptions to embeddings. This ensures that "the table is to the left" and "the table is on the left" are treated as the same state, preventing the search tree from exploding unnecessarily.
- Efficiency: Despite its complexity, PlanU is surprisingly efficient. It uses nearly 3x fewer tokens than vanilla RAP because its uncertainty-aware search identifies optimal paths much faster.
Key Results
PlanU consistently outperformed baselines across all tested LLMs (including Mistral-7B, Llama-3.1-8B, and GPT-4).
- Blocksworld: In 8-step tasks (the hardest tier), PlanU achieved a success rate of ~22-24%, while standard RAP and ToT often dropped to near 0% in the face of 20% action failure.
- Overcooked: In the complex "Tomato Lettuce Salad" task, PlanU was the only method to successfully and consistently reach the goal, while others plateaued early.
- Robustness: PlanU showed high resilience to "Prompt Injection" (adding irrelevant info) and "Prompt Shuffling," proving that its planning logic is grounded in the environment's feedback rather than just the surface-level text of the prompt.
Limitations and Future Work
The authors acknowledge two main limitations:
- High-Dimensional Action Spaces: Like all MCTS methods, PlanU can struggle if the number of possible actions at each step is massive. They suggest exploring "hierarchical MCTS" or "progressive widening" to prune the search space.
- Lack of External Tools: Currently, PlanU relies on the LLM's internal knowledge and the provided world model. It does not yet integrate external tools like web search, which could be vital for tasks requiring real-time information. The authors plan to combine PlanU with frameworks like ReAct in future iterations.
Summary updated