CATP-LLM: Empowering Large Language Models for Cost-Aware Tool Planning

Duo Wu, Jinghe Wang, Yuan Meng, Yanning Zhang, Le Sun +1 more
11/25/2024
cs.AIcs.LG

Official code: duowuyms/OpenCATP-LLM (21 stars, Apache-2.0, last commit 2025-11-26).

Abstract

Utilizing large language models (LLMs) for tool planning has emerged as a promising avenue for developing general AI systems, where LLMs automatically schedule external tools (e.g., vision models) to tackle complex tasks based on task descriptions. To push this paradigm toward practical applications, it is crucial for LLMs to consider tool execution costs (e.g., execution time) for tool planning. Unfortunately, prior studies overlook the tool execution costs, leading to the generation of expensive plans whose costs outweigh their benefits in terms of task performance. To fill this gap, we propose the Cost-Aware Tool Planning with LLMs (CATP-LLM) framework, which for the first time provides a coherent design to empower LLMs for cost-aware tool planning. Specifically, To facilitate efficient concurrent tool execution and cost reduction, we design a tool planning language to enhance the LLM for creating multi-branch non-sequential plans. Moreover, we propose a cost-aware offline reinforcement learning algorithm to fine-tune the LLM to optimize the performance-cost trade-off in tool planning. In the lack of public cost-related datasets, we further present OpenCATP, the first dataset for cost-aware planning, which comprises 11,100 evaluation samples from diverse tasks. Extensive experiments show that CATP-LLM outperforms GPT-4 even when using Llama2-7B as its backbone, with the average improvement of 1.5%-93.9% in terms of plan quality. Codes and dataset are available at: https://github.com/duowuyms/OpenCATP-LLM.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

The official repository of ICCV 2025 paper "CATP-LLM: Empowering Large Language Models for Cost-Aware Tool Planning".

212Shell, MATLABFeb 18, 202510 months agoApache-2.0

Similar Papers

Cite this paper

@article{wu2024catpllm,
  title  = {CATP-LLM: Empowering Large Language Models for Cost-Aware Tool Planning},
  author = {Duo Wu and Jinghe Wang and Yuan Meng and Yanning Zhang and Le Sun and Zhi Wang},
  year   = {2024},
  eprint = {2411.16313},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.16313v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.16313.svg)](https://codeofpaper.com/paper/2411.16313)

Discussion