Abstract
Large Language Model (LLM) agents typically execute tasks sequentially, leading to significant inefficiencies in complex, multi-step workflows. We present Plan-over-Graph (PoG), a framework that treats task planning as a scheduling problem over Directed Acyclic Graphs (DAGs). By decoupling task extraction from combinatorial reasoning and employing a two-stage training scheme involving Supervised Fine-Tuning (SFT) and Direct Preference Optimization (DPO), PoG enables agents to generate optimal parallel execution plans. Our results demonstrate that PoG significantly outperforms state-of-the-art models like GPT-4o in complex scheduling tasks, reducing total execution time by up to 40%.
Introduction
Current LLM agent frameworks often operate in a "blocking" mode, where each subtask must complete before the next begins. This linear approach fails to exploit inherent parallelism in domains such as software engineering, urban planning, and project management. As the number of subtasks increases, LLMs also face "comprehension collapse," where their ability to manage dependencies degrades.
The core challenge lies in moving from simple sequential reasoning to sophisticated combinatorial optimization. Existing benchmarks often simplify this by using small-scale graphs, which do not reflect the complexity of real-world professional automation.
The Plan-over-Graph (PoG) Framework
The PoG framework transforms natural language task descriptions into structured, executable parallel plans through three main stages:
- Extraction: A model parses messy textual descriptions into an Abstract Task Graph (ATG). This DAG explicitly defines subtasks and their dependencies.
- Graph Formulation: Each node in the ATG is assigned specific attributes, such as estimated time ($\tau$) and resource cost ($c$).
- Parallel Planning: The agent reasons over the ATG to identify independent sub-trees that can be executed simultaneously, aiming to minimize the "makespan" (total project duration) while staying within cost constraints.
Training Methodology
To overcome the reasoning limitations of base LLMs, we utilize a specialized training pipeline:
- Data Generation: We synthesized 12,000 training instances using both random and tree-based DAGs (10 to 50 nodes) to simulate various real-world hierarchies.
- Supervised Fine-Tuning (SFT): The model is trained on a mix of optimal and near-optimal solutions to learn the fundamental rules of graph traversal and dependency management.
- Direct Preference Optimization (DPO): This stage is crucial for efficiency. By presenting the model with pairs of feasible plans and rewarding the selection of the most efficient (optimal) one, DPO acts as a neural heuristic for solving complex scheduling problems.
Evaluation and Results
We evaluated PoG against a real-world set of 200 complex tasks across diverse domains. The results highlight several key breakthroughs:
- Optimization Performance: A Llama-3.1-8B model trained with PoG saw its "Optimal Rate" on 50-node graphs jump from a baseline of 1.8% to 71.6%, surpassing much larger models like Claude 3.5 Sonnet and GPT-4o.
- Efficiency Gains: Parallel plans generated by PoG reduced total task time by 20-40% compared to traditional sequential execution.
- Reasoning Bottlenecks: Our analysis confirms that the primary bottleneck in agentic planning is combinatorial reasoning rather than simple text extraction. Specialized training (DPO) is essential to bridge this gap.
Conclusion
Plan-over-Graph represents a shift toward high-efficiency, parallelizable LLM agents. By representing tasks as graphs and optimizing for makespan, PoG addresses the sequential bottlenecks of current frameworks. Future work will focus on dynamic re-planning in response to environmental feedback and scaling the framework to handle enterprise-level workflows with thousands of nodes.
Summary updated