Middleware for LLMs: Tools Are Instrumental for Language Agents in Complex Environments
On the map: LLM agents and tool use → General LLM agent frameworks and benchmarks
Abstract (arXiv)
The applications of large language models (LLMs) have expanded well beyond the confines of text processing, signaling a new era where LLMs are envisioned as generalist agents capable of operating within complex environments. These environments are often highly expansive, making it impossible for the LLM to process them within its short-term memory. Motivated by recent research on extending the capabilities of LLMs with tools, we seek to investigate the intriguing potential of tools to augment LLMs in handling such complexity by introducing a novel class of tools, termed middleware, to aid in the proactive exploration within these massive environments. Such specialized tools can serve as a middleware layer shielding the LLM from environmental complexity. In two representative complex environments -- knowledge bases (KBs) and databases -- we demonstrate the significant potential of augmenting language agents with tools in complex environments. Notably, equipped with the middleware, GPT-4 achieves 2.8X the performance of the best baseline in tasks requiring access to database content and 2.2X in KB tasks. Our findings illuminate the path for advancing language agents in real-world applications.
Key facts. Cited by 39 papers in the map (data through 7 Oct 2026). Placed in General LLM agent frameworks and benchmarks, one of 16 directions in LLM agents and tool use. Builds on 33 of its 47 references that are in the map. First posted on arXiv 22 Feb 2024.
Builds on
33 of 47 references.
References · 33
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIscited by 1,880
- 2023Mind2Web: Towards a Generalist Agent for the Webcited by 1,210
- 2020ALFWorld: Aligning Text and Embodied Environments for Interactive Learningcited by 1,143
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
- 2023Teaching Large Language Models to Self-Debugcited by 963
- 2023CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquingcited by 751
- 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 679
21 more
- 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
- 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 465
- 2018The Web as a Knowledge-base for Answering Complex Questionscited by 409
- 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 378
- 2023StructGPT: A General Framework for Large Language Model to Reason over Structured Datacited by 339
- 2023Tool Learning with Foundation Modelscited by 302
- 2023ToolkenGPT: Augmenting Frozen Language Models with Massive Tools via Tool Embeddingscited by 238
- 2023Leveraging Pre-trained Large Language Models to Construct and Utilize World Models for Model-based Task Planningcited by 204
- 2017Variational Reasoning for Question Answering with Knowledge Graphcited by 170
- 2020Beyond I.I.D.: Three Levels of Generalization for Question Answering on Knowledge Basescited by 169
- 2019A Comprehensive Exploration on WikiSQL with Table-Aware Word Contextualizationcited by 88
- 2022DecAF: Joint Decoding of Answers and Logical Forms for Question Answering over Knowledge Basescited by 83
- 2020KQA Pro: A Dataset with Explicit Compositional Programs for Complex Question Answering over Knowledge Basecited by 76
- 2023Few-shot In-context Learning for Knowledge Base Question Answeringcited by 74
- 2024TroVE: Inducing Verifiable and Efficient Toolboxes for Solving Programmatic Taskscited by 70
- 2023Exploring Chain-of-Thought Style Prompting for Text-to-SQLcited by 69
- 2022Don't Generate, Discriminate: A Proposal for Grounding Language Models to Real-World Environmentscited by 57
- 2022ArcaneQA: Dynamic Program Induction and Contextualized Encoding for Knowledge Base Question Answeringcited by 48
- 2021Grounding 'Grounding' in NLPcited by 44
- 2022Knowledge Base Question Answering: A Semantic Parsing Perspectivecited by 22
- 2023Battle of the Large Language Models: Dolly vs LLaMA vs Vicuna vs Guanaco vs Bard vs ChatGPT -- A Text-to-SQL Parsing Comparisoncited by 6
Built on by
Citing papers per year: 2024: 18; 2025: 16; 2026: 5.
39 papers.
Sort:
By area:
- 2024WebRL: Training LLM Web Agents via Self-Evolving Online Curriculum Reinforcement Learningcited by 243
- 2024Tool Learning with Large Language Models: A Surveycited by 221
- 2025SkillWeaver: Web Agents can Self-Improve by Discovering and Honing Skillscited by 174
- 2024Next-Generation Database Interfaces: A Survey of LLM-based Text-to-SQLcited by 118
- 2025Towards Scientific Intelligence: A Survey of LLM-based Scientific Agentscited by 96
- 2025AGrail: A Lifelong Agent Guardrail with Effective and Adaptive Safety Detectioncited by 82
- 2025Agent Learning via Early Experiencecited by 79
- 2024Beyond Browsing: API-Based Web Agentscited by 77
- 2024A Survey of Large Language Models for Graphscited by 71
- 2024HyperAgent: Generalist Software Engineering Agents to Solve Coding Tasks at Scalecited by 61
- 2025Evaluating LLM-based Agents for Multi-Turn Conversations: A Surveycited by 56
- 2024Before Generation, Align it! A Novel and Effective Strategy for Mitigating Hallucinations in Text-to-SQL Generationcited by 49
27 more
- 2025A Survey on the Optimization of Large Language Model-based Agentscited by 45
- 2024Interactive-KBQA: Multi-Turn Interactions for Knowledge Base Question Answering with Large Language Modelscited by 25
- 2024Revealing the Barriers of Language Agents in Planningcited by 20
- 2026REMem: Reasoning with Episodic Memory in Language Agentcited by 20
- 2024LLMs in the Imaginarium: Tool Learning through Simulated Trial and Errorcited by 19
- 2024Tapilot-Crossing: Benchmarking and Evolving LLMs Towards Interactive Data Analysis Agentscited by 17
- 2025MCPVerse: An Expansive, Real-World Benchmark for Agentic Tool Usecited by 16
- 2024From Natural Language to SQL: Review of LLM-based Text-to-SQL Systemscited by 15
- 2025SHARE: An SLM-based Hierarchical Action CorREction Assistant for Text-to-SQLcited by 15
- 2025AskToAct: Enhancing LLMs Tool Use via Self-Correcting Clarificationcited by 12
- 2024Can Tool-augmented Large Language Models be Aware of Incomplete Conditions?cited by 8
- 2024A Perspective for Adapting Generalist AI to Specialized Medical AI Applications and Their Challengescited by 8
- 2025Reason-Align-Respond: Aligning LLM Reasoning with Knowledge Graphs for KGQAcited by 7
- 2025Efficient numeracy in language models through single-token number embeddingscited by 6
- 2024TARGA: Targeted Synthetic Data Generation for Practical Reasoning over Structured Datacited by 5
- 2025ALRPHFS: Adversarially Learned Risk Patterns with Hierarchical Fast & Slow Reasoning for Robust Agent Defensecited by 5
- 2025GraphChain: Large Language Models for Large-scale Graph Analysis via Tool Chainingcited by 5
- 2024A Taxonomy of Architecture Options for Foundation Model-based Agents: Analysis and Decision Modelcited by 4
- 2024Tool-Assisted Agent on SQL Inspection and Refinement in Real-World Scenarioscited by 4
- 2025Exploring the Landscape of Text-to-SQL with Large Language Models: Progresses, Challenges and Opportunitiescited by 4
- 2025CLEAR-KGQA: Clarification-Enhanced Ambiguity Resolution for Knowledge Graph Question Answeringcited by 3
- 2024Multi-Turn Interactions for Text-to-SQL with Large Language Modelscited by 2
- 2025Micro-Act: Mitigating Knowledge Conflict in LLM-based RAG via Actionable Self-Reasoningcited by 1
- 2026Push Your Agent: Measuring and Enforcing Quantitative Goal Persistence in Long-Horizon LLM Agentscited by 1
- 2026SearchOS-V1: Towards Robust Open-Domain Information-Seeking Agent Collaborationcited by 1
- 2026Execution-First Synthetic Tool-Use Trace Generation for LLM Agentscited by 1
- 2026Machine Learning-Based Detection of MCP Attackscited by 0
- 2026Execution-First Synthetic Tool-Use Trace Generation for LLM Agents31 Jul 2026
- 2026SearchOS-V1: Towards Robust Open-Domain Information-Seeking Agent Collaboration16 Jul 2026
- 2026Push Your Agent: Measuring and Enforcing Quantitative Goal Persistence in Long-Horizon LLM Agents22 May 2026
- 2026Machine Learning-Based Detection of MCP Attacks12 Apr 2026
- 2026REMem: Reasoning with Episodic Memory in Language Agent13 Feb 2026
- 2025GraphChain: Large Language Models for Large-scale Graph Analysis via Tool Chaining1 Nov 2025
- 2025Agent Learning via Early Experience9 Oct 2025
- 2025Efficient numeracy in language models through single-token number embeddings8 Oct 2025
- 2025MCPVerse: An Expansive, Real-World Benchmark for Agentic Tool Use22 Aug 2025
- 2025Micro-Act: Mitigating Knowledge Conflict in LLM-based RAG via Actionable Self-Reasoning5 Jun 2025
- 2025SHARE: An SLM-based Hierarchical Action CorREction Assistant for Text-to-SQL31 May 2025
- 2025Exploring the Landscape of Text-to-SQL with Large Language Models: Progresses, Challenges and Opportunities28 May 2025
27 more
- 2025Reason-Align-Respond: Aligning LLM Reasoning with Knowledge Graphs for KGQA27 May 2025
- 2025ALRPHFS: Adversarially Learned Risk Patterns with Hierarchical Fast & Slow Reasoning for Robust Agent Defense25 May 2025
- 2025CLEAR-KGQA: Clarification-Enhanced Ambiguity Resolution for Knowledge Graph Question Answering13 Apr 2025
- 2025SkillWeaver: Web Agents can Self-Improve by Discovering and Honing Skills9 Apr 2025
- 2025Towards Scientific Intelligence: A Survey of LLM-based Scientific Agents31 Mar 2025
- 2025Evaluating LLM-based Agents for Multi-Turn Conversations: A Survey28 Mar 2025
- 2025A Survey on the Optimization of Large Language Model-based Agents16 Mar 2025
- 2025AskToAct: Enhancing LLMs Tool Use via Self-Correcting Clarification3 Mar 2025
- 2025AGrail: A Lifelong Agent Guardrail with Effective and Adaptive Safety Detection17 Feb 2025
- 2024TARGA: Targeted Synthetic Data Generation for Practical Reasoning over Structured Data27 Dec 2024
- 2024WebRL: Training LLM Web Agents via Self-Evolving Online Curriculum Reinforcement Learning4 Nov 2024
- 2024A Perspective for Adapting Generalist AI to Specialized Medical AI Applications and Their Challenges28 Oct 2024
- 2024Beyond Browsing: API-Based Web Agents21 Oct 2024
- 2024Revealing the Barriers of Language Agents in Planning16 Oct 2024
- 2024From Natural Language to SQL: Review of LLM-based Text-to-SQL Systems1 Oct 2024
- 2024HyperAgent: Generalist Software Engineering Agents to Solve Coding Tasks at Scale9 Sep 2024
- 2024Tool-Assisted Agent on SQL Inspection and Refinement in Real-World Scenarios30 Aug 2024
- 2024Multi-Turn Interactions for Text-to-SQL with Large Language Models9 Aug 2024
- 2024A Taxonomy of Architecture Options for Foundation Model-based Agents: Analysis and Decision Model6 Aug 2024
- 2024Can Tool-augmented Large Language Models be Aware of Incomplete Conditions?18 Jun 2024
- 2024Next-Generation Database Interfaces: A Survey of LLM-based Text-to-SQL12 Jun 2024
- 2024Tool Learning with Large Language Models: A Survey28 May 2024
- 2024Before Generation, Align it! A Novel and Effective Strategy for Mitigating Hallucinations in Text-to-SQL Generation24 May 2024
- 2024A Survey of Large Language Models for Graphs10 May 2024
- 2024Tapilot-Crossing: Benchmarking and Evolving LLMs Towards Interactive Data Analysis Agents8 Mar 2024
- 2024LLMs in the Imaginarium: Tool Learning through Simulated Trial and Error7 Mar 2024
- 2024Interactive-KBQA: Multi-Turn Interactions for Knowledge Base Question Answering with Large Language Models23 Feb 2024
- 2024WebRL: Training LLM Web Agents via Self-Evolving Online Curriculum Reinforcement Learningcited by 243
- 2024Tool Learning with Large Language Models: A Surveycited by 221
- 2025SkillWeaver: Web Agents can Self-Improve by Discovering and Honing Skillscited by 174
- 2025Towards Scientific Intelligence: A Survey of LLM-based Scientific Agentscited by 96
- 2025AGrail: A Lifelong Agent Guardrail with Effective and Adaptive Safety Detectioncited by 82
- 2024Beyond Browsing: API-Based Web Agentscited by 77
- 2024HyperAgent: Generalist Software Engineering Agents to Solve Coding Tasks at Scalecited by 61
- 2025Evaluating LLM-based Agents for Multi-Turn Conversations: A Surveycited by 56
- 2025A Survey on the Optimization of Large Language Model-based Agentscited by 45
- 2024Revealing the Barriers of Language Agents in Planningcited by 20
- 2024LLMs in the Imaginarium: Tool Learning through Simulated Trial and Errorcited by 19
- 2024Tapilot-Crossing: Benchmarking and Evolving LLMs Towards Interactive Data Analysis Agentscited by 17
12 most cited of 21 All 21 (JSON)
- 2026Execution-First Synthetic Tool-Use Trace Generation for LLM Agents31 Jul 2026
- 2026SearchOS-V1: Towards Robust Open-Domain Information-Seeking Agent Collaboration16 Jul 2026
- 2026Push Your Agent: Measuring and Enforcing Quantitative Goal Persistence in Long-Horizon LLM Agents22 May 2026
- 2025MCPVerse: An Expansive, Real-World Benchmark for Agentic Tool Use22 Aug 2025
- 2025ALRPHFS: Adversarially Learned Risk Patterns with Hierarchical Fast & Slow Reasoning for Robust Agent Defense25 May 2025
- 2025SkillWeaver: Web Agents can Self-Improve by Discovering and Honing Skills9 Apr 2025
- 2025Towards Scientific Intelligence: A Survey of LLM-based Scientific Agents31 Mar 2025
- 2025Evaluating LLM-based Agents for Multi-Turn Conversations: A Survey28 Mar 2025
- 2025A Survey on the Optimization of Large Language Model-based Agents16 Mar 2025
- 2025AskToAct: Enhancing LLMs Tool Use via Self-Correcting Clarification3 Mar 2025
- 2025AGrail: A Lifelong Agent Guardrail with Effective and Adaptive Safety Detection17 Feb 2025
- 2024WebRL: Training LLM Web Agents via Self-Evolving Online Curriculum Reinforcement Learning4 Nov 2024
12 newest of 21 All 21 (JSON)
- 2025SHARE: An SLM-based Hierarchical Action CorREction Assistant for Text-to-SQLcited by 15
- 2025Reason-Align-Respond: Aligning LLM Reasoning with Knowledge Graphs for KGQAcited by 7
- 2024Multi-Turn Interactions for Text-to-SQL with Large Language Modelscited by 2
- 2025Micro-Act: Mitigating Knowledge Conflict in LLM-based RAG via Actionable Self-Reasoningcited by 1
- 2025Micro-Act: Mitigating Knowledge Conflict in LLM-based RAG via Actionable Self-Reasoning5 Jun 2025
- 2025SHARE: An SLM-based Hierarchical Action CorREction Assistant for Text-to-SQL31 May 2025
- 2025Reason-Align-Respond: Aligning LLM Reasoning with Knowledge Graphs for KGQA27 May 2025
- 2024Multi-Turn Interactions for Text-to-SQL with Large Language Models9 Aug 2024
- 2024Next-Generation Database Interfaces: A Survey of LLM-based Text-to-SQLcited by 118
- 2025Agent Learning via Early Experiencecited by 79
- 2024A Survey of Large Language Models for Graphscited by 71
- 2024Before Generation, Align it! A Novel and Effective Strategy for Mitigating Hallucinations in Text-to-SQL Generationcited by 49
- 2024Interactive-KBQA: Multi-Turn Interactions for Knowledge Base Question Answering with Large Language Modelscited by 25
- 2026REMem: Reasoning with Episodic Memory in Language Agentcited by 20
- 2024A Perspective for Adapting Generalist AI to Specialized Medical AI Applications and Their Challengescited by 8
- 2025Efficient numeracy in language models through single-token number embeddingscited by 6
- 2025GraphChain: Large Language Models for Large-scale Graph Analysis via Tool Chainingcited by 5
- 2025Exploring the Landscape of Text-to-SQL with Large Language Models: Progresses, Challenges and Opportunitiescited by 4
- 2025CLEAR-KGQA: Clarification-Enhanced Ambiguity Resolution for Knowledge Graph Question Answeringcited by 3
- 2026Machine Learning-Based Detection of MCP Attackscited by 0
- 2026Machine Learning-Based Detection of MCP Attacks12 Apr 2026
- 2026REMem: Reasoning with Episodic Memory in Language Agent13 Feb 2026
- 2025GraphChain: Large Language Models for Large-scale Graph Analysis via Tool Chaining1 Nov 2025
- 2025Agent Learning via Early Experience9 Oct 2025
- 2025Efficient numeracy in language models through single-token number embeddings8 Oct 2025
- 2025Exploring the Landscape of Text-to-SQL with Large Language Models: Progresses, Challenges and Opportunities28 May 2025
- 2025CLEAR-KGQA: Clarification-Enhanced Ambiguity Resolution for Knowledge Graph Question Answering13 Apr 2025
- 2024A Perspective for Adapting Generalist AI to Specialized Medical AI Applications and Their Challenges28 Oct 2024
- 2024Next-Generation Database Interfaces: A Survey of LLM-based Text-to-SQL12 Jun 2024
- 2024Before Generation, Align it! A Novel and Effective Strategy for Mitigating Hallucinations in Text-to-SQL Generation24 May 2024
- 2024A Survey of Large Language Models for Graphs10 May 2024
- 2024Interactive-KBQA: Multi-Turn Interactions for Knowledge Base Question Answering with Large Language Models23 Feb 2024
Similar, not cited
Close in wording, no citation either way
- 2024Small LLMs Are Weak Tool Learners: A Multi-LLM Agent
- 2025Large Language Model Agent: A Survey on Methodology, Applications and Challenges
- 2024Large Language Model based Multi-Agents: A Survey of Progress and Challenges
- 2024A Review of Prominent Paradigms for LLM-Based Agents: Tool Use (Including RAG), Planning, and Feedback Learning
- 2024Creating an LLM-based AI-agent: A high-level methodology towards enhancing LLMs with APIs
- 2024Large Language Model-Based Agents for Software Engineering: A Survey
- 2024Exploring Large Language Model based Intelligent Agents: Definitions, Methods, and Prospects
- 2023AgentBench: Evaluating LLMs as Agents