TL-Training: A Task-Feature-Based Framework for Training Large Language Models in Tool Use
On the map: LLM agents and tool use → Tool learning and function calling
Abstract (arXiv)
Large language models (LLMs) achieve remarkable advancements by leveraging tools to interact with environments, a critical step toward generalized AI. However, the standard supervised fine-tuning (SFT) approach, which relies on large-scale datasets, often overlooks task-specific characteristics in tool use, leading to performance bottlenecks. To address this issue, we analyze three existing LLMs and uncover key insights: training data can inadvertently impede tool-use behavior, token importance is distributed unevenly, and errors in tool calls fall into a small set of categories. Building on these findings, we propose~TL-Training, a task-feature-based framework that mitigates the effects of suboptimal training data, dynamically adjusts token weights to prioritize key tokens during SFT, and incorporates a robust reward mechanism tailored to error categories, optimized through proximal policy optimization. We validate TL-Training by training CodeLLaMA-2-7B and evaluating it on four open-source test sets. Our results demonstrate that the LLM trained by our method matches or surpasses both open- and closed-source LLMs in tool-use performance using only 1,217 training data points. Additionally, our method enhances robustness in noisy environments and improves general task performance, offering a scalable and efficient paradigm for tool-use training in LLMs. Code and data are available at https://github.com/Junjie-Ye/TL-Training.
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Placed in Tool learning and function calling, one of 16 directions in LLM agents and tool use. Builds on 25 of its 31 references that are in the map. First posted on arXiv 20 Dec 2024.
Builds on
25 of 31 references.
Closest ancestors · 9
Same direction, newest first
- 2024Seal-Tools: Self-Instruct Tool Learning Dataset for Agent Tuning and Detailed Benchmark14 May
- 2024TOOLVERIFIER: Generalization to New Tools via Self-Verification21 Feb
- 2024ToolSword: Unveiling Safety Issues of Large Language Models in Tool Learning Across Three Stages16 Feb
- 2024RoTBench: A Multi-Level Benchmark for Evaluating the Robustness of Large Language Models in Tool Learning16 Jan
- 2024ToolEyes: Fine-Grained Evaluation for Tool Learning Capabilities of Large Language Models in Real-world Scenarios1 Jan
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIs31 Jul
- 2023ToolAlpaca: Generalized Tool Learning for Language Models with 3000 Simulated Cases8 Jun
- 2023Gorilla: Large Language Model Connected with Massive APIs24 May
- 2023ToolkenGPT: Augmenting Frozen Language Models with Massive Tools via Tool Embeddings19 May
Other references · 16
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2023The Rise and Potential of Large Language Model Based Agents: A Surveycited by 1,439
- 2024ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Toolscited by 1,121
- 2023A Comprehensive Capability Analysis of GPT-3 and GPT-3.5 Series Modelscited by 246
- 2023ToolChain*: Efficient Action Space Navigation in Large Language Models with A* Searchcited by 105
- 2024Self-Distillation Bridges Distribution Gap in Language Model Fine-Tuningcited by 96
- 2023T-Eval: Evaluating the Tool Utilization Capability of Large Language Models Step by Stepcited by 93
- 2024A Closer Look at the Limitations of Instruction Tuningcited by 77
4 more
- 2023How Robust is GPT-3.5 to Predecessors? A Comprehensive Study on Language Understanding Taskscited by 58
- 2024Knowledge Mechanisms in Large Language Models: A Survey and Perspectivecited by 51
- 2024Learning or Self-aligning? Rethinking Instruction Fine-tuningcited by 43
- 202460 Data Points are Sufficient to Fine-Tune LLMs for Question-Answeringcited by 2
Built on by
Citing papers per year: 2025: 8; 2026: 3.
11 papers.
- 2025AgentGym-RL: Training LLM Agents for Long-Horizon Decision Making through Multi-Turn Reinforcement Learningcited by 72
- 2025Feedback-Driven Tool-Use Improvements in Large Language Models via Automated Build Environmentscited by 19
- 2025MulDimIF: A Multi-Dimensional Constraint Framework for Evaluating and Improving Instruction Following in Large Language Modelscited by 15
- 2025Failure Makes the Agent Stronger: Enhancing Accuracy through Structured Reflection for Reliable Tool Interactionscited by 12
- 2025TTPA: Token-level Tool-use Preference Alignment Training Framework with Fine-grained Evaluationcited by 9
- 2025iTool: Reinforced Fine-Tuning with Dynamic Deficiency Calibration for Advanced Tool Usecited by 7
- 2025Analyzing the Effects of Supervised Fine-Tuning on Model Knowledge from Token and Parameter Levelscited by 7
- 2026When Simulation Lies: A Sim-to-Real Benchmark and Domain-Randomized RL Recipe for Tool-Use Agentscited by 6
- 2025Beyond Fast and Slow: Cognitive-Inspired Elastic Reasoning for Large Language Modelscited by 2
- 2026DART-SD: Diamond-topology Aware Retrieval and Tuning for Self-Distillation of Multi-Turn Tool-Calling Agentscited by 2
- 2026WebMCP Tool Surface Poisoning: Runtime Manipulation Attacks on LLM Agentscited by 0
- 2026DART-SD: Diamond-topology Aware Retrieval and Tuning for Self-Distillation of Multi-Turn Tool-Calling Agents19 Aug 2026
- 2026WebMCP Tool Surface Poisoning: Runtime Manipulation Attacks on LLM Agents4 Jun 2026
- 2026When Simulation Lies: A Sim-to-Real Benchmark and Domain-Randomized RL Recipe for Tool-Use Agents12 May 2026
- 2025Beyond Fast and Slow: Cognitive-Inspired Elastic Reasoning for Large Language Models17 Dec 2025
- 2025Failure Makes the Agent Stronger: Enhancing Accuracy through Structured Reflection for Reliable Tool Interactions23 Sep 2025
- 2025Analyzing the Effects of Supervised Fine-Tuning on Model Knowledge from Token and Parameter Levels20 Sep 2025
- 2025AgentGym-RL: Training LLM Agents for Long-Horizon Decision Making through Multi-Turn Reinforcement Learning10 Sep 2025
- 2025Feedback-Driven Tool-Use Improvements in Large Language Models via Automated Build Environments12 Aug 2025
- 2025TTPA: Token-level Tool-use Preference Alignment Training Framework with Fine-grained Evaluation26 May 2025
- 2025MulDimIF: A Multi-Dimensional Constraint Framework for Evaluating and Improving Instruction Following in Large Language Models12 May 2025
- 2025iTool: Reinforced Fine-Tuning with Dynamic Deficiency Calibration for Advanced Tool Use15 Jan 2025
Similar, not cited
Close in wording, no citation either way
- 2025ToolRM: Outcome Reward Models for Tool-Calling Large Language Models
- 2025ToolRL: Reward is All Tool Learning Needs
- 2025Enhancing Tool Learning in Large Language Models with Hierarchical Error Checklists
- 2024Token-Efficient Leverage Learning in Large Language Models
- 2025ToolACE-R: Model-aware Iterative Training and Adaptive Refinement for Tool Learning
- 2024Tool Learning with Large Language Models: A Survey
- 2026Scaling Down the Scaling Laws: Parameter Efficiency and Compute-Optimal Training in Resource-Constrained Large Language Models
- 2024LLM With Tools: A Survey