Wayfinder: Adaptive Resource Routing from Agent Citations

Miguel Romero Calvo, George KarypisNeurIPS 2026

TL;DR

Imagine hiring an AI assistant that forgets whether your team keeps project updates in Slack, Jira, or Notion every single time you start a new chat, forcing it to search everything from scratch. Wayfinder solves this by acting as a navigational memory for AI agents: it watches which documents the agent actually cites in its final answers and builds an evolving map of your workspace. Without needing labeled training data from your private environment, it slashes wasted search calls by over 60% when workspace tools have overlapping content.

What Problem Does This Paper Address?

For an LLM agent to be genuinely useful at work, it has to gather context across a fragmented mess of tools—emails, chat threads, issue trackers, and wikis. The catch? Every organization organizes information differently. One company documents decisions in Slack; another uses email or Jira tickets.

Standard approaches treat each resource as a distinct tool (e.g., slack.search(query)) and rely on static, high-level descriptions to decide where to look. This fails in two ways: static descriptions can't tell resources apart when their topics overlap, and they never improve over time. Meanwhile, you can't easily train a custom supervised router for a new user's workspace because there are no ground-truth labels on day one, and privacy/API limits prevent you from dumping all their databases into one giant centralized index. Thus, agents suffer from chronic amnesia, blindly re-exploring the same dead ends session after session.

Methods

Wayfinder sits upstream of a primary AI agent (like GPT-4o-mini) and acts as an advisory guide. Its architecture relies on three clever ideas:

  • Citation-Gated Supervision: Early in a task, agents retrieve a lot of noisy, irrelevant documents. Instead of memorizing everything the agent reads, Wayfinder only updates its memory with documents the agent verifiably cites in its final answer (cross-checked against tool logs to filter out hallucinations). Citations act as free, organic labels for where useful truth actually lives.
  • Resource Sketches: For each resource, Wayfinder maintains a bounded, least-recently-used (LRU) cache of up to $M=100$ records—storing the cited document, the query that triggered it, and a timestamp. A centralized semantic index lets Wayfinder search across these lightweight sketches.
  • RL Policy with Session-Randomized Augmentation: The router itself is a Qwen3-8B model fine-tuned via Reinforcement Learning (GRPO) with LoRA on training environments. To stop the model from lazily memorizing shortcuts during training (like "coding questions always go to resource_A"), the authors anonymize resource names (resource_1, resource_2) and randomly shuffle their identities every rollout. This forces the router to actually read the evidence in the sketches rather than rely on name priors.

Importantly, Wayfinder's routing is advisory, not restrictive: if Wayfinder guesses wrong—or starts with an empty memory on query #1—the primary agent can still search outside the recommendations, allowing new citations to flow in and heal the map.

Datasets

Because real corporate workspaces with realistic query streams aren't publicly available, the authors built and released three federated benchmarks:

  • NFCorpus & FEVER (Intra-corpus): Derived from existing BEIR datasets by clustering a single corpus into 50 semantically coherent resources across 2 (NFCorpus) and 16 (FEVER) environments. Here, static resource summaries sound very similar, testing fine-grained disambiguation.
  • Tech Startup (Cross-corpus): A new 5-environment benchmark simulating a company's five distinct tools: emails (Enron), chat (Alpaca), issues (SWE-bench), wiki (HotpotQA), and code (CodeSearchNet).

Key Insights and Ideas

  • Citations are gold-standard navigational breadcrumbs: You don't need human annotations to adapt to a new workspace. Filtering memory updates strictly through agent citations removes exploration noise and provides 71–73% resource-level accuracy in observed trajectories.
  • Adaptation shines where descriptions blur: Static tool-retrieval works fine when tools are fundamentally different (code vs. email), because a simple tool description is enough. Adaptation becomes critical when multiple resources share similar vocabularies and overlapping topics (e.g., 50 project folders or wiki spaces).
  • Identity shuffling prevents overfitting in small worlds: Anonymizing and permuting resource IDs during RL training acts like data augmentation—it helps most when you only have a handful of training environments, forcing true zero-shot generalization.
  • Routing doesn't require deep deliberation: Even though Wayfinder can reason over its memory in a multi-step loop, over 99% of routing trajectories finished in just two steps (one memory lookup, one decision).

Key Results

Evaluated in a closed-loop setting where routers adapt live on the test stream:

  • Overlapping resources (Intra-corpus): Wayfinder dominates static and bandit baselines, achieving a routing $F_1$ of 47.67 on NFCorpus and 64.72 on FEVER (compared to 33.03 and 31.01 for the strongest baselines). It cuts the primary agent's search calls by 61.2% and 73.7%, respectively, while improving citation grounding ($F_{1\text{cite}}$) by 2.7 and 17.9 points over an unrouted agent.
  • Distinct resources (Tech Startup): Because the five resources come from wildly different domains, a static bi-encoder (ToolRetriever) takes first place with 98.86 routing $F_1$ and 70.4% search savings. Wayfinder comes in a strong second (86.60 $F_1$, 60.4% savings), beating online contextual bandits (LinUCB-D at 71.78) and even a supervised baseline trained directly on target labels (Learn2Rank at 83.28).
  • Ablations: Removing RL post-training drops routing $F_1$ from 50.69 to 41.28 on NFCorpus. Removing resource augmentation drops NFCorpus $F_1$ from 50.69 to 45.35, though it slightly lowers FEVER $F_1$ (68.40 vs. 67.94), where 16 training environments already provide natural diversity.

Limitations and Future Work

Wayfinder lives and dies by the primary agent's citation habits. If an agent forgets to cite sources, adaptation slows down; worse, if it cites retrieved-but-irrelevant documents, it writes bad evidence into the sketches, degrading routing accuracy. The authors suggest future work could weight memory updates by citation confidence, decay unconfirmed evidence, or revise sketches when later interactions contradict them. Finally, because these testbeds are stitched together from public datasets, the natural next step is testing Wayfinder in wild, production enterprise environments complete with real user permissions and latency constraints.

Summary updated

Abstract

To act effectively, agents must gather contextual information across resources such as chats, issue trackers, email and knowledge bases, to answer questions like \emph{what was decided in the last project meeting?} or \emph{where is the FAQ for our internal tooling?} Where this information lives in a user's environment is unknown to the agent, so it re-explores the same resources across consecutive interactions. Common routing approaches represent each resource as a tool and rely on high-level descriptions to generalize to unseen environments. Such descriptions often fail to separate similar or overlapping resources and cannot improve from the agent's subsequent interactions. We introduce Wayfinder, an adaptive router that uses the documents cited by the downstream agent as feedback about where relevant information resides. These citations update Wayfinder's internal resource representations, which subsequent interactions use to prioritize the resources likely to contain relevant information. We also introduce resource augmentation during offline reinforcement learning, which anonymizes and permutes resource identities to discourage training-time overfitting of which resource holds which topic; our ablations suggest it helps most when few training environments are available. Because no openly available professional environments pair realistic queries with resource-access patterns, we construct and release three controlled testbeds derived from existing datasets: NFCorpus, FEVER and Tech Startup. Compared with supervised, tool-retrieval and contextual bandit baselines under a shared closed-loop protocol, Wayfinder gives the best routing when resources contain semantically overlapping content that static descriptions cannot distinguish, while description-based tool retrieval suffices when resources are drawn from distinct corpora.
BibTeX
@inproceedings{calvo2026wayfinder,
  author = {Miguel Romero Calvo and George Karypis},
  title = {{Wayfinder: Adaptive Resource Routing from Agent Citations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=v4g06KBw8G},
}
Figure