Salvato in:
Dettagli Bibliografici
Autori principali: Patel, Bhrij, Belli, Davide, Jalalirad, Amir, Arnold, Maximilian, Ermolov, Aleksandr, Major, Bence
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:https://arxiv.org/abs/2512.17052
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866911599794585600
author Patel, Bhrij
Belli, Davide
Jalalirad, Amir
Arnold, Maximilian
Ermolov, Aleksandr
Major, Bence
author_facet Patel, Bhrij
Belli, Davide
Jalalirad, Amir
Arnold, Maximilian
Ermolov, Aleksandr
Major, Bence
contents Function calling agents powered by Large Language Models (LLMs) select external tools to automate complex tasks. On-device agents typically use a retrieval module to select relevant tools, improving performance and reducing context length. However, existing retrieval methods rely on static and limited inputs, failing to capture multi-step tool dependencies and evolving task context. This limitation often introduces irrelevant tools that mislead the agent, degrading efficiency and accuracy. We propose Dynamic Tool Dependency Retrieval (DTDR), a lightweight retrieval method that conditions on both the initial query and the evolving tool calling plan. DTDR models tool dependencies from function calling demonstrations, enabling adaptive retrieval as plans unfold. We benchmark DTDR against state-of-the-art retrieval methods across multiple datasets and LLM backbones, evaluating retrieval precision, downstream task accuracy, and computational efficiency. Additionally, we explore strategies to integrate retrieved tools into prompts. Our results show that DTDR improves function calling success rates between $23\%$ and $104\%$ compared to state-of-the-art static retrievers.
format Preprint
id arxiv_https___arxiv_org_abs_2512_17052
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Dynamic Tool Dependency Retrieval for Lightweight Function Calling
Patel, Bhrij
Belli, Davide
Jalalirad, Amir
Arnold, Maximilian
Ermolov, Aleksandr
Major, Bence
Machine Learning
Function calling agents powered by Large Language Models (LLMs) select external tools to automate complex tasks. On-device agents typically use a retrieval module to select relevant tools, improving performance and reducing context length. However, existing retrieval methods rely on static and limited inputs, failing to capture multi-step tool dependencies and evolving task context. This limitation often introduces irrelevant tools that mislead the agent, degrading efficiency and accuracy. We propose Dynamic Tool Dependency Retrieval (DTDR), a lightweight retrieval method that conditions on both the initial query and the evolving tool calling plan. DTDR models tool dependencies from function calling demonstrations, enabling adaptive retrieval as plans unfold. We benchmark DTDR against state-of-the-art retrieval methods across multiple datasets and LLM backbones, evaluating retrieval precision, downstream task accuracy, and computational efficiency. Additionally, we explore strategies to integrate retrieved tools into prompts. Our results show that DTDR improves function calling success rates between $23\%$ and $104\%$ compared to state-of-the-art static retrievers.
title Dynamic Tool Dependency Retrieval for Lightweight Function Calling
topic Machine Learning
url https://arxiv.org/abs/2512.17052