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-Dat 71.78) and even a supervised baseline trained directly on target labels (Learn2Rankat 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