PTGPO: Prefix Tree Group Policy Optimization
Organizations: Brain-inspired Cognitive AI Lab, Institute of Automation, Chinese Academy of Sciences · School of Artificial Intelligence, University of Chinese Academy of Sciences · HyperAI Team, Xiaomi Corporation · University of Ottawa
Abstract
Training language agents on long-horizon interactive tasks is challenging because sparse terminal rewards provide weak credit signals for intermediate actions. Existing group-based methods either assign a shared trajectory-level advantage or estimate step-level advantages from state groups, which may conflate the current action with subsequent decisions. We propose Prefix Tree Group Policy Optimization (PTGPO), a critic-free method that constructs prefix trees over trajectory suffixes within anchor-state groups. PTGPO assigns each tree edge a credit given by the difference between its child and parent empirical mean returns, capturing the conditional return change revealed by each additional action. These prefix-tree credits provide fine-grained learning signals without requiring a critic or additional rollouts. Experiments on interactive benchmarks ALFWorld, WebShop and Sokoban show that PTGPO consistently improves over RL baselines, demonstrating its effectiveness.
Figures & tables
| Type | Method | ALFWorld | WebShop | |||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Pick | Look | Clean | Heat | Cool | Pick2 | All | Score | Succ. | ||
| Closed-Source Model | ||||||||||
| Prompting | GPT-4o | 75.3 | 60.8 | 31.2 | 56.7 | 21.6 | 49.8 | 48.0 | 31.8 | 23.7 |
| Prompting | Gemini-2.5-Pro | 92.8 | 63.3 | 62.1 | 69.0 | 26.6 | 58.7 | 60.3 | 42.5 | 35.9 |
| Qwen2.5-1.5B-Instruct | ||||||||||
| Prompting | Direct Prompt | 5.9 | 5.5 | 3.3 | 9.7 | 4.2 | 0.0 | 4.1 | 23.1 | 5.2 |
| Type | Method | Sokoban [6 6] |
|---|---|---|
| Prompting | Direct Prompt | 11.7 |
| RL Training | GRPO | 73.9 ±1.6 |
| RL Training | GiGPO | 77.6 ±2.5 |
| RL Training | PTGPO | 85.2 ±1.6 |
| Variant | ALFWorld | WebShop | Sokoban |
|---|---|---|---|
| PTGPO | 92.6 ±2.5 | 74.3 ±1.5 | 85.2 ±1.6 |
| Advantage Composition | |||
| w/o Episode-level Adv | 92.4 ±1.1 | 71.8 ±3.9 | 81.5 ±4.4 |
| w/o Prefix-tree Adv | 72.8 ±3.6 | 56.8 ±3.8 | 73.9 ±1.6 |
| Aggregation Strategy | |||
| Mean | 84.3 ±1.6 | 71.4 ±2.1 | 82.3 ±2.3 |
RL for LLM Agents
Reinforcement learning for large language model agents trains models to plan, use tools, and adapt through feedback from interactive tasks.
See all 612 papers