LGCLJun 17, 2024

AvaTaR: Optimizing LLM Agents for Tool Usage via Contrastive Reasoning

arXiv:2406.11200v375 citationsHas Code
Originality Highly original
AI Analysis

This addresses the heuristic and labor-intensive nature of prompting techniques for LLM agents, offering a solution for researchers and practitioners in AI and NLP.

The paper tackles the problem of optimizing LLM agents for tool usage by introducing AvaTaR, an automated framework that improves performance on complex multimodal retrieval and QA tasks, achieving average relative improvements of 14% and 13% on Hit@1 metrics, respectively.

Large language model (LLM) agents have demonstrated impressive capabilities in utilizing external tools and knowledge to boost accuracy and reduce hallucinations. However, developing prompting techniques that enable LLM agents to effectively use these tools and knowledge remains a heuristic and labor-intensive task. Here, we introduce AvaTaR, a novel and automated framework that optimizes an LLM agent to effectively leverage provided tools, improving performance on a given task. During optimization, we design a comparator module to iteratively deliver insightful and comprehensive prompts to the LLM agent by contrastively reasoning between positive and negative examples sampled from training data. We demonstrate AvaTaR on four complex multimodal retrieval datasets featuring textual, visual, and relational information, and three general question-answering (QA) datasets. We find AvaTaR consistently outperforms state-of-the-art approaches across all seven tasks, exhibiting strong generalization ability when applied to novel cases and achieving an average relative improvement of 14% on the Hit@1 metric for the retrieval datasets and 13% for the QA datasets. Code and dataset are available at https://github.com/zou-group/avatar.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes