Research map / Large language models / Agents, code and math
ToolCoder: A Systematic Code-Empowered Tool Learning Framework for Large Language Models
Hanxing Ding, Shuchang Tao, Liang Pang, Zihao Wei, Jinyang Gao, Bolin Ding, Huawei Shen, Xueqi Cheng
University of Chinese Academy of Sciences · Chinese Academy of Sciences · Alibaba Group
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add error reflection (traceback-based debugging) (ablation) | ToolCoder (gpt-4o-mini) · RestBench-TMDB | success rate (%): 75.0 -> 85.0 | Improved |
| add error reflection (ablation) | ToolCoder (gpt-4o-mini) · RestBench-Spotify | success rate (%): 73.68 -> 87.72 | Improved |
| add error reflection (ablation) | ToolCoder (gpt-4o-mini) · ToolAlpaca (real-world) | overall: 67.94 -> 72.97 | Improved |
| add reusable function repository (ablation) | ToolCoder (gpt-4o-mini) · RestBench-TMDB | accuracy (%): 71.0 -> 78.0 | Improved |
| add reusable function repository (ablation) | ToolCoder (gpt-4o-mini) · RestBench-Spotify | success rate (%): 78.95 -> 87.72 | Improved |
| add reusable function repository (ablation) | ToolCoder (gpt-4o-mini) · API-Bank | correctness (%) | No clear effect |
| add structured Python function scaffold (ablation) | ToolCoder · all benchmarks | correct path rate | Improved |
| use ToolCoder instead of CodeAct | gpt-4o-mini · RestBench-Spotify | success rate (%): 71.93 -> 87.72 | Improved |
| use ToolCoder instead of CodeAct | gpt-4o-mini · API-Bank LV2 | correctness (%): 54.07 -> 62.41 | Improved |
| use ToolCoder instead of CodeAct | Qwen2.5-14B-Instruct · RestBench-TMDB | success rate (%): 72.0 -> 81.0 | Improved |
| use code-specialized backbone (Coder variant) | ToolCoder, Qwen2.5-32B · RestBench-TMDB | success rate (%): 89.0 -> 96.0 | Improved |
| use ToolCoder instead of ReAct | gpt-4o-mini · RestBench-TMDB | average API calls per question: 7.78 -> 7.69 | No clear effect |
Open problems in code generation benchmarks
Do code benchmarks and methods hold beyond Python, small test sets and leaked data?
- Tested on Python or a few languages, so other languages are untested. · 25 papers state it
- Benchmarks are small, with a few dozen to a few hundred problems. · 14 papers state it
- Iterative or multi-step methods cost more tokens, latency and compute. · 12 papers state it
Closest papers by meaning
- BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructions (ICLR 2025 · similarity 0.91)
- EffiCoder: Enhancing Code Generation in Large Language Models through Efficiency-Aware Fine-tuning (ICML 2025 · similarity 0.90)
- ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIs (ICLR 2024 · similarity 0.90)
- Learning Evolving Tools for Large Language Models (ICLR 2025 · similarity 0.90)
- Large Language Models as Tool Makers (ICLR 2024 · similarity 0.89)
- Planning in Natural Language Improves LLM Search for Code Generation (ICLR 2025 · similarity 0.89)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.