Planning and Editing What You Retrieve for Enhanced Tool Learning

Tenghao Huang, Dongwon Jung, Muhao Chen
3/30/2024
cs.CLcs.AIcs.IR

No official code found. Best implementation: tenghaohuang/PLUTo (3 stars, last commit 2024-12-30).

Abstract

Recent advancements in integrating external tools with Large Language Models (LLMs) have opened new frontiers, with applications in mathematical reasoning, code generators, and smart assistants. However, existing methods, relying on simple one-time retrieval strategies, fall short on effectively and accurately shortlisting relevant tools. This paper introduces a novel PLUTO (Planning, Learning, and Understanding for TOols) approach, encompassing `Plan-and-Retrieve (P&R)` and `Edit-and-Ground (E&G)` paradigms. The P&R paradigm consists of a neural retrieval module for shortlisting relevant tools and an LLM-based query planner that decomposes complex queries into actionable tasks, enhancing the effectiveness of tool utilization. The E&G paradigm utilizes LLMs to enrich tool descriptions based on user scenarios, bridging the gap between user queries and tool functionalities. Experiment results demonstrate that these paradigms significantly improve the recall and NDCG in tool retrieval tasks, significantly surpassing current state-of-the-art models.

View on arXivView PDF

Code Implementations(1)

tenghaohuang/PLUToCommunity100%

Code implementation for the NAACL-findings 2024 paper "Planning and Editing What You Retrieve for Enhanced Tool Learning"

30PythonMar 29, 20241 years ago

Similar Papers

Cite this paper

@article{huang2024planning,
  title  = {Planning and Editing What You Retrieve for Enhanced Tool Learning},
  author = {Tenghao Huang and Dongwon Jung and Muhao Chen},
  year   = {2024},
  eprint = {2404.00450},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.00450v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.00450.svg)](https://codeofpaper.com/paper/2404.00450)

Discussion