Boundary-Induced Forgetting in Large Language Model Tool Chains: Measuring Field-Routing Failures

Zhangyi Wang, Bingnan Yu, Zongze LiNeurIPS 2026

TL;DR

When AI agents string together multiple tool calls, they frequently drop the ball—not because they run out of context window, but because they fail to pass specific data fields across tool-call boundaries. By reframing tool use as a dataflow problem rather than a storage problem, the authors measure this "boundary-induced forgetting" and fix it using ultra-compact, field-level reminders that boost task success at a fraction of the token cost of standard retrieval.

What Problem Does This Paper Address?

Imagine asking an LLM agent to process a customer refund. In step 1, a lookup tool returns an order_id and a policy_flag. Four steps later, the agent selects the right refund tool, has the order_id sitting right there in its prompt transcript—well within its context limit—and still hallucinates a fake ID or passes a stale value.

Historically, AI tool-use research has focused on choosing the right tool and formatting parameters, while long-context research focuses on finding static needles in massive haystacks. This paper tackles the space in between: field routing. Visibility in the prompt does not guarantee usability. As more action-observation steps (boundaries) pile up between where a piece of data is born and where it is needed, the agent loses track of which prior values remain "live" for future arguments.

Methods

To diagnose and treat this failure, the authors introduce a novel measurement framework alongside a lightweight memory intervention:

  • Field-Routing Graph & Information Utilization Rate (IUR): Instead of just grading final task success, the authors map tool chains as directed graphs where edges connect specific output fields from earlier observations to the later tool calls that require them. IUR measures the exact percentage of these required dataflow edges that the model successfully realizes (either in tool arguments or visible reasoning), indexed by boundary distance ($\delta$)—the number of tool steps between source and use.
  • Boundary-Aware Field Memory (BAFM): Standard Retrieval-Augmented Generation (RAG) fetches entire past observations, dumping hundreds of noisy tokens back into the prompt. BAFM operates at the field level. Before making a tool call, BAFM prompts the agent to self-predict which prior fields it needs next. It retrieves the top-3 relevant past observations, extracts only the specific field values, scores them by routing risk (giving bonuses to distant boundaries $\delta \ge 3$ and nested structures) vs. token length, and injects a compact, budgeted reminder right before the tool call.

Datasets

Rather than inventing a synthetic benchmark, the authors added fine-grained dependency annotations on top of 357 public tasks drawn from two established agent benchmarks:

  • ToolSandbox (STATE_DEPENDENCY): All 192 official scenario variants.
  • $\tau$-bench: 115 retail tasks and 50 airline customer-service tasks.

Together, these tasks yielded over 2,100 ground-truth field-routing dependencies per model run.

Key Insights and Ideas

  • Short contexts don't save you from boundary forgetting: Across traces averaging just 3,094 tokens—tiny by modern 128k+ context window standards—agents suffer massive routing drops as tool steps accumulate.
  • Boundaries hurt, independent of token count: When the authors held total token counts constant (~3,100 tokens) and merged five separate tool observations into 1–2 blocks, IUR jumped from 48.8% to 69.6%. Crossing discrete action/observation boundaries actively degrades field routing beyond raw token distance alone.
  • Where and what you route matters: Routing exhibits a classic "lost-in-the-middle" dip—fields from middle steps are forgotten far more often (59.4% IUR, plunging to 38.6% at $\delta \ge 4$) than early or late fields (~72%). Furthermore, nested JSON objects and arrays decay much faster than simple atomic IDs or dollar amounts.
Figure 2: Where IUR drops. The source-position panel reports grouped IUR by early, middle, and late source position; the red diamond marks the middle-source δ ≥4 slice. The model-comparison panel reports model-level forgetting rates with task-level clustered-bootstrap 95% CIs; the dashed line marks the simple model average. The source-position slice covers the 4,888 pooled dependency instances from chains of at least six tool calls (1,752 early, 1,624 middle, 1,512 late); shorter chains have no separable position thirds. No custom task split is used.
  • Finding the observation isn't enough: Diagnostic breakdowns show that standard LLM-predicted RAG and BAFM find the right past observation at identical rates (~81%). RAG stumbles afterward because the model still has to parse the raw observation chunk and bind the right nested field while ignoring distractors.

