Reproduce “CATP-LLM: Empowering Large Language Models for Cost-Aware Tool Planning” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Duo Wu, Jinghe Wang, Yuan Meng, Yanning Zhang, Le Sun, Zhi Wang
Tsinghua University researchers developed CATP-LLM, a framework that enables large language models to generate cost-aware and non-sequential tool plans using a novel Tool Planning Language and Cost-Aware Offline Reinforcement Learning. The system, leveraging a Llama2-7B backbone, consistently outperforms larger GPT models in Quality of Plan (QoP) and generates 100% valid non-sequential plans, achieving 92.0%-375.4% higher average QoP for these complex tasks.
Key insights
- Formalizing tools and their dependencies as learnable tokens within a structured TPL enables LLMs to effectively understand and generate complex, non-sequential tool plans.
- Integrating input-specific cost attributes and providing intermediate performance-cost feedback via offline RL allows LLMs to adaptively optimize plans for desired trade-offs between accuracy and computational expense.
- Even smaller LLMs, when fine-tuned with a cost-aware framework, can significantly surpass larger, unoptimized proprietary models in generating valid, efficient, and cost-optimized multi-branch plans.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.