PhGPO: Pheromone-Guided Policy Optimization for Long-Horizon Tool Planning
Yu Li, Guangfeng Cai, Shengtian Yang, Han Luo, Shuo Han, Xu He, Dong Li, Lei Feng
TL;DR
PhGPO addresses the difficulty of long-horizon tool planning by introducing an explicit transition prior in the form of pheromone, learned from historically successful trajectories and applied on a MCP-grounded tool-transition graph. The method combines task-agnostic pheromones with task-dependent memories to guide next-tool and argument-invocation choices, integrated through a progressive training pipeline that starts with supervised warm-up and transitions to pheromone-guided reinforcement learning using Group Relative Policy Optimization. Across Toolathlon, TRAJECT-Bench, and TOUCAN benchmarks, PhGPO consistently improves trajectory match to reference sequences and immediate next-tool decisions, demonstrating that explicit reuse of past successes reduces cascading errors and enhances long-horizon planning. The work highlights the practical impact of explicit transition priors for scalable, reusable tool-use strategies in complex, evolving tool environments.
Abstract
Recent advancements in Large Language Model (LLM) agents have demonstrated strong capabilities in executing complex tasks through tool use. However, long-horizon multi-step tool planning is challenging, because the exploration space suffers from a combinatorial explosion. In this scenario, even when a correct tool-use path is found, it is usually considered an immediate reward for current training, which would not provide any reusable information for subsequent training. In this paper, we argue that historically successful trajectories contain reusable tool-transition patterns, which can be leveraged throughout the whole training process. Inspired by ant colony optimization where historically successful paths can be reflected by the pheromone, we propose Pheromone-Guided Policy Optimization (PhGPO), which learns a trajectory-based transition pattern (i.e., pheromone) from historical trajectories and then uses the learned pheromone to guide policy optimization. This learned pheromone provides explicit and reusable guidance that steers policy optimization toward historically successful tool transitions, thereby improving long-horizon tool planning. Comprehensive experimental results demonstrate the effectiveness of our proposed PhGPO.
