LLMs in the Imaginarium: Tool Learning through Simulated Trial and Error. Wang, B., Fang, H., Eisner, J., Durme, B. V., & Su, Y. March, 2024. arXiv:2403.04746 [cs]
Paper doi abstract bibtex 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.
@misc{wangLLMsImaginariumTool2024a,
title = {{LLMs} in the {Imaginarium}: {Tool} {Learning} through {Simulated} {Trial} and {Error}},
shorttitle = {{LLMs} in the {Imaginarium}},
url = {http://arxiv.org/abs/2403.04746},
doi = {10.48550/arXiv.2403.04746},
abstract = {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.},
urldate = {2025-01-13},
publisher = {arXiv},
author = {Wang, Boshi and Fang, Hao and Eisner, Jason and Durme, Benjamin Van and Su, Yu},
month = mar,
year = {2024},
note = {arXiv:2403.04746 [cs]},
keywords = {Computer Science - Artificial Intelligence, Computer Science - Computation and Language, Computer Science - Machine Learning},
}
Downloads: 0
{"_id":"ZPHYTRpR6xkcbch22","bibbaseid":"wang-fang-eisner-durme-su-llmsintheimaginariumtoollearningthroughsimulatedtrialanderror-2024","author_short":["Wang, B.","Fang, H.","Eisner, J.","Durme, B. V.","Su, Y."],"bibdata":{"bibtype":"misc","type":"misc","title":"LLMs in the Imaginarium: Tool Learning through Simulated Trial and Error","shorttitle":"LLMs in the Imaginarium","url":"http://arxiv.org/abs/2403.04746","doi":"10.48550/arXiv.2403.04746","abstract":"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.","urldate":"2025-01-13","publisher":"arXiv","author":[{"propositions":[],"lastnames":["Wang"],"firstnames":["Boshi"],"suffixes":[]},{"propositions":[],"lastnames":["Fang"],"firstnames":["Hao"],"suffixes":[]},{"propositions":[],"lastnames":["Eisner"],"firstnames":["Jason"],"suffixes":[]},{"propositions":[],"lastnames":["Durme"],"firstnames":["Benjamin","Van"],"suffixes":[]},{"propositions":[],"lastnames":["Su"],"firstnames":["Yu"],"suffixes":[]}],"month":"March","year":"2024","note":"arXiv:2403.04746 [cs]","keywords":"Computer Science - Artificial Intelligence, Computer Science - Computation and Language, Computer Science - Machine Learning","bibtex":"@misc{wangLLMsImaginariumTool2024a,\n\ttitle = {{LLMs} in the {Imaginarium}: {Tool} {Learning} through {Simulated} {Trial} and {Error}},\n\tshorttitle = {{LLMs} in the {Imaginarium}},\n\turl = {http://arxiv.org/abs/2403.04746},\n\tdoi = {10.48550/arXiv.2403.04746},\n\tabstract = {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.},\n\turldate = {2025-01-13},\n\tpublisher = {arXiv},\n\tauthor = {Wang, Boshi and Fang, Hao and Eisner, Jason and Durme, Benjamin Van and Su, Yu},\n\tmonth = mar,\n\tyear = {2024},\n\tnote = {arXiv:2403.04746 [cs]},\n\tkeywords = {Computer Science - Artificial Intelligence, Computer Science - Computation and Language, Computer Science - Machine Learning},\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","author_short":["Wang, B.","Fang, H.","Eisner, J.","Durme, B. V.","Su, Y."],"key":"wangLLMsImaginariumTool2024a","id":"wangLLMsImaginariumTool2024a","bibbaseid":"wang-fang-eisner-durme-su-llmsintheimaginariumtoollearningthroughsimulatedtrialanderror-2024","role":"author","urls":{"Paper":"http://arxiv.org/abs/2403.04746"},"keyword":["Computer Science - Artificial Intelligence","Computer Science - Computation and Language","Computer Science - Machine Learning"],"metadata":{"authorlinks":{}},"html":""},"bibtype":"misc","biburl":"https://bibbase.org/zotero/saurabhr","dataSources":["miMWJWjn4sT6Q3GDs","nxjWwW7fWbb5tfpKz"],"keywords":["computer science - artificial intelligence","computer science - computation and language","computer science - machine learning"],"search_terms":["llms","imaginarium","tool","learning","through","simulated","trial","error","wang","fang","eisner","durme","su"],"title":"LLMs in the Imaginarium: Tool Learning through Simulated Trial and Error","year":2024}