TL;DR
RaDAgent introduces an iterative framework that allows LLM-based agents to develop an internal sense of rationality rather than relying on flawed or unavailable external performance metrics. By treating decision paths as competitors in an Elo rating system, the agent learns to judge the utility of its own actions through pairwise comparisons, resulting in higher task success rates and significantly improved API call efficiency.
What Problem Does This Paper Address?
When building LLM agents to tackle complex, multi-step tasks (like navigating a web shop or chaining APIs), the agent needs a way to evaluate whether its intermediate steps are moving toward success. Existing frameworks like Tree-of-Thoughts (ToT) or Monte Carlo Tree Search (MCTS) variants typically rely on hand-crafted heuristic prompts or external reward functions to score these steps.
However, relying on external performance measures as a prior is highly problematic. In real-world applications, an accurate external reward might be missing entirely, delayed, or deeply flawed. Humans don't just rely on external scores; we use trial, error, and internal reflection to build a posterior sense of what works. This paper addresses the challenge of giving LLM agents this same autonomous, internal utility judgment.
Methods
The authors propose RaDAgent (Rational Decision-Making Agent), which operates via a two-phase iterative loop:
- Experience Exploration: Operating similarly to an MCTS, the agent explores potential decision paths. The probability of choosing a specific step is determined by its current internal utility score. Crucially, the authors introduce a rejection decision step—an option for the agent to explicitly choose to explore an entirely new path, preventing it from getting stuck in local optima. A temperature annealing schedule ensures that paths with fewer updates are explored more fluidly, while well-sampled paths are trusted more rigidly.
- Utility Learning: Instead of asking the LLM to assign an arbitrary numerical score to a decision step, RaDAgent uses the Elo Rating System (the same system used in chess). When a new decision trace is generated, the LLM acts as a judge, performing pairwise comparisons between the new trace and previously explored traces to determine which one is closer to solving the task. The Elo scores are updated based on these wins/losses, starting from the final outcomes and propagating backward to intermediate decision nodes.
Datasets
The framework was evaluated across four diverse and intricate multi-step decision-making benchmarks:
- Game of 24: A mathematical puzzle requiring the agent to combine four numbers using basic arithmetic to reach exactly 24.
- WebShop: A simulated e-commerce environment where the agent must search, browse, and purchase items matching specific human instructions.
- ToolBench: A highly complex environment containing over 16,000 real-world APIs across 49 categories, testing the agent's multi-tool orchestration.
- RestBench: A real-world dataset featuring authentic REST API execution for TMDB (movie database) and Spotify, introducing real-time, unpredictable environment responses.
Key Insights and Ideas
- Elo as a Latent Utility Metric: Directly prompting an LLM to output a precise utility number (e.g., "rate this step from 1 to 10") is notoriously unreliable. By shifting to relative pairwise comparisons ("is Trace A better than Trace B?"), the Elo system naturally allows a stable, calibrated numerical utility to emerge.
- Strong Calibration Property: The internal Elo scores learned by the agent correlate tightly with actual task success. As shown in the paper's analysis, higher normalized Elo scores strongly predict a higher final Pass Rate, proving that the agent's internal rationality aligns with objective reality.
- Efficiency Through Rationality: Because the agent dynamically prioritizes high-utility paths based on its evolving Elo scores, it avoids wasting computational resources on dead ends.
Key Results
RaDAgent consistently outperformed state-of-the-art tree-search baselines (like ToT and DFSDT) across all datasets, achieving an average performance boost of 7.8%.
- Game of 24 & ToolBench: On the Game of 24, RaDAgent achieved a 43.0% success rate, vastly outperforming DFSDT (29.0%) and standard CoT (6.0%). On ToolBench, it achieved a 61.92% pass rate compared to DFSDT's 50.20%.
- Real-World Environments (RestBench): In live API environments, RaDAgent achieved a Correct Path Rate of 84.0% on TMDB and 80.7% on Spotify, outperforming the previous best specialized model, RestGPT.
- API Cost Reduction: In budget-constrained scenarios, RaDAgent maintains high accuracy even with very few API calls, whereas traditional tree-search methods collapse when their call budgets are restricted.
Limitations and Future Work
- State Rollback Dependencies: The exploration phase assumes the agent can freely explore alternative branches from intermediate nodes. In real-world environments, certain actions are irreversible (e.g., executing a financial transaction or sending an email), which presents a challenge for tree-search rollbacks.
- LLM Judge Dependency: The framework relies heavily on the LLM's capacity to accurately compare two text traces. While the authors demonstrated good generalizability using models like Claude-3.5-Haiku and GPT-4, smaller or weaker open-source models exhibit a performance drop when tasked with internal utility judgment. Exploring how to distill this internal rationality into smaller models remains an open area for future work.
Summary updated