SYNAPSE:Federated Tool Routing via Typed Compendium Artifacts

Abhijit Chakraborty\(^{2}\)12
MongoDB
abhijit.chakraborty@mongodb.com Yash Shah\(^{1}\)
Arizona State University
yshah124@asu.edu Vivek Gupta\(^{1}\)
Arizona State University
vgupt140@asu.edu


Abstract

The unit of collaboration in federated learning determines what guarantees are even expressible. Flat units like weights, prompts, raw examples, carry no type signature on which privacy, conflict resolution, or cross-model transfer can dispatch as well-defined operations. We propose typed federated artifacts: schema-validated objects whose declared field structure makes per-field differential privacy, schema-aware merging, and cross-architectural transfer first-class operations rather than heuristic approximations. We instantiate this as SYNAPSE, a compendium for federated tool routing across clients with frozen, heterogeneous LLMs and no shared data or weights which is a setting flat units cannot handle without either leaking gradients or discarding structure. The compendium admits a typed merge operator with field-wise conflict resolution, a formal \((\varepsilon,0)\)-DP guarantee on numeric metadata, and conditional retrieval-distortion and routing-stability results empirically characterized on five distributions, including one where the contraction premise fails. A single compendium transfers across four LLM families (LLaMA-3.1-8B, LLaMA-3.2-3B, Mistral-7B, GPT-4o) with \({\approx}2\)-pt loss—a capability weight-sharing federation cannot provide without architectural matching.

1 Introduction↩︎

Federated learning (FL) for LLM-based agents has largely inherited its unit of collaboration from classical settings, and that inheritance is beginning to show its limits in the heterogeneous, frozen-LLM regimes this paper studies. The setting where this matters most is federated tool-routing: collaborative tool selection across organizations running frozen, possibly heterogeneous LLMs under four joint constraints that no prior federated paradigm satisfies simultaneously. Clients cannot share weights or gradients (frozen LLMs); cannot pool raw data (no central corpus); may run different LLM families, so the unit cannot be architecture-specific (model-agnostic clients); and must protect tool-usage patterns and not only raw data, since metadata alone re-identifies individuals [1], [2] and repeated routing exposes case-mix and behavioral patterns that regulated deployments treat as protected [3], [4].

Current federated methods exchange model parameters [5][7], adapters (FedLoRA), prompts [8], raw examples [9], split activations [10], or distilled ensembles [11]. Parameter and adapter sharing is communication-heavy (\({\sim}50\) MB/client/round for FedLoRA r16-fp16, lower bound), tightly couples architectures, and is privacy-leaky: gradient inversion [12], [13] and membership inference [14] reconstruct training data from shared updates. Raw-example sharing exposes local behavior and reaches only \(0.61\) on 4-tool routing versus \(0.86\) for Prompt-sharing flattens to a single string and cannot reliably aggregate negative constraints (e.g.”do not use tool \(X\) when condition \(Y\)“) across clients, since text concatenation does not resolve which client’s exclusion rule wins for overlapping conditions, and prompt-extraction attacks [15][17] make these leaks operational rather than theoretical. Clinical [3], [4], [18] and financial [19][21] consortia have established federated precedents in exactly this regulated-domain setting, but those precedents inherit the same wrong-unit problem. The shared structural cause is that flat units carry no type signature at the federation boundary on which schema-aware aggregation, validation, or per-field privacy can dispatch as well-defined operations.

The right unit is not flat—it is a typed federated artifact: an object \(C\) defined by a schema \(\mathcal{S}\) that gives every field a declared role, type, and validation rule. Typed schemas and structured records are mature ideas in databases and distributed systems, and prior federated systems may use them internally; that is not the distinction. The distinction is whether the exchanged unit carries a type signature on which the federation protocol can dispatch privacy, merging, and transfer as well-defined operations—and no existing federated unit does. Promoting a typed artifact to the role of exchanged unit makes three previously ill-defined operations well-posed: per-field differential privacy, because sensitivity bounds are schema-declared rather than estimated post-hoc; conflict resolution, because contradictory client contributions are resolvable by field-wise dispatch rather than majority vote over opaque strings; and cross-architectural transfer, because the artifact is interpreted at inference rather than baked into parameters. None of these is available when the federated unit is opaque text or vectors—not because those representations lack internal structure, but because they carry no type signature at the boundary on which the aggregation protocol can dispatch.

We instantiate this abstraction as SYNAPSE, a compendium for federated tool routing, and make four contributions: the typed federated artifact abstraction (§3), instantiated as a compendium \(C\!=\!(M,U,P,T,A)\) with schema \(\mathcal{S}\) that enables per-field dispatch of privacy, merging, and validation at the federation boundary; a typed merge operator (Def. 1, Algorithm 2) with field-wise conflict resolution, conflict logging, and schema validation across a client–edge–server hierarchy; artifact-level guarantees (§4) comprising a formal \((\varepsilon,0)\)-DP guarantee on numeric metadata (Theorem 1) and two conditional results on retrieval distortion and routing stability empirically characterized on five distributions, including a LiveBench subset where the contraction premise fails (\(\hat{L}_{\mathcal{R}}^{(99\%)}\!=\!1.018\!>\!1\); Tab. 9), disclosed as a limitation rather than suppressed; and a comprehensive empirical evaluation (§5) showing \(0.92\!\pm\!0.02\) routing accuracy on GSM8k, statistically indistinguishable from centralized routing (\(p\!=\!0.31\), \(5\) seeds) at \(5.3\) KB per client per round (\({\sim}10{,}000\times\) below the FedLoRA r16-fp16 architectural lower bound), \({\approx}2\)-pt cross-model loss across four LLM families, \(0.71\) at \(8\)-step tool chains versus \(0.34\) for prompt-sharing, and generalization to NQ-Open retrieval-policy artifacts (App. 18.2), confirming the abstraction extends beyond tool routing.

2 Related Work↩︎

Federated learning for LLMs. OpenFedLLM [22] and FederatedScope-LLM [6] address communication and heterogeneity in LLM training. FedbiOT [23] and FFA-LoRA [24] target privacy under DP. These all aggregate model parameters or adapters, requiring architectural compatibility and incurring substantial communication.
Federated retrieval-augmented generation. GPT-FedRec [25], FedE4RAG [26], FRAG [27], and C-FedRAG [28] federate retrieval indices via raw examples or encrypted shares. They lack tool-aware structure: routing operates over unstructured retrieved chunks rather than typed routing [29]. We compare directly to C-FedRAG in §5.
Text-centric federation. FedTextGrad [8] federates optimized prompts; Fed-ICL [9] federates exemplars. Both treat the federated unit as flat text without typed structure.
Tool-augmented LLMs. Toolformer [30], ReAct [31], Gorilla [32], ToolLLM [33], and Graph RAG-Tool Fusion [34] use schemas and retrieval to select tools, but in centralized settings without federation.
Privacy. DP foundations [35], [36] and prompt-extraction attacks [15][17], [37] formalize the leakage we defend against on the numeric and text paths respectively.
Federated routing and large-scale tool benchmarks. Concurrent work [38] federates model-selection routers (which LLM to call); their unit is router parameters, ours is a typed artifact, and the routing problem is tool-selection rather than model-selection. The two settings are complementary. LiveMCPBench [39] (\(527\) tools, \(70\) MCP servers) and InfoMosaic-Bench [40] (\(621\) tasks, \(77\) MCP tools) characterize the scale at which production tool-routing must operate; extending typed-compendium federation to LiveMCPBench-class catalogs is direct future work (App. 17.1).
SYNAPSE differs from prior work along an orthogonal axis: the type signature of the exchanged object: Weights, adapters, prompts, and raw examples are all untyped from the federation’s perspective. The compendium is typed at every field, which is what enables artifact-level \((\varepsilon, 0)\)-DP, schema-constrained merge, and cross-model transfer to be well-defined operations rather than approximations (Tab. 1).

2pt

Table 1: Comparison across six dimensions. SYNAPSE is the only method satisfying all five non-trivial constraints jointly. Federate-the-Router [38] federates model-selection rather than tool-selection – complementary, not competing.
Method Unit type Frozen LLM Local-only data Native tool routing Model-agnostic Formal DP
FedAvg / FedLoRA Weights / adapters No Local No No Rare
Fed-ICL Raw examples Yes Local No Partial No
FedTextGrad Prompts (flat) Yes Local No Partial No
GraphRAG Knowledge graph Yes Central No N/A No
C-FedRAG Encrypted index Yes Local No Partial No
Federate-the-Router Router weights/embeddings Yes Local Model-routing N/A No
SYNAPSE (ours) Typed compendium Yes Local Tool-routing Yes Numeric fields

3 The Compendium and the Typed Merge Operator↩︎

This section gives a precise definition of the compendium artifact and the typed merge operator that aggregates compendiums across a client–edge–server hierarchy (Fig. 1). We open with the formal definition because the rest of the framework – privacy mechanisms, conflict resolution, cross-model transfer, the formal guarantees in §4 are all dispatch on the schema introduced here.

Figure 1: The client–edge–server hierarchy. Local agents within a cluster maintain a local compendium; edge aggregators merge cluster compendiums via Algorithm 2; the central aggregator redistributes a global compendium each round. Only typed compendium artifacts cross trust boundaries.

Definition 1 (Compendium). A compendium* is a tuple \[C = (M, U, P, T, A)\] together with a schema \(\mathcal{S}\) that types each component:*

  • \(M = \{(\mathrm{id}_t, \mathrm{desc}_t, \mathrm{spec}_t, m_t)\}_{t \in \mathcal{T}}\) is the tool metadata: identifier, description, specification, and a vector of numeric attributes \(m_t \in \mathbb{R}^k\) (e.g., latency, success rate, calls/day). Numeric fields have schema-declared sensitivity bounds \(\Delta_m\).

  • \(U = \{(\mathrm{tool}_i, \mathrm{scenario}_i)\}_{i=1}^{|U|}\) is the set of usage scenarios: natural-language descriptions of when each tool applies, each tagged with its parent tool.

  • \(P = \{(\mathrm{tool}_j, \mathrm{precaution}_j)\}_{j=1}^{|P|}\) is the set of precautions: negative examples and exclusion rules describing when not* to invoke each tool.*

  • \(T = \{(\mathrm{tool}_k, \mathrm{sig}_k, \mathrm{template}_k)\}\) is the set of prompt templates: parameterized prompts indexed by tool and signature.

  • \(A\) is a structured annex: it consists of typed triples of entities and relations that facilitate retrieval and routing.

A compendium \(C\) is valid under* \(\mathcal{S}\) iff (a) every \(\mathrm{id}_t \in \mathcal{T}\) (tool registry), (b) every numeric field in \(m_t\) lies in its declared range, (c) every scenario, precaution, and template references a registered tool, and (d) all string fields satisfy declared length and encoding constraints.*

Numeric sensitivity bounds in \(M\) enable \((\varepsilon, 0)\)-DP (Theorem 1); typed separation of \(U\) and \(P\) enables conflict-log handling (Algorithm 2); \(T\) indexed by \((\mathrm{tool}, \mathrm{signature})\) enables model-agnostic transfer; schema validation enables static rejection of malformed adversarial contributions. Each round, clients update locally; edges merge \(\{C_k^{(r)}\}_{k \in E}\!\to\!C_E^{(r)}\); the server merges \(\{C_E^{(r)}\}\!\to\!C_g^{(r)}\), redistributed. Merges are typed dispatches:

Figure 2: \mathrm{EdgeMerge}: typed merge with field-wise conflict resolution (compact form; full numeric-path and conflict-log specification in App. [app:merge95full])

Conflict resolution. Conflicting scenarios for a single tool create a cosine cluster (\(\cos\!\geq\!\tau{=}0.85\)); \(\mathrm{IsConsistent}\) verifies schema-level structured-field agreement along with a consistency probe from an LLM (App. [app:merge95full]). In clusters where inconsistencies are found, the centroid is kept, while dissenting elements are logged in the conflict record \(\mathcal{L}^{(r)}\), which informs the next-round Precautions through \(\mathrm{ConflictsToPrecautions}\) (e.g., “Use Wolfram for symbolic integration” + “Avoid when depth \(>\!4\)\(\to\) “Use for symbolic integration; do not use when depth \(>\!4\)”). (§5: accuracy holds at \(0.86\) even when \(40\%\) of client scenarios contradict each other, versus \(0.74\) without conflict logging). The server applies the same merge operator one level up, treating edge compendiums as its inputs.
Privacy mechanisms.Two mechanisms with different guarantees: numeric fields in \(M\) receive formal \((\varepsilon,0)\)-DP protection via Laplace noise calibrated to each field’s declared sensitivity (Theorem 1); text fields are protected by adaptive masking that suppresses high-salience tokens, an empirical defence with no formal DP guarantee (Tab. 4). Secure aggregation [41] can be layered on top of either mechanism independently.
Inference-time routing. Given a query \(q\), the system first retrieves the five most similar scenarios from the global compendium \(C_g\) using cosine similarity over Jina embeddings [42]. A lightweight LLM reranker (llama-3.1-8b-instruct [43]) then selects the single best match and identifies its parent tool, which the planner invokes. Retrieval-augmented generation within a tool operates independently of this routing step and does not affect which tool is selected.

3.1 TextGrad and the Federated Training Loop↩︎

TextGrad [44] treats natural-language prompts as differentiable variables, optimizing them via LLM-produced critiques (textual gradients) describing how a prompt should change to improve a downstream loss. Within SYNAPSE, TextGrad operates on three compendium fields (\(U\), \(P\), \(T\)) at the edge layer only and never at clients (which would expose private data to the optimizer’s LLM) and never at the server (which would centralize cost). Tool metadata \(M\) is canonical and bypasses TextGrad entirely.
Per-round update. At each round, the edge takes each cluster of similar scenarios produced by Algorithm 2 and drafts a single summary. It then tests that summary against a small held-out set of public benchmark queries, never client data, and measures how often routing fails. An LLM critique describes what the summary should change to reduce those failures, and the summary is revised over \(S{=}3\) steps. Before any text leaves a client, high-salience tokens are masked under a tunable masking strength \(\lambda\): higher \(\lambda\) suppresses more tokens for stronger empirical privacy at some cost to routing accuracy, while lower \(\lambda\) preserves more content (Tab. 5); the edge LLM therefore never sees raw client scenarios. This refinement runs separately for usage scenarios \(U\), precautions \(P\), and prompt templates \(T\). Scenarios that caused conflicts in the current round are not discarded: they are carried forward as structured precautions in the next round’s compendium \(C_E^{(r+1)}.P\), giving the system a form of memory across rounds without any retraining.
Per-field loss for \(U\), \(P\), \(T\). The TextGrad loss differs by field and by what each field controls. For usage scenarios \(U\) and precautions \(P\), both of which influence the routing decision, \(\ell\) is the routing-failure rate on the held-out probe set. For prompt templates \(T\), which control post-routing API formatting after the tool is already selected, routing-failure is not the appropriate loss; we use task-success-given-correct-routing (the fraction of probe queries that produce a valid downstream API response when routed to the correct tool with template \(u_t^{(s)}\)). Using routing-failure for \(T\) would not provide a useful gradient signal because \(T\) does not influence which tool is selected.

Hence TextGrad is not a global optimization over the full compendium, not a meta-learner, not a substitute for the typed merge operator: merge enforces schema validity and field-wise dispatch, TextGrad refines natural-language content within each typed field. Removing TextGrad and using extractive summarization drops routing accuracy \(0.92\!\to\!0.85\) (Tab. [tab:textgrad95main]); removing merge while keeping TextGrad collapses to \(0.74\) at \(40\%\) contradictory clients (Tab. [tab:component95ablation]). Edge cost: \(\sim\!60\) s/round/aggregator on server, amortized across the edge’s clients.

4 Analytical Properties↩︎

We give three analytical statements: a formal DP guarantee on numeric metadata, and two conditional results (retrieval-distortion under Lipschitz assumption, routing stability under contraction) characterized empirically rather than proved (Tab. 19). These are positioning rather than central contributions.

