Saved in:
Bibliographic Details
Main Authors: Kate, Kiran, Pedapati, Tejaswini, Basu, Kinjal, Rizk, Yara, Chenthamarakshan, Vijil, Chaudhury, Subhajit, Agarwal, Mayank, Abdelaziz, Ibrahim
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2505.10570
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910946935439360
author Kate, Kiran
Pedapati, Tejaswini
Basu, Kinjal
Rizk, Yara
Chenthamarakshan, Vijil
Chaudhury, Subhajit
Agarwal, Mayank
Abdelaziz, Ibrahim
author_facet Kate, Kiran
Pedapati, Tejaswini
Basu, Kinjal
Rizk, Yara
Chenthamarakshan, Vijil
Chaudhury, Subhajit
Agarwal, Mayank
Abdelaziz, Ibrahim
contents Multiple recent studies have documented large language models' (LLMs) performance on calling external tools/functions. Others focused on LLMs' abilities to handle longer context lengths. At the intersection of these areas lies another interesting problem: LLMs' abilities to accurately perform function calls in long context settings. Particularly, when calling tools, LLMs are encumbered by three predominant challenges: (1) a large catalog of tools, (2) long responses from the tool APIs, and (3) long multi-turn conversations. These challenges are particularly relevant to enterprise applications of LLMs which engage in multi-turn conversations with users to complete complex tasks that require a large catalog of complex tools. The literature contains multiple investigations of long context challenges such as lost in the middle or needle in the haystack for natural language tasks. In this paper, we make the first attempt to comprehensively study the long context understanding capabilities of these models in the tool calling setup. We modify existing benchmarks for challenge 1 and 3, and create a new evaluation set for challenge 2 to enable this analysis. We gradually increase the input context length and also vary the position of the answer in the input. When evaluated with several long context models, we observe a performance drop of 7% to 85% as the number of tools increases, a 7% to 91% degradation in answer retrieval as the tool responses length increases, and 13% and 40% degradation for as multi-turn conversations get longer. Our study shows that LLMs still struggle with long context in tool calling settings, motivating future research to drive further LLM improvements.
format Preprint
id arxiv_https___arxiv_org_abs_2505_10570
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle LongFuncEval: Measuring the effectiveness of long context models for function calling
Kate, Kiran
Pedapati, Tejaswini
Basu, Kinjal
Rizk, Yara
Chenthamarakshan, Vijil
Chaudhury, Subhajit
Agarwal, Mayank
Abdelaziz, Ibrahim
Software Engineering
Multiple recent studies have documented large language models' (LLMs) performance on calling external tools/functions. Others focused on LLMs' abilities to handle longer context lengths. At the intersection of these areas lies another interesting problem: LLMs' abilities to accurately perform function calls in long context settings. Particularly, when calling tools, LLMs are encumbered by three predominant challenges: (1) a large catalog of tools, (2) long responses from the tool APIs, and (3) long multi-turn conversations. These challenges are particularly relevant to enterprise applications of LLMs which engage in multi-turn conversations with users to complete complex tasks that require a large catalog of complex tools. The literature contains multiple investigations of long context challenges such as lost in the middle or needle in the haystack for natural language tasks. In this paper, we make the first attempt to comprehensively study the long context understanding capabilities of these models in the tool calling setup. We modify existing benchmarks for challenge 1 and 3, and create a new evaluation set for challenge 2 to enable this analysis. We gradually increase the input context length and also vary the position of the answer in the input. When evaluated with several long context models, we observe a performance drop of 7% to 85% as the number of tools increases, a 7% to 91% degradation in answer retrieval as the tool responses length increases, and 13% and 40% degradation for as multi-turn conversations get longer. Our study shows that LLMs still struggle with long context in tool calling settings, motivating future research to drive further LLM improvements.
title LongFuncEval: Measuring the effectiveness of long context models for function calling
topic Software Engineering
url https://arxiv.org/abs/2505.10570