arXiv:2610.18157cs.CLOct 2026

Manuscript Offprint

arXiv:2610.18157

Fan Out or Relay? Ownership-Aware Routing for LLM Agents Querying Siloed Tables

Zhexi Feng

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Inside organizations, a question’s data often sit with several owners, who query their own tables but never hand them over. An LLM coordinator can fan out, sending the question to every owner at once, or relay, querying owners in turn and reusing earlier rows. We show that neither is safe in advance, because data ownership decides which one is right. Across thirteen settings on PeopleJoin and BIRD with three model families, fan-out is more accurate in twelve on questions one owner can answer, yet answers at most 4.3% of those joining two owners’ tables. The flip follows ownership, not query shape: on BIRD two-table joins, fan-out answers 32–44% when one owner holds both and 1–4% otherwise. Relay wins by conditioning on returned rows, and hiding them from an otherwise identical planner cuts two-owner accuracy from 23.2% to 5.1%. Since ownership is public, we propose Ownership-Aware Routing (OAR), which drafts a schema-only SQL query, counts the owners whose tables it joins, and routes the question before any private row is read. In ten settings OAR is never significantly less accurate than the best fixed protocol, and beats every fixed protocol on PeopleJoin, by up to 9.3 points on held-out organizations.

1 Introduction

In a university, a hospital or a company, many questions put to an LLM assistant cannot be answered from any single place. Course records may sit with the registrar and salary data with human resources, and each owner is willing to run a query over its own tables but not to hand the tables over. PeopleJoin (Jhamtani et al., 2025) and iAgents (Liu et al., 2024) study agents that gather facts held by other users, and tool interfaces now expose such data one query at a time (Schick et al., 2023; Anthropic, 2024). A coordinator must decide whom to ask, what to ask and in what order, while every returned row competes for a limited communication budget. How it asks can decide whether a question is answered at all.

Two ways of asking recur in existing systems. A coordinator can fan out, sending the question to all relevant owners in parallel and merging their answers, much as parallel function calling runs independent tool calls at once (Kim et al., 2024). It can also relay, querying one owner at a time so that each query can use rows returned earlier (Figure 1). Relaying mirrors interleaved reasoning and retrieval (Yao et al., 2023; Trivedi et al., 2023) and the semi-join strategies of distributed databases, which ship join keys instead of whole relations (Bernstein and Chiu, 1981; Kossmann, 2000).

Prior work explained the success of such collaboration from two angles. Multi-agent studies optimized the structure of communication, assigning roles, wiring agents into graphs and pruning redundant messages (Hong et al., 2024; Zhuge et al., 2024; Qian et al., 2025; Zhang et al., 2025). Adaptive methods matched the strategy to the question instead, choosing between one-step and iterative retrieval by question complexity (Jeong et al., 2024) or learning a collaboration mode per query (Yue et al., 2025). Both lines assumed that all agents share one view of the data. On PeopleJoin itself, an agent that sends the user's question once to every member trailed a reactive agent in aggregate (Jhamtani et al., 2025). None of these accounts explains why the same protocol succeeds on one question and fails on the next over the same organization's data.

We find that the missing variable is data ownership, namely whether answering a question requires joining tables held by different owners. On PeopleJoin, and on BIRD (Li et al., 2023b) with its tables distributed over owners, fan-out is typically the more accurate protocol on questions that a single owner can answer. Once the needed tables span two owners, the ranking flips, and fan-out answers at most 4.3% of the questions while relay answers

Figure

Figure 1: (1) A coordinator answers a question over tables held by different owners, who publish their schemas but keep their rows. (2) When the question joins tables of two owners, fan-out fails because Alice’s department ids never reach Bob, while relay places them in its query to Bob. (3) OAR drafts one SQL query over the public schema, counts the owners whose tables it joins (its owner cover κ\kappa, Equation 1), and routes the question before any private row is read.

up to 47.9% (Figure 2). In all thirteen settings we evaluate, relay’s advantage over fan-out is 16 to 57 points larger on two-owner than on single-owner questions, across three model families and on 600 questions never used during development. The flip follows ownership rather than query shape. BIRD deals tables to owners by hashing their names, and on joins of two tables fan-out answers 32–44% when one owner holds both and 1–4% when two owners do. When owners merely hold different rows of one table, no join is needed and fan-out usually keeps its lead.

The cause is mechanical. A join across owners needs the keys held by one owner to select the matching rows of the other. Owners that answer independently never see those keys, and a relay planner that cannot see the rows already returned loses most of its advantage on both benchmarks.

Ownership is decided by who holds which table, and that information is public even when the rows are not. This lets the coordinator predict the better protocol before it touches any private data, and we turn the observation into Ownership-Aware Routing (OAR). OAR asks the model for one draft SQL query over the public schema, maps the tables in the draft to their owners, and sends the question to relay when the draft needs two or more owners and to fan-out otherwise. The draft is never executed. It only exposes the question’s ownership structure, at the cost of one model call and without any training.

Across ten settings, OAR is never significantly less accurate than the best fixed protocol chosen in hindsight. On PeopleJoin it exceeds that protocol for all three model families, by 2.4–3.3 points, and by 7.3–9.3 points on 108 organizations that played no part in its design. On BIRD, where most questions span several owners, OAR improves fan-out by 14–19 points and stays within 2.7 points of the strongest fixed protocol. When the measured accuracies are reweighted to any mix of single- and two-owner questions, OAR never falls more than 3.8 points below the better of fan-out and relay, while fan-out can fall 46.5 points behind.

Our contributions are threefold:

• We identify joins across owners as the variable that decides whether fan-out or relay answers a question, in thirteen settings over 134 databases and with the query shape held fixed.

• We trace the reversal to conditioning on returned rows: hiding them from a relay planner erases most of its advantage, and planning all queries in advance recovers only part of it.

• We propose OAR, a one-call router that reads ownership from a schema-only draft and outperforms every fixed protocol on PeopleJoin as well as routing on question difficulty or on the model’s own choice of protocol.

Sections 2 to 4 define the task, the protocols and the setup, Section 5 presents the findings and Section 6 the router.

References (19)