Theorem 1 (\((\varepsilon, 0)\)-DP on numeric metadata). Let \(\mathcal{M}_\mathrm{num}\) denote the numeric-metadata mechanism that adds independent Laplace noise to each numeric field of \(C.M\). For neighboring datasets \(D, D'\) differing in a single user’s numeric metadata contribution of \(\ell_1\)-sensitivity \(\Delta_m\), \[\Pr[\mathcal{M}_\mathrm{num}(D) \in S] \leq e^\varepsilon \Pr[\mathcal{M}_\mathrm{num}(D') \in S]\] for any measurable \(S\). Across \(R\) rounds, basic sequential composition gives pure \((\varepsilon', 0)\)-DP with \(\varepsilon' = R\varepsilon\); advanced composition [36] gives \((\varepsilon', \delta')\)-DP with \(\varepsilon' = \sqrt{2R \ln(1/\delta')}\,\varepsilon + R\,\varepsilon(e^\varepsilon - 1)\). We report the tighter of the two; for the small-\(R\) regime evaluated in this paper (\(R \leq 30\), \(\varepsilon \leq 2\)), basic composition is strictly tighter and gives pure-DP guarantees.

Scope. Theorem 1 covers the numeric path. The text-field mechanism is heuristic; we do not claim it satisfies formal DP.

Adjacency and trust model. “Single user’s numeric metadata contribution” means user-level adjacency: \(D, D'\) differ in the entire numeric record contributed by one user. The guarantee is enforced in two stages: (i) per-user clipping at the client bounds the user’s \(\ell_1\) contribution at \(\Delta_m\) per field before any client-level aggregation (App. [app:merge95full], stage 1); (ii) clients transmit clipped values to the edge aggregator, which computes the per-field average over \(K\) clients and adds Laplace noise calibrated to the average’s sensitivity \(\Delta_m/K\), releasing \(C_E.M.m^{(j)} \leftarrow \frac{1}{K}\sum_k \mathrm{clip}(\cdot) + \mathrm{Lap}(\Delta_m^{(j)}/(K\varepsilon^{(j)}))\). The edge is semi-honest – it follows Algorithm 2 faithfully but may attempt inference from clipped client values; secure aggregation [45] can be layered on the numeric path to weaken this assumption to ideal-functionality only. Downstream typed-merge operations on the noised release (clustering, redistribution) are post-processing (App. 19, Lemma L.2), so the user-level guarantee carries through unchanged across rounds.

Theorem 2 (Bounded retrieval distortion, conditional). Let \(\tilde{u} = \mathsf{PrivTrans}(u)\) denote the privacy-transformed scenario after numeric noising and text masking (\(\lambda\)). Assume the embedding \(e(\cdot)\) is \(L_e\)-Lipschitz under text distance \(d_\mathrm{text}\), and cosine similarity is \(L_\mathrm{sim}\)-Lipschitz in \(\|\cdot\|_2\). Then \(\mathbb{E}\|e(u) - e(\tilde{u})\|_2 \leq L_e \cdot \mathbb{E}[d_\mathrm{text}(u, \tilde{u})] =: \delta_\mathrm{priv}\) and \(\mathbb{E}|\Delta\mathrm{sim}| \leq L_\mathrm{sim}\,\delta_\mathrm{priv}\). Markov’s inequality converts to a high-probability bound: \(\Pr(|\Delta\mathrm{sim}| > t) \leq L_\mathrm{sim}\,\delta_\mathrm{priv}/t\). The notation \(\delta_\mathrm{priv}\) (rather than \(\delta(\varepsilon)\)) emphasizes that the bound depends on the combined privacy transformation – principally the masking strength \(\lambda\) on text fields, since \(\varepsilon\)-DP applies only to numeric metadata. Conditional on the two Lipschitz assumptions; we characterize them empirically below.

Empirical characterization (not a theorem). The Lipschitz assumption above is a statement about the embedding model rather than about SYNAPSE, and we make no formal claim that the Jina embedding satisfies it globally. We measure the per-sample ratio \(\|e(u) - e(\tilde{u})\|_2 / d_\mathrm{text}(u, \tilde{u})\) on \(1{,}000\) scenario pairs at three masking strengths \(\lambda \in \{0.5, 1.0, 1.5\}\). We define \(d_\mathrm{text}(u, u')\) as token-level Levenshtein distance after lowercasing and whitespace normalization, divided by \(\max(|u|, |u'|)\) tokens to give a bounded \([0, 1]\) ratio (full protocol App. 19). The \(99\%\)-quantile is \(\hat{L}_e^{(99\%)} \approx 1.4\) with variation under \(5\%\) across \(\lambda\) values; the resulting \(\hat{\delta}_\mathrm{priv}\) at \(\lambda{=}1.0\) is \(\approx 0.37\), small relative to typical inter-scenario distances (\(\sim\!1.0\)\(1.4\)). This is an empirical observation about the deployed embedding model, not a proof that Theorem 2’s assumption holds. A user using a different embedding model should re-measure \(\hat{L}_e\) before relying on the conditional bound.

Theorem 3 (Routing stability under contraction, conditional). Let \(s_r(t) = \mathcal{R}(e(q), \zeta_g^{(r)}(t))\) be the reranker score for tool \(t\) at round \(r\), evolving as \(s_{r+1} = \mathcal{R}(s_r) + \eta_{r+1}\) where \(\mathcal{R}\) encodes the round-to-round score update via the merge-and-redistribute protocol and \(\eta_r\) is zero-mean privacy perturbation with bounded variance \(\sigma^2\) per coordinate. Assume* (i) \(\mathcal{R}\) is an \(L\)-contraction in \(\ell_2\) with \(L\!<\!1\), (ii) at the noise-free limit a unique top-scoring tool \(t^*\) has margin \(\Delta\!>\!0\), and (iii) the propagated stationary score perturbations are sub-exponential. Then \(s_r\) converges in distribution to a stationary distribution concentrated around the noise-free fixed point \(s^*\) (with stationary variance bounded by \(\sigma^2/(1-L^2)\) per coordinate; for nonlinear \(\mathcal{R}\), the stationary mean need not equal \(s^*\) exactly), and the top-1 selection \(\arg\max_t s_r(t)\) equals \(t^*\) with probability at least \(1 - 2(K{-}1)\exp(-\Delta^2(1{-}L^2)/(2\sigma^2))\), where \(K\) is the number of candidate tools. The contraction premise is not proved for our reranker; Tab. 9 (App. 13) measures \(\hat{L}_\mathcal{R}^{(99\%)}\) and \(\hat{\Delta}^{(5\%)}\) across five distributions, with one (LiveBench) where \(\hat{L}_\mathcal{R}^{(99\%)}\!>\!1\) and the premise fails.*

5 Experiments and Analysis↩︎

We evaluate SYNAPSE in two regimes: a controlled regime designed to verify mechanism via proxy benchmarks, ablations, and theory-grounded measurements, and a realistic regime designed to test routing behavior on real APIs and long-horizon tool chains.

Setup. Proxy: GSM8k [46] and BBH [47]-derived tasks; tool labels correspond to routed solution paths. Real: 4 tool families (MathQA, SearchQA, CodeExec, LogicQA) and 6 ToolBench APIs (SerpAPI, OpenWeatherMap, Wikipedia, Wolfram, REST Countries, GCal). IID partitions sample uniformly; non-IID partitions shard by numeric answer range or question characteristics. Training: batch 3, 3 local steps/round, \(K{=}5\) retrieval. Full hyperparameters in App. 20.

Baselines. Two families: (i) federated text-sharing – Fed-ICL [9] (examples) and FederatedTextGrad [8] (prompts) – both frozen-LLM and weight-free; (ii) routing/retrieval ablations – BM25 [48], Centralized-Retrieval-Only, Static-Global, Local-Only, Unstructured-Pool, Description-Only. Centralized-SYNAPSE, the same typed compendium built without federation, serves as the centralized typed-registry analog (cf.MCP-style registries [49]) and isolates the federation cost from the typed-schema contribution. Adapter-based and federated RAG – FedLoRA, C-FedRAG [28] – are extended baselines; FedAvg full-fp32 is reported only as a communication-cost reference.

5.1 Controlled-regime results↩︎

Statistical significance. SYNAPSE matches centralized performance within statistical noise while every baseline falls significantly short. Across 5 random seeds \(\{42, 123, 456, 789, 1024\}\), SYNAPSE achieves \(0.92\!\pm\!0.02\) on GSM8k (5 IID clients), statistically indistinguishable from Centralized-SYNAPSE (\(p\!=\!0.31\), \(d\!=\!0.2\)), while all non-centralized baselines differ at \(p\!<\!0.05\) (full table App. 20): FedTextGrad \(0.90\), BM25 \(0.83\), Fed-ICL \(0.79\), ReAct \(0.64\), Local-Only \(0.46\).
Component and TextGrad ablations. Every typed schema field contributes measurable, monotonic accuracy gains, and the conflict log is critical under adversarial conditions. Stacking BM25 \(\to\) full SYNAPSE (Tab. [tab:component95ablation], left): \(+0.16\) semantic retrieval, \(+0.06\) schema, \(+0.10\) scenarios, reaching \(0.92\) (\(0.08\) from oracle);retrieval and reranking contribute equally (\(+0.16\) each). Injecting contradictory scenarios (Tab. [tab:component95ablation], right): the conflict log opens a \(12\)-pt protection gap at \(40\%\) rate, confirming that field-wise conflict resolution is not cosmetic. Replacing TextGrad (\(S{=}3\)) at the edge with extractive centroid drops accuracy \(0.92\!\to\!0.85\);with no summarization, \(0.92\!\to\!0.78\) (Tab. [tab:textgrad95main]); full sweep over \(S\!\in\!\{1,3,5\}\) in App. 14.

4pt

image
TextGrad ablation. Critique-and-update loop produces compact, low-noise field entries; without it, 7–14 pt drop. Full sweep App. 14.

Heterogeneity and scalability. SYNAPSE degrades gracefully under distribution shift and scales to \(500\) clients with bounded compendium size and sub-\(500\) ms latency (Tab. 15, App. 20). Under non-IID splits, GSM8k drops only \(0.96\!\to\!0.92\) and BBH benchmarks drop \(\leq\!2\) pts; deduplication saturates at \(70\%\) and \(p_{95}\) stays under \(500\) ms regardless of client count because reranking always processes only the top-\(5\) candidates.

Cross-model transfer. A single compendium built with LLaMA-3.1-8B routes correctly across four LLM families on GSM8k – LLaMA-3.1-8B (\(0.92\), native), LLaMA-3.2-3B (\(0.90\)), Mistral-7B (\(0.91\)), GPT-4o (\(0.92\)) – and a mixed federation (2\(\times\)LLaMA + 2\(\times\)Mistral + 1\(\times\)GPT-4o) reaches \(0.92\) overall. The same property replicates on \(\tau\)-bench retail with the round-3 compendium and embedding model held fixed (Tab. 2): same-family transfer to LLaMA-3.2-3B yields \(\Delta\!=\!-0.022\) (matching the GSM8k same-family gap exactly), cross-family Mistral-7B yields \(\Delta\!=\!-0.009\), and stronger-model GPT-4o yields \(\Delta\!=\!+0.085\) – the typed compendium rides a stronger model upward, reaching \({\sim}90\%\) of \(\tau\)-bench’s published GPT-4o ceiling. All four LLMs preserve the per-category ordering (catalog \(>\) account \(>\) escalation \(>\) orders \(>\) returns), confirming that compendium quality rather than LLM-specific category preference drives the result.Weight-sharing federation cannot offer this: merged adapters or parameters need architectural compatibility and re-baking for each target LLM.

6pt

Table 2: \(\tau\)-bench cross-model probe (\(250\) tasks \(\times\) \(3\) seeds, same compendium, same embedding). Same-family \(\Delta\!=\!-0.022\) matches the GSM8k cross-model gap exactly; per-category ordering preserved across all four LLMs (App. 18.1).
Inference LLM Task success Tool-call acc. Avg.turns \(\Delta\) vs.LLaMA-3.1-8B
LLaMA-3.1-8B (main) \(0.453 \pm 0.023\) \(0.631 \pm 0.017\) \(5.4\)
LLaMA-3.2-3B \(0.431 \pm 0.021\) \(0.614 \pm 0.016\) \(5.7\) \(-0.022\)
Mistral-7B-Instruct \(0.444 \pm 0.020\) \(0.624 \pm 0.018\) \(5.5\) \(-0.009\)
GPT-4o \(\mathbf{0.538 \pm 0.018}\) \(\mathbf{0.703 \pm 0.014}\) \(4.8\) \(+0.085\)

Benchmark breadth and prompt transfer. The federation cost is task-dependent: modest on structured mathematical reasoning, larger on open-ended language tasks where scenario diversity is hardest to compress. On four LiveBench [50] reasoning tasks, federated underperforms centralized by \(7\)\(13\) pts on three open-domain reasoning tasks but outperforms by \(4\) pts on AMPS Hard (App. 18); both configurations use GPT-4o, so the gap reflects compendium compression rather than model mismatch. Prompt transfer (LLaMA-3.2-11B \(\to\) 3.2-3B) yields task-dependent \(+0.15\)/\(+0.03\)/\(-0.08\) across BBH-Arithmetic/OC/GSM8k, confirming it is a distinct and non-interchangeable mechanism from compendium transfer (App. 18, Tab. [tab:prompt95transfer]).

Latency and ablation summary. Routing latency stays within production-viable bounds and the LLM reranker is the single highest-value component. End-to-end \(p_{50}/p_{95}\!=\!330/470\) ms; replacing the Llama-3.1-8B edge summarizer with Llama-3.2-3B incurs only \(0.01\) accuracy cost (\(0.91\!\pm\!0.02\)). A logged \(500\)-query GSM8k run isolates four mechanisms: the reranker is the largest single contributor (bypass drops \(0.917\!\to\!0.497\), \(\Delta\!=\!0.42\!\pm\!0.05\), \(3\) seeds; App. 15); federation provides coverage (Local-Only \(0.46\), \(\sim\!54\%\) of queries require scenarios unseen locally); schema validation stabilises at \(6\) types with \(95.2\%\) deduplication; Fed-ICL’s string-proximity matching explains its \(0.61\) vs.\(0.86\) collapse on multi-tool.

5.2 Realistic-regime results↩︎

Multi-tool and real APIs. On real APIs, SYNAPSE substantially outperforms text-sharing baselines and remains within sampling noise of the centralized ceiling across all six API categories. On the \(4\)-tool proxy, SYNAPSE reaches \(0.86\) vs.Fed-ICL \(0.61\) (\(+0.25\)) and Centralized \(0.91\) (gap \(0.05\)). On the ToolBench \(250\)-query test set (App. 16, Tab. [tab:real95api95results]): \(0.728\) vs.\(0.800\) vs.\(0.480\); \(95\%\) bootstrap CIs (Tab. 12) show SYNAPSE–Centralized intervals overlap per category while SYNAPSE–Fed-ICL intervals are disjoint at \(n\!=\!250\) overall. The \(0.148\) gap between routing accuracy (\(0.728\)) and end-to-end success (\(0.580\)) is entirely upstream-API failure (schema drift \(5.2\%\), semantic miss \(4.8\%\), auth/quota \(2.4\%\), timeouts \(1.6\%\), rate limits \(0.8\%\)); routing errors account for \(27.2\%\).

image
Long-horizon multi-step routing. SYNAPSE is the only federated method with 8-step success over 0.7. Planner-based agents (ReWOO, Reflexion) compare routing-as-memory (ours) with routing-as-planning (theirs); see App. 11 for details.

Long-horizon multi-step routing. The typed Precautions field is the decisive advantage over multi-step horizons: Fed-ICL collapses to \(0.34\) at \(8\) steps vs.SYNAPSE’s \(0.71\)—a \(37\)-pt gap that grows with chain length because flat-text baselines lack structured exclusion rules (Tab. [tab:multistep]). SYNAPSE matches Reflexion-\(K{=}3\) statistically at \(1/3\) the inference compute, confirming routing memory and routing planning are complementary mechanisms.

Extended baselines. SYNAPSE outperforms all extended baselines without architectural compatibility or weight sharing. On \(5\)-seed GSM8k: SYNAPSE \(0.92\), FedLoRA \(0.89\), C-FedRAG \(0.84\), Fed-ICL \(0.79\)—at \(5.3\) KB vs.\({\sim}52\) MB/client/round for FedLoRA (\({\sim}10{,}000\times\) gap against the architectural lower bound; App. 17).SYNAPSE tolerates up to \(40\%\) adversarial clients (Fig 3) across three attack modes (cross-source, random corruption, tool-confusion) before sharp degradation at \(60\%\); the boundary aligns with Theorem 3’s empirically measured contraction regime

Figure 3: SYNAPSE tolerates up to 40% adversarial clients (routing accuracy \geq​0.62) before sharp collapse at 60%, aligning with Theorem 3’s contraction regime \hat{L}_\mathcal{R}^{(99\%)}\!=\!0.891); Krum / TrimmedMean recover +8–25 pts at 33–50% adversarial at ∼1-pt clean cost (App 12, Tab. 13).

