Preprint
Large Language Models

Structural Planning for LLM Agents

Guancheng Zeng, Xueyi Chen, Jiawang Hu, Shaohuan Qi, Yaxuan Mao, Zhantao Wang, Yifan Nie, Shuang Li, Qiuyang Feng, Pengxu Qiu, Yujian Wang, Wenqiang Han, Linyan Huang, Gang Li, Jingjing Mo, Haowen Hu
July 19, 2025arXiv.org7 citations

7

Citations

0

Influential Citations

arXiv.org

Venue

2025

Year

Abstract

The deployment of agent systems in an enterprise environment is often hindered by several challenges: common models lack domain-specific process knowledge, leading to disorganized plans, missing key tools, and poor execution stability. To address this, this paper introduces Routine, a multi-step agent planning framework designed with a clear structure, explicit instructions, and seamless parameter passing to guide the agent's execution module in performing multi-step tool-calling tasks with high stability. In evaluations conducted within a real-world enterprise scenario, Routine significantly increases the execution accuracy in model tool calls, increasing the performance of GPT-4o from 41.1% to 96.3%, and Qwen3-14B from 32.6% to 83.3%. We further constructed a Routine-following training dataset and fine-tuned Qwen3-14B, resulting in an accuracy increase to 88.2% on scenario-specific evaluations, indicating improved adherence to execution plans. In addition, we employed Routine-based distillation to create a scenario-specific, multi-step tool-calling dataset. Fine-tuning on this distilled dataset raised the model's accuracy to 95.5%, approaching GPT-4o's performance. These results highlight Routine's effectiveness in distilling domain-specific tool-usage patterns and enhancing model adaptability to new scenarios. Our experimental results demonstrate that Routine provides a practical and accessible approach to building stable agent workflows, accelerating the deployment and adoption of agent systems in enterprise environments, and advancing the technical vision of AI for Process.

Analysis

Why This Paper Matters

Enterprise deployment of LLM agents often fails because general-purpose models lack domain-specific process knowledge, leading to disorganized plans and unstable tool calls. Routine addresses this by introducing a structured planning framework that imposes explicit structure and parameter passing, making agent execution more reliable. The paper's results are striking: a simple planning wrapper boosts GPT-4o's tool-calling accuracy from 41.1% to 96.3%, and even a smaller model like Qwen3-14B jumps from 32.6% to 83.3%. This suggests that many agent failures stem from poor planning rather than model capability, and that structured prompting can unlock significant performance gains.

The work also demonstrates a path to distilling domain-specific tool-usage patterns into smaller models. By creating a Routine-following dataset and fine-tuning Qwen3-14B, the authors achieve 88.2% accuracy, and with distillation-based fine-tuning, 95.5%—approaching GPT-4o's performance. This is particularly relevant for enterprises that need cost-effective, on-premise solutions without sacrificing reliability.

Technical Contributions

  • Structured Planning Framework: Routine provides a clear, multi-step plan with explicit instructions and parameter passing, guiding the agent's execution module to perform tool calls in a stable manner.
  • Training Dataset Construction: The authors build a Routine-following dataset to fine-tune models, improving their adherence to execution plans.
  • Distillation Methodology: They use Routine to generate a scenario-specific, multi-step tool-calling dataset, which is then used to fine-tune a smaller model, effectively transferring domain knowledge.
  • Real-World Evaluation: The framework is tested in an actual enterprise scenario, providing practical evidence of its effectiveness.

Results

  • GPT-4o accuracy improved from 41.1% to 96.3% with Routine.
  • Qwen3-14B accuracy improved from 32.6% to 83.3% with Routine.
  • Fine-tuning Qwen3-14B on Routine-following data increased accuracy to 88.2%.
  • Distillation-based fine-tuning further raised accuracy to 95.5%, nearly matching GPT-4o.

These metrics highlight Routine's ability to significantly enhance tool-calling accuracy, especially for smaller models, making them viable for enterprise use.

Significance

Routine offers a practical, low-cost method to improve agent reliability without requiring new model architectures. By structuring planning and enabling distillation, it allows enterprises to deploy smaller, more efficient models that perform nearly as well as large proprietary ones. This could accelerate the adoption of agent systems in industry and inspire further research into process-aware planning and knowledge distillation for tool use. The paper also contributes to the vision of 'AI for Process' by formalizing how to encode domain processes into agent workflows.