mlsanityData to 7 Oct 2026

Advancing Tool-Augmented Large Language Models: Integrating Insights from Errors in Inference Trees

arXiv 2406.07115 ↗First posted 11 Jun 2024cs.CL cs.AI cs.LGcited by 38

On the map: LLM reasoning → Reasoning for agents, planning and code

Abstract (arXiv)

Tool-augmented large language models (LLMs) leverage tools, often in the form of APIs, to improve their reasoning capabilities on complex tasks. This enables them to act as intelligent agents interacting with the real world. The recently introduced ToolLLaMA model by Qin et al. [2023] utilizes the depth-first search-based decision tree (DFSDT) mechanism for multi-step reasoning with 16000+ real-world APIs, effectively enhancing the performance of tool-augmented LLMs compared to traditional chain reasoning mechanisms. However, their approach only employs successful paths from decision trees (also called inference trees) for supervised fine-tuning (SFT), missing out on the potential learning opportunities from failed paths. Inspired by this, we propose an inference trajectory optimization framework based on preference learning to address this limitation. We first introduce a novel method for constructing step-wise preference data from tree-like expert trajectories, which leverages the previously ignored failed explorations in the decision trees. In the subsequent training phase, we first fine-tune the LLM with successful tool-usage expert trajectories and then apply direct preference optimization (DPO) with the preference data to update the LLM's policy, resulting in our ToolPrefer-LLaMA (TP-LLaMA) model. This approach not only enhances the utilization of original expert data but also broadens the learning space of the model. Our experiments demonstrate that by obtaining insights from errors in inference trees, TP-LLaMA significantly outperforms the baselines across almost all test scenarios by a large margin and exhibits better generalization capabilities with unseen APIs. At the same time, TP-LLaMA has also demonstrated superior reasoning efficiency compared to the baselines, making it more suitable for complex tool-usage reasoning tasks.

Key facts. Cited by 38 papers in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 38 of its 52 references that are in the map. First posted on arXiv 11 Jun 2024.

Builds on

38 of 52 references.

Closest ancestors · 1

Same direction, newest first

  1. 2023SwiftSage: A Generative Agent with Fast and Slow Thinking for Complex Interactive Tasks27 May

Other references · 37

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2023GPT-4 Technical Reportcited by 18,132
  3. 2022Training language models to follow instructions with human feedbackcited by 15,712
  4. 2017Proximal Policy Optimization Algorithmscited by 14,441
  5. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  6. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  7. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  8. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
  9. 2023BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Modelscited by 6,069
  10. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  11. 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,337
  12. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
25 more
  1. 2017Deep reinforcement learning from human preferencescited by 3,846
  2. 2023Qwen Technical Reportcited by 3,273
  3. 2023Mistral 7Bcited by 3,065
  4. 2019Fine-Tuning Language Models from Human Preferencescited by 2,124
  5. 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,880
  6. 2024LlamaFactory: Unified Efficient Fine-Tuning of 100+ Language Modelscited by 1,442
  7. 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,302
  8. 2023AgentBench: Evaluating LLMs as Agentscited by 1,211
  9. 2023Mind2Web: Towards a Generalist Agent for the Webcited by 1,210
  10. 2023HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Facecited by 1,173
  11. 2023Math-Shepherd: Verify and Reinforce LLMs Step-by-step without Human Annotationscited by 895
  12. 2024Gemma: Open Models Based on Gemini Research and Technologycited by 889
  13. 2021Are NLP Models really able to Solve Simple Math Word Problems?cited by 861
  14. 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 837
  15. 2023Chameleon: Plug-and-Play Compositional Reasoning with Large Language Modelscited by 352
  16. 2023MINT: Evaluating LLMs in Multi-turn Interaction with Tools and Language Feedbackcited by 293
  17. 2023Large Language Model Alignment: A Surveycited by 241
  18. 2021Internet-Augmented Dialogue Generationcited by 217
  19. 2024Trial and Error: Exploration-Based Trajectory Optimization for LLM Agentscited by 194
  20. 2022A Survey of Deep Learning for Mathematical Reasoningcited by 124
  21. 2024MiniCache: KV Cache Compression in Depth Dimension for Large Language Modelscited by 122
  22. 2023Let's reward step by step: Step-Level reward model as the Navigators for Reasoningcited by 96
  23. 2018Reliability and Learnability of Human Bandit Feedback for Sequence-to-Sequence Reinforcement Learningcited by 57
  24. 2023Domain-Controlled Prompt Learningcited by 22
  25. 2023Domain Prompt Learning with Quaternion Networkscited by 17

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 4; 2025: 18; 2026: 16.

38 papers.

Sort:

