NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

ToolHaystack: Stress-Testing Tool-Augmented Language Models in Realistic Long-Term Interactions

Byungjin Kwak, Minju Kim, Dongha Lim, Han–Jung Chae, Dong-Jin Kang, Sunghwan Kim, Daoguo Yang, Jinyoung Yeo2025

Large language models (LLMs) have demonstrated strong capabilities in using external tools to address user inquiries. However, most existing evaluations assume tool use in short contexts, offering limited insight into model behavior during realistic long-term interactions. To fill this gap, we introduce TOOLHAYSTACK, a benchmark for testing the tool use capabilities in long-term interactions. Each test instance in TOOLHAYSTACK includes multiple tasks execution contexts and realistic noise within a continuous conversation, enabling assessment of how well models maintain context and handle various disruptions.

The Shift from Chatbots to Agents

We are transitioning from LLMs as simple chatbots to LLMs as autonomous agents—systems capable of using APIs to perform complex tasks like booking travel, managing financial portfolios, or coordinating projects. Despite this progress, evaluation frameworks have lagged behind. Most existing benchmarks for Tool-Augmented Language Models (TALMs) operate in "sterile" environments where a user provides a single, clear instruction that the model executes immediately.

Short-term vs. Long-term Interactions: Real-world scenarios involve evolving goals, semantic noise, and fragmented context that standard benchmarks often ignore.

In reality, human-agent interactions are messy and long-term. They span multiple sessions and are filled with "hay"—irrelevant chatter, redundant info, and shifting requirements. For instance, a user might ask to cancel a reservation made weeks ago, requiring the model to retrieve specific details from a distant conversational history. Current evaluations likely overestimate model reliability by failing to account for this contextual noise and the fragmented nature of long-term memory.

Introducing ToolHaystack

To address these shortcomings, the authors developed TOOLHAYSTACK, a "Realistic and Composable" test suite. The benchmark was constructed using a three-stage automated pipeline:

  1. Tool Set Collection: Over 13,000 real-world APIs were sourced from RapidAPI across 42 categories.
  2. Scenario-Grounded Sequence Construction: "Needles" (essential task information) were buried within a "haystack" of irrelevant interactions.
  3. Dialogue Instantiation: Frontier LLMs, supplemented by human review, converted these sequences into naturalistic, multi-session dialogues.
Comparison of ToolHaystack with existing benchmarks. ToolHaystack significantly increases the average number of turns and incorporates long-term interaction challenges.

TOOLHAYSTACK evaluates models across three core challenges:

  • Context Recall (CR): Retrieving specific "needles" (e.g., IDs or dates) from deep history.
  • Information Shift (IS): Detecting when a user updates constraints or changes their mind.
  • Missing Context (MC): Assessing if a model clarifies missing parameters or hallucinates them.

Key Findings: A Performance Precipice

The evaluation of 14 state-of-the-art LLMs revealed a significant gap between perceived and actual robustness in long-term tool use.

The Saturation Illusion

Models that appear to have "solved" tool-use on standard benchmarks (scoring 80-90%) saw their performance drop to 30-40% on TOOLHAYSTACK. For example, GPT-4o, a top performer on the Berkeley Function Calling Leaderboard (BFCL), dropped to a mere 35.87% accuracy.

The Fine-tuning Paradox

Surprisingly, models specifically fine-tuned for function calling (e.g., ToolACE) often performed the worst. These models appear over-optimized for clean, direct instructions and lack the general reasoning required to navigate noisy, multi-turn dialogues.

Recency Bias and Hallucination

Models exhibited a sharp "recency bias," with accuracy plummeting as the distance to the relevant information increased. Furthermore, in "Missing Context" scenarios, models frequently resorted to "Out-of-context" hallucinations—fabricating API parameters rather than requesting clarification.

Results Summary

  • Top Performer: GPT-4.5-Preview led with an average score of 42.11%.
  • Impact of Noise: Performance declined consistently as the number of distractor sessions in the "haystack" increased from 1 to 20.
  • CoT Impact: Chain-of-Thought prompting provided only marginal improvements, failing to solve underlying robustness issues in open-source models.

Conclusion and Future Directions

While current LLMs are impressive, they are not yet "production-ready" for complex, long-term agency. Future work must address memory management over even longer horizons (months or years) and investigate whether emerging "reasoning" models can bridge these robustness gaps. For LLM agents to be truly reliable, they must be able to survive the messy, evolving reality of human interaction.

Summary updated

BibTeX
@misc{kwak2025toolhaystack,
  author = {Byungjin Kwak and Minju Kim and Dongha Lim and Han–Jung Chae and Dong-Jin Kang and Sunghwan Kim and Daoguo Yang and Jinyoung Yeo},
  title = {{ToolHaystack: Stress-Testing Tool-Augmented Language Models in Realistic Long-Term Interactions}},
  year = {2025},
  doi = {10.18653/v1/2025.findings-emnlp.1344},
}
Figure