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.
- 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.
- 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