Key Results

Evaluating GPT-4o, Claude-3.5-Sonnet, Llama-3.1-70B, and Qwen-2.5-72B at temperature 0 revealed remarkably consistent decay:

  • Steep IUR Drop: Pooled across all four models, IUR falls from 82.3% at boundary distance $\delta=1$ to 50.9% at $\delta=5$—a 31.4-point drop, averaging a forgetting rate of 7.9 percentage points per boundary.
Figure 1: IUR vs. boundary distance δ on the fixed 357-task evaluation, pooled over the four primary model runs (8,416 dependency instances; about 2,100 per model). The endpoint counts are 1,804/2,192 (82.3%) at δ=1 and 576/1,132 (50.9%) at δ=5.
  • Primary Driver of Failure: In a manual audit of 300 failed tasks, information underutilization was the single largest cause of failure (47.3%), beating incorrect tool selection (21.3%) and formatting errors (15.7%).
  • BAFM Efficiency & Gains: On paired GPT-4o runs, BAFM lifted overall Task Success Rate from 40.3% (144/357) to 53.8% (192/357)—a +13.4-point gain that nearly matches an oracle field-reminder ceiling (54.6%). Crucially, BAFM achieved comparable success to observation-level RAG (53.8% vs. 51.0%) while injecting 5x fewer tokens per call (74 tokens vs. 386).

Limitations and Future Work

The authors note that their evaluation is restricted to structured API benchmarks (ToolSandbox and $\tau$-bench), and full intervention sweeps were only run on GPT-4o due to cost. Additionally, disentangling boundary counts from token distance remains a behavioral observation rather than an internal mechanistic (attention-head level) proof. Future work aims to take field-level state tracking into messier, open-ended territories like web browsing, software engineering, and multi-agent handoffs.

Summary updated

Abstract

Large language model (LLM) agents often keep the needed value in their prompt and still fail to pass it to a later tool call. We study this failure at the level of \textit{field routing}: an earlier observation may expose an \texttt{order\_id}, policy flag, or nested item, and a later call must bind that field to the right argument. We formalize tool use as a boundary-indexed field-routing graph and introduce Information Utilization Rate (IUR), which measures whether each required dependency edge is realized in the later tool call. A 400-dependency expert audit, task-success correlations, and discriminant checks validate IUR as a field-use signal. On a 357-task public evaluation from ToolSandbox \texttt{STATE\_DEPENDENCY} (192 named scenario variants) and the original-repository $\tau$-bench retail/airline files (115+50 tasks), aggregate dependency-level IUR across GPT-4o, Claude-3.5-Sonnet, Llama-3.1-70B, and Qwen-2.5-72B falls from 1,804/2,192 (82.3\%) at boundary distance $\delta=1$ to 576/1,132 (50.9\%) at $\delta=5$, a 31.4-point drop, with mean context length only 3,094 tokens. Token-matched analyses and boundary transformations show that raw context length does not account for the curve on its own, and that position and boundary effects coexist. The same field-level view also leads to a compact intervention. Boundary-Aware Field Memory (BAFM) predicts live fields without gold dependencies at inference time and injects field reminders rather than whole observations. In paired GPT-4o runs, BAFM improves task success from 144/357 (40.3\%) to 192/357 (53.8\%), a 13.4-point gain over the base agent, and roughly the same success as self-predicted retrieval-augmented generation (192 versus 182) while injecting 74 rather than 386 tokens per call. The results recast long-chain tool use as state propagation over fields: the central question is which prior values remain live for the next action.
BibTeX
@inproceedings{wang2026boundary,
  author = {Zhangyi Wang and Bingnan Yu and Zongze Li},
  title = {{Boundary-Induced Forgetting in Large Language Model Tool Chains: Measuring Field-Routing Failures}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=4NNekFkfV8},
}
Figure