Prospector: Improving LLM Agents with Self-Asking and Trajectory Ranking

Byoungjip Kim, Youngsoo Jang, Lajanugen Logeswaran, Geon-Hyeong Kim, Yu Jin Kim, Honglak Lee, Moontae Lee

Abstract

Prospector is a novel framework for Large Language Model (LLM) agents that bridges the gap between generalizable in-context learning and high-performance fine-tuning. By pairing a large "Actor" LLM with a smaller, fine-tuned "Critic" LLM, Prospector introduces two key techniques: AskAct prompting to reduce reasoning hallucinations and Trajectory Ranking to select the optimal path from multiple stochastic attempts. Evaluated on the ALFWorld and WebShop benchmarks, Prospector significantly outperforms existing agents like ReAct and Reflexion, demonstrating that specialized small models can effectively guide large-scale general models toward higher task success.

Introduction

Current LLM agents typically fall into two categories: In-Context Learning (ICL) agents and Fine-Tuning (FT) agents. ICL agents use few-shot prompting to solve tasks, offering high generality but often suffering from "hallucinations" where they skip crucial verification steps or fail to align with environmental feedback. FT agents are trained for specific tasks, achieving high performance at the cost of high computational requirements and poor out-of-distribution generalization.

Comparison of ICL-based, FT-based, and the proposed Complementary LLM agent architectures.

Prospector addresses these limitations by introducing a "Complementary" architecture. It leverages a very large LLM (e.g., GPT-3 or Llama-2-70B) as an Actor to maintain generality, while using a smaller, task-specific model (e.g., FLAN-T5-3B) as a Critic to provide precise reward-based guidance.

Methods

The Prospector framework relies on two primary innovations to improve agent reliability and performance:

AskAct Prompting

Standard agents often follow a simple "Think-Act" cycle. Prospector extends this with AskAct prompting, which incorporates a "Self-Asking" step. Before executing an action, the Actor must ask and answer a progress-checking question (e.g., "Did I find the mug?"). This forces the model to verify its internal state against environmental observations, significantly reducing premature or incorrect actions.

Trajectory Ranking (TR)

Unlike deterministic agents that generate a single path, Prospector's Actor generates multiple diverse trajectories by increasing the sampling temperature. These candidate paths are then evaluated by the LLM Critic. The Critic is a smaller model fine-tuned on a dataset of (trajectory, reward) pairs to predict the total expected reward for any given path. The agent then executes the trajectory with the highest predicted reward. This parallel exploration prevents the agent from getting stuck in local optima or hallucination loops.

Results and Discussion

The authors evaluated Prospector on two diverse decision-making benchmarks: ALFWorld (embodied household tasks) and WebShop (simulated e-commerce navigation).

Success rate comparison on the ALFWorld benchmark across different LLM backbones and methods.

As shown in the results, Prospector demonstrated substantial improvements over state-of-the-art baselines. On ALFWorld, using Llama-2-70B as the Actor, Prospector achieved a success rate of 86.6%, more than doubling the performance of a standard ReAct agent (41.0%). On WebShop, it reached a 43.0% success rate, surpassing both ReAct (35.8%) and Reflexion (35.0%).

A key insight from this work is the "Power of the Judge": while a small 3B-parameter model might struggle to perform complex tasks itself, it can be highly effective at judging them. The fine-tuned LLM Critic achieved up to 98.5% accuracy in predicting trajectory success on ALFWorld, proving more accurate than a 175B-parameter model using only few-shot prompts.

Conclusion

Prospector provides a robust framework for improving LLM agents by combining the strengths of large-scale reasoning and small-scale specialized evaluation. While the approach increases inference costs due to multiple trajectory generation, its efficiency—where two ranked trajectories can outperform five unranked attempts—makes it a compelling alternative to standard prompting methods. Future research will explore automated prompt engineering for the "Self-Asking" step and the development of more universal, cross-domain reward Critics.

Summary updated

BibTeX
@inproceedings{kim2024prospector,
  author = {Byoungjip Kim and Youngsoo Jang and Lajanugen Logeswaran and Geon-Hyeong Kim and Yu Jin Kim and Honglak Lee and Moontae Lee},
  title = {{Prospector: Improving LLM Agents with Self-Asking and Trajectory Ranking}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.879},
}
Figure