LLMs in the Imaginarium: Tool Learning through Simulated Trial and Error
On the map: LLM agents and tool use → Tool learning and function calling
Abstract (arXiv)
Tools are essential for large language models (LLMs) to acquire up-to-date information and take consequential actions in external environments. Existing work on tool-augmented LLMs primarily focuses on the broad coverage of tools and the flexibility of adding new tools. However, a critical aspect that has surprisingly been understudied is simply how accurately an LLM uses tools for which it has been trained. We find that existing LLMs, including GPT-4 and open-source LLMs specifically fine-tuned for tool use, only reach a correctness rate in the range of 30% to 60%, far from reliable use in practice. We propose a biologically inspired method for tool-augmented LLMs, simulated trial and error (STE), that orchestrates three key mechanisms for successful tool use behaviors in the biological system: trial and error, imagination, and memory. Specifically, STE leverages an LLM's 'imagination' to simulate plausible scenarios for using a tool, after which the LLM interacts with the tool to learn from its execution feedback. Both short-term and long-term memory are employed to improve the depth and breadth of the exploration, respectively. Comprehensive experiments on ToolBench show that STE substantially improves tool learning for LLMs under both in-context learning and fine-tuning settings, bringing a boost of 46.7% to Mistral-Instruct-7B and enabling it to outperform GPT-4. We also show effective continual learning of tools via a simple experience replay strategy.
Key facts. Cited by 19 papers in the map (data through 7 Oct 2026). Placed in Tool learning and function calling, one of 16 directions in LLM agents and tool use. Builds on 43 of its 69 references that are in the map. First posted on arXiv 7 Mar 2024.
Builds on
43 of 69 references.
Closest ancestors · 7
Same direction, newest first
- 2023Don't Fine-Tune, Decode: Syntax Error-Free Tool Use via Constrained Decoding10 Oct
- 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
- 2023Toolformer: Language Models Can Teach Themselves to Use Tools9 Feb
- 2022TALM: Tool Augmented Language Models24 May
Other references · 36
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2016Overcoming catastrophic forgetting in neural networkscited by 4,718
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
- 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,767
- 2021Improving language models by retrieving from trillions of tokenscited by 1,278
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
24 more
- 2023LIMA: Less Is More for Alignmentcited by 1,080
- 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,057
- 2023Teaching Large Language Models to Self-Debugcited by 963
- 2023ExpeL: LLM Agents Are Experiential Learnerscited by 814
- 2022Large Language Models Can Self-Improvecited by 656
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
- 2023An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuningcited by 622
- 2023How Far Can Camels Go? Exploring the State of Instruction Tuning on Open Resourcescited by 405
- 2022Unnatural Instructions: Tuning Language Models with (Almost) No Human Laborcited by 395
- 2023Language Models can Solve Computer Taskscited by 371
- 2023Check Your Facts and Try Again: Improving Large Language Models with External Knowledge and Automated Feedbackcited by 351
- 2023Effective Long-Context Scaling of Foundation Modelscited by 301
- 2023The Unlocking Spell on Base LLMs: Rethinking Alignment via In-Context Learningcited by 251
- 2023Automatically Correcting Large Language Models: Surveying the landscape of diverse self-correction strategiescited by 236
- 2021Generating Datasets with Pretrained Language Modelscited by 192
- 2023TaskMatrix.AI: Completing Tasks by Connecting Foundation Models with Millions of APIscited by 184
- 2023The Capacity for Moral Self-Correction in Large Language Modelscited by 171
- 2021Constrained Language Models Yield Few-Shot Semantic Parserscited by 162
- 2022Fine-tuned Language Models are Continual Learnerscited by 152
- 2023ChatDB: Augmenting LLMs with Databases as Their Symbolic Memorycited by 136
- 2023OpenAgents: An Open Platform for Language Agents in the Wildcited by 136
- 2023Walking Down the Memory Maze: Beyond Context Limit through Interactive Readingcited by 129
- 2024Middleware for LLMs: Tools Are Instrumental for Language Agents in Complex Environmentscited by 39
- 2022The Whole Truth and Nothing But the Truth: Faithful and Controllable Dialogue Response Generation with Dataflow Transduction and Constrained Decodingcited by 7
Built on by
Citing papers per year: 2024: 5; 2025: 6; 2026: 8.
19 papers.
Sort:
By area:
- 2024Tool Learning with Large Language Models: A Surveycited by 221
- 2025Lifelong Learning of Large Language Model based Agents: A Roadmapcited by 78
- 2024LLM With Tools: A Surveycited by 60
- 2024From Exploration to Mastery: Enabling LLMs to Master Tools via Self-Driven Interactionscited by 46
- 2024Learning Evolving Tools for Large Language Modelscited by 15
- 2026SkillDAG: Self-Evolving Typed Skill Graphs for LLM Skill Selection at Scalecited by 15
- 2024Almanac Copilot: Towards Autonomous Electronic Health Record Navigationcited by 9
- 2025The Curious Language Model: Strategic Test-Time Information Acquisitioncited by 5
- 2025Putting on the Thinking Hats: A Survey on Chain of Thought Fine-tuning from the Perspective of Human Reasoning Mechanismcited by 4
- 2026OpaqueToolsBench: Learning Nuances of Tool Behavior Through Interactioncited by 3
- 2025Head-Specific Intervention Can Induce Misaligned AI Coordination in Large Language Modelscited by 1
- 2025CarbonCall: Sustainability-Aware Function Calling for Large Language Models on Edge Devicescited by 1
7 more
- 2025MMAT-1M: A Large Reasoning Dataset for Multimodal Agent Tuningcited by 1
- 2026Tool Retrieval Bridge: Aligning Vague Instructions with Retriever Preferences via Bridge Modelcited by 1
- 2026Thinking Is Not Telling: Information Disclosure in User-Service LLM Agentscited by 0
- 2026GRAFT: Graph-Tokenized LLMs for Tool Planningcited by 0
- 2026ParaTool: Shifting Tool Representations from Context to Parameterscited by 0
- 2026When Does Action Credit Need Updating?cited by 0
- 2026Self-Evolving Agents via Likelihood-Guided Tool-Space Optimizationcited by 0
- 2026Self-Evolving Agents via Likelihood-Guided Tool-Space Optimization28 Sep 2026
- 2026When Does Action Credit Need Updating?24 Sep 2026
- 2026SkillDAG: Self-Evolving Typed Skill Graphs for LLM Skill Selection at Scale2 Jun 2026
- 2026ParaTool: Shifting Tool Representations from Context to Parameters28 May 2026
- 2026GRAFT: Graph-Tokenized LLMs for Tool Planning12 May 2026
- 2026Tool Retrieval Bridge: Aligning Vague Instructions with Retriever Preferences via Bridge Model9 Apr 2026
- 2026OpaqueToolsBench: Learning Nuances of Tool Behavior Through Interaction16 Feb 2026
- 2026Thinking Is Not Telling: Information Disclosure in User-Service LLM Agents8 Feb 2026
- 2025Putting on the Thinking Hats: A Survey on Chain of Thought Fine-tuning from the Perspective of Human Reasoning Mechanism15 Oct 2025
- 2025MMAT-1M: A Large Reasoning Dataset for Multimodal Agent Tuning29 Jul 2025
- 2025The Curious Language Model: Strategic Test-Time Information Acquisition10 Jun 2025
- 2025CarbonCall: Sustainability-Aware Function Calling for Large Language Models on Edge Devices29 Apr 2025
7 more
- 2025Head-Specific Intervention Can Induce Misaligned AI Coordination in Large Language Models9 Feb 2025
- 2025Lifelong Learning of Large Language Model based Agents: A Roadmap13 Jan 2025
- 2024From Exploration to Mastery: Enabling LLMs to Master Tools via Self-Driven Interactions10 Oct 2024
- 2024Learning Evolving Tools for Large Language Models9 Oct 2024
- 2024LLM With Tools: A Survey24 Sep 2024
- 2024Tool Learning with Large Language Models: A Survey28 May 2024
- 2024Almanac Copilot: Towards Autonomous Electronic Health Record Navigation30 Apr 2024
- 2024Tool Learning with Large Language Models: A Surveycited by 221
- 2025Lifelong Learning of Large Language Model based Agents: A Roadmapcited by 78
- 2024LLM With Tools: A Surveycited by 60
- 2024From Exploration to Mastery: Enabling LLMs to Master Tools via Self-Driven Interactionscited by 46
- 2024Learning Evolving Tools for Large Language Modelscited by 15
- 2026SkillDAG: Self-Evolving Typed Skill Graphs for LLM Skill Selection at Scalecited by 15
- 2026OpaqueToolsBench: Learning Nuances of Tool Behavior Through Interactioncited by 3
- 2025CarbonCall: Sustainability-Aware Function Calling for Large Language Models on Edge Devicescited by 1
- 2026Tool Retrieval Bridge: Aligning Vague Instructions with Retriever Preferences via Bridge Modelcited by 1
- 2026ParaTool: Shifting Tool Representations from Context to Parameterscited by 0
- 2026SkillDAG: Self-Evolving Typed Skill Graphs for LLM Skill Selection at Scale2 Jun 2026
- 2026ParaTool: Shifting Tool Representations from Context to Parameters28 May 2026
- 2026Tool Retrieval Bridge: Aligning Vague Instructions with Retriever Preferences via Bridge Model9 Apr 2026
- 2026OpaqueToolsBench: Learning Nuances of Tool Behavior Through Interaction16 Feb 2026
- 2025CarbonCall: Sustainability-Aware Function Calling for Large Language Models on Edge Devices29 Apr 2025
- 2025Lifelong Learning of Large Language Model based Agents: A Roadmap13 Jan 2025
- 2024From Exploration to Mastery: Enabling LLMs to Master Tools via Self-Driven Interactions10 Oct 2024
- 2024Learning Evolving Tools for Large Language Models9 Oct 2024
- 2024LLM With Tools: A Survey24 Sep 2024
- 2024Tool Learning with Large Language Models: A Survey28 May 2024
- 2026Thinking Is Not Telling: Information Disclosure in User-Service LLM Agents8 Feb 2026
- 2025Putting on the Thinking Hats: A Survey on Chain of Thought Fine-tuning from the Perspective of Human Reasoning Mechanism15 Oct 2025
- 2025MMAT-1M: A Large Reasoning Dataset for Multimodal Agent Tuning29 Jul 2025
- 2024Almanac Copilot: Towards Autonomous Electronic Health Record Navigationcited by 9
- 2025The Curious Language Model: Strategic Test-Time Information Acquisitioncited by 5
- 2026GRAFT: Graph-Tokenized LLMs for Tool Planningcited by 0
- 2026When Does Action Credit Need Updating?cited by 0
- 2026Self-Evolving Agents via Likelihood-Guided Tool-Space Optimizationcited by 0
- 2026Self-Evolving Agents via Likelihood-Guided Tool-Space Optimization28 Sep 2026
- 2026When Does Action Credit Need Updating?24 Sep 2026
- 2026GRAFT: Graph-Tokenized LLMs for Tool Planning12 May 2026
- 2025The Curious Language Model: Strategic Test-Time Information Acquisition10 Jun 2025
- 2024Almanac Copilot: Towards Autonomous Electronic Health Record Navigation30 Apr 2024
Similar, not cited
Close in wording, no citation either way
- 2026Teaching LLMs to Learn Tool Trialing and Execution through Environment Interaction
- 2024ToolEyes: Fine-Grained Evaluation for Tool Learning Capabilities of Large Language Models in Real-world Scenarios
- 2026Toolcompass: Guiding Tool Trialing, Not Suppressing It
- 2024Tool Learning in the Wild: Empowering Language Models as Automatic Tool Agents
- 2026ToolMenuBench: Benchmarking Tool-Menu Filtering Strategies for Reliable and Efficient LLM Agents
- 2024Towards Practical Tool Usage for Continually Learning LLMs
- 2026Try, Check and Retry: A Divide-and-Conquer Framework for Boosting Long-context Tool-Calling Performance of LLMs
- 2026ZEBRAARENA: A Diagnostic Simulation Environment for Studying Reasoning-Action Coupling in Tool-Augmented LLMs