By area:

  1. 2025Acting Less is Reasoning More! Teaching Model to Act Efficientlycited by 80
  2. 2024Granite-Function Calling Model: Introducing Function Calling Abilities via Multi-task Learning of Granular Taskscited by 52
  3. 2025PALADIN: Self-Correcting Language Model Agents to Cure Tool-Failure Casescited by 21
  4. 2025CRITICTOOL: Evaluating Self-Critique Capabilities of Large Language Models in Tool-Calling Error Scenarioscited by 19
  5. 2025Iterative Tool Usage Exploration for Multimodal Agents via Step-wise Preference Tuningcited by 18
  6. 2025Divide-Then-Aggregate: An Efficient Tool Learning Method via Parallel Tool Invocationcited by 16
  7. 2025CheMatAgent: Enhancing LLMs for Chemistry and Materials Science through Tree-Search Based Tool Learningcited by 12
  8. 2025TTPA: Token-level Tool-use Preference Alignment Training Framework with Fine-grained Evaluationcited by 9
  9. 2026Triplets Better Than Pairs: Towards Stable and Effective Self-Play Fine-Tuning for LLMscited by 9
  10. 2025Rethinking LLM Evaluation: Can We Evaluate LLMs with 200x Less Data?cited by 8
  11. 2025ToolForge: A Data Synthesis Pipeline for Multi-Hop Search without Real-World APIscited by 8
  12. 2024Weak-eval-Strong: Evaluating and Eliciting Lateral Thinking of LLMs with Situation Puzzlescited by 7
26 more
  1. 2025Enhancing Tool Learning in Large Language Models with Hierarchical Error Checklistscited by 7
  2. 2025SPACE: Noise Contrastive Estimation Stabilizes Self-Play Fine-Tuning for Large Language Modelscited by 7
  3. 2024CITI: Enhancing Tool Utilizing Ability in Large Language Models without Sacrificing General Performancecited by 6
  4. 2025CodeTool: Enhancing Programmatic Tool Invocation of LLMs via Process Supervisioncited by 6
  5. 2025Network-Level Prompt and Trait Leakage in Local Research Agentscited by 5
  6. 2025Offline Learning and Forgetting for Reasoning with Large Language Modelscited by 4
  7. 2025PEToolLLM: Towards Personalized Tool Learning in Large Language Modelscited by 3
  8. 2025Beyond Fast and Slow: Cognitive-Inspired Elastic Reasoning for Large Language Modelscited by 2
  9. 2026Teaching LLMs to Learn Tool Trialing and Execution through Environment Interactioncited by 2
  10. 2026Picking the Right Specialist: Attentive Neural Process-based Selection of Task-Specialized Models as Tools for Agentic Healthcare Systemscited by 2
  11. 2026FinTrace: Holistic Trajectory-Level Evaluation of LLM Tool Calling for Long-Horizon Financial Taskscited by 2
  12. 2024MATATA: Weakly Supervised End-to-End MAthematical Tool-Augmented Reasoning for Tabular Applicationscited by 1
  13. 2026A Component-Based Survey of Interactions between Large Language Models and Multi-Armed Banditscited by 1
  14. 2026Think-Augmented Function Calling: Improving LLM Parameter Accuracy Through Embedded Reasoningcited by 1
  15. 2026Building Autonomous GUI Navigation via Agentic-Q Estimation and Step-Wise Policy Optimizationcited by 1
  16. 2026When to Trust Tools? Adaptive Tool Trust Calibration For Tool-Integrated Math Reasoningcited by 1
  17. 2025HGMF: A Hierarchical Gaussian Mixture Framework for Scalable Tool Invocation within the Model Context Protocolcited by 0
  18. 2025Adaptive Tool Generation with Models as Tools and Reinforcement Learningcited by 0
  19. 2026Unlearning in LLMs: Methods, Evaluation, and Open Challengescited by 0
  20. 2026Emerging from Ground: Addressing Intent Deviation in Tool-Using Agents via Deriving Real Calls into Virtual Trajectoriescited by 0
  21. 2026ToolWeaver: Weaving Collaborative Semantics for Scalable Tool Use in Large Language Modelscited by 0
  22. 2026Robust and Efficient Tool Orchestration via Layered Execution Structures with Reflective Correctioncited by 0
  23. 2026HTAA: Enhancing LLM Planning via Hybrid Toolset Agentization & Adaptationcited by 0
  24. 2026FitText: Evolving Agent Tool Ecologies via Memetic Retrievalcited by 0
  25. 2026AgroTools: A Benchmark for Tool-Augmented Multimodal Agents in Agriculturecited by 0
  26. 2026The Periodic Table of LLM Reasoning: A Structured Survey of Reasoning Paradigms, Methods, and Failure Modescited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2024Advancing Process Verification for Large Language Models via Tree-Based Preference Learning
  2. 2024Monte Carlo Tree Search Boosts Reasoning via Iterative Preference Learning
  3. 2025Toward Effective Tool-Integrated Reasoning via Self-Evolved Preference Learning
  4. 2024LLM With Tools: A Survey
  5. 2025DiaTool-DPO: Multi-Turn Direct Preference Optimization for Tool-Augmented Large Language Models
  6. 2024ToolNet: Connecting Large Language Models with Massive Tools via Tool Graph
  7. 2025Alignment for Efficient Tool Calling of Large Language Models
  8. 2025Deciphering Trajectory-Aided LLM Reasoning: An Optimization Perspective