Long-horizon simulation (illustrative stress-test). At deployment scale, the typed-artifact protocol sustains effective routing over \(30\) rounds, recovers from API schema drift, and generates measurable cross-org transfer gains. Across \(100\) clients, \(5\) orgs, \(32\) APIs, and \(\sim\!21\text{k}\) queries (App. 22): routing reaches \(0.79\) at \(R{=}30\); end-to-end success \(0.67\); the \(96\) KB compendium recovers to within \(0.02\) of pre-drift baseline by \(T{+}10\) after each of \(8\) scheduled drift events; and cross-org federation yields \(\Delta\!=\!{+}0.10\) over within-org federation under category-coherent partitioning and \(\Delta\!=\!{+}0.07\) under random partitioning.At \((\varepsilon{=}0.5, \lambda{=}1.5)\), adversary AUROC drops to chance (\(0.50\)) at a cost of \(5\) routing accuracy pts with \(\varepsilon'\!=\!1.5\) over three rounds; the full privacy–utility sweep is in App. 10, Tab. 5.

5.3 Beyond tool routing: typed retrieval-policy artifacts on NQ-Open↩︎

The typed-artifact abstraction generalizes beyond tool routing with no algorithmic changes: the same merge operator, schema validation, and DP guarantees transfer directly to retrieval-policy federation on NQ-Open, closing \(73\%\) of the local-to-centralized accuracy gap. We instantiate the protocol on Natural Questions Open [51] with hybrid retrieval (BM25 + dense, top-\(k\!=\!5\) Wikipedia passages) and llama-3.1-8b answer generation. \(5{,}000\) NQ-Open dev questions are partitioned across \(5\) non-IID clients by question type; clients exchange typed retrieval-policy artifacts (, , , , ) rather than tool-routing scenarios; Algorithm 2 and Theorem 1 apply unchanged. Full setup in App. 18.2.

8pt

Table 3: Second instantiation on NQ-Open (\(3\) seeds). SYNAPSE accuracy \(0.724\) vs.Centralized \(0.756\) (gap \(0.032\), tighter than \(\tau\)-bench \(0.058\)): single-step RAG is less sensitive to federation constraints than multi-turn agent tasks. The typed-artifact protocol generalizes with no algorithmic changes..
Setting Accuracy (EM) Faithfulness Evidence Recall@\(5\)
Local-only RAG policy \(0.612 \pm 0.024\) \(0.681 \pm 0.021\) \(0.704 \pm 0.026\)
Fed-ICL policy sharing \(0.661 \pm 0.022\) \(0.708 \pm 0.020\) \(0.733 \pm 0.024\)
SYNAPSE typed artifact \(\mathbf{0.724 \pm 0.019}\) \(\mathbf{0.771 \pm 0.018}\) \(\mathbf{0.801 \pm 0.021}\)
Centralized oracle \(0.756 \pm 0.017\) \(0.793 \pm 0.016\) \(0.826 \pm 0.019\)

The federation–centralized gap of \(0.032\) on NQ-Open is tighter than the \(0.058\) on \(\tau\)-bench retail, consistent with single-step retrieval policies composing more cleanly under typed merge than multi-turn tool decisions where each step compounds routing uncertainty.

6 Limitations↩︎

Three limitations bound the deployment case. First, formal privacy covers only numeric metadata; text fields rely on heuristic masking with no \((\varepsilon,\delta)\)-LDP guarantee. Second, typed schemas concentrate liability, a malformed or adversarially crafted schema becomes a single point of failure under adaptive adversaries beyond the \(50\%\) Byzantine threshold. Third, the system emits no calibrated confidence score, requiring human-review escalation before high-stakes medical or legal decisions. Additionally, contraction fails on a LiveBench subset (\(\hat{L}_\mathcal{R}^{(99\%)}\!=\!1.018\!>\!1\)), leaving routing stability unverified on that distribution.

7 Conclusion↩︎

Typed federated artifacts enable model-agnostic collaboration without sharing weights, prompts, or raw data, making privacy, conflict resolution, and cross-architectural transfer well-defined operations at the federation boundary. SYNAPSE matches centralized performance at \({\sim}10{,}000\times\) below the FedLoRA bandwidth floor (App. 8).

8 Ethical Considerations↩︎

SYNAPSE is evaluated on tool-routing and NQ-Open retrieval-policy artifacts; the protocol extends to other typed-object settings via schema substitution. Three empirical gaps bound the current results: real-API experiments are limited in scale and duration; LiveMCPBench-class catalogs (\({\sim}500\) tools) are not directly evaluated; and the contraction premise fails on a LiveBench subset (\(\hat{L}_\mathcal{R}^{(99\%)}\!=\!1.018\!>\!1\)), voiding the routing-stability guarantee on that distribution. Three deployment prerequisites remain open before any regulated rollout: (i) calibrated \(\varepsilon\)-LDP for text fields (current masking is heuristic with no formal guarantee); (ii) confidence-gated escalation to human review for low-confidence routing decisions; (iii) a right-to-erasure re-materialization pathway (structurally supported by Algorithm 2 but not implemented). Sybil attacks past the \(40\%\) Byzantine tolerance threshold and adaptive adversaries tuned to the robust operator remain future work; rate-limited registration and cross-edge consistency checks are compatible mitigations but are not yet evaluated. SYNAPSE is not a HIPAA/GDPR-complete stack; the schema \(\mathcal{S}\) provides the dispatch points for each extension but does not fulfil them.

9 Robustness to Noisy and Adversarial Clients↩︎

SYNAPSE is evaluated against three adversarial modes: cross-source contamination (clients inject scenarios from unrelated domains), random scenario corruption (random text replacement), and tool-confusion attacks (deliberate parent_tool_name mislabeling). Headline curves (Fig. 3 in §5.2): all three modes stable through \(40\%\) adversarial clients, sharp collapse at \(60\%\). Random noise is largely absorbed by cosine deduplication; cross-source is partially absorbed by schema validation; tool-confusion is hardest because adversaries produce schema-valid scenarios whose only error is the parent_tool_name field, which clusters with honest scenarios for the same task type. Mitigation: cross-validating clustered parent_tool_name fields against the canonical tool registry \(\mathcal{T}\) at Algorithm 2 line 5 before line 12 – already in released code; without it, tool-confusion at \(40\%\) collapses to \(0.48\) rather than \(0.62\). The \(40\%\) stable boundary aligns with Theorem 3’s empirically measured contraction regime (\(\hat{L}_\mathcal{R}^{(99\%)}\!=\!0.891\), \(\hat{\Delta}^{(5\%)}\!=\!0.138\), App. 19); at \(60\%\) the contraction premise fails empirically.

10 Empirical Prompt-Extraction Attack↩︎

Setup. Following [37]: clients generate responses to server queries using private in-context examples; GPT-4o adversary observes only the responses and reconstructs originals. We report membership-inference AUROC (50/50 balanced), adversary–ground-truth token overlap, and the fraction of clients whose token overlap stays under \(0.10\). Full pipeline = formal DP on numeric metadata + heuristic masking on text; this characterizes empirical privacy of the deployed system, distinct from the formal \((\varepsilon, 0)\)-DP claim of Theorem 1 which applies only to the numeric-metadata mechanism.

4pt

Table 4: Empirical prompt-extraction attack: adversary AUROC degrades to chance at the strongest privacy setting.
Setting Token overlap AUROC % clients \(<\!0.10\)
No privacy \(0.20\) \(0.62\) \(50\%\)
\(\varepsilon\!=\!1.0,\lambda\!=\!1.0\) \(0.07\) \(0.54\) \(84\%\)
\(\varepsilon\!=\!0.5,\lambda\!=\!1.5\) \(0.03\) \(0.50\) \(95\%\)

Privacy–utility frontier. To characterize the deployment-relevant operating range rather than a single point, Tab. 5 sweeps the per-round privacy budget \(\varepsilon \in \{0.5, 1.0, 2.0\}\) and the text-masking strength \(\lambda \in \{0.5, 1.0, 1.5\}\). Composed \(\varepsilon'\) uses basic sequential composition \(\varepsilon' = R\varepsilon\) (pure \((\varepsilon', 0)\)-DP); for the small-\(R\) regime (\(R{=}3\)) evaluated here, basic composition is strictly tighter than the advanced composition bound and is what we report.

6pt

Table 5: Privacy–utility sweep on GSM8k (5 IID clients, 5 seeds, \(R{=}3\) rounds). Composed \(\varepsilon'\) uses basic sequential composition \(\varepsilon' = R\varepsilon\) (pure \((\varepsilon', 0)\)-DP), which is strictly tighter than advanced composition for the small-\(R\) regime evaluated here; Theorem 1 gives both bounds. Bold rows are the operating points reported in body §5 and Tab. 4. Tighter privacy (\(\varepsilon \downarrow\), \(\lambda \uparrow\)) reduces both adversary AUROC and routing accuracy; the steepest privacy gain occurs in the \((\varepsilon{=}1.0, \lambda{=}1.0) \to (\varepsilon{=}0.5, \lambda{=}1.5)\) regime (\(\Delta\) AUROC \(=\!0.04\), \(\Delta\) accuracy \(=\!0.05\)). The \(\varepsilon{=}0.5, \lambda{=}1.5\) operating point drives adversary AUROC to chance (\(0.50\)) at \(5\) pts of routing utility, with composed budget \(\varepsilon'\!=\!1.5\) over three rounds.
\(\varepsilon\) \(\lambda\) \(\varepsilon'\) (\(R{=}3\)) Routing acc. AUROC Token overlap % clients \(<\!0.10\)
\(\infty\) \(0.0\) \(0.935 \pm 0.018\) \(0.62\) \(0.20\) \(50\%\)
\(2.0\) \(0.5\) \(6.0\) \(0.928 \pm 0.020\) \(0.59\) \(0.13\) \(70\%\)
\(2.0\) \(1.0\) \(6.0\) \(0.914 \pm 0.023\) \(0.56\) \(0.10\) \(78\%\)
\(2.0\) \(1.5\) \(6.0\) \(0.897 \pm 0.025\) \(0.53\) \(0.07\) \(85\%\)
\(1.0\) \(0.5\) \(3.0\) \(0.909 \pm 0.024\) \(0.57\) \(0.11\) \(76\%\)
\(1.0\) \(1.0\) \(3.0\) \(\mathbf{0.902 \pm 0.026}\) \(\mathbf{0.54}\) \(\mathbf{0.07}\) \(\mathbf{84\%}\)
\(1.0\) \(1.5\) \(3.0\) \(0.881 \pm 0.028\) \(0.52\) \(0.05\) \(90\%\)
\(0.5\) \(0.5\) \(1.5\) \(0.884 \pm 0.027\) \(0.55\) \(0.08\) \(83\%\)
\(0.5\) \(1.0\) \(1.5\) \(0.866 \pm 0.030\) \(0.52\) \(0.05\) \(90\%\)
\(0.5\) \(1.5\) \(1.5\) \(\mathbf{0.851 \pm 0.032}\) \(\mathbf{0.50}\) \(\mathbf{0.03}\) \(\mathbf{95\%}\)

11 Planner-Based Agent Baselines: ReWOO and Reflexion↩︎

This appendix documents the comparison protocol for the two planner-based agents in Tab. [tab:multistep]. The motivation is to disentangle two confounded effects: routing-as-memory (SYNAPSE, where the federated compendium provides typed knowledge that the router queries) versus routing-as-planning (ReWOO, Reflexion, where a centralized planner LLM decomposes the task and selects tools without relying on shared memory).

Setup. Both planner-based agents use Llama-3.1-8B-instruct (matching our reranker LLM) for all LLM components, share the per-tool execution wrappers used by SYNAPSE, and operate centralized – they have full access to the \(32\)-tool inventory and benchmark distribution at inference time, a strictly more permissive setting than SYNAPSE’s federated regime. ReWOO [52] uses the standard planner prompt (decompose-then-execute); Reflexion [53] uses \(K{=}3\) trials with verbal-feedback memory. We score multi-step chains as successful only if a single trial completes all steps; we do not cherry-pick best-of-trials across steps, which makes Tab. [tab:multistep]’s entries directly comparable to single-trial methods. Neither planner can be straightforwardly federated without sharing either the planner prompts (which contain the full tool inventory) or the episodic-reflection buffer (which contains private query traces). SYNAPSE’s claim is not that compendium-based routing beats centralized planners in absolute terms; it is that routing memory and routing planning are different mechanisms, and SYNAPSE approaches centralized planner performance under constraints planner-based agents architecturally cannot satisfy.

Results and compute cost. ReWOO single-step (\(0.89\)) sits within \(0.01\) of SYNAPSE (\(0.88\)). ReWOO’s \(12\)-step accuracy (\(0.46\)) sits \(0.19\) below SYNAPSE (\(0.65\)): without replanning, intermediate failures geometrically compound. Reflexion (\(K{=}3\)) leads single-step at \(0.93\) but drops below SYNAPSE at \(12\)-step (\(0.64\) vs.\(0.65\)). Reflexion’s competitiveness costs up to \(3\times\) per-step compute and \(36\times\) total per chain (Tab. 6); SYNAPSE’s per-step cost is independent of chain length.

6pt

Table 6: Per-step inference cost across multi-step methods. Federation cost for SYNAPSE is amortized outside inference; per-step routing cost equals one retrieval+rerank pass.
Method Per-step routing/planning 8-step relative 12-step relative
SYNAPSE / Centralized 1 routing pass per step \(1.0\times\) \(1.0\times\)
ReWOO 1 upfront planner call + execution \(\sim\!1.1\times\) \(\sim\!1.1\times\)
Reflexion (\(K{=}3\)) up to \(3\) trials per step \(3.0\times\) worst-case \(3.0\times\) worst-case
ReAct 1 reactive loop per step \(\sim\!1.2\)\(1.5\times\) \(\sim\!1.2\)\(1.5\times\)

12 Byzantine-Robust Aggregation: Empirical Evaluation↩︎

The main paper’s threat model is honest-but-curious. This appendix extends to a Byzantine setting where adversaries submit schema-valid payloads designed to maximize misrouting harm.

Setup. Adversarial fraction is measured over submitted compendium entries (not clients), permitting fractional rates with \(5\) clients. Two attack modes: schema-valid poisoning (entries pass schema validation but contain wrong tool\(\to\)scenario mappings, defeating schema validation by construction) and coordinated targeting (multiple adversarial submissions push the same poisoned scenario past cosine deduplication \(\tau{=}0.85\), defeating dedup by exploiting majority-of-cluster). Three aggregation rules at the edge layer: baseline SYNAPSE (Algorithm 2, cosine-cluster + cluster majority), +Krum [54] (drop entries furthest from cluster centroid before majority vote), and +TrimmedMean [55] (drop top/bottom \(f\) entries before majority). GSM8k, \(5\) clients, \(3\) rounds, \(200\) held-out queries; adversarial fractions \(\{0, 10, 20, 33, 50\}\%\).

6pt

Table 7: Byzantine-robust aggregation under schema-valid poisoning and coordinated-targeting. Mean lift over no-defense baseline: \(+8\)\(19\) pts at \(20\)\(33\%\) adversarial; \(+16\)\(25\) pts at \(50\%\). Both robust operators cost \(\sim\!1\) pt at \(0\%\) adversarial (slight over-conservatism). TrimmedMean outperforms Krum at \(50\%\) because Krum’s most-central selection retains a single entry while TrimmedMean averages over the surviving cluster; under near-majority attack, Krum’s selection is more likely to be adversarial. Open questions: adaptive adversaries that tune attacks to the specific operator, Sybil attacks past \(50\%\), and attacks exploiting LLM reranker prompt sensitivity rather than merge.
Adv.fraction Attack Baseline SYNAPSE + Krum + TrimmedMean
\(0\%\) Control \(0.920\) (\(184/200\)) \(0.915\) (\(183/200\)) \(0.910\) (\(182/200\))
\(10\%\) Poisoning \(0.895\) (\(179/200\)) \(0.915\) (\(183/200\)) \(0.910\) (\(182/200\))
\(10\%\) Targeting \(0.875\) (\(175/200\)) \(0.905\) (\(181/200\)) \(0.910\) (\(182/200\))
\(20\%\) Poisoning \(0.825\) (\(165/200\)) \(0.895\) (\(179/200\)) \(0.900\) (\(180/200\))
\(20\%\) Targeting \(0.775\) (\(155/200\)) \(0.875\) (\(175/200\)) \(0.885\) (\(177/200\))
\(33\%\) Poisoning \(0.700\) (\(140/200\)) \(0.850\) (\(170/200\)) \(0.860\) (\(172/200\))
\(33\%\) Targeting \(0.600\) (\(120/200\)) \(0.815\) (\(163/200\)) \(0.825\) (\(165/200\))
\(50\%\) Poisoning \(0.485\) (\(\phantom{0}97/200\)) \(0.630\) (\(126/200\)) \(0.705\) (\(141/200\))
\(50\%\) Targeting \(0.345\) (\(\phantom{0}69/200\)) \(0.520\) (\(104/200\)) \(0.620\) (\(124/200\))

13 Edge Merge Operator: Detailed Specification and Sensitivity Analysis↩︎

Full Algorithm 1 with numeric path and conflict-log specification. The body Algorithm 2 presents a compact form. Below we give the complete specification with the numeric-aggregation block, \(\mathrm{IsConsistent}\) definition, and \(\mathrm{ConflictsToPrecautions}\) mapping.

Numeric subfield aggregation. The numeric path is enforced in two stages, calibrated for user-level adjacency (Theorem 1) under a semi-honest edge trust model.

Stage 1: Per-user clipping at the client. Each end-user’s contribution to client \(k\)’s numeric record is clipped at \(\Delta_m^{(j)}\) per field before being incorporated into \(C_k.M\). Per-field clipping bounds the user’s \(\ell_1\) contribution at \(\Delta_m^{(j)}\) across all numeric subfields. In the single-user-per-client configuration used in our experiments, this reduces to per-client clipping; in multi-user-per-client deployments, the bound must be enforced at user-record granularity before any client-level aggregation (see “Multi-user deployments” below).

Stage 2: Edge-side averaging and noising. Each client \(k\) transmits its clipped record \(\mathrm{clip}(C_k.M.m^{(j)}, \Delta_m^{(j)}) \in [-\Delta_m^{(j)}, \Delta_m^{(j)}]\) to the edge aggregator, which computes the per-field average over \(K\) clients and adds Laplace noise calibrated to the average’s sensitivity: \[C_E.M.m^{(j)} \gets \frac{1}{K}\sum_{k=1}^K \mathrm{clip}\bigl(C_k.M.m^{(j)},\, \Delta_m^{(j)}\bigr) + \mathrm{Lap}\!\left(\frac{\Delta_m^{(j)}}{K \cdot \varepsilon^{(j)}}\right)\] Under user-level adjacency with stage-1 clipping in place, one user’s contribution influences exactly one client’s clipped value, which contributes \(1/K\) to the average; the per-user \(\ell_1\)-sensitivity of the released average is therefore \(\Delta_m^{(j)}/K\). The noise scale \(\Delta_m^{(j)}/(K \cdot \varepsilon^{(j)})\) yields per-field \(\varepsilon^{(j)}\)-DP per round. Per-field budgets \(\varepsilon^{(j)}\) sum to the per-round budget \(\varepsilon\) via sequential composition (Theorem 1 statement; App. 19, §L.2 proof).

Trust model. The edge aggregator is semi-honest: it follows Algorithm 2 faithfully but may attempt inference from the clipped values it receives prior to noising. Secure aggregation [45] can be layered on the numeric path so the edge observes only the noisy aggregate, weakening the trust assumption to the ideal-functionality only; the protocol described above is the configuration used in our experiments and operates without secure aggregation.

Multi-user-per-client deployments. When a single client aggregates contributions from \(U \geq 2\) end-users (e.g., an institution serving multiple users behind one federated client), the user-level guarantee requires two additional safeguards beyond the single-user-per-client configuration:

(a) Per-user clipping at the client. Each end-user’s contribution to client \(k\)’s numeric record is clipped at \(\Delta_m^{(j)}\) per field at user-record granularity, before any client-level aggregation. Concretely: client \(k\) maintains \(U\) per-user buffers \(\{b_{k,u}\}_{u=1}^U\), each clipped to \([-\Delta_m^{(j)}, \Delta_m^{(j)}]\); the client-level record \(C_k.M.m^{(j)}\) is the average \((1/U) \sum_u b_{k,u}\) rather than the sum. This keeps the per-user contribution to the released edge average bounded by \(\Delta_m^{(j)}/(K U)\), recovering user-level \(\ell_1\)-sensitivity \(\Delta_m^{(j)}/(K U)\) at the released average. Equivalently, deployments that prefer to keep the noise scale fixed at \(\Delta_m^{(j)}/(K\varepsilon^{(j)})\) must scale the effective sensitivity input to \(U \cdot \Delta_m^{(j)}\) and increase the noise accordingly to \(U \cdot \Delta_m^{(j)}/(K\varepsilon^{(j)})\) — a utility cost growing linearly in \(U\).

(b) Per-user-per-round field count bound. A single user may contribute to multiple numeric fields per round (e.g., a user who invokes both tool \(t_1\) and tool \(t_2\) affects the per-tool call counts and frequency vectors for both tools). To preserve user-level adjacency under sequential composition across \(K_f\) fields, we bound the number of fields any single user can affect in one round at \(F^* \leq K_f\) via a per-user-per-round field cap enforced at the client: each user’s contribution is restricted to at most \(F^*\) distinct numeric fields per round (chosen as the user’s \(F^*\) most-touched tools by raw frequency), with contributions to other fields zeroed before client-level aggregation. Under this cap, the per-user \(\ell_1\)-sensitivity across the full numeric vector is bounded by \(F^* \cdot \max_j \Delta_m^{(j)}\) rather than \(\sum_j \Delta_m^{(j)}\), and the per-round budget allocation \(\varepsilon^{(j)} = \varepsilon/F^*\) is sufficient to maintain per-round \((\varepsilon, 0)\)-DP. In our single-user-per-client experiments we use \(F^* = K_f\) (no effective cap) since natural per-user activity is bounded; multi-user-per-client deployments should set \(F^* \!<\! K_f\) explicitly.

Combined accounting. A multi-user-per-client deployment with \(U\) users per client and per-user-per-round field cap \(F^*\) achieves per-round \((\varepsilon, 0)\)-DP under user-level adjacency by setting:

  • Per-user clipping at the client: \(\Delta_m^{(j)}\) per field per user;

  • Field cap per user per round: \(F^*\);

  • Per-field budget: \(\varepsilon^{(j)} = \varepsilon/F^*\);

  • Edge noise scale: \(\Delta_m^{(j)}/(K U \varepsilon^{(j)})\) if the client averages over its users (option (a)), or \(U \Delta_m^{(j)}/(K \varepsilon^{(j)})\) if the client sums and the edge re-noises (utility-equivalent if \(U/(\varepsilon^{(j)}) = U \cdot 1/\varepsilon^{(j)}\)).

The two accountings give identical released utility; the choice is operational. Both reduce to the single-user case at \(U\!=\!1\), \(F^*\!=\!K_f\).

Canonical fields. Tool identifiers, descriptions, and API signatures in \(M\) are server-controlled and not noised; only client-contributed numeric statistics (per-tool call counts, empirical success rates, per-tool usage frequencies) are clipped and noised before edge aggregation.

\(\mathrm{IsConsistent}(\mathcal{C})\) definition. For a cluster \(\mathcal{C}\) of usage scenarios, \(\mathrm{IsConsistent}(\mathcal{C}) :=\) true iff for every pair \((u_1, u_2) \in \mathcal{C}^2\):

  1. Structured-field agreement. Both scenarios reference the same parent_tool identifier and their precondition flag sets are jointly satisfiable (no flag pair \(\{f, \neg f\}\)).

  2. LLM semantic consistency. An LLM consistency probe (llama-3.1-8b-instruct, prompt template in App. 20) returns Consistent when shown both natural-language scenarios.

Both checks must pass; either failure marks the cluster conflicted.

Conflict log \(\mathcal{L}^{(r)}\). A stateful edge-side artifact (not exchanged across clients), keyed by \((t, \mathrm{centroid\_id})\). Each entry stores the centroid scenario plus all dissenting scenarios from the current round’s clustering. \(\mathcal{L}^{(r)}\) is the union of conflict entries from round \(r\); \(\mathcal{L}^{(0)} = \emptyset\).

\(\mathrm{ConflictsToPrecautions}(\mathcal{L}^{(r-1)})\) mapping. For each entry \(((t, \mathrm{centroid\_id}), \{u_\text{centroid}, u_1, \ldots, u_d\}) \in \mathcal{L}^{(r-1)}\), emit a structured Precaution: \((\mathrm{tool}: t,\, \mathrm{precaution}: \mathrm{TextGradSummarize}_S(u_\text{centroid} \oplus \{u_i\}))\), where \(\oplus\) denotes a structured concatenation prompt: “Combine the following scenario with each of its dissenting variants into a single precaution rule that captures both the affirmative case and the exception conditions.” This produces composed Precautions of the form “Use \(X\) for \(Y\); do not use \(X\) when \(Z\)”.

Annex \(A\). Schema-validated entity–relation triples from clients are deduplicated via cosine similarity (same \(\tau\)) and passed through. The retrieval pipeline (§3) consults \(A\) to resolve cross-tool dependencies during query routing.

Sensitivity to cosine threshold \(\tau\). Tab. 8 reports routing accuracy and compendium size as \(\tau\) varies. Lower \(\tau\) over-merges semantically distinct scenarios; higher \(\tau\) under-merges. We use \(\tau{=}0.85\).

4pt

Table 8: Sensitivity to cosine deduplication threshold \(\tau\) (GSM8k, \(5\) IID clients, \(5\) seeds).
\(\tau\) Routing acc. Compendium KB # scenarios Dedup rate
\(0.75\) \(0.87 \pm 0.02\) \(48\) \(172\) \(77\%\)
\(0.80\) \(0.90 \pm 0.02\) \(58\) \(198\) \(73\%\)
\(\mathbf{0.85}\) (used) \(\mathbf{0.92 \pm 0.02}\) \(\mathbf{62}\) \(\mathbf{210}\) \(\mathbf{59\%}\)
\(0.90\) \(0.92 \pm 0.02\) \(84\) \(278\) \(43\%\)
\(0.95\) \(0.91 \pm 0.03\) \(112\) \(361\) \(26\%\)

Cross-distribution Lipschitz and contraction diagnostics. Body §4 reports \(\hat{L}_e^{(99\%)}\!\approx\!1.4\) and \(\hat{L}_\mathcal{R}^{(99\%)}\!=\!0.891\) on GSM8k scenarios. To verify Theorem 3’s contraction premise generalizes beyond the in-paper benchmark, we re-measure on three additional scenario distributions: ToolBench, \(\tau\)-bench retail, and NQ-Open. Procedure. For each distribution we sample \(1000\) in-distribution scenario pairs, compute (i) embedding distance ratio \(\|e(s_1) - e(s_2)\|_2 / d_{\mathrm{text}}(s_1, s_2)\) and (ii) reranker output distance ratio over those pairs, then take the \(99\)th percentile for both \(\hat{L}_e\) and \(\hat{L}_\mathcal{R}\). The margin \(\hat{\Delta}^{(5\%)}\) is the \(5\)th percentile of top-\(1\) vs.top-\(2\) reranker score gaps; this is the empirical buffer that drives stable selection under stochastic perturbation.

4pt

Table 9: Empirical Lipschitz and contraction diagnostics across distributions. \(\hat{L}_e^{(99\%)}\) is the \(99\)th percentile of \(\|e(s_1)\!-\!e(s_2)\|_2 / d_{\mathrm{text}}(s_1, s_2)\) over \(1000\) in-distribution scenario pairs. \(\hat{L}_\mathcal{R}^{(99\%)}\) is the \(99\)th percentile reranker-output contraction; Theorem 3 requires this \(<\!1\). \(\hat{\Delta}^{(5\%)}\) is the \(5\)th percentile top-\(1\)/top-\(2\) reranker score margin. The premise holds with comfortable margin on GSM8k and ToolBench, narrowly on \(\tau\)-bench retail, and marginally on NQ-Open. On LiveBench, \(\hat{L}_\mathcal{R}^{(99\%)}\!=\!1.018\) exceeds the contraction threshold and the empirical margin collapses to \(0.044\); the theorem’s premise is not certified on this distribution and routing stability cannot be claimed under our current pipeline. The monotonic deterioration \(\hat{L}_e \uparrow\), \(\hat{L}_\mathcal{R} \uparrow\), \(\hat{\Delta} \downarrow\) as scenario distributions grow more semantically dispersed indicates that the deployed embedding (jina-embeddings-v2-base-en) and reranker (llama-3.1-8b-instruct) approach their operating limits on highly heterogeneous open-domain tasks; stronger embeddings or task-specific reranker fine-tuning are the natural extensions for those regimes.
Distribution # scenarios \(\hat{L}_e^{(99\%)}\) \(\hat{L}_\mathcal{R}^{(99\%)}\) \(\hat{\Delta}^{(5\%)}\) Theorem 3 premise
GSM8k (in-paper, body) \(210\) \(\mathbf{1.40}\) \(\mathbf{0.891}\) \(\mathbf{0.138}\) holds
ToolBench scenarios \(228\) \(1.49\) \(0.914\) \(0.116\) holds
\(\tau\)-bench retail \(184\) \(1.61\) \(0.943\) \(0.086\) holds, narrow margin
NQ-Open \(156\) \(1.68\) \(0.971\) \(0.061\) holds, marginal
LiveBench subset \(132\) \(1.74\) \(1.018\) \(0.044\) not certified

14 TextGrad Ablation and Sensitivity↩︎

We isolate TextGrad’s contribution by replacing it at the edge layer while keeping Algorithm 2’s clustering and conflict log intact. Setup: GSM8k, \(5\) IID clients, \(5\) seeds. The probe set used in TextGrad’s forward pass is constructed at each edge from public benchmark queries (GSM8k validation, BBH dev), never from client data, and is fixed per edge for the federation – this keeps TextGrad’s optimization at the edge from reflecting client-specific information.

4pt

Table 10: TextGrad vs.alternative edge summarization. \(S{=}3\) critique-update steps give the best accuracy/cost trade-off; further steps saturate. Single-shot summarize without critique costs \(5\) pts; no summarization costs \(14\) pts.
Edge summarization variant Routing acc. \(\Delta\) vs.TextGrad Edge cost/round
TextGrad (\(S{=}3\) steps, used) \(\mathbf{0.92 \pm 0.02}\) \(\sim\!60\) s
TextGrad (\(S{=}1\) step) \(0.89 \pm 0.02\) \(-0.03\) \(\sim\!22\) s
TextGrad (\(S{=}5\) steps) \(0.92 \pm 0.02\) \(0.00\) \(\sim\!95\) s
Extractive summarization (centroid) \(0.85 \pm 0.03\) \(-0.07\) \(<\!1\) s
LLM single-shot summarize (no critique) \(0.87 \pm 0.03\) \(-0.05\) \(\sim\!20\) s
No summarization (concat all) \(0.78 \pm 0.04\) \(-0.14\) \(0\) s

15 Reranker-Bypass Diagnostic: Multi-Seed Verification↩︎

Body §5.1 reports that bypassing the LLM reranker on the fixed \(500\)-query GSM8k diagnostic log drops routing accuracy \(0.92\!\to\!0.49\). To verify this is a stable component effect rather than a single-seed artifact, we re-ran the bypass at two additional seeds, holding the compendium and embedding model fixed. Setup. “Full pipeline” = retrieve top-\(5\) via Jina embedding \(\to\) llama-3.1-8b-instruct reranker selects the most relevant \(\to\) planning step. “No reranker” = retrieve top-\(5\) \(\to\) select the highest-cosine candidate directly \(\to\) planning step. Only the reranker step is toggled.

6pt

Table 11: Reranker-bypass diagnostic on the fixed 500-query GSM8k routing log (3 seeds; same compendium and embedding model across seeds; only the reranker step toggled). The \(0.42\)-point reranker contribution is consistent in sign and magnitude across seeds (Seed-123’s narrower \(\Delta\!=\!0.37\) corresponds to a higher bypass-baseline \(0.53\); the full pipeline accuracy variance is \(\pm 0.015\) across seeds, confirming a stable component effect).
Configuration Seed 42 Seed 123 Seed 456 Mean \(\pm\) SD
Full pipeline (retrieve \(\to\) rerank \(\to\) plan) \(0.92\) \(0.90\) \(0.93\) \(\mathbf{0.917 \pm 0.015}\)
Bypass reranker (retrieve \(\to\) top-1 \(\to\) plan) \(0.49\) \(0.53\) \(0.47\) \(\mathbf{0.497 \pm 0.031}\)
\(\Delta\) (reranker contribution) \(0.43\) \(0.37\) \(0.46\) \(\mathbf{0.420 \pm 0.046}\)

16 Real-API Failure Mode Decomposition↩︎

\(250\) queries across six API categories, classified into: routing error (wrong API), API timeout (\(>10\)s), rate limit (429), schema drift (unexpected response structure), auth/quota (401/403/quota exceeded), semantic miss (correct routing, wrong final answer). Routing errors and semantic misses are attributable to SYNAPSE; the rest are upstream-API properties.

Bootstrap confidence intervals. The point estimates in body Tab. [tab:real95api95results] are single-pass (no seed averaging) on a fixed test set. To characterize the test-set sampling variability, Tab. 12 reports \(95\%\) bootstrap CIs (\(B{=}1000\) resamples per category, drawn with replacement from the per-category routing-decision logs).

4pt

Table 12: Real-API routing with \(95\%\) bootstrap confidence intervals (\(B{=}1000\) resamples). SYNAPSE–Centralized intervals overlap on every category, consistent with the \(0.07\) federation–centralized gap not exceeding test-set sampling noise. Per-category SYNAPSE–Fed-ICL intervals partially overlap because per-category sample sizes are small (\(n\!=\!35\)\(50\)); the overall \(n\!=\!250\) SYNAPSE–Fed-ICL intervals are disjoint (\([0.67, 0.78]\) vs.\([0.42, 0.54]\)), and the point-estimate gap is positive on every category (\(+0.20\) to \(+0.28\)).
API category (\(n\)) SYNAPSE [95% CI] Centralized [95% CI] Fed-ICL [95% CI]
Search (\(n{=}50\)) \(0.76\) [\(0.63\), \(0.86\)] \(0.84\) [\(0.71\), \(0.92\)] \(0.50\) [\(0.37\), \(0.63\)]
Weather (\(n{=}45\)) \(0.80\) [\(0.66\), \(0.89\)] \(0.84\) [\(0.71\), \(0.92\)] \(0.53\) [\(0.39\), \(0.67\)]
Knowledge (\(n{=}40\)) \(0.70\) [\(0.55\), \(0.82\)] \(0.78\) [\(0.62\), \(0.88\)] \(0.45\) [\(0.31\), \(0.60\)]
Math (\(n{=}40\)) \(0.80\) [\(0.65\), \(0.90\)] \(0.85\) [\(0.71\), \(0.93\)] \(0.55\) [\(0.40\), \(0.69\)]
Data (\(n{=}40\)) \(0.65\) [\(0.50\), \(0.78\)] \(0.75\) [\(0.60\), \(0.86\)] \(0.42\) [\(0.29\), \(0.58\)]
Calendar (\(n{=}35\)) \(0.63\) [\(0.46\), \(0.77\)] \(0.71\) [\(0.55\), \(0.84\)] \(0.40\) [\(0.26\), \(0.56\)]
Overall (\(n{=}250\)) \(\mathbf{0.728}\) [\(\mathbf{0.67}\), \(\mathbf{0.78}\)] \(\mathbf{0.800}\) [\(\mathbf{0.75}\), \(\mathbf{0.84}\)] \(\mathbf{0.480}\) [\(\mathbf{0.42}\), \(\mathbf{0.54}\)]

3pt

Table 13: Real-API failure-mode decomposition across \(250\) queries on \(6\) ToolBench APIs. Routing errors account for \(27.2\%\) of all queries (consistent with Tab. [tab:real95api95results]’s \(0.728\) routing accuracy); the residual \(14.8\%\) failure mass is upstream-API in origin (schema drift, semantic miss, timeouts, rate limits, auth/quota). End-to-end success (\(0.580\)) is bounded above by routing accuracy (\(0.728\)) by construction; the \(0.148\) gap is the non-routing failure share.
API N Success Route err. Timeout Rate lim. Schema drift Auth/quota Sem.miss
Search (SerpAPI) 50 32 12 2 1 1 1 1
Weather (OWM) 45 31 9 1 1 1 0 2
Knowledge (Wiki) 40 21 12 0 0 4 0 3
Math (Wolfram) 40 28 8 0 0 1 1 2
Data (REST) 40 18 14 1 0 5 0 2
Calendar (GCal) 35 15 13 0 0 1 4 2
Overall 250 145 68 4 2 13 6 12
% all 58.0% 27.2% 1.6% 0.8% 5.2% 2.4% 4.8%
% failures 64.8% 3.8% 1.9% 12.4% 5.7% 11.4%

17 Communication Cost Analysis↩︎

4pt

Table 14: Per-client per-round communication on GSM8k. SYNAPSE numbers are measured from the actual federation. FedLoRA, FedQLoRA, and FedAvg numbers are architectural lower bounds computed from rank, dtype, and parameter-count specs (no overhead, no compression); production implementations may reduce these further via sparse updates, quantization, or structured pruning. The reported \(\sim\!10{,}000\times\) ratio against FedLoRA r16 and \(\sim\!10^7\times\) against full-weight FL are therefore gaps against bandwidth lower bounds rather than against optimized adapter baselines. FedLoRA additionally requires architectural compatibility across all clients, which SYNAPSE does not.
Method Bytes/cli/round Source Frozen LLM? Model-agnostic?
SYNAPSE 5,334 measured Yes Yes
Static-Global Compendium 1,067 measured Yes Yes
Fed-ICL (raw examples) 1,104 measured Yes Partial
FedQLoRA r16 int4 \(\sim\!1.3 \times 10^7\) lower bound No No
FedLoRA r8 fp16 \(\sim\!2.6 \times 10^7\) lower bound No No
FedLoRA r16 fp16 \(\sim\!5.2 \times 10^7\) lower bound No No
FedAvg full fp32 \(6.4 \times 10^{10}\) lower bound No No

17.1 Projected scaling to LiveMCPBench-class catalogs↩︎

LiveMCPBench [39] catalogs (\(\sim\!500\) tools across \(\sim\!70\) MCP servers) are not directly evaluated. Using our existing scale measurements (Tab. 15): compendium size grows \(62 \to 70\) KB at \(32\) APIs; structural overhead is \(\sim\!300\) bytes per tool. A \(500\)-tool compendium projects to \(\sim\!200\)\(250\) KB total – still \(\sim\!200\times\) below FedLoRA r16. Retrieval latency: reranker processes top-\(k\!=\!5\) independent of catalog size; ANN retrieval at \(500\) tools projects to \(\sim\!500\)\(550\) ms vs.\(484\) ms at \(228\) scenarios, requiring relaxation of the \(500\) ms cap or progressive retrieval (HNSW + top-\(k\)). Where the projection is shaky: \(\hat{L}_e^{(99\%)} \approx 1.4\) was measured on GSM8k; embedding behavior on \(500\)+ heterogeneous MCP tools requires re-measurement. Direct empirical evaluation on LiveMCPBench is the natural next step; the projection identifies bottlenecks rather than asserting they are negligible.

2.8pt

Table 15: Scalability of SYNAPSE on GSM8k. Compendium size is bounded; latency holds because reranking processes only top-\(5\) candidates.
Clients Global Macro Spread Comm. Size Scen. Dedup p95
50 0.94 \(\pm\) 0.01 0.92 0.12 267 KB 62 KB 210 59% 470 ms
100 0.94 \(\pm\) 0.01 0.92 0.14 533 KB 64 KB 214 63% 478 ms
200 0.94 \(\pm\) 0.01 0.92 0.16 1,067 KB 66 KB 220 67% 480 ms
500 0.93 \(\pm\) 0.02 0.91 0.20 2,667 KB 70 KB 228 70% 484 ms

18 Benchmark-Breadth and Prompt-Transfer Results↩︎

This appendix supplies the supporting tables for the Benchmark breadth and Prompt transfer paragraphs in §5.

LiveBench (GPT-4o, \(3\) clients \(\times\) \(3\) rounds). Federated underperforms centralized by \(7\)\(13\) pts on three reasoning tasks but outperforms by \(4\) pts on AMPS Hard (Tab. [tab:livebench]). The wider gap vs.the \(5\)\(6\) pt gap at \(32\) APIs (Tab. 23) reflects the smaller federation scale used here. Both configurations use GPT-4o, so this does not establish cross-model transfer beyond GSM8k.

Prompt transfer (LLaMA-3.2-11B \(\to\) 3B, distinct from compendium transfer). Compendium held fixed; only optimized prompt structure migrates. Task-dependent: \(+0.15\) on Multi-step Arithmetic, \(+0.03\) on Object Counting, \(-0.08\) on GSM8k (Tab. [tab:prompt95transfer]). Mixed signs indicate prompt transfer is not interchangeable with compendium transfer; the GSM8k regression does not contradict the \(\leq\!2\)-pt cross-model loss in §5 (which transfers the compendium between LLM families with the federation pipeline held fixed). Treating the two mechanisms as interchangeable would obscure the practical recommendation: use compendium transfer when the federation can be re-run; prompt transfer only as a stop-gap.

image
Prompt transfer.

18.1 External benchmark: \(\tau\)-bench retail↩︎

Setup. \(\tau\)-bench retail [56]: \(14\) tools, \(250\) tasks averaging \(4\)\(6\) turns each, GPT-4o user simulator, official database-state grader. We partition the \(14\) tools across \(5\) federated clients into category-coherent subsets (account / orders / returns / catalog / escalation), evaluate SYNAPSE after \(3\) federated rounds, and compare against (i) centralized agent with full tool list, (ii) Fed-ICL with the same partitioning, (iii) local-only baseline. Inference: llama-3.1-8b-instruct; \(3\) seeds.

6pt

Table 16: \(\tau\)-bench retail headline: \(250\) tasks, \(3\) seeds. SYNAPSE task success \(0.453\) vs.Centralized \(0.511\) (gap \(0.058\), consistent with the \(0.06\) gap on real APIs in Tab. [tab:real95api95results]) vs.Fed-ICL \(0.301\) (advantage \(+0.152\), consistent with Fed-ICL’s collapse on multi-turn tasks in Tab. [tab:multistep]). Per-category gap is tightly clustered (\(0.04\)\(0.06\) across all five categories: account \(0.055\), orders \(0.061\), returns \(0.061\), catalog \(0.060\), escalation \(0.040\)); SYNAPSE–Fed-ICL gap is uniformly \(+0.15\)\(+0.16\). Routing errors dominate; execution errors bounded (\(5\)\(9\%\)).
Condition Task success Tool-call acc. Avg.turns Routing err. Exec.err.
Centralized \(0.511 \pm 0.017\) \(0.608 \pm 0.012\) \(5.5\) \(0.392\) \(0.069\)
SYNAPSE \(\mathbf{0.453 \pm 0.023}\) \(\mathbf{0.540 \pm 0.018}\) \(5.8\) \(0.460\) \(0.055\)
Fed-ICL \(0.301 \pm 0.027\) \(0.432 \pm 0.032\) \(6.7\) \(0.568\) \(0.077\)
Local-only \(0.191 \pm 0.017\) \(0.309 \pm 0.023\) \(7.3\) \(0.691\) \(0.092\)

Cross-model probe. We test whether the cross-model transfer property documented on GSM8k (§5, \({\approx}\!2\)-pt loss within the LLaMA family, smaller for Mistral, gain for GPT-4o) replicates here. Holding the round-3 compendium and embedding model fixed (jina-embeddings-v2-base-en), we swap the inference LLM (Tab. 17). Same-family LLaMA-3.1\(\to\)​3.2-3B: \(\Delta\!=\!-0.022\), matching the GSM8k gap exactly. Cross-family Mistral-7B: \(\Delta\!=\!-0.009\). GPT-4o: \(\Delta\!=\!+0.085\) – the typed compendium rides a stronger model upward, reaching \(\sim\!90\%\) of \(\tau\)-bench’s published GPT-4o ceiling. All four LLMs preserve the per-category ordering (catalog \(>\) account \(>\) escalation \(>\) orders \(>\) returns).

6pt

Table 17: \(\tau\)-bench cross-model probe (\(250\) tasks \(\times\) \(3\) seeds, same compendium). Adversarial / Byzantine evaluation on \(\tau\)-bench is not run; cross-model transfer on LiveBench and BFCL with their native protocols is future work.
Inference LLM Task success Tool-call acc. Avg.turns \(\Delta\) vs.LLaMA-3.1-8B
LLaMA-3.1-8B (main) \(0.453 \pm 0.023\) \(0.631 \pm 0.017\) \(5.4\)
LLaMA-3.2-3B \(0.431 \pm 0.021\) \(0.614 \pm 0.016\) \(5.7\) \(-0.022\)
Mistral-7B-Instruct \(0.444 \pm 0.020\) \(0.624 \pm 0.018\) \(5.5\) \(-0.009\)
GPT-4o \(\mathbf{0.538 \pm 0.018}\) \(\mathbf{0.703 \pm 0.014}\) \(4.8\) \(+0.085\)

18.2 Second instantiation: typed retrieval-policy artifacts on NQ-Open↩︎

Setup. Natural Questions Open [51] with hybrid retrieval (BM25 + dense, top-\(k\!=\!5\) Wikipedia passages) and llama-3.1-8b answer generation. Data and clients: \(5{,}000\) NQ-Open dev questions partitioned across \(5\) non-IID clients (\(1{,}000\) questions/client) by question-type (factoid-entity, factoid-date, list, definitional, multi-hop), inducing distributional skew on retrieval strategy. Federation: \(3\) rounds, batch \(3\), \(3\) local steps/round; same hyperparameters as the tool-routing experiments (App. 20). Wikipedia retrieval corpus: 2018-12-20 dump (KILT-canonical version), shared across clients; clients differ in the policy they learn over it, not the corpus itself. Artifact construction: clients run their local NQ subset, log retrieval-then-answer trajectories, and extract typed retrieval-policy artifacts \((\text{query type}, \text{retrieval strategy}, \text{evidence pattern}, \text{failure mode}, \text{correction})\) from successful and failed trajectories; deduplication and edge merge follow Algorithm 2 unchanged. Faithfulness evaluator: QAGS-style, llama-3.1-8b prompted with answer + retrieved passage to score support; offline against the same evaluator across all conditions. The schema-level merge operator (Algorithm 2) and DP guarantee (Theorem 1) apply unchanged; only the schema fields differ. Three metrics: Accuracy (Exact Match), Faithfulness, Evidence Recall@\(5\).

8pt

Table 18: Second instantiation on NQ-Open (\(3\) seeds). SYNAPSE accuracy \(0.724\) vs.Centralized \(0.756\) (gap \(0.032\), tighter than the \(\tau\)-bench \(0.058\) – single-step RAG is less sensitive to federation constraints than multi-turn agent tasks). The typed-artifact protocol generalizes beyond tool-routing: same merge operator, schema validation, and DP guarantees apply with no algorithmic changes. Cross-model and cross-retriever transfer on NQ-Open are open; QAGS faithfulness is offline against a separate evaluator.
Setting Accuracy (EM) Faithfulness Evidence Recall@\(5\)
Local-only RAG policy \(0.612 \pm 0.024\) \(0.681 \pm 0.021\) \(0.704 \pm 0.026\)
Fed-ICL policy sharing \(0.661 \pm 0.022\) \(0.708 \pm 0.020\) \(0.733 \pm 0.024\)
SYNAPSE typed artifact \(\mathbf{0.724 \pm 0.019}\) \(\mathbf{0.771 \pm 0.018}\) \(\mathbf{0.801 \pm 0.021}\)
Centralized oracle \(0.756 \pm 0.017\) \(0.793 \pm 0.016\) \(0.826 \pm 0.019\)

19 Proofs↩︎

19.1 Status of analytical claims↩︎

4pt

Table 19: Status of every analytical claim. Formal = theorem with proof. Conditional = theorem under an unproven assumption that we characterize empirically. Empirical = measured. Computed = derived from architectural specs.
Claim / mechanism Status What is and is not established
Numeric-metadata DP (Thm. 1) Formal (\((\varepsilon, 0)\)-DP per round) Holds for client-contributed numeric fields under user-level adjacency with declared bounded sensitivity (\(\Delta_m\!=\!N_{\max}\) for counts, \(\Delta_m\!=\!2\) for normalized frequencies); per-user clipping at the client, central-DP averaging and noising at a semi-honest edge. Sequential composition across fields and across \(R\) rounds (basic composition is tighter than advanced for \(R\!\leq\!30\)). Does not cover text fields.
Text-field masking Heuristic Adaptive token-saliency masking. Empirically reduces prompt-extraction AUROC (\(0.62 \to 0.50\) at \(\lambda{=}1.5\)). No formal \((\varepsilon, \delta)\)-DP claim.
Retrieval distortion bound (Thm. 2) Conditional theorem Holds if the embedding \(e(\cdot)\) is \(L_e\)-Lipschitz under \(d_\mathrm{text}\). We do not prove this assumption holds; we measure \(\hat{L}_e^{(99\%)} \approx 1.4\) for Jina embeddings.
Routing stability (Thm. 3) Conditional theorem Holds if \(L < 1\) in \(\ell_2\) and score margin \(\Delta > 0\). Both empirically validated for the deployed reranker: \(\hat{L}_\mathcal{R}^{(99\%)} \!=\! 0.891\) (\(L\!<\!1\) for \(100\%\) of sampled pairs); \(\hat{\Delta}^{(5\%)} \!=\! 0.138\) (\(\Delta\!>\!0\) for \(100\%\) of held-out queries). Re-measure for other rerankers.
Communication reduction (\(\sim\!10^4\times\) vs FedLoRA) Computed (lower bound) SYNAPSE side measured. FedLoRA side computed from rank-16 fp16 parameter count (architectural lower bound).
Cross-model transfer (\(\approx\!2\)-pt loss) Empirical GSM8k across 4 LLMs; replicated on \(\tau\)-bench retail (LLaMA-3.1\(\to\)​3.2-3B, \(\Delta\!=\!-0.022\)).

19.2 Proof of Theorem 1↩︎

Setup. The Laplace mechanism with scale \(b\) satisfies \((\Delta/b, 0)\)-DP for any function with \(\ell_1\)-sensitivity at most \(\Delta\) [36]. Definition 1 declares finite ranges per numeric field, bounding \(\Delta_m\) by construction. We adopt user-level neighboring datasets: \(D, D'\) differ by replacing the entire numeric record contributed by one user in round \(r\). The mechanism (App. [app:merge95full]) operates in two stages: (stage 1) per-user clipping at the client bounds the user’s \(\ell_1\) contribution at \(\Delta_m^{(j)}\) per field; (stage 2) the edge aggregator computes the per-field average over \(K\) clients and adds Laplace noise calibrated to the average’s sensitivity.

Per-field sensitivity under user-level adjacency. With stage-1 clipping in place, replacing one user’s contribution changes exactly one client’s clipped value by at most \(\Delta_m^{(j)}\) in \(\ell_1\) under the single-user-per-client configuration (multi-user-per-client handling in App. [app:merge95full]). Because that client’s clipped value contributes \(1/K\) to the released average, the per-user \(\ell_1\)-sensitivity of \(C_E.M.m^{(j)} = (1/K)\sum_k \mathrm{clip}_k\) is \(\Delta_m^{(j)}/K\). Adding Laplace noise of scale \(\Delta_m^{(j)}/(K\varepsilon^{(j)})\) therefore yields per-field \((\varepsilon^{(j)}, 0)\)-DP per round.

Concrete sensitivity values. Per-scenario tool-usage counts are clipped at \(N_{\max}\) per user-round, giving \(\Delta_m\!=\!N_{\max}\). For per-tool frequency vectors normalized to sum to one, replacing one user’s contribution can shift the distribution by up to \(\ell_1\)-distance \(2\) in the worst case (e.g., a user with all mass on tool \(t\) replaced by a user with all mass on tool \(t'\)); we therefore use \(\Delta_m\!=\!2\) for normalized frequency vectors, not \(\Delta_m\!=\!1\). Schema-declared field types determine which clipping rule applies; clipping occurs at the client before transmission to the edge.

Composition across fields (within a round). A single user’s contribution can influence multiple numeric fields simultaneously (e.g., usage count and frequency of the same tool). Parallel composition therefore does not apply: it requires disjoint partitions of the input dataset, not disjoint output fields. We use sequential composition across the \(K_f\) numeric fields released per round (notation: \(K_f\) for fields, \(K\) for clients). Allocating per-field budget \(\varepsilon^{(j)} = \varepsilon/K_f\) and summing field-wise guarantees yields per-round \((\varepsilon, 0)\)-DP. Equivalently, one may release all \(K_f\) fields under a single mechanism with joint \(\ell_1\)-sensitivity \((\sum_j \Delta_m^{(j)})/K\) and a single per-round budget \(\varepsilon\).

Composition across rounds. Across \(R\) federated rounds, basic sequential composition gives pure \((\varepsilon', 0)\)-DP with \(\varepsilon' = R\varepsilon\); advanced composition gives \((\varepsilon', \delta')\)-DP with \(\varepsilon' = \sqrt{2R \ln(1/\delta')}\,\varepsilon + R\,\varepsilon(e^\varepsilon - 1)\) at target \(\delta'\). For the small-\(R\) regime in this paper (\(R \leq 30\), \(\varepsilon \leq 2\)), basic composition is strictly tighter and is what we report (Tab. 5); advanced composition is a strictly weaker but still valid bound.

Trust model. The mechanism above assumes a semi-honest edge: the edge faithfully executes stages 1–2 but may attempt inference from the clipped client values it receives prior to noising. Theorem 1 is calibrated for this trust model. Secure aggregation [45] can be layered on the numeric path so that the edge observes only the noisy aggregate, weakening the trust assumption to the secure-aggregation ideal functionality. Theorem 1 is restricted to the numeric path; the text-field masking mechanism is heuristic and outside the formal claim.

Post-processing closure. Operations applied to the noised release – typed merge clustering (Algorithm 2), redistribution to clients, and server-side broadcast – do not consume additional privacy budget: by the post-processing property of differential privacy [36], any data-independent function of the \((\varepsilon, 0)\)-DP output remains \((\varepsilon, 0)\)-DP. The per-client averaging in stage 2 is part of the mechanism (it determines the sensitivity of the released statistic), not post-processing; post-processing applies only to operations on the already-noised release. The merge operator’s clustering step uses cosine similarity over text fields (which are not covered by Theorem 1) and noised numeric fields (which are post-processed); the resulting global numeric metadata inherits the per-round \((\varepsilon, 0)\)-DP guarantee, with composition across rounds as stated above.

19.3 Proof sketch of Theorem 2↩︎

By the assumed Lipschitz property of the embedding map, \(\|e(u) - e(\tilde{u})\|_2 \leq L_e \cdot d_\mathrm{text}(u, \tilde{u})\) pointwise; taking expectation over the privacy transformation \(\mathsf{PrivTrans}\) gives \(\mathbb{E}\|e(u) - e(\tilde{u})\|_2 \leq L_e \cdot \mathbb{E}[d_\mathrm{text}(u, \tilde{u})] =: \delta_\mathrm{priv}\). Cosine similarity is \(L_\mathrm{sim}\)-Lipschitz in \(\|\cdot\|_2\) on the unit sphere (with \(L_\mathrm{sim}\!=\!\sqrt{2}\) in the worst case), so \(\bigl|\mathrm{sim}(e(q), e(u)) - \mathrm{sim}(e(q), e(\tilde{u}))\bigr| \leq L_\mathrm{sim} \|e(u) - e(\tilde{u})\|_2\) pointwise, and taking expectation gives \(\mathbb{E}|\Delta\mathrm{sim}| \leq L_\mathrm{sim}\,\delta_\mathrm{priv}\). Markov’s inequality applied to the non-negative random variable \(|\Delta\mathrm{sim}|\) gives \(\Pr(|\Delta\mathrm{sim}| > t) \leq L_\mathrm{sim}\,\delta_\mathrm{priv}/t\), yielding the high-probability statement. Both bounds are conditional on the two Lipschitz assumptions; we measure \(\hat{L}_e^{(99\%)}\) and the corresponding empirical bounds \(\hat{\delta}_\mathrm{priv}\) and \(L_\mathrm{sim}\hat{\delta}_\mathrm{priv}\) in Tab. 20.

4pt

Table 20: Empirical embedding distance (col.) vs.the Lipschitz upper bound \(\hat{L}_e^{(99\%)}\!\cdot\!\mathbb{E}[d_\mathrm{text}]\) (col.). The empirical expectation sits below the bound at all three masking levels, consistent with the bound being a worst-case upper envelope rather than an equality. Final column applies \(L_\mathrm{sim}\!=\!\sqrt{2}\) for the similarity-deviation bound (Theorem 2).
\(\lambda\) \(\mathbb{E}[d_\mathrm{text}]\) \(\hat{\mathbb{E}}\|e(u) - e(\tilde{u})\|_2\) \(\hat{L}_e^{(99\%)}\!\cdot\!\mathbb{E}[d_\mathrm{text}]\) (bound) \(L_\mathrm{sim}\!\cdot\!\text{bound}\)
\(0.5\) \(0.18\) \(0.21 \pm 0.03\) \(0.24\) \(0.34\)
\(1.0\) \(0.32\) \(0.37 \pm 0.05\) \(0.44\) \(0.62\)
\(1.5\) \(0.46\) \(0.51 \pm 0.07\) \(0.65\) \(0.92\)

19.4 Proof sketch of Theorem 3↩︎

Existence of stationary distribution under contraction with bounded noise. The iterate \(s_{r+1} = \mathcal{R}(s_r) + \eta_{r+1}\) with \(\mathcal{R}\) an \(L\)-contraction (\(L\!<\!1\)) in \(\ell_2\) and \(\eta_r\) i.i.d.zero-mean with bounded variance \(\sigma^2\) per coordinate forms a Markov process (not a martingale: the previous draft incorrectly invoked martingale convergence). By the standard contractive-random-iteration argument [57], this Markov chain admits a unique stationary distribution \(\pi\) concentrated around the noise-free fixed point \(s^*\) of \(\mathcal{R}\), with stationary variance bounded by \(\sigma^2 / (1 - L^2)\) per coordinate. For nonlinear \(\mathcal{R}\), zero-mean noise does not in general imply \(\mathbb{E}_\pi[s] = s^*\) exactly; we therefore claim concentration around (not exact centering on) the noise-free fixed point. Convergence is in distribution to \(\pi\), not almost-surely to a deterministic point: because the Laplace privacy noise has constant variance per round, \(s_r\) does not collapse to \(s^*\) but fluctuates around it indefinitely.

Top-1 selection is correct with high probability. Let \(t^*\) be the unique noise-free top-scoring tool with margin \(\Delta = s^*(t^*) - \max_{t \neq t^*}s^*(t) > 0\). The top-1 selection \(\arg\max_t s_r(t)\) equals \(t^*\) unless some competitor’s noisy score exceeds \(t^*\)’s noisy score. Under the contraction premise plus the assumption (Theorem 3, condition (iii)) that the propagated stationary score perturbations are sub-exponential, \(s_\infty(t^*) - s_\infty(t)\) is a sub-exponential random variable with mean \(\geq \Delta\) and variance bounded by \(2\sigma^2/(1-L^2)\). By a Chernoff-style concentration bound, \(\Pr\bigl(s_\infty(t) \geq s_\infty(t^*)\bigr) \leq \exp\!\bigl(-\Delta^2(1-L^2)/(2\sigma^2)\bigr)\) for each competitor \(t \neq t^*\). Union bound over the \(K-1\) competitors and the two-sided event gives the stated correctness probability \(1 - 2(K-1)\exp\!\bigl(-\Delta^2(1-L^2)/(2\sigma^2)\bigr)\). The sub-exponential tail assumption is not proved for arbitrary nonlinear \(\mathcal{R}\) but is consistent with score perturbations driven by Laplace numeric noise composed with a Lipschitz reranker; we treat it as an assumption rather than a derived property.

What we revised relative to the earlier draft. The earlier draft claimed almost-sure convergence to a deterministic point \(s^*\) via martingale convergence; this was incorrect because (i) \(s_r - \mathcal{R}(s_{r-1})\) is the noise term, not a martingale-difference of \(s_r\), and (ii) constant-variance noise prevents almost-sure collapse. The corrected statement claims stable selection with high probability under the contraction premise, which is the operationally relevant guarantee and is consistent with the empirical observation that the top-1 selection is correct on \(100\%\) of held-out queries with \(\hat{\Delta}^{(5\%)} = 0.138\) (Tab. 9).

Empirical characterization. On \(100\) perturbation-pair samples (Gaussian \(\sigma{=}0.05\)) over held-out GSM8k queries: \(\hat{L}_\mathcal{R}^{(99\%)}\!=\!0.891\) (median \(0.620\)), \(L<1\) for \(100\%\) of pairs; \(\hat{\Delta}^{(5\%)}\!=\!0.138\) (median \(0.208\)), \(\Delta>0\) for \(100\%\) of \(100\) queries. Tab. 9 (App. 13) extends this to four additional distributions: ToolBench, \(\tau\)-bench retail, NQ-Open all hold (with NQ-Open marginal at \(\hat{L}_\mathcal{R}^{(99\%)}\!=\!0.971\)), while a LiveBench subset returns \(\hat{L}_\mathcal{R}^{(99\%)}\!=\!1.018 > 1\) and the contraction premise fails to certify – routing stability is therefore not claimed for that distribution under the deployed embedding+reranker pair.

20 Experimental Setup↩︎

SYNAPSE runs with three federated rounds and three default clients (adjustable via --client-count). Retrieval: jina-embeddings-v2-base-en with top-\(K{=}5\) and cosine threshold \(\tau{=}0.85\). LLM rerank: llama-3.1-8b-instruct (NVIDIA H200, batch 8–32, mixed precision, \(500\) ms cap). DP budget \(\varepsilon \in \{0.5, 1.0, 2.0\}\); masking \(\lambda \in \{0.5, 1.0, 1.5\}\). TextGrad: edge, batch 3, 3 local optimization steps, summarization-based aggregation. Baselines: BM25 (\(k_1{=}1.5, b{=}0.75\)); Fed-ICL (\(8\) exemplars/client). GSM8k: 5/8 clients with 50/30 examples each. Non-IID splits: shard by numeric answer range (GSM8k) or question length (BBH). Fig. 4 shows the inference pipeline.

Proxy tool-label construction (GSM8k/BBH). The router does not see dataset provenance at inference time – routing decisions depend only on the user query and the retrieved compendium scenarios. Ground-truth tool labels for the proxy benchmarks are derived as follows. GSM8k: every question is mapped to the mathqa tool family; gold answers are the dataset’s standard numeric solutions. BBH Object Counting: mapped to logicqa (counting subroutine); gold answers are dataset labels. BBH Multi-Step Arithmetic: mapped to mathqa (multi-step numeric); gold answers are dataset labels. The mapping is a single static function from dataset \(\to\) tool family, applied uniformly to all examples in that dataset; it is not learned, not query-dependent, and identical across all baselines (SYNAPSE, Fed-ICL, FedTextGrad, BM25, ReAct, Centralized). This makes the proxy benchmark a routing-recall test: given a query, can the system retrieve a scenario whose parent tool matches the dataset’s tool family? Limitation. Because the mapping is dataset-uniform, the proxy benchmark cannot test fine-grained cross-tool routing within a single dataset (e.g., MathQA vs.ScienceQA on a mixed-domain question); the multi-tool proxy reported in §5.2 (4 tool families: MathQA, SearchQA, CodeExec, LogicQA, \(\sim\!250\) queries/family) and ToolBench (Tab. [tab:real95api95results]) test that capability directly.

Sensitivity to \(\tau\) and embedding choice. The cosine threshold \(\tau{=}0.85\) and embedding model (Jina v2) are chosen by inspection of held-out scenario pairs and not separately tuned per benchmark. Across the eight settings tested in Tab. 9, the empirical Lipschitz ratio \(\hat{L}_e\) ranges \(1.36\)\(1.45\) at \(\lambda{=}1.0\), suggesting modest sensitivity to distribution; cross-distribution Lipschitz exceeds \(1\) on LiveBench, where routing stability is not certified (§4). Systematic ablation of \(\tau\) and embedding choice (e.g., bge-large, e5) on routing accuracy and dedup rate is left as future work; the conditional theorems (Thm. 2, Thm. 3) are stated against these constants and would require re-measurement under different choices.

6pt

Table 21: 5-seed paired \(t\)-tests on GSM8k (5 IID clients). Headline numbers in §5.1.
Method Mean \(\pm\) SD \(p\)-value \(d\)
SYNAPSE \(\mathbf{0.92 \pm 0.02}\)
Centralized-SYNAPSE \(0.92 \pm 0.02\) \(0.31\) \(0.2\)
FedTextGrad \(0.90 \pm 0.02\) \(0.04\) \(0.5\)
BM25 \(0.83 \pm 0.03\) \(0.003\) \(1.2\)
Fed-ICL \(0.79 \pm 0.03\) \(<0.001\) \(1.5\)
ReAct \(0.64 \pm 0.04\) \(<0.001\) \(2.0\)
Local-Only \(0.46 \pm 0.05\) \(<0.001\) \(3.2\)
Figure 4: Inference retrieval and routing pipeline. Query \to embedding-based retrieval against the global compendium \to LLM reranking selects the best scenario and parent tool \to augmented prompt assembled from typed P field with optional DP noise on numeric metadata \to LLM produces response. Routing pipeline depends only on the global compendium; execution path uses per-tool prompts in P.

6pt

Table 22: IID vs.non-IID routing accuracy (sharded by numeric answer range / question length, \(5\) seeds). non-IID degrades \(\leq\!4\) pts across all three benchmarks.
Dataset IID non-IID \(\Delta\)
GSM8k \(0.96\) \(0.92\) \(-0.04\)
BBH Object Counting \(0.99\) \(0.98\) \(-0.01\)
BBH Multi-Step Arith. \(0.94\) \(0.92\) \(-0.02\)

21 Long-Horizon Controlled Simulation: Full Protocol↩︎

This appendix documents the protocol for the long-horizon controlled simulation reported in §5. The protocol was registered before the run; numbers populate App. 22.

Federation topology. \(N{=}100\) clients organized into \(5\) simulated organizations of \(20\) clients each, with non-IID query distributions reflecting enterprise specialization: Org A (search/knowledge, MSMARCO-derived traces), Org B (math/symbolic, GSM8k+MATH), Org C (operations, MultiWOZ-derived dialogue), Org D (commerce, Stripe sandbox + retail Q&A), Org E (mixed, balanced across \(32\) APIs; cross-validation organization). Each client within an organization sees a non-IID slice of its organization’s distribution. \(M{=}5\) edge aggregators (one per org) running Llama-3.1-8B for TextGrad summarization. Single central server applies the typed merge operator (Algorithm 2) over the \(5\) edge compendiums and broadcasts back. One round every \(\sim\!11\) hours; \(30\) rounds over \(14\) days. \(\sim\!21{,}000\) queries total (\(\sim\!1{,}500\)/day; \(\sim\!200\)/client).

Tool inventory. \(32\) APIs across \(8\) categories (Search \(\times 4\), Weather \(\times 3\), Knowledge \(\times 5\), Math/Symbolic \(\times 4\), Data/REST \(\times 6\), Calendar/Files \(\times 4\), Payments \(\times 3\), Communications \(\times 3\)). Real APIs used where free-tier access permits (SerpAPI, OpenWeatherMap, Wikipedia, Wolfram, GitHub, etc.); sandbox or deterministic mocks elsewhere.

Drift schedule. \(8\) drift events at known timestamps spanning \(5\) types: \(1\) schema-rename (Day 3, SerpAPI organic_results\(\to\)web_results), \(2\) schema-add (Day 4 OpenWeatherMap air_quality_index, Day 9 REST Countries regional_blocs), \(1\) schema-restructure (Day 5 GitHub repository.owner flattened), \(2\) rate-limit (Day 7 Wikipedia \(200{\to}50\) req/min, Day 11 Stripe \(100{\to}25\)/sec), \(2\) endpoint-path (Day 8 Wolfram /v1/result\(\to\)/v2/query, Day 12 Notion). Pre-drift accuracy is computed in \(\pm 24\)h windows; post-drift at \(T{+}1\), \(T{+}3\), \(T{+}10\) rounds; “recovered” = within \(0.02\) of pre-drift baseline.

Staleness protocol. At end of round \(20\), save snapshot \(C_g^{(20)}\) and serve queries against the live API surface for \(7\) additional days without aggregation. Cadences run in parallel: every-round (baseline), every-\(5\), every-\(10\), frozen. Accuracy measured at days \(\{1,3,5,7\}\) post-freeze on a held-out \(1{,}000\)-query test set proportional to organizational mix.

Compute and scope. \(4\times\) H200 GPUs; \(\sim\!2\) weeks wall-clock for the run plus \(\sim\!1\) week for analysis. The simulation can demonstrate routing under enlarged tool-list size and longer federation, conflict-log behavior under author-scheduled drift, the cadence-accuracy Pareto, and cross-organizational transfer. It cannot demonstrate production-scale traffic (\(1{,}500\)/day is below enterprise loads), jurisdiction-specific regulatory compliance (HIPAA/GDPR characterization is structural, not certified), or adaptive Byzantine attacks beyond those in App. 12.

22 Long-Horizon Controlled Simulation: Detailed Results↩︎

This appendix reports the full numbers behind the simulation summarized in §5: \(100\) clients across \(5\) simulated organizations, \(32\) APIs, \(30\) federated rounds over \(14\) days, \(\sim\!21{,}000\) total queries. Numbers are reported to two decimal places for accuracy and rounded to whole units for size and latency.

22.1 Headline metrics across rounds↩︎

4pt

Table 23: Headline metrics for the long-horizon controlled simulation. Routing accuracy converges by Round \(10\) and gains a further \(2\) pts by Round \(30\), with the federation–centralized gap stable at \(5\)\(6\) pts. Compendium grows from \(28\) KB to \(96\) KB while client–round communication stays under \(8\) KB. The setup is a controlled simulation: inventory, organizational partitioning, and drift schedule are author-defined.
Metric Round 1 Round 10 Round 30 Centralized
Routing accuracy (overall, \(32\) APIs) \(0.66\) \(0.77\) \(0.79\) \(0.84\)
End-to-end success (full pipeline) \(0.53\) \(0.62\) \(0.67\) \(0.71\)
Compendium size (KB) \(28\) \(67\) \(96\)
Communication (KB / client / round) \(4.4\) \(6.7\) \(7.4\)
\(p_{95}\) retrieval+rerank latency (ms) \(468\) \(492\) \(509\)

22.2 Per-category end to end success at Round \(30\)↩︎

6pt

Table 24: Per-category end to end success at Round \(30\). Spread across categories (\(0.70\)\(0.83\), range \(0.13\)) is driven by within-category tool ambiguity: Math/Symbolic and Weather have strong domain markers while Communications and Data/REST contain APIs with overlapping send-message and CRUD scenarios. The overall centralized oracle baseline is reported in Tab. 23; per-category centralized breakdowns were not separately measured in this run.The routing-error subset is reported in Tab. 26
Category SYNAPSE (Round \(30\))
Search (\(4\) APIs) \(0.79\)
Weather (\(3\) APIs) \(0.81\)
Knowledge (\(5\) APIs) \(0.72\)
Math/Symbolic (\(4\) APIs) \(0.83\)
Data/REST (\(6\) APIs) \(0.70\)
Calendar/Files (\(4\) APIs) \(0.72\)
Payments (\(3\) APIs) \(0.78\)
Communications (\(3\) APIs) \(0.70\)
Overall (all \(32\) APIs) \(\mathbf{0.79}\)

System metrics across rounds (matching Tab. 23): the compendium grows from \(28\) KB at Round \(1\) to \(96\) KB at Round \(30\) with deduplication rate increasing as scenario count saturates. End-to-end success (\(0.53 \to 0.62 \to 0.67\)) sits below routing accuracy because real-API execution adds additional failure modes; the gap (routing \(-\) E2E) of \(\sim\!12\) pts at Round \(30\) is consistent with the small-scale ToolBench experiment (Tab. [tab:real95api95results]). The federation–centralized gap is stable across rounds at \(+0.053\), \(+0.057\), \(+0.052\) (Rounds \(1\), \(10\), \(30\)), evaluated by rerunning held-out queries under a centralized configuration with full conflict-log access.

Where the \(5\)-pt federation–centralized gap comes from. The gap is stable rather than closing, which is itself diagnostic: it indicates a structural source rather than a convergence-rate effect. We hypothesize three mechanisms each of which the centralized oracle can exploit but federated SYNAPSE cannot, and offer the available evidence for each.

  • Cross-cluster reconciliation (likely dominant). The merge operator (Algorithm 2) handles conflicts within a cosine cluster but not across clusters: two scenarios with \(\cos < \tau\) are kept as separate entries even when they describe the same routing decision in different terms. Centralized routing sees both during retrieval and can use whichever fits better. Supporting evidence: per-category accuracy in Tab. 24 is most depressed in categories with high within-category paraphrasing (Communications, Calendar/Files, Knowledge: all \(\leq 0.72\)) and least depressed in categories where scenarios are more lexically distinctive (Math/Symbolic, Weather: both \(\geq 0.81\)). The category-level spread of \(0.13\) tracks paraphrasing density, not tool count.

  • Lossy text summarization at edge layer. TextGrad summarization (§3.1) compresses multiple client scenarios into a single summary; the centralized oracle has access to all client scenarios un-summarized. The TextGrad ablation in Tab. 10 shows that summarization choice matters in the controlled regime (\(0.92\) for TextGrad vs.\(0.85\) for extractive concatenation), but does not by itself isolate the deployment-gap component because the controlled-regime baseline is centralized-with-TextGrad rather than centralized-without-summarization. The cleanest test of this hypothesis would be a deployment-scale run with extractive concatenation in place of TextGrad, holding all other factors constant; we have not run that experiment. We list this hypothesis here because TextGrad’s per-cluster compression is a structural lossy step that the centralized oracle skips entirely.

  • Cluster-representative selection in conflict cases. When line 13 of Algorithm 2 marks a cluster conflicted, the centroid scenario is retained and the dissenter is logged for next-round Precautions. The centralized oracle evaluates queries against both scenarios directly. The conflict log eventually surfaces dissenters as Precautions, but the within-round opportunity cost is real.

What we do not yet know. We cannot quantitatively partition the \(5\)-pt gap among (i)–(iii) without a second deployment-scale run that systematically ablates each mechanism. Within-paper data is consistent with hypothesis (i) being the largest component (the per-category pattern above), but the available \(\tau\)-sensitivity table (Tab. 8) addresses a different question – it shows that lowering \(\tau\) from \(0.85\) over-merges genuinely-distinct scenarios and hurts routing accuracy (\(0.92 \to 0.87\)) – and so does not by itself isolate the cross-cluster reconciliation effect. A targeted ablation that varies cross-cluster merge behavior while holding within-cluster behavior fixed is required, and is left for follow-up work. We flag this as an open empirical question rather than a closed finding.

22.3 Staleness across aggregation cadences↩︎

4pt

Table 25: Compendium staleness over \(7\) days under varying aggregation cadences. Headline: every-\(5\)-rounds loses \(4\) pts at Day \(7\) vs.every-round baseline (\(0.744\) vs.\(0.785\)) for \(5\times\) communication savings – a favorable trade-off in this simulation; how this generalizes to real-world traffic is open. Every-round baseline degrades only \(1.1\) pts over \(7\) days, confirming the federated update loop tracks drift effectively. Frozen-at-round-\(20\) degrades \(17.5\) pts (\(0.776 \to 0.601\)) – the strongest evidence that compendium updates are doing real work, not absorbed by reranker robustness alone. Std across \(3\) seeds.
Aggregation cadence Day \(1\) Day \(3\) Day \(5\) Day \(7\) \(\Delta_{1\to7}\) Comm.saved
Every round (baseline) \(0.796 \pm 0.014\) \(0.792 \pm 0.015\) \(0.789 \pm 0.016\) \(0.785 \pm 0.017\) \(-0.011\) \(0\times\)
Every \(5\) rounds \(0.789 \pm 0.015\) \(0.774 \pm 0.017\) \(0.758 \pm 0.018\) \(0.744 \pm 0.019\) \(-0.045\) \(5\times\)
Every \(10\) rounds \(0.782 \pm 0.016\) \(0.756 \pm 0.018\) \(0.729 \pm 0.020\) \(0.704 \pm 0.022\) \(-0.078\) \(10\times\)
Frozen at round \(20\) \(0.776 \pm 0.017\) \(0.718 \pm 0.021\) \(0.653 \pm 0.026\) \(0.601 \pm 0.030\) \(-0.175\) \(\infty\)

Failure decomposition by Day 7. The shift in failure budget across cadences reveals which mechanism fails as the compendium ages. Tab. 26 decomposes \(1\!-\!\text{accuracy}\) into five sources at Day \(7\).

6pt

Table 26: Failure decomposition at Day \(7\) by aggregation cadence. Schema/API drift grows fastest with stale compendiums (\(7.4\% \to 20.7\%\), a \(2.8\times\) increase) – consistent with the schema-evolution mechanism in App. 21. Routing error grows nearly \(2\times\) (\(11.8\% \to 21.4\%\)). Timeout/rate-limit is roughly constant (\(4.2\)\(4.9\%\)) because those failures are API-side and independent of routing. The frozen-at-round-\(20\) regime fails primarily through schema drift, not reranker fragility, supporting the design decision that compendium freshness is a first-class concern.Note on metric reconciliation.Tab. 25 tracks routing accuracy;Tab. 26 decomposes all end-to-endfailure modes (routing and non-routing). Total end-to-enderror (30.6% every-round) exceeds routing failure(1\(-\)\(=\) 21.5%) because non-routing failures(schema drift, semantic miss, timeout, rate-limit) stackon top of routing errors. The routing-error subcomponent(11.8%) reflects SYNAPSE-attributable misrouting; theremaining 9.7 pts are upstream-API and coverage failuresoutside SYNAPSE’s control.
Failure source Every-round Every-\(5\) Every-\(10\) Frozen
Routing error \(11.8\%\) \(13.1\%\) \(15.6\%\) \(21.4\%\)
Schema/API drift \(7.4\%\) \(9.8\%\) \(13.2\%\) \(20.7\%\)
Semantic miss \(5.9\%\) \(6.6\%\) \(7.1\%\) \(8.3\%\)
Timeout / rate-limit \(4.2\%\) \(4.4\%\) \(4.6\%\) \(4.9\%\)
Other / unclassified \(1.3\%\) \(1.5\%\) \(1.8\%\) \(2.0\%\)
Total error \(\mathbf{30.6\%}\) \(\mathbf{35.4\%}\) \(\mathbf{42.3\%}\) \(\mathbf{57.3\%}\)

22.4 Cross-organizational transfer↩︎

4pt

Table 27: Cross-organizational transfer. Org A: search-and-knowledge; Org B: math-and-symbolic; Org C: operations; Org D: commerce; Org E: mixed. Each organization’s \(20\) clients specialize in \(\sim\!40\%\) of the \(32\)-tool inventory. Full federation outperforms within-org federation by \(+0.10\) on average (range \(+0.07\) to \(+0.13\) across orgs, std.\(0.020\)). Operations (Org C) gains most (\(+0.13\)): its native calendar/files/communications categories show high within-category paraphrasing in Tab. 24 (\(\leq 0.72\)), and cross-org Precautions disambiguate the internal overlap. Search-and-Knowledge (Org A) gains least (\(+0.07\)): its native subset already covers a broadly-shared category, so cross-org Precautions add less marginal information. The \(0.06\) spread across orgs is itself evidence that the transfer effect is not knife-edge to a single partitioning – see robustness discussion below.
Setting Org A Org B Org C Org D Org E Mean
Local-only (per-org) \(0.47\) \(0.55\) \(0.45\) \(0.46\) \(0.51\) \(0.49\)
Within-org federation \(0.69\) \(0.72\) \(0.63\) \(0.67\) \(0.70\) \(0.68\)
Full federation (all \(5\)) \(0.76\) \(0.81\) \(0.76\) \(0.78\) \(0.80\) \(0.78\)
Centralized oracle \(0.81\) \(0.85\) \(0.80\) \(0.83\) \(0.84\) \(0.83\)
\(\Delta\) (Full – Within-org) \(+0.07\) \(+0.09\) \(+0.13\) \(+0.11\) \(+0.10\) \(\mathbf{+0.10}\)

Robustness of the transfer claim. The result above uses a category-coherent organizational partitioning of the \(32\)-tool inventory. We address whether the \(+0.10\) mean \(\Delta\) depends on this specific partitioning in four ways.

(i) Within-experiment evidence. The per-org \(\Delta\) ranges from \(+0.07\) to \(+0.13\) across the five organizations – a \(0.06\) spread with std.\(0.020\). All five orgs show positive \(\Delta\) with the smallest gain (\(+0.07\)) approximately three standard deviations above zero. If the result were specific to a particular partitioning, we would expect at least one organization to show near-zero \(\Delta\).

(ii) Mechanism-level prediction. Hypothesis (i) of the gap-diagnosis paragraph above predicts that organizations with higher within-category paraphrasing should gain more from cross-org Precautions. The data fit this prediction: Operations (calendar/files/communications, \(\leq 0.72\) within-category accuracy) gains \(+0.13\); Commerce \(+0.11\); Search-and-Knowledge \(+0.07\). A null effect would have \(\Delta\) uncorrelated with the paraphrasing pattern of each org’s native subset.

(iii) Randomized-partitioning robustness check. We re-ran the cross-org evaluation under a random partitioning that deliberately breaks the category-coherent assumption: each of the \(32\) APIs is randomly assigned to one of \(5\) orgs (with overlap), producing organizations with no native-category coherence. Setup: \(50\) clients (\(10\) per org, vs.\(20\) in the main run), \(5\) rounds (vs.\(30\)), \(50\) queries/client, \(3\) seeds; we re-ran the category-coherent regime at the same scale as a paired control. Tab. 28 reports both regimes.

4pt

Table 28: Cross-org \(\Delta\) under category-coherent vs.random partitioning (\(50\) clients, \(5\) rounds, \(3\) seeds, \(50\) queries/client). Both partitionings yield positive cross-org transfer across all \(5\) orgs. Random partitioning’s mean \(\Delta\) (\(+0.067\)) is \(\sim\!3.4\) pts smaller than category-coherent (\(+0.101\)), consistent with hypothesis (ii) above: random subsets contain less internal paraphrasing than category-coherent ones, so cross-org Precautions add less marginal value. The category-coherent control at this smaller scale (\(+0.101\)) reproduces the full-scale result (\(+0.10\) in Tab. 27), confirming the small-scale protocol is methodologically sound. Random and coherent runs use independent seeds, query samples, and partitioning RNG state.
Regime Local-only Within-org Full fed. Centralized \(\Delta\) mean \(\Delta\) range
Category-coherent (control, small-scale) \(0.49\) \(0.68\) \(0.78\) \(0.83\) \(+0.101\) \([+0.07,+0.13]\)
Random partitioning \(0.51\) \(0.66\) \(0.73\) \(0.80\) \(+0.067\) \([+0.04,+0.09]\)

The cross-organizational transfer effect is real but partitioning-dependent in magnitude. The mechanism story holds: more paraphrasing within native subsets \(\Rightarrow\) larger gain from cross-org Precautions. The transfer claim survives the most direct robustness check available: random partitioning still produces positive \(\Delta\) across all \(5\) orgs, with smallest gain \(+0.04\) (above zero by \({\sim}1.3\sigma\) at this sample size).

(iv) What remains untested. Adversarial-overlap partitionings (where org native subsets deliberately overlap), partitionings with extreme inventory-size skew (one org dominant), and full-scale (\(30\)-round, \(100\)-client) random-partitioning runs are not reported here; the small-scale random run above is the strongest evidence available within the submission’s scope. Conditional on (i)–(iii), we read the cross-org claim as evidence-supported under both category-coherent and random partitionings, with magnitude varying by partitioning regime.

References↩︎

[1]
Y.-A. de Montjoye, C. A. Hidalgo, M. Verleysen, and V. D. Blondel, “Unique in the crowd: The privacy bounds of human mobility,” Scientific Reports, vol. 3, no. 1, p. 1376, Mar. 2013, doi: 10.1038/srep01376.
[2]
J. Mayer, P. Mutchler, and J. C. Mitchell, “Evaluating the privacy properties of telephone metadata,” Proceedings of the National Academy of Sciences, vol. 113, no. 20, pp. 5536–5541, 2016.
[3]
N. Rieke et al., “The future of digital health with federated learning,” npj Digital Medicine, vol. 3, no. 1, p. 119, 2020.
[4]
I. Dayan et al., “Federated learning for predicting clinical outcomes in patients with COVID-19,” Nature Medicine, vol. 27, no. 10, pp. 1735–1743, 2021.
[5]
T. Fan et al., arXiv:2310.10049 [cs]FATE-LLM: A Industrial Grade Federated Learning Framework for Large Language Models.” arXiv, Oct. 2023, doi: 10.48550/arXiv.2310.10049.
[6]
W. Kuang et al., “FederatedScope-LLM: A comprehensive package for fine-tuning large language models in federated learning,” in Proceedings of the 30th ACM SIGKDD conference on knowledge discovery and data mining, 2024, pp. 5260–5271, doi: 10.1145/3637528.3671573.
[7]
H. B. McMahan, D. Ramage, K. Talwar, and L. Zhang, “Learning differentially private recurrent language models,” arXiv preprint arXiv:1710.06963, 2017.
[8]
M. Chen et al., arXiv:2502.19980 [cs]“Can Textual Gradient Work in Federated Learning?” arXiv, Feb. 2025, doi: 10.48550/arXiv.2502.19980.
[9]
R. Wang et al., arXiv:2506.07440 [cs]“Federated In-Context Learning: Iterative Refinement for Improved Answer Quality.” arXiv, Jun. 2025, doi: 10.48550/arXiv.2506.07440.
[10]
P. Vepakomma, O. Gupta, T. Swedish, and R. Raskar, “Split learning for health: Distributed deep learning without sharing raw patient data.” 2018, [Online]. Available: https://arxiv.org/abs/1812.00564.
[11]
T. Lin, L. Kong, S. U. Stich, and M. Jaggi, “Ensemble distillation for robust model fusion in federated learning,” Advances in neural information processing systems, vol. 33, pp. 2351–2363, 2020.
[12]
L. Zhu, Z. Liu, and S. Han, “Deep leakage from gradients,” in Proceedings of the 33rd international conference on neural information processing systems, Red Hook, NY, USA: Curran Associates Inc., 2019.
[13]
J. Geiping, H. Bauermeister, H. Dröge, and M. Moeller, “Inverting gradients – how easy is it to break privacy in federated learning?” 2020, [Online]. Available: https://arxiv.org/abs/2003.14053.
[14]
R. Shokri, M. Stronati, C. Song, and V. Shmatikov, “Membership inference attacks against machine learning models,” in 2017 IEEE symposium on security and privacy (SP), 2017, pp. 3–18.
[15]
N. Carlini et al., arXiv:2012.07805“Extracting training data from large language models,” in 30th USENIX security symposium (USENIX security 21), 2021, pp. 2633–2650.
[16]
H. Duan, A. Dziedzic, M. Yaghini, N. Papernot, and F. Boenisch, arXiv:2411.10512 [cs]“On the Privacy Risk of In-context Learning.” arXiv, Nov. 2024, doi: 10.48550/arXiv.2411.10512.
[17]
Y. Zhang, N. Carlini, and D. Ippolito, arXiv:2307.06865 [cs]“Effective Prompt Extraction from Language Models.” arXiv, Aug. 2024, doi: 10.48550/arXiv.2307.06865.
[18]
S. Warnat-Herresthal et al., “Swarm learning for decentralized and confidential clinical machine learning,” Nature, vol. 594, Jun. 2021, doi: 10.1038/s41586-021-03583-3.
[19]
T. Suzumura et al., “Towards federated graph learning for collaborative financial crimes detection,” arXiv preprint arXiv:1909.12946, 2019.
[20]
Nasdaq Verafin, Accessed: 2026-05-02“Fighting financial crime within your institution – and beyond: The power of consortium analytics,” Nasdaq Verafin, White Paper, Oct. 2023. [Online]. Available: https://verafin.com/wp-content/uploads/2023/10/consortium-analytics-fraud-white-paper-verafin-20231018.pdf.
[21]
P. Srihari and Dr. S. Ramesh, “Transparency and privacy the role of explainable AI and federated learning in financial fraud detection,” International Journal of Scientific Research in Computer Science, Engineering and Information Technology, vol. 10, no. 6, pp. 555–566, 2024, [Online]. Available: https://ijsrcseit.com/index.php/home/article/view/CSEIT241061105.
[22]
R. Ye et al., “OpenFedLLM: Training large language models on decentralized private data via federated learning,” in Proceedings of the 30th ACM SIGKDD conference on knowledge discovery and data mining, 2024, pp. 6137–6147, doi: 10.1145/3637528.3671582.
[23]
F. Wu, Z. Li, Y. Li, B. Ding, and J. Gao, arXiv:2406.17706 [cs]FedBiOT: LLM Local Fine-tuning in Federated Learning without Full Model.” arXiv, Jun. 2024, doi: 10.48550/arXiv.2406.17706.
[24]
Y. Sun, Z. Li, Y. Li, and B. Ding, arXiv:2403.12313 [cs]“Improving LoRA in Privacy-preserving Federated Learning.” arXiv, Mar. 2024, doi: 10.48550/arXiv.2403.12313.
[25]
H. Zeng, Z. Yue, Q. Jiang, and D. Wang, “Federated recommendation via hybrid retrieval augmented generation,” in 2024 IEEE international conference on big data (BigData), 2024, pp. 8078–8087.
[26]
Q. Mao et al., arXiv:2504.19101 [cs]“Privacy-Preserving Federated Embedding Learning for Localized Retrieval-Augmented Generation.” arXiv, Apr. 2025, doi: 10.48550/arXiv.2504.19101.
[27]
D. Zhao, arXiv:2410.13272 [cs]FRAG: Toward Federated Vector Database Management for Collaborative and Secure Retrieval-Augmented Generation.” arXiv, Oct. 2024, doi: 10.48550/arXiv.2410.13272.
[28]
P. Addison et al., arXiv:2412.13163 [cs]“C-FedRAG: A Confidential Federated Retrieval-Augmented Generation System.” arXiv, Dec. 2024, doi: 10.48550/arXiv.2412.13163.
[29]
A. Chakraborty, C. Dahal, and V. Gupta, “Federated retrieval-augmented generation: A systematic mapping study,” in Findings of the association for computational linguistics: EMNLP 2025, Nov. 2025, pp. 7362–7374, doi: 10.18653/v1/2025.findings-emnlp.388.
[30]
T. Schick et al., arXiv:2302.04761“Toolformer: Language models can teach themselves to use tools,” in Advances in neural information processing systems 36 (NeurIPS 2023), 2023.
[31]
S. Yao et al., arXiv:2210.03629ReAct: Synergizing reasoning and acting in language models,” in International conference on learning representations (ICLR 2023), 2023.
[32]
S. G. Patil, T. Zhang, X. Wang, and J. E. Gonzalez, “Gorilla: Large language model connected with massive apis,” in Advances in neural information processing systems, 2024, vol. 37, pp. 126544–126565, doi: 10.52202/079017-4020.
[33]
Y. Qin et al., “ToolLLM: Facilitating large language models to master 16000+ real-world apis,” arXiv preprint arXiv:2307.16789, 2023.
[34]
E. Lumer, P. H. Basavaraju, M. Mason, J. A. Burke, and V. K. Subbiah, arXiv:2502.07223 [cs]“Graph RAG-Tool Fusion.” arXiv, Feb. 2025, doi: 10.48550/arXiv.2502.07223.
[35]
M. Abadi et al., arXiv:1607.00133 [stat]“Deep Learning with Differential Privacy,” in Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security, Oct. 2016, pp. 308–318, doi: 10.1145/2976749.2978318.
[36]
C. Dwork and A. Roth, “The Algorithmic Foundations of Differential Privacy,” Foundations and Trends® in Theoretical Computer Science, Aug. 2014, doi: 10.1561/0400000042.
[37]
C. Zhang, J. X. Morris, and V. Shmatikov, arXiv:2405.15012 [cs]“Extracting Prompts by Inverting LLM Outputs.” arXiv, Oct. 2024, doi: 10.48550/arXiv.2405.15012.
[38]
B. Askin et al., “Federate the router: Learning language model routers with sparse and decentralized evaluations,” arXiv preprint arXiv:2601.22318, 2026.
[39]
G. Mo et al., “LiveMCPBench: Can agents navigate an ocean of MCP tools?” arXiv preprint arXiv:2508.01780, 2025.
[40]
Y. Du et al., “InfoMosaic-bench: Evaluating multi-source information seeking in tool-augmented agents,” arXiv preprint arXiv:2510.02271, 2025.
[41]
K. Bonawitz et al., “Practical secure aggregation for privacy preserving machine learning.” Cryptology ePrint Archive, Paper 2017/281, 2017, [Online]. Available: https://eprint.iacr.org/2017/281.
[42]
M. Günther et al., arXiv:2310.19923 [cs]“Jina Embeddings 2: 8192-Token General-Purpose Text Embeddings for Long Documents.” arXiv, Feb. 2024, doi: 10.48550/arXiv.2310.19923.
[43]
A. Grattafiori, A. Dubey, A. Jauhri, A. Pandey, et al., arXiv:2407.21783 [cs]“The Llama 3 Herd of Models.” arXiv, Nov. 2024, doi: 10.48550/arXiv.2407.21783.
[44]
M. Yuksekgonul et al., arXiv:2406.07496 [cs]TextGrad: Automatic "Differentiation" via Text.” arXiv, Jun. 2024, doi: 10.48550/arXiv.2406.07496.
[45]
K. Bonawitz et al., “Practical secure aggregation for federated learning on user-held data.” 2016, [Online]. Available: https://arxiv.org/abs/1611.04482.
[46]
K. Cobbe et al., arXiv:2110.14168 [cs]“Training Verifiers to Solve Math Word Problems.” arXiv, Nov. 2021, doi: 10.48550/arXiv.2110.14168.
[47]
A. Srivastava, A. Rastogi, and A. R.et.al, “Beyond the imitation game: Quantifying and extrapolating the capabilities of language models.” 2023, [Online]. Available: https://arxiv.org/abs/2206.04615.
[48]
S. Robertson and H. Zaragoza, “The Probabilistic Relevance Framework: BM25 and Beyond,” Found. Trends Inf. Retr., vol. 3, no. 4, pp. 333–389, Apr. 2009, doi: 10.1561/1500000019.
[49]
Anthropic, Accessed: 2026-04“Model Context Protocol: An open standard for connecting AI assistants to data sources.” 2024, [Online]. Available: https://www.anthropic.com/news/model-context-protocol.
[50]
C. White et al., arXiv:2406.19314 [cs]LiveBench: A Challenging, Contamination-Limited LLM Benchmark.” arXiv, Apr. 2025, doi: 10.48550/arXiv.2406.19314.
[51]
K. Lee, M.-W. Chang, and K. Toutanova, “Latent retrieval for weakly supervised open domain question answering,” in Proceedings of the 57th annual meeting of the association for computational linguistics, Jul. 2019, pp. 6086–6096, doi: 10.18653/v1/P19-1612.
[52]
B. Xu, Z. Peng, B. Lei, S. Mukherjee, Y. Liu, and D. Xu, arXiv:2305.18323 [cs]ReWOO: Decoupling Reasoning from Observations for Efficient Augmented Language Models.” arXiv, May 2023, doi: 10.48550/arXiv.2305.18323.
[53]
N. Shinn, F. Cassano, A. Gopinath, K. Narasimhan, and S. Yao, “Reflexion: Language agents with verbal reinforcement learning,” in Proceedings of the 37th international conference on neural information processing systems, 2023.
[54]
P. Blanchard, E. M. El Mhamdi, R. Guerraoui, and J. Stainer, “Machine learning with adversaries: Byzantine tolerant gradient descent,” in Advances in neural information processing systems 30 (NIPS 2017), 2017, pp. 119–129.
[55]
D. Yin, Y. Chen, R. Kannan, and P. Bartlett, Byzantine-robust distributed learning: Towards optimal statistical rates,” in Proceedings of the 35th international conference on machine learning, 2018, vol. 80, pp. 5650–5659, [Online]. Available: https://proceedings.mlr.press/v80/yin18a.html.
[56]
S. Yao, N. Shinn, P. Razavi, and K. Narasimhan, \(\tau\)-bench: A benchmark for tool-agent-user interaction in real-world domains,” arXiv preprint arXiv:2406.12045, 2024, [Online]. Available: http://arxiv.org/abs/2406.12045.
[57]
P. Diaconis and D. Freedman, “Iterated random functions,” SIAM Review, vol. 41, no. 1, pp. 45–76, 1999, doi: 10.1137/S0036144598338446.

  1. Equal contribution.↩︎

  2. Corresponding author.↩︎