Introduction
Large Language Models (LLMs) have demonstrated remarkable zero-shot reasoning capabilities, yet LLM-based agents often remain static in their strategies. Traditional agents rely on fixed prompt engineering and struggle to adapt to dynamic, multi-agent environments or scenarios with imperfect information. Existing self-correction methods, such as ReAct or Reflexion, typically focus on action-level reflection—correcting individual moves based on immediate feedback. However, in complex, long-horizon tasks like Texas Hold’em, a single move's outcome may be influenced by luck rather than strategy.
Agent-Pro addresses this by shifting the focus from immediate action-correction to policy-level reflection. This framework allows agents to evolve their underlying behavioral policies and belief systems over time, mimicking the way humans learn from experience.
The Agent-Pro Framework
Agent-Pro introduces a three-stage evolutionary loop designed to refine an agent's performance through interactive experience:
- Belief-Aware Decision-Making: Leveraging Theory of Mind (ToM), the agent maintains dynamic natural language beliefs. Self-Belief tracks the agent's own state, plans, and perceived risks, while World-Belief involves conjectures about opponent styles and environmental rules.
- Policy-Level Reflection: Following a game, the agent reflects on the rationality of its beliefs rather than just its actions. It evaluates whether its conjectures about the world (e.g., "Player 1 is aggressive") aligned with the actual outcomes, subsequently updating its Behavioral Guidelines and World Models within its prompt.
- DFS-based Policy Evolution: To ensure robust improvement, Agent-Pro treats the prompt as a policy parameter optimized via Depth-First Search (DFS). It explores various instruction sets and evaluates them against a development set of scenarios. If a new policy yields a higher payoff, it is adopted; otherwise, the agent backtracks to a previous version.
Experimental Evaluation
The framework was evaluated in two challenging environments: Blackjack and Limit Texas Hold’em. These were chosen to test decision-making under uncertainty and multi-agent interaction with imperfect information. Agent-Pro was benchmarked against vanilla LLMs, action-level reflection models (ReAct, Reflexion), and specialized Reinforcement Learning (RL) models like DQN and Deep Monte Carlo (DMC).
Key Results
- Superior Performance: In Texas Hold’em, Agent-Pro (GPT-4) achieved a final chip count of +4.3, significantly outperforming specialized RL models like DMC (+1.1) and vanilla LLMs (+1.4).
- Win Rate Improvements: In Blackjack using Qwen-72B, Agent-Pro reached a 36.2% win rate, surpassing Reflexion (32.3%) and ReAct (30.9%).
- Emergent Tactics: Through the evolutionary process, agents independently developed sophisticated human-like tactics, such as bluffing to pressure cautious opponents and disguising strong hands to bait aggressive players.
- Model Agnostic: The framework demonstrated consistent performance gains across various LLM backends, including GPT-4, GPT-3.5, Llama2-70B, and Qwen-72B.
Conclusion and Future Work
Agent-Pro demonstrates that treating prompts as optimizable policy parameters through high-level reflection is a powerful alternative to traditional weight-based fine-tuning for agents. While the method is currently limited by the reasoning capacity of the base LLM and the computational cost of iterative search, it bridges the gap between static prompting and dynamic strategic learning. Future research will focus on more efficient search algorithms and applying this evolutionary framework to real-world negotiation and security tasks.
Summary updated