EcoAssistant: Using LLM Assistant More Affordably and Accurately
Not on the map. Why?
Abstract (arXiv)
Today, users ask Large language models (LLMs) as assistants to answer queries that require external knowledge; they ask about the weather in a specific city, about stock prices, and even about where specific locations are within their neighborhood. These queries require the LLM to produce code that invokes external APIs to answer the user's question, yet LLMs rarely produce correct code on the first try, requiring iterative code refinement upon execution results. In addition, using LLM assistants to support high query volumes can be expensive. In this work, we contribute a framework, EcoAssistant, that enables LLMs to answer code-driven queries more affordably and accurately. EcoAssistant contains three components. First, it allows the LLM assistants to converse with an automatic code executor to iteratively refine code or to produce answers based on the execution results. Second, we use a hierarchy of LLM assistants, which attempts to answer the query with weaker, cheaper LLMs before backing off to stronger, expensive ones. Third, we retrieve solutions from past successful queries as in-context demonstrations to help subsequent queries. Empirically, we show that EcoAssistant offers distinct advantages for affordability and accuracy, surpassing GPT-4 by 10 points of success rate with less than 50% of GPT-4's cost.
Key facts. Cited by 47 papers in the map (data through 7 Oct 2026). Builds on 25 of its 30 references that are in the map. First posted on arXiv 3 Oct 2023.
Builds on
25 of 30 references.
References · 25
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
- 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,761
- 2023Improving Factuality and Reasoning in Language Models through Multiagent Debatecited by 1,739
- 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,722
- 2023The Rise and Potential of Large Language Model Based Agents: A Surveycited by 1,422
- 2023AgentBench: Evaluating LLMs as Agentscited by 1,211
- 2023Encouraging Divergent Thinking in Large Language Models through Multi-Agent Debatecited by 995
13 more
- 2021Measuring Coding Challenge Competence With APPScited by 879
- 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 791
- 2017Reading Wikipedia to Answer Open-Domain Questionscited by 777
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2019Latent Retrieval for Weakly Supervised Open Domain Question Answeringcited by 691
- 2023Is ChatGPT a Good NLG Evaluator? A Preliminary Studycited by 420
- 2023Learning to Compress Prompts with Gist Tokenscited by 379
- 2023GPTScore: Evaluate as You Desirecited by 357
- 2023Multi-Agent Collaboration: Harnessing the Power of Intelligent LLM Agentscited by 329
- 2023InterCode: Standardizing and Benchmarking Interactive Coding with Execution Feedbackcited by 229
- 2023Cost-Effective Hyperparameter Optimization for Large Language Model Generation Inferencecited by 40
- 2023LeanContext: Cost-Efficient Domain-Specific Question Answering Using LLMscited by 40
- 2023BatchPrompt: Accomplish more with lesscited by 16
Built on by
Citing papers per year: 2023: 3; 2024: 18; 2025: 13; 2026: 13.
47 papers.
Sort:
By area:
- 2024Visual Sketchpad: Sketching as a Visual Chain of Thought for Multimodal Language Modelscited by 260
- 2025Which Agent Causes Task Failures and When? On Automated Failure Attribution of LLM Multi-Agent Systemscited by 170
- 2023Pearl: Personalizing Large Language Model Writing Assistants with Generation-Calibrated Retrieverscited by 91
- 2025Agent KB: Leveraging Cross-Domain Experience for Agentic Problem Solvingcited by 90
- 2025Harnessing Multiple Large Language Models: A Survey on LLM Ensemblecited by 86
- 2024EHRAgent: Code Empowers Large Language Models for Few-shot Complex Tabular Reasoning on Electronic Health Recordscited by 75
- 2024Learning to Route LLMs with Confidence Tokenscited by 66
- 2024Model Compression and Efficient Inference for Large Language Models: A Surveycited by 62
- 2025RouterEval: A Comprehensive Benchmark for Routing LLMs to Explore Model-level Scaling Up in LLMscited by 58
- 2025A Survey of LLM-Driven AI Agent Communication: Protocols, Security Risks, and Defense Countermeasurescited by 54
- 2024m&m's: A Benchmark to Evaluate Tool-Use for multi-step multi-modal Taskscited by 38
- 2024Adaptive In-conversation Team Building for Language Model Agentscited by 38
35 more
- 2024Agent Design Pattern Catalogue: A Collection of Architectural Patterns for Foundation Model based Agentscited by 35
- 2025CostBench: Evaluating Multi-Turn Cost-Optimal Planning and Adaptation in Dynamic Environments for LLM Tool-Use Agentscited by 32
- 2024Are More LLM Calls All You Need? Towards Scaling Laws of Compound Inference Systemscited by 24
- 2024Large Language Models for Manufacturingcited by 24
- 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Timecited by 22
- 2025Doing More with Less: A Survey on Routing Strategies for Resource Optimisation in Large Language Model-Based Systemscited by 18
- 2025Automatic Failure Attribution and Critical Step Prediction Method for Multi-Agent Systems Based on Causal Inferencecited by 18
- 2024Interactive Speculative Planning: Enhance Agent Efficiency through Co-design of System and User Interfacecited by 15
- 2024CigaR: Cost-efficient Program Repair with LLMscited by 14
- 2026Inference-Time Budget Control for LLM Search Agentscited by 13
- 2023Advancing the Search Frontier with AI Agentscited by 12
- 2024EcoAct: Economic Agent Determines When to Register What Actioncited by 11
- 2026The Evolution of Tool Use in LLM Agents: From Single-Tool Call to Multi-Tool Orchestrationcited by 11
- 2025Dynamic Speculative Agent Planningcited by 10
- 2026Spend Less, Reason Better: Budget-Aware Value Tree Search for LLM Agentscited by 10
- 2024Enabling Weak LLMs to Judge Response Reliability via Meta Rankingcited by 9
- 2025Orchestrating Agents and Data for Enterprise: A Blueprint Architecture for Compound AIcited by 9
- 2024Affordable Generative Agentscited by 8
- 2024CodeNav: Beyond tool-use to using real-world codebases with LLM agentscited by 8
- 2026Task-Aware LLM Routing with Multi-Level Task-Profile-Guided Data Synthesis for Cold-Start Scenarioscited by 8
- 2026DualSpec: Accelerating Deep Research Agents via Dual-Process Action Speculationcited by 6
- 2025Towards Efficient Multi-LLM Inference: Characterization and Analysis of LLM Routing and Hierarchical Techniquescited by 5
- 2025Neural Algorithmic Reasoning for Hypergraphs with Looped Transformerscited by 3
- 2026From Sampled Outcomes to Capability Distributions: Rethinking Supervision for LLM Routingcited by 3
- 2026RAL2M: Retrieval Augmented Learning-To-Match Against Hallucination in Compliance-Guaranteed Service Systemscited by 2
- 2026Tandem: Riding Together with Large and Small Language Models for Efficient Reasoningcited by 2
- 2024Trigger3: Refining Query Correction via Adaptive Model Selectorcited by 1
- 2025An Empirical Study on Strong-Weak Model Collaboration for Repo-level Code Generationcited by 1
- 2026Computational Arbitrage in AI Model Marketscited by 1
- 2023Redefining Developer Assistance: Through Large Language Models in Software Ecosystemcited by 0
- 2024XTRUST: On the Multilingual Trustworthiness of Large Language Modelscited by 0
- 2026CROP: Token-Efficient Reasoning in Large Language Models via Regularized Prompt Optimizationcited by 0
- 2026HyDRA: Hybrid Dynamic Routing Architecture for Heterogeneous LLM Poolscited by 0
- 2026When Efficiency Backfires: Cascading LLMs Trigger Cascade Failure under Adversarial Attackcited by 0
- 2026When to Call an LLM: A Confidence-Gated Hybrid for Cost-Effective Emotion Recognition in Conversational AIcited by 0
- 2026When to Call an LLM: A Confidence-Gated Hybrid for Cost-Effective Emotion Recognition in Conversational AI16 Sep 2026
- 2026From Sampled Outcomes to Capability Distributions: Rethinking Supervision for LLM Routing5 Jun 2026
- 2026When Efficiency Backfires: Cascading LLMs Trigger Cascade Failure under Adversarial Attack17 May 2026
- 2026HyDRA: Hybrid Dynamic Routing Architecture for Heterogeneous LLM Pools16 May 2026
- 2026Inference-Time Budget Control for LLM Search Agents7 May 2026
- 2026Tandem: Riding Together with Large and Small Language Models for Efficient Reasoning26 Apr 2026
- 2026Task-Aware LLM Routing with Multi-Level Task-Profile-Guided Data Synthesis for Cold-Start Scenarios10 Apr 2026
- 2026CROP: Token-Efficient Reasoning in Large Language Models via Regularized Prompt Optimization8 Apr 2026
- 2026The Evolution of Tool Use in LLM Agents: From Single-Tool Call to Multi-Tool Orchestration24 Mar 2026
- 2026Computational Arbitrage in AI Model Markets23 Mar 2026
- 2026Spend Less, Reason Better: Budget-Aware Value Tree Search for LLM Agents13 Mar 2026
- 2026DualSpec: Accelerating Deep Research Agents via Dual-Process Action Speculation8 Mar 2026
35 more
- 2026RAL2M: Retrieval Augmented Learning-To-Match Against Hallucination in Compliance-Guaranteed Service Systems6 Jan 2026
- 2025CostBench: Evaluating Multi-Turn Cost-Optimal Planning and Adaptation in Dynamic Environments for LLM Tool-Use Agents4 Nov 2025
- 2025Automatic Failure Attribution and Critical Step Prediction Method for Multi-Agent Systems Based on Causal Inference10 Sep 2025
- 2025Dynamic Speculative Agent Planning2 Sep 2025
- 2025Agent KB: Leveraging Cross-Domain Experience for Agentic Problem Solving8 Jul 2025
- 2025A Survey of LLM-Driven AI Agent Communication: Protocols, Security Risks, and Defense Countermeasures24 Jun 2025
- 2025Towards Efficient Multi-LLM Inference: Characterization and Analysis of LLM Routing and Hierarchical Techniques6 Jun 2025
- 2025An Empirical Study on Strong-Weak Model Collaboration for Repo-level Code Generation26 May 2025
- 2025Which Agent Causes Task Failures and When? On Automated Failure Attribution of LLM Multi-Agent Systems30 Apr 2025
- 2025Orchestrating Agents and Data for Enterprise: A Blueprint Architecture for Compound AI10 Apr 2025
- 2025RouterEval: A Comprehensive Benchmark for Routing LLMs to Explore Model-level Scaling Up in LLMs8 Mar 2025
- 2025Harnessing Multiple Large Language Models: A Survey on LLM Ensemble25 Feb 2025
- 2025Doing More with Less: A Survey on Routing Strategies for Resource Optimisation in Large Language Model-Based Systems1 Feb 2025
- 2025Neural Algorithmic Reasoning for Hypergraphs with Looped Transformers18 Jan 2025
- 2024Trigger3: Refining Query Correction via Adaptive Model Selector17 Dec 2024
- 2024EcoAct: Economic Agent Determines When to Register What Action3 Nov 2024
- 2024Large Language Models for Manufacturing28 Oct 2024
- 2024Learning to Route LLMs with Confidence Tokens17 Oct 2024
- 2024Interactive Speculative Planning: Enhance Agent Efficiency through Co-design of System and User Interface30 Sep 2024
- 2024XTRUST: On the Multilingual Trustworthiness of Large Language Models24 Sep 2024
- 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Time23 Aug 2024
- 2024CodeNav: Beyond tool-use to using real-world codebases with LLM agents18 Jun 2024
- 2024Visual Sketchpad: Sketching as a Visual Chain of Thought for Multimodal Language Models13 Jun 2024
- 2024Adaptive In-conversation Team Building for Language Model Agents29 May 2024
- 2024Agent Design Pattern Catalogue: A Collection of Architectural Patterns for Foundation Model based Agents16 May 2024
- 2024m&m's: A Benchmark to Evaluate Tool-Use for multi-step multi-modal Tasks17 Mar 2024
- 2024Are More LLM Calls All You Need? Towards Scaling Laws of Compound Inference Systems4 Mar 2024
- 2024Enabling Weak LLMs to Judge Response Reliability via Meta Ranking19 Feb 2024
- 2024Model Compression and Efficient Inference for Large Language Models: A Survey15 Feb 2024
- 2024CigaR: Cost-efficient Program Repair with LLMs9 Feb 2024
- 2024Affordable Generative Agents3 Feb 2024
- 2024EHRAgent: Code Empowers Large Language Models for Few-shot Complex Tabular Reasoning on Electronic Health Records13 Jan 2024
- 2023Redefining Developer Assistance: Through Large Language Models in Software Ecosystem9 Dec 2023
- 2023Pearl: Personalizing Large Language Model Writing Assistants with Generation-Calibrated Retrievers15 Nov 2023
- 2023Advancing the Search Frontier with AI Agents2 Nov 2023
- 2025Which Agent Causes Task Failures and When? On Automated Failure Attribution of LLM Multi-Agent Systemscited by 170
- 2025Agent KB: Leveraging Cross-Domain Experience for Agentic Problem Solvingcited by 90
- 2025A Survey of LLM-Driven AI Agent Communication: Protocols, Security Risks, and Defense Countermeasurescited by 54
- 2024Adaptive In-conversation Team Building for Language Model Agentscited by 38
- 2024Agent Design Pattern Catalogue: A Collection of Architectural Patterns for Foundation Model based Agentscited by 35
- 2025CostBench: Evaluating Multi-Turn Cost-Optimal Planning and Adaptation in Dynamic Environments for LLM Tool-Use Agentscited by 32
- 2024Interactive Speculative Planning: Enhance Agent Efficiency through Co-design of System and User Interfacecited by 15
- 2026Inference-Time Budget Control for LLM Search Agentscited by 13
- 2024EcoAct: Economic Agent Determines When to Register What Actioncited by 11
- 2026The Evolution of Tool Use in LLM Agents: From Single-Tool Call to Multi-Tool Orchestrationcited by 11
- 2025Dynamic Speculative Agent Planningcited by 10
- 2025Orchestrating Agents and Data for Enterprise: A Blueprint Architecture for Compound AIcited by 9
12 most cited of 15 All 15 (JSON)
- 2026Inference-Time Budget Control for LLM Search Agents7 May 2026
- 2026The Evolution of Tool Use in LLM Agents: From Single-Tool Call to Multi-Tool Orchestration24 Mar 2026
- 2026DualSpec: Accelerating Deep Research Agents via Dual-Process Action Speculation8 Mar 2026
- 2025CostBench: Evaluating Multi-Turn Cost-Optimal Planning and Adaptation in Dynamic Environments for LLM Tool-Use Agents4 Nov 2025
- 2025Dynamic Speculative Agent Planning2 Sep 2025
- 2025Agent KB: Leveraging Cross-Domain Experience for Agentic Problem Solving8 Jul 2025
- 2025A Survey of LLM-Driven AI Agent Communication: Protocols, Security Risks, and Defense Countermeasures24 Jun 2025
- 2025Which Agent Causes Task Failures and When? On Automated Failure Attribution of LLM Multi-Agent Systems30 Apr 2025
- 2025Orchestrating Agents and Data for Enterprise: A Blueprint Architecture for Compound AI10 Apr 2025
- 2024EcoAct: Economic Agent Determines When to Register What Action3 Nov 2024
- 2024Interactive Speculative Planning: Enhance Agent Efficiency through Co-design of System and User Interface30 Sep 2024
- 2024CodeNav: Beyond tool-use to using real-world codebases with LLM agents18 Jun 2024
12 newest of 15 All 15 (JSON)
- 2024Visual Sketchpad: Sketching as a Visual Chain of Thought for Multimodal Language Modelscited by 260
- 2024EHRAgent: Code Empowers Large Language Models for Few-shot Complex Tabular Reasoning on Electronic Health Recordscited by 75
- 2026Spend Less, Reason Better: Budget-Aware Value Tree Search for LLM Agentscited by 10
- 2025Neural Algorithmic Reasoning for Hypergraphs with Looped Transformerscited by 3
- 2026From Sampled Outcomes to Capability Distributions: Rethinking Supervision for LLM Routingcited by 3
- 2026Tandem: Riding Together with Large and Small Language Models for Efficient Reasoningcited by 2
- 2026CROP: Token-Efficient Reasoning in Large Language Models via Regularized Prompt Optimizationcited by 0
- 2026From Sampled Outcomes to Capability Distributions: Rethinking Supervision for LLM Routing5 Jun 2026
- 2026Tandem: Riding Together with Large and Small Language Models for Efficient Reasoning26 Apr 2026
- 2026CROP: Token-Efficient Reasoning in Large Language Models via Regularized Prompt Optimization8 Apr 2026
- 2026Spend Less, Reason Better: Budget-Aware Value Tree Search for LLM Agents13 Mar 2026
- 2025Neural Algorithmic Reasoning for Hypergraphs with Looped Transformers18 Jan 2025
- 2024Visual Sketchpad: Sketching as a Visual Chain of Thought for Multimodal Language Models13 Jun 2024
- 2024EHRAgent: Code Empowers Large Language Models for Few-shot Complex Tabular Reasoning on Electronic Health Records13 Jan 2024
- 2023Pearl: Personalizing Large Language Model Writing Assistants with Generation-Calibrated Retrieverscited by 91
- 2025Harnessing Multiple Large Language Models: A Survey on LLM Ensemblecited by 86
- 2024Learning to Route LLMs with Confidence Tokenscited by 66
- 2024Model Compression and Efficient Inference for Large Language Models: A Surveycited by 62
- 2025RouterEval: A Comprehensive Benchmark for Routing LLMs to Explore Model-level Scaling Up in LLMscited by 58
- 2024m&m's: A Benchmark to Evaluate Tool-Use for multi-step multi-modal Taskscited by 38
- 2024Are More LLM Calls All You Need? Towards Scaling Laws of Compound Inference Systemscited by 24
- 2024Large Language Models for Manufacturingcited by 24
- 2024Multi-Layer Transformers Gradient Can be Approximated in Almost Linear Timecited by 22
- 2025Doing More with Less: A Survey on Routing Strategies for Resource Optimisation in Large Language Model-Based Systemscited by 18
- 2025Automatic Failure Attribution and Critical Step Prediction Method for Multi-Agent Systems Based on Causal Inferencecited by 18
- 2024CigaR: Cost-efficient Program Repair with LLMscited by 14
12 most cited of 23 All 23 (JSON)
- 2026When to Call an LLM: A Confidence-Gated Hybrid for Cost-Effective Emotion Recognition in Conversational AI16 Sep 2026
- 2026When Efficiency Backfires: Cascading LLMs Trigger Cascade Failure under Adversarial Attack17 May 2026
- 2026HyDRA: Hybrid Dynamic Routing Architecture for Heterogeneous LLM Pools16 May 2026
- 2026Computational Arbitrage in AI Model Markets23 Mar 2026
- 2025Automatic Failure Attribution and Critical Step Prediction Method for Multi-Agent Systems Based on Causal Inference10 Sep 2025
- 2025Towards Efficient Multi-LLM Inference: Characterization and Analysis of LLM Routing and Hierarchical Techniques6 Jun 2025
- 2025An Empirical Study on Strong-Weak Model Collaboration for Repo-level Code Generation26 May 2025
- 2025RouterEval: A Comprehensive Benchmark for Routing LLMs to Explore Model-level Scaling Up in LLMs8 Mar 2025
- 2025Harnessing Multiple Large Language Models: A Survey on LLM Ensemble25 Feb 2025
- 2025Doing More with Less: A Survey on Routing Strategies for Resource Optimisation in Large Language Model-Based Systems1 Feb 2025
- 2024Trigger3: Refining Query Correction via Adaptive Model Selector17 Dec 2024
- 2024Large Language Models for Manufacturing28 Oct 2024
12 newest of 23 All 23 (JSON)