Chiosa
NLP & Language

A schema draft helps route questions across private data owners

Fan Out or Relay? Ownership-Aware Routing for LLM Agents Querying Siloed Tables · arXiv:2610.18157

3 min
Updated
(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…
(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.…Figure 1 · Fan Out or Relay? Ownership-Aware Routing for LLM Agents Querying Siloed Tables · Zhexi Feng · CC BY 4.0

In plain words

When several people or teams keep their own tables private, an AI coordinator may need information from more than one owner to answer a question. Asking everyone separately can fail because no one gets the matching details returned by someone else.

The paper introduces OAR, which reads public table descriptions and a draft query to choose between asking owners independently or one at a time. Across ten tested settings, OAR was not significantly less accurate than the best fixed approach in any setting.

The research

When table rows stay with their owners, a coordinator may need to combine results without being allowed to see the underlying tables.

It remains unclear whether it should ask owners independently or sequentially, especially when one owner’s returned rows may contain keys needed to find matching rows elsewhere.

OAR routes each question to parallel or sequential querying from a SQL draft over public schemas, before owners reveal private rows.

The authors compare fan-out, where owners answer independently, with relay, where a planner can use earlier returned rows. Exact accuracy measures the share of questions answered with the reference rows, counting abstention as correct only for unanswerable questions.

Fan-out usually leads when one owner holds the needed tables, but answers at most 4.3% correctly when two owners must be joined; relay reaches 11.6–47.9%. This reversal supports choosing a method based on ownership.

The evidence comes from English questions over relational tables and three model families, with Relay+ tested using two. OAR also assumes a public table ownership catalog and depends on the quality of its model-written draft.

What the evidence shows

  • A choice shaped by ownership

    Ownership-Aware Routing (OAR) is a training-free method that uses a draft SQL query over public table schemas to choose how an LLM coordinator queries private data owners. The authors evaluate it on PeopleJoin and BIRD, tests of answering questions over relational tables held by owners; exact accuracy measures the share of questions answered with the reference rows, counting abstention as correct only for unanswerable questions.

    The central question is whether table ownership can guide the choice between querying owners independently or in sequence.

  • The winner changes

    Across thirteen settings, fan-out usually has higher exact accuracy when one owner holds the needed tables. When a question needs tables from two owners, fan-out answers 0.0–4.3% correctly, while relay reaches 11.6–47.9%.

    Results are averaged over runs within each question, and the ranges span settings. This reversal shows why a single fixed way of querying can be a poor fit when questions differ in which owners hold the needed data.

  • Separating ownership from joins

    A two-table join could be harder simply because it involves a join, rather than because its tables belong to different owners. The authors examine BIRD questions whose reference SQL joins exactly two tables, where table ownership is assigned by a hash rule independent of the questions.

    Fan-out answers 32–44% correctly when one owner holds both tables, but 1–4% when two owners hold them; relay reaches 22–39% in the two-owner group. This comparison supports ownership as a factor in the reversal.

  • Checking returned rows

    The authors test whether relay benefits from seeing rows returned earlier. In a PJ-8b control with DeepSeek, they use the same Relay+ planner without its key-passing instruction and change whether it can see those rows.

    On two-owner questions, accuracy is 23.2% with rows visible and 5.1% with them hidden; on single-owner questions it remains about 43% in both conditions. The control supports the role of returned rows in this setting, without establishing the same effect everywhere.

  • Testing ownership-based routing

    OAR uses a draft’s owner cover to choose between saved fan-out and relay runs. Against the most accurate fixed protocol in each of ten settings, it is not significantly less accurate in any setting.

    On PeopleJoin, it exceeds the best fixed protocol by 2.4–3.3 percentage points on PJ-7 and 7.3–9.3 points on PJ-Unseen, which covers 108 organizations not used in development. These results support routing in the reported settings, though the best fixed comparator varies by setting.

Deep

Next paperTokenRouter helps models hand off requests without restarting work