potentialpaper

Beyond Raw Context Transfer: Representation-based Federated Retrieval-Augmented Generation

Can Peng, Yu Liu, YINGYU YANG, Anjie Le, Yuyuan Liu, Qianye Yang, J. Alison Noble

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Retrieval-augmented generation (RAG) improves the factuality of large language models (LLMs) and vision-language models (VLMs) by grounding generation in external knowledge. However, most existing RAG frameworks assume a centralized retrieval corpus, which is often impractical in sensitive domains such as healthcare, where data are inherently distributed and raw content cannot be directly shared across institutions. Recent efforts on decentralized RAG primarily follow prompt-based paradigms that exchange raw, human-readable retrieved content, leading to direct exposure of retrieved information and substantial inference-time computational overhead. To address these limitations, we propose Representation-based Federated RAG (FedRepRAG), a decentralized RAG framework that keeps raw documents at their owning clients and exchanges only compact latent representations during cross-client retrieval. To integrate retrieved knowledge, we introduce a collaboratively trained projector that converts retrieval embeddings into generator-compatible representation tokens for a frozen LLM/VLM backbone. Experiments across decentralized visual question answering (VQA) and question answering (QA) benchmarks show that FedRepRAG consistently outperforms direct inference and local retrieval baselines while substantially reducing retrieval-context length and inference-time computational overhead compared with raw-context transfer. Further analyses confirm the importance of query-relevant retrieved representations and characterize the residual representation-level leakage associated with representation exchange. Overall, FedRepRAG provides an effective and efficient framework for federated RAG without transferring raw retrieved content.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
26 Apr 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 5 reviews · OpenReview

Updated 25 Nov 2026, 03:48 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review
  • Summary. FedRepRAG does RAG across clients that cannot pool their document stores. Only compressed retrieval embeddings are exchanged, and a FedAvg-trained projector maps each into one input token for a frozen backbone.

  • Strengths. Four datasets, two heterogeneity levels, three backbones, code released. Random and shuffled-embedding controls show the gains come from retrieved evidence rather than a learned soft prompt, the sharpest challenge to the paper. The rebuttal's leakage characterization is a useful result in itself.

  • Weaknesses. The privacy claim was narrowed during discussion rather than substantiated, and 11% of KILT-NQ answers stay recoverable verbatim from the deployed projector. The centralized counterpart ties the method at full participation (63.71 vs 63.52), so the case for federated training rests on partial participation on one dataset. On the two text-QA benchmarks only 19% to 24% of raw-context RAG's benefit is recovered.

  • Requests in the initial meta-review.

    1. threat model, leakage metrics, DP;
    2. appendix material including Algorithm 1;
    3. differentiation from prior representation-based RAG and a centralized counterpart;
    4. a stronger baseline such as xRAG;
    5. the raw-context gap;
    6. sensitivity to top-K;
    7. effect of subsampling.
  • Status after the response. Based on the author response all seven items drew new experiments and are considered largely addressed. Reviewers mostly agree: one raised to Accept on the privacy work, one holds a conditional accept based on the promised changes in the draft, and the remaining dissenter reports concerns resolved.

  • To the authors. Please update the camera ready version based on the discussions. Carry the narrowed claim through the abstract and Table 1, restate the communication claim in bytes on the wire or drop it, move Algorithm 1 into the paper, and add the Limitations section. Adding privacy part of the method would strengthen the future version.

Final justification

Mentioned in the meta-review above.

Area Chair 4T1a · Meta-reviewOpenReview ↗
Final justification
Mentioned in the meta-review above.
Read meta-review
Meta-review
  • Summary. FedRepRAG does RAG across clients that cannot pool their document stores. Only compressed retrieval embeddings are exchanged, and a FedAvg-trained projector maps each into one input token for a frozen backbone.

  • Strengths. Four datasets, two heterogeneity levels, three backbones, code released. Random and shuffled-embedding controls show the gains come from retrieved evidence rather than a learned soft prompt, the sharpest challenge to the paper. The rebuttal's leakage characterization is a useful result in itself.

  • Weaknesses. The privacy claim was narrowed during discussion rather than substantiated, and 11% of KILT-NQ answers stay recoverable verbatim from the deployed projector. The centralized counterpart ties the method at full participation (63.71 vs 63.52), so the case for federated training rests on partial participation on one dataset. On the two text-QA benchmarks only 19% to 24% of raw-context RAG's benefit is recovered.

  • Requests in the initial meta-review.

    1. threat model, leakage metrics, DP;
    2. appendix material including Algorithm 1;
    3. differentiation from prior representation-based RAG and a centralized counterpart;
    4. a stronger baseline such as xRAG;
    5. the raw-context gap;
    6. sensitivity to top-K;
    7. effect of subsampling.
  • Status after the response. Based on the author response all seven items drew new experiments and are considered largely addressed. Reviewers mostly agree: one raised to Accept on the privacy work, one holds a conditional accept based on the promised changes in the draft, and the remaining dissenter reports concerns resolved.

  • To the authors. Please update the camera ready version based on the discussions. Carry the narrowed claim through the abstract and Table 1, restate the communication claim in bytes on the wire or drop it, move Algorithm 1 into the paper, and add the Limitations section. Adding privacy part of the method would strengthen the future version.

1 comment
Authors · CommentOpenReview ↗

Summary of Responses to the Meta-Review

Dear Area Chair,

Thank you for summarizing the key concerns in your meta-review. We engaged directly with each reviewer and conducted additional experiments to address them. Below, we summarize our response to each weakness and point to the corresponding thread for full details.

1. Privacy claim: threat model, leakage metrics, and DP.

We will rescope the privacy claim throughout the paper. FedRepRAG avoids raw-content disclosure, but it does not guarantee embedding confidentiality or formal end-to-end privacy. We will clarify this scope in the abstract and main text and rename Table 1's "Privacy Preserving" column to "No Raw-Content Transfer."

To quantify the residual risks under this revised scope, we added an honest-but-curious insider threat model and evaluated query-embedding inversion, document-embedding inversion, and membership inference on KILT-NQ and PubMedQA. On KILT-NQ, document recovery decreases from 20.4% with the reconstruction-trained Stage-1 projector to 11.0% with the deployed Stage-2 projector. Query recovery similarly decreases from 13.4% to 5.4%. Recovery on PubMedQA remains near zero under the evaluated attacks. Membership-inference AUC is modest on KILT-NQ (~0.57) and at chance on PubMedQA.

We also retrained Stage 1 with example-level DP-SGD. At noise multiplier 1.0 (worst-client ε=0.55, δ=5.4×10⁻⁵), document inversion falls to 0.2% (vs a 0.4% mismatched control), while KILT-NQ EM remains at 22.14 (vs 21.85 without DP).

Threads: 3qcg W1/Q4; KqgB W2/Q2; eN2m W1.

2. Appendix material.

Appendices A–E were included in the Supplementary Material archive but were not clearly signposted. We apologize for the confusion. They contain Algorithm 1, Table 8, full training details, hyperparameters, and bootstrap confidence intervals. In the revision, we will move Algorithm 1 to the main paper and clearly direct readers to the remaining material.

Threads: KqgB W3/Q3; 3qcg W2.

3. Differentiation from prior representation-based RAG and stronger baselines.

FedRepRAG enables representation-based RAG when private client corpora cannot be pooled. Its contribution is the joint design of dynamic cross-client retrieval, global top-K selection, representation exchange, and federated projector training while keeping the backbone frozen and documents local.

We constructed Centralized Rep-RAG as an xRAG-style controlled counterpart trained on a pooled corpus. On SLAKE-EN, FedRepRAG matches its performance under full participation (63.71 vs 63.52) without centralizing documents. At 10% inference-time participation, FedRepRAG remains at 55.33, while Centralized Rep-RAG falls to 48.82, demonstrating greater robustness to incomplete client availability.

We also clarified the distinction from SMURF, which focuses on federated retrieval-space alignment and ranked-result merging. In contrast, FedRepRAG completes the end-to-end federated RAG pipeline by enabling representations retrieved across clients to condition a frozen LLM/VLM.

To strengthen the federated-RAG comparison, we adapted FedMosaic's public implementation and evaluated both methods on KILT-NQ under a shared backbone and retriever, each keeping its native corpus pipeline. FedRepRAG achieves 25.3 EM and 36.2 F1, vs 10.0 EM and 16.2 F1 for FedMosaic. It also reduces the inference payload from approximately 13.6 MB to 0.7 MB per query.

Threads: b8L4 W3; eN2m W2; r1tE W1/W2; FedMosaic follow-up.

4. Missing studies

(i) Stronger baselines. We added Centralized Rep-RAG as the requested xRAG-style counterpart and conducted a direct empirical comparison with FedMosaic, as detailed in Section 3.

Threads: b8L4 W3; r1tE W1/W2; FedMosaic follow-up.

(ii) Raw-context gap. Two factors help explain the gap to raw-context IC-RAG. First, content length: PubMedQA has the highest compression ratio (398×) and the largest gap, consistent with greater information loss when a long abstract is mapped to one token. Second, evidence granularity: ScienceQA retains 83% of IC-RAG's gain because broad semantic cues often suffice for multiple-choice questions, while KILT-NQ and PubMedQA require fine-grained evidence that is harder to preserve after compression.

Threads: b8L4 W1.

(iii) Top-K sensitivity. We evaluated K∈{1,3,5,10} and reported task performance, communication, and GFLOPs. Performance peaks near the deployed K and decreases at K=10 as lower-ranked evidence adds noise.

Threads: b8L4 Q1; eN2m Q1.

(iv) Client subsampling. We added a partial-participation sweep and a 20-client experiment. Accuracy decreases by only 0.75 points at 50% participation and remains above Direct Inference even at 10%. With 20 clients, FedRepRAG achieves 60.60, vs 63.71 with 10 clients and 49.58 for Direct Inference.

Threads: eN2m W3; 20-client follow-up; 3qcg Q2.

We hope these additions resolve the concerns raised in the meta-review and would be grateful if they could be considered in your final assessment. Thank you again for your time.

Reviewer eN2mOpenReview ↗
Rating
3/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper assumes that each client possesses its own local documents for RAG, which cannot be directly shared due to privacy constraints. To address this, the paper leverages Federated Learning and implements Representation-based Federated RAG, namely FedRepRAG, by transmitting embeddings instead of raw text. To ensure downstream task performance, the framework collaboratively trains a projector via FL for semantic alignment and downstream adaptation. Experimental results demonstrate that FedRepRAG outperforms both No-RAG and Local-RAG settings.

Strengths and weaknesses

Strength 1: FedRepRAG is a straightforward and effective framework that enables decentralized RAG circumventing the need of transmitting the raw text. The approach itself is practical to deploy in real world.

Strength 2: Experiments have shown strong empirical result on FedRepRAG’s performance compared to its baselines.

Weakness 1: The key issue of FedRepRAG is it is not private. Though the method pitches "no raw text transmission" as its primary privacy defense, sending over the embedding can also cause leakage. Previous papers have shown that embedding can reveal information and can be reverted[1], and privacy preserving technique like Differential Privacy is inevitable and highly recommended to be incorporated in the work. Key leakage includes: 1. client uploading a query embedding, which might leak client information 2. assistant clients sending over retrieval text embedding to both clients and server. Not sending raw context seems tempting but can be broken with a strong adversary.

Weakness 2: The idea of exchanging embeddings is not novel. Utilizing embedding for retrieval has been done by previous work [2]. Since the work frames Federated RAG with no raw context transfer as its fundamental contribution, the idea highly similar with previous work seems to diminishes its technical novelty.

Weakness 3: FL setting is too simplified. It assumes full client participation and only 10 clients. A more realistic setting may contains more clients with smaller participation rate.

[1]: Morris, John, et al. "Text embeddings reveal (almost) as much as text."

[2]: Oh, Song Young, et al. "SMURF: Federated Multimodal Retrieval for Scientific Data via Embedding Alignment."

Questions

Could the author justify the selection of K in top-k for RAG, and conduct ablation on different k, and see how k influence with communication/computation cost and performance?

Limitations

Yes

Final justification

I appreciate the authors’ substantial effort and agree that “no raw-content transfer” is a more precise framing. However, under this revised scope, I find the contribution less compelling than originally framed. Since privacy is a central motivation for the Federated Learning setting considered here, the remaining uncertainty around privacy leakage from exchanged representations is still a significant limitation. I therefore maintain my original score.

Formatting concerns

No formatting concerns

5 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for these constructive comments and address them one by one below.


W1 — Privacy of the exchanged representations

We agree that avoiding raw-content transfer does not make the exchanged representations inherently private. We therefore evaluate the two communication channels identified by the reviewer: (i) the query embedding and (ii) the retrieved document embeddings.

Threat model and attack setup

We consider an honest-but-curious insider with the public frozen backbone and shared projector received during FedAvg. As Stage 1 explicitly trains the projector for reconstruction, the attacker needs no separately trained inversion model. It feeds an observed embedding through the shared projector and backbone, then decodes the output. Each attack uses 500 items and both projector stages, with 95% bootstrap CIs from 10,000 resamples.

(i) Query inversion

Query embeddings have broader peer exposure because they are broadcast to all assisting clients. Success means verbatim recovery of a contiguous ≥6-token question span.

Dataset (query length) Stage 1 Stage 2 (deployed) mismatched control (S1 / S2)
KILT-NQ — ~11 words 13.4% [10.4, 16.4] 5.4% [3.6, 7.4] 0.0% / 0.0%
PubMedQA — ~13 words 0.6% [0.0, 1.4] 0.0% [0.0, 0.0] 0.0% / 0.0%

(ii) Retrieved-document inversion

Success means verbatim recovery of the private answer on KILT-NQ or a contiguous ≥8-token abstract span on PubMedQA. As these criteria differ, each result is compared only with its dataset-specific mismatched control.

Dataset (content length) Stage 1 Stage 2 (deployed) mismatched control (S1 / S2)
KILT-NQ — QA pairs, ~11 words 20.4% [17.0, 24.0] 11.0% [8.4, 13.8] 1.0% / 0.6%
PubMedQA — abstracts, ~259 words 1.4% [0.4, 2.6] 0.2% [0.0, 0.6] 0.2% / 0.0%

Two observations:

  1. Content is recoverable, while task adaptation reduces measured recovery. Recovery falls from 20.4% to 11.0% for KILT-NQ documents and from 13.4% to 5.4% for its queries, with near-zero Stage-2 recovery on PubMedQA. Clients receive the more invertible Stage-1 projector during training and can retain it, so Stage 1 remains the conservative insider-risk estimate.
  2. Leakage is dataset-dependent. PubMedQA shows low recovery across both surfaces and stages (documents: 1.4%/0.2%; queries: 0.6%/0.0%), which is encouraging for the medical setting where privacy is especially important, but is not a safety guarantee. KILT-NQ and PubMedQA queries have similar lengths but markedly different recovery rates, indicating that query length alone does not explain the difference.

Stage-1 DP-SGD

As Stage 1 exhibits the highest inversion risk, we retrain it using DP-SGD. During local optimization, each client clips every per-example gradient to a fixed L2 norm and adds Gaussian noise locally before each update. We account for privacy over the full Stage-1 training procedure using an RDP accountant. Client dataset sizes vary substantially under β = 0.1, resulting in different sampling rates and privacy costs. We therefore report the largest ε across clients, corresponding to the weakest per-record guarantee.

Noise multiplier σ ε (δ = 5.4 × 10⁻⁵) KILT-NQ EM (Stage 2) Document inversion (Stage 1) Mismatched control
0 (no DP) — 21.85 20.4% [17.0, 24.0] 1.0%
0.5 4.46 21.61 0.6% [0.0, 1.4] 0.8%
1.0 0.55 22.14 0.2% [0.0, 0.6] 0.4%

At both tested noise levels, the evaluated inversion attack no longer performs above its corresponding mismatched control. With σ = 1.0, this is achieved with a worst-case privacy budget of ε = 0.55.

Revision of the privacy claim

We will clarify that FedRepRAG avoids raw-content transfer but does not guarantee embedding confidentiality or formal end-to-end privacy. We will rename Table 1’s “Privacy Preserving” column as “No Raw-Content Transfer,” add the threat model, query/document inversion and Stage-1 DP-SGD results, and discuss residual inference-time representation leakage as a limitation.


W2 — Novelty relative to SMURF

We respectfully clarify that the comparison with SMURF conflates federated retrieval with federated retrieval-augmented generation. SMURF [23] is already cited and discussed in our Related Work as a multimodal federated retrieval framework. While both methods communicate embeddings, this shared implementation element does not make their technical problems or contributions equivalent.

SMURF addresses a retrieval-space alignment problem: it maps heterogeneous text, molecular-image, and SMILES embeddings into a common space for cross-modal similarity search and ranked-result merging. Its method is consequently evaluated using retrieval metrics, including top-k accuracy, nDCG, and mean rank. Crucially, SMURF states that “we do not use RAG directly in our work”, leaving integration with a multimodal RAG pipeline and downstream QA evaluation to future work. It therefore does not address augmentation or generation from the retrieved embeddings.

FedRepRAG addresses precisely this missing problem: how a representation retrieved from another client can be consumed by a frozen LLM/VLM as conditioning evidence, completing the pipeline without raw documents leaving their owner. Retrieval embeddings are not directly usable as generator inputs. We therefore collaboratively train a lightweight projector that converts each retrieved embedding into one generator-compatible representation token. Stage 1 preserves document semantics through reconstruction, and Stage 2 adapts the representation tokens for downstream QA/VQA generation. The complete retrieval–augmentation–generation pipeline is then evaluated end-to-end on four QA/VQA benchmarks.

Thus, we do not claim that transmitting embeddings is itself novel. Our contribution is the formulation and realization of representation-based federated RAG: cross-client retrieval, representation-level knowledge transfer, latent augmentation, and downstream generation without transferring retrieved raw documents. SMURF neither formulates nor evaluates this problem. We will make this already-discussed distinction even more explicit in the introduction and Related Work.


W3 — Realism of the federated setting

FedRepRAG targets cross-silo federation, where clients represent institutions such as hospitals rather than individual devices. In this setting, a federation of ten hospitals with relatively stable connectivity is a realistic operational assumption. To additionally evaluate robustness to temporary client unavailability, we test partial participation on SLAKE-EN under β = 0.1 and K = 5, resampling the active clients for each query. Communication is reported in KiB per query and includes the query upload, query broadcasts, locally returned embeddings and similarity scores, and the global top-K embeddings returned to the querying client.

Participation rate Active clients Average accuracy KiB/query
1.0 10 63.71 924.2
0.5 5 62.96 (−0.75) 504.1
0.3 3 59.75 (−3.96) 336.1
0.1 1 55.33 (−8.38) 168.0

Performance decreases as fewer clients participate, but remains above Direct Inference (49.58) at every tested participation rate. With five active clients, accuracy decreases by only 0.75 points while per-query communication falls by approximately 45%. Even when only one client is sampled per query, FedRepRAG achieves 55.33 accuracy, compared with 49.58 for Direct Inference. PubMedQA is comparatively stable across the same participation rates, achieving 59.60, 59.80, 58.40, and 58.80, respectively. These results demonstrate robustness to partial participation within the targeted cross-silo setting. Evaluation at substantially larger federation scales remains future work.


Q1 — Selection and sensitivity of K

Each retrieved item contributes exactly one representation token, so K jointly sets the injected context length, generator computation, and document-representation traffic. We sweep K at inference on SLAKE-EN and KILT-NQ, with the projectors trained at their deployed values, K = 5 and K = 3. Communication is reported in KiB per query.

K SLAKE-EN acc. SLAKE-EN KiB/q SLAKE-EN GFLOPs KILT-NQ EM KILT-NQ KiB/q KILT-NQ GFLOPs
1 61.45 308.0 12,277.8 20.90 352.0 1,350.2
3 62.68 616.1 12,311.0 21.85 704.1 1,382.7
5 63.71 924.2 12,344.2 21.92 1,056.2 1,415.2
10 62.30 1,694.4 12,427.1 20.06 1,936.4 1,496.5

Accuracy is measured, while communication and GFLOPs are analytic costs determined by K. At the same deployed K, raw-context IC-RAG injects 92.9 and 69.9 text tokens rather than K representation tokens, costing 13,801.8 and 2,478.7 GFLOPs per query on SLAKE-EN and KILT-NQ, so even K = 10 is cheaper on both. SLAKE-EN achieves its highest accuracy at the deployed K = 5. On KILT-NQ, increasing K from the deployed value of 3 to 5 improves EM by only 0.07 points, while using two additional representation tokens and increasing communication by 50%. K = 3 therefore provides the better accuracy–efficiency trade-off. On both datasets, K = 10 increases communication and computation while reducing performance, likely because the additional lower-ranked retrieved items introduce less relevant evidence. These results justify the deployed K values as dataset-specific operating points rather than arbitrary choices.

Authors · CommentOpenReview ↗

Follow-up to Reviewer eN2m: Additional 20-client experiment (W3)

In our rebuttal to W3, we evaluated robustness to partial client participation and noted that evaluation at a larger federation scale remained future work. We have since completed this experiment by doubling the federation size from 10 to 20 clients.

Additional 20-client experiment

We replicate the reported 10-client SLAKE-EN experiment (β = 0.1) using 20 clients with full participation. All other experimental settings remain unchanged, including the total dataset, Dirichlet concentration parameter, training procedure, and evaluation protocol. The dataset is repartitioned across 20 clients, resulting in smaller per-client training subsets and retrieval banks.

Setting Average accuracy
10 clients (β = 0.1) 63.71
20 clients (β = 0.1) 60.60
Direct Inference 49.58

Doubling the number of clients reduces accuracy by 3.11 points, from 63.71 to 60.60, while FedRepRAG remains 11.02 points above Direct Inference (49.58). At a fixed β = 0.1, repartitioning the same training corpus across more clients produces smaller and more fragmented local subsets, making federated projector optimization more challenging. Nevertheless, FedRepRAG continues to provide a substantial improvement over inference without retrieval when the federation size is doubled.

Together with the partial participation results reported in our rebuttal, where FedRepRAG remained above Direct Inference at every tested rate, including when only one client participated per query, these experiments provide evidence of continued effectiveness as the federation size doubles and robustness to reduced inference-time client participation.

Authors · CommentOpenReview ↗

Thank you for taking the time to consider our response! We sincerely hope that it has resolved the concerns raised in your review. If you find our response satisfactory, we would appreciate it if you could reconsider the score. We are also happy to answer any more questions should there be any.

Reviewer r1tEOpenReview ↗
Rating
3/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
2/4
Originality
2/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

Conventional RAG systems rely on a centralized data silo, which is unviable in privacy-restricted domains like healthcare. The authors propose FedRepRAG (Federated Representation-based RAG), a decentralized framework that eliminates raw-data transfer by exchanging only compressed latent representations during cross-site retrieval. Extensive experimental results demonstrate the effectiveness of the method.

Strengths and weaknesses

Strengths

  1. Moving from raw text transmission to latent vector representation exchange addresses a vital operational pain point in distributed corporate environments.
  2. Transmitting a handful of fixed-dimension latent embeddings instead of paragraphs of text yields immense bandwidth savings (>80×>80\times fewer retrieval tokens). This dramatically alleviates server-client communication volumes at inference time.
  3. Keeping the massive LLM/VLM backbones completely frozen ensures that the framework does not require expensive end-to-end distributed backpropagation or parameter shattering

Weaknesses

  1. One limitation is that the baseline model. There is no other strong Federating training baseline for RAG.
  1. The novelty of the method seems limited. It integrates the RAG with two-stage federated learning. What is the difference compared to other federated RAG method?
Questions

Please refer to the weakness.

Limitations

There is no limitations section.

Formatting concerns

no

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for these comments. We address the requested baselines and clarify the distinction from existing federated RAG methods below.


W1 — Federated RAG baselines

We agree that strong federated RAG comparisons are important. However, the two cited methods are not interchangeable implementations of our setting.

Federated Learning and RAG Integration [11] is already included in our Related Work under collaborative-training methods. It federates LoRA fine-tuning of an LLM and subsequently attaches a conventional client-specific RAG pipeline, where raw retrieved text is provided as prompt context. It does not perform cross-client global retrieval or representation-based knowledge integration. Treating it as a matched baseline would therefore conflate federated model training with the federated retrieval problem studied here.

We thank the reviewer for identifying the more recent FedMosaic, which was missing from our discussion. FedMosaic and FedRepRAG address the same emerging problem of using distributed private corpora without transferring raw documents, but adopt fundamentally different knowledge representations. FedMosaic follows parametric RAG. It augments each document into rewrites and QA pairs, clusters local documents, compiles their knowledge into cluster-level LoRA adapters, learns document-specific masks, and selects and aggregates the corresponding adapter parameters at inference. Adding a document therefore requires training rather than indexing. The document must be augmented, incorporated into a cluster adapter, and assigned a trained document-specific mask.

FedRepRAG instead retains a non-parametric, dynamically updateable corpus. Documents remain as local indexed representations, and only those retrieved for the current query are injected into the generator. Once the shared projector is trained, adding a document requires only one encoding pass and insertion into the local index. Neither the projector nor the generator is retrained.

The transmitted objects also differ substantially. FedMosaic uploads selected LoRA adapter matrices, with its Figure 4b reporting megabyte-scale per-query adapter traffic. FedRepRAG transmits one d-dimensional vector per retrieved item, giving kilobyte-scale traffic per query. As the methods use different backbones, K, and accounting conventions, we present this as an architectural distinction rather than a matched communication benchmark.

FedMosaic additionally requires corpus-specific adapter and mask training and a homogeneous re-ranking model at every silo. FedRepRAG uses one corpus-independent shared projector, keeps the backbone frozen, and requires no separate retriever or re-ranker.

Method What is federated Knowledge representation Generator conditioning Corpus update
FL + RAG [11] LLM LoRA fine-tuning Raw retrieved text Raw-text prompt context Update retrieval index
FedMosaic Adapter sharing and aggregation Cluster-level LoRA adapters and document masks Selected adapter aggregation Augment, cluster, and train
FedRepRAG Shared projector training Non-parametric document representations Retrieved representation tokens Encode and insert

Thus, [11] addresses a different federated setting, while FedMosaic is an alternative parametric approach, not the same mechanism or a drop-in replacement for FedRepRAG. Their published task results are not directly comparable because they use different backbones, datasets, representations, and objectives. We will add FedMosaic and expand these distinctions in the final revision.


W2 — Novelty

We respectfully disagree with the characterization of FedRepRAG as merely combining RAG with two-stage federated training.

To isolate the contribution of federated training, we construct Centralized Rep-RAG, a controlled counterpart using the same frozen backbone, projector architecture, representation-token injection, and the same underlying data. It differs only in training protocol: Centralized Rep-RAG trains over the pooled corpus, whereas FedRepRAG trains through client-local retrieval and FedAvg. We deploy both projectors under partial client participation on SLAKE-EN (β=0.1, K=5):

Client participation FedRepRAG Centralized Rep-RAG Gap (Fed. − Central)
1.0 63.71 63.52 +0.19
0.5 62.96 60.79 +2.17
0.3 59.75 56.36 +3.39
0.1 55.33 48.82 +6.51

The methods perform similarly under full participation, but the gap grows monotonically as participation decreases. At 10% participation, Centralized Rep-RAG falls below Direct Inference (48.82 vs. 49.58), while FedRepRAG remains 5.75 points above it. FedRepRAG encounters client-local, incomplete retrieval evidence during training, whereas centralized training always retrieves from the pooled corpus. The results therefore show that federated training provides robustness to incomplete client participation beyond the centralized representation-based counterpart.

As an additional centralized representation-based comparator, Centralized Rep-RAG is the closest controlled analogue of xRAG in our setting. Both project each retrieved representation into one token for a frozen generator. Our implementation uses the generator backbone itself as the retrieval encoder rather than xRAG’s separate encoder, allowing the centralized and federated variants to share the same architecture. This controlled comparison isolates the effect of federated training, although xRAG itself is not a federated RAG method.

Section 2 systematically organizes existing federated RAG work into four directions:

  1. Collaborative training of retrievers, generators, or embedding models [11, 20].
  2. Retrieval efficiency through client routing and distributed result aggregation [8, 27, 30, 33].
  3. Privacy and security through encryption, differential privacy, or secure vector search [2, 4, 6, 38].
  4. Multimodal retrieval across distributed scientific collections [23, 34].

We also discuss centralized representation-based RAG and context compression [3, 7, 25]. These works establish individual components, but none jointly addresses dynamic global retrieval over private non-parametric client corpora, no direct raw-content transfer, and representation-based conditioning of a frozen LLM/VLM through a federatively trained projector.

The contribution is therefore an end-to-end federated retrieval and knowledge-integration architecture, not simply federated learning applied to an existing RAG pipeline. Clients search their private corpora, the server selects the global top-K, and only the selected representations condition the querying client’s frozen generator. The backbone remains frozen, and only the lightweight projector is collaboratively trained.

The two-stage objective is also necessary rather than an arbitrary training schedule. Stage 1 maps pooled output representations into the generator’s input-embedding space, while Stage 2 adapts this mapping to the downstream task. Table 6 confirms that this alignment does not arise automatically: Stage 2 alone achieves 49.67, comparable to Direct Inference at 49.58, whereas the complete method reaches 63.71.

To our knowledge, FedRepRAG is the first framework to jointly provide:

  1. dynamic non-parametric retrieval over private client corpora;
  2. cross-client retrieval without direct raw-content transfer;
  3. representation-token conditioning of frozen LLM and VLM generators.

FedMosaic is the closest recent direction, but takes the parametric route described in W1. FedRepRAG’s novelty lies in the co-design of federated retrieval, representation exchange, and non-parametric knowledge integration as a unified framework. We will revise the Related Work to make this distinction explicit.


Limitations

Limitations are already discussed in the Conclusion and Future Work section, including the representation bottleneck and the absence of formal privacy guarantees. However, we agree that they were not sufficiently consolidated or signposted. We will add a dedicated Limitations section in the final revision.

Authors · CommentOpenReview ↗

Follow-up to Reviewer r1tE: FedMosaic baseline (W1)

We thank the reviewer again for suggesting FedMosaic (SIGIR 2026) as a relevant federated-RAG baseline. In our initial response, we explained that FedMosaic represents a parametric-RAG paradigm rather than a directly interchangeable implementation of our setting. To provide concrete empirical evidence beyond this architectural comparison, we have now adapted its public implementation and conducted a direct evaluation.

Experimental setup

We adapt FedMosaic’s public implementation to the FedRepRAG evaluation environment. Following the evaluation scale used in FedMosaic, we evaluate both methods on the same 300-question KILT-NQ subset:

  • Backbone: Both methods use Qwen3-8B as the frozen generator, controlling for differences in generator capability.
  • Retriever: Both methods use the same Qwen3-based dense retriever and FAISS index, controlling for the retrieval backend.
  • Federated setting and corpus construction: Both methods use 10 clients, but their retrieval corpora are constructed differently because of their respective designs. Following FedMosaic’s official workflow, we first retrieve approximately 1,500 candidate passages for the 300 evaluation queries and partition these passages across 10 clients. FedMosaic then compiles this query-conditioned candidate corpus into cluster-level adapters and document-specific masks. Applying the same procedure to the complete corpus would require adapter and mask training over the substantially larger document collection. FedRepRAG instead retains a non-parametric corpus and performs retrieval at inference time over the complete KILT-NQ training pool of ~87k passages, partitioned across 10 clients using a Dirichlet distribution with β=0.1. Thus, the queries and retrieval backend are shared, while each method retains the corpus scope implied by its native pipeline.
  • FedMosaic configuration: Following the official implementation, we use constrained k-means clustering with C=5C=5, rank-2 cluster-level LoRA adapters trained for three epochs, per-document binary masks trained for ten epochs, and conflict-aware masked-adapter aggregation at inference.
  • Evaluation: Both methods are evaluated on exactly the same 300 questions using EM and token-level F1. The FedRepRAG result reported in the manuscript (21.85 EM) was obtained on the complete 2,837-question KILT-NQ validation set. We therefore reran FedRepRAG on the same 300-question subset for a direct comparison.

Results on KILT-NQ

Method EM F1
FedMosaic (parametric adapters) 10.0 16.2
FedRepRAG (ours, representation exchange) 25.3 36.2

Under this evaluation setup, FedRepRAG outperforms FedMosaic by 15.3 EM points and 20.0 F1 points. Our examination of the generated outputs suggests two factors that may help explain this performance gap.

First, 7% of FedMosaic’s outputs were degenerate, exhibiting persistent repetition or largely incoherent text. We investigated whether this behavior could be addressed through decoding adjustments by matching the generation budget and introducing a repetition penalty. The degenerate outputs persisted, and EM remained essentially unchanged, moving from 10.3 to 10.0. The behavior was therefore not readily resolved by these decoding changes and may reflect sensitivity introduced by composing document-conditioned adapters at inference time. FedRepRAG, in contrast, leaves the backbone parameters unchanged and conditions generation through retrieved representation tokens.

Second, FedMosaic more frequently generated long explanatory responses, whereas FedRepRAG more consistently produced concise answers aligned with KILT-NQ’s short reference spans. One plausible explanation is that FedRepRAG’s projector is optimized using the downstream QA objective, while FedMosaic injects document knowledge through adapter composition without task-specific answer-format adaptation. Verbose generations are particularly disadvantaged by exact-match evaluation and can also reduce token-level F1 by introducing non-reference content.

These observations provide a qualitative interpretation of the performance difference. We do not present them as an exhaustive causal analysis.

The comparison also highlights systems-level differences beyond accuracy. FedMosaic trains a LoRA adapter for each document cluster and a binary mask for every document, so adding new documents requires additional training. At inference, a median query in our runs transfers one 13.5 MB adapter and one 122 KB mask, resulting in a payload of approximately 13.6 MB. FedRepRAG instead adds documents through encoding and indexing alone, without retraining, and communicates only the top-K representations, resulting in approximately 0.7 MB per query. In addition to achieving higher EM and F1, FedRepRAG substantially reduces the inference payload relative to FedMosaic and supports more efficient corpus updates.

Authors · CommentOpenReview ↗

Thank you for taking the time to consider our response! We sincerely hope that it has resolved the concerns raised in your review. If you find our response satisfactory, we would appreciate it if you could reconsider the score. We are also happy to answer any more questions should there be any.

Reviewer b8L4OpenReview ↗
Rating
5/6
Confidence
3/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

In this paper, the authors proposed FedRepRAG, a decentralized retrieval-augmented generation framework that exchanges compressed latent representations instead of raw documents to improve privacy and efficiency in distributed settings. A lightweight collaboratively trained projector is introduced to align retrieved embeddings with the frozen LLM/VLM feature space for effective knowledge integration.

Strengths and weaknesses

Strengths:

  • The proposed FedRepRAG avoids raw-context transfer by exchanging compact representations, enabling effective knowledge injection with minimal computational overhead.

  • The paper provides code, which improves reproducibility.

  • The experimental results demonstrate the effectiveness of the proposed method.

Weaknesses:

  • Representation-based injection may lose fine-grained evidence from raw contexts, as shown by the large performance gap between FedRepRAG and raw-context IC-RAG on PubMedQA and KILT-NQ.

  • The paper reports retrieval tokens and GFLOPs, but does not quantify actual communication overhead from exchanged embeddings, similarity scores, server broadcasts, or federated projector updates.

  • The paper lacks comparison with stronger related methods, such as privacy-preserving RAG, context-compression RAG, or representation-based RAG approaches like xRAG. Including at least one stronger adapted baseline would make the empirical evaluation more convincing.

  • Some of the fonts in the figures in the main paper and appendix are too small.

Questions

The paper does not seem to provide a sensitivity analysis for KK in Eqs. 4–5. I am curious how sensitive the method is to the choice of KK, especially since it directly affects accuracy, communication cost and computational overhead.

Limitations

Yes.

Final justification

Thanks for the authors' response. My concerns have been addressed, and I have decided to maintain my score.

Formatting concerns

None.

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for these constructive comments and address them in order below.


Q1 — Sensitivity to K

We thank the reviewer for identifying this missing analysis. We evaluate K at inference on SLAKE-EN and KILT-NQ. The projectors were trained with the deployed K, 5 for SLAKE-EN and 3 for KILT-NQ. Since each retrieved item contributes one representation token, K determines both the injected context length and the document-representation traffic.

K SLAKE-EN acc. KILT-NQ EM
1 61.45 20.90
3 62.68 21.85
5 63.71 21.92
10 62.30 20.06

Accuracy peaks near the deployed settings and decreases at K=10, suggesting that lower-ranked evidence can introduce noise. On SLAKE-EN, K=1 uses one-fifth as many injected tokens as K=5, with a 2.26-point accuracy loss. On KILT-NQ, K=3 is within 0.07 points of K=5 while using 40% fewer injected tokens.


W1 — Loss of fine-grained evidence

We agree that compressing each retrieved item into one representation token can discard fine-grained evidence. We quantify this compression and its performance gap using federated results at β=0.1.

Dataset K Retrieved tokens Compression/item Direct FedRepRAG IC-RAG Gap to IC-RAG Headroom recovered
ScienceQA 5 407 81× 83.16 88.19 89.22 1.03 83%
SLAKE-EN 5 93 19× 49.58 63.71 71.25 7.54 65%
KILT-NQ 3 70 23× 17.73 21.85 35.11 13.26 24%
PubMedQA 3 1,194 398× 54.00 59.40 82.20 22.80 19%

“Compression/item” is the average number of text tokens mapped into one representation token. “Gap to IC-RAG” is IC-RAG − FedRepRAG. “Headroom recovered” is the fraction of IC-RAG’s improvement over Direct Inference retained by FedRepRAG, that is (FedRepRAG − Direct) / (IC-RAG − Direct). Results are accuracy except EM for KILT-NQ.

Two observations:

  1. Content length matters. PubMedQA has both the highest compression ratio (398×) and the largest gap to IC-RAG (22.80 points), consistent with information loss when a long abstract is mapped to one token. This suggests that longer retrieved content creates a stronger representation bottleneck.

  2. The need for fine-grained evidence also matters. Compression ratio alone does not determine performance. ScienceQA compresses 81 tokens per item but retains 83% of IC-RAG’s improvement over Direct Inference, likely because its multiple-choice format can better utilize semantic cues and answer-option elimination. In contrast, KILT-NQ requires an exact answer string and retains only 24%, while PubMedQA may require a specific finding from a long abstract and retains 19%. Thus, one-token representations appear to preserve broad semantic cues better than fine-grained evidence. Adaptively allocating representation tokens based on content length and task requirements is a promising extension.


W2 — Communication overhead

We thank the reviewer for identifying this missing analysis. The retrieval-token counts reported in the paper measure the context injected into the generator rather than network traffic. We therefore calculate the inference-time communication of FedRepRAG below. The calculation assumes ten clients and includes query upload, server broadcast, client returns with similarity scores, and the final global top-K download. Communication is reported in KiB per query (1 KiB = 1024 bytes).

Dataset IC-RAG retrieved tokens FedRepRAG injected tokens FedRepRAG FP16 KiB/query
ScienceQA 407 5 462.2
SLAKE-EN 93 5 462.2
KILT-NQ 70 3 352.1
PubMedQA 1,194 3 352.1

The FP16 figures are measured rather than projected. Halving precision leaves SLAKE-EN unchanged on every question type and moves KILT-NQ from 21.85 to 21.89 EM, so we adopt FP16 transmission. The corresponding FP32 traffic is twice these values.

The training phase introduces separate communication. The approximately 33.6M-parameter projector occupies 128.1 MiB in FP32, producing about 2.50 GiB of aggregate upload and download per ten-client round. Total training traffic scales with the dataset-specific number of communication rounds. This training cost is paid once and amortized over subsequent queries.


W3 — Comparison with xRAG

xRAG is designed for centralized RAG, so we adapt its core representation-injection mechanism to our controlled setting as Centralized Rep-RAG. Both methods freeze the encoder and generator and train a projector that maps each retrieved document representation into one generator token. To match FedRepRAG and isolate the effect of federated training, Centralized Rep-RAG uses the generator backbone as the retrieval encoder rather than xRAG’s separate sentence encoder. It is therefore an xRAG-style adapted baseline, although it does not reproduce xRAG’s original encoder and training recipe.

Centralized Rep-RAG requires pooling all client corpora during training, which violates our target setting where raw content cannot leave its originating client. We further evaluate whether its centrally trained projector transfers to partial client participation on SLAKE-EN (β=0.1, K=5):

Client participation FedRepRAG Centralized Rep-RAG Gap (Fed. − Central)
1.0 63.71 63.52 +0.19
0.5 62.96 60.79 +2.17
0.3 59.75 56.36 +3.39
0.1 55.33 48.82 +6.51

The methods perform comparably under full participation, but the gap widens as participation decreases. At 10% participation, Centralized Rep-RAG falls below Direct Inference (48.82 vs. 49.58), while FedRepRAG remains 5.75 points above it. FedRepRAG encounters client-local and incomplete retrieval evidence during training, whereas Centralized Rep-RAG always retrieves from the pooled corpus. These results therefore show that federated training provides robustness to incomplete client participation beyond the centralized representation-based counterpart. We will clarify that Centralized Rep-RAG is our xRAG-style adapted baseline and explain these implementation differences in the revision.


W4 — Figure readability

We will enlarge all figure fonts in the final revision.

Reviewer KqgBOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
2/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper targets cross-silo RAG where retrieval corpora are distributed across sites and raw content should not leave a client. FedRepRAG keeps documents local and exchanges only compressed retrieval embeddings, using a frozen LLM/VLM backbone as both encoder and generator plus a lightweight MLP projector that maps each embedding to one input token. The projector is trained with FedAvg in two stages, a semantic-alignment stage that reconstructs a document from its embedding and a task-specific QA/VQA stage, at inference clients exchange top-K embeddings and similarity scores through a coordinating server. Across four datasets (SLAKE-EN, ScienceQA, PubMedQA, KILT-NQ), two heterogeneity levels, and three backbones, the reported gains are up to 14.13% (VQA) and 5.40% (QA) over the second-best baseline, with large reductions in retrieval tokens and GFLOPs versus raw-context transfer.

Strengths and weaknesses

Strengths:

  • The problem is well scoped and timely. Cross-silo RAG where raw retrieved content should not be transferred is a real gap, and Table 1 frames the distinction between raw-context transfer and representation exchange cleanly.

  • The method is simple and the ablation is informative. Table 6 isolates the two training stages, Stage 2 alone reaches only 49.67 versus 49.58 for Direct Inference but with stage 1 and stage 2 together performs really well.

  • The empirical results are extensive. Four datasets spanning medical and science VQA and biomedical and open-domain QA, two heterogeneity levels (beta = 0.5 and 0.1), and three backbones (Table 7).

Weaknesses

  • Gains are not attributed to cross-client retrieval versus a learned soft prompt, which is the central thesis. Table 6 shows Stage 2 alone reaches 49.67 versus 49.58 for Direct Inference, and on ScienceQA Centralized Rep-RAG (92.71) beats raw-context Centralized IC-RAG (89.22, Table 3). There is no random or shuffled-embedding control, no retrieval-quality metric (recall@K, MRR), and the retrieval encoder is unspecified.

  • The privacy claim conflicts with the method under the standard honest-but-curious model. Stage 1 (Eq 9) trains the shared global projector to reconstruct documents from embeddings, every client downloads that projector, and clients receive peers' top-K embeddings plus the broadcast query, so an insider can invert them to peer content. There is no threat model, no secure aggregation or DP, and no leakage study, so "privacy-preserving" is overclaimed.

  • No error bars appear anywhere, and supporting material is missing. Appendices A through E, the bootstrap CIs (Appendix D), and the hyperparameters (Appendix C) are referenced but absent, though checklist Q7 claims CIs "in the Appendix."

Minor

  • Figure 1: Retrival -> Retrieval
  • Figure 1(b): Paraphase -> Paraphrase
Questions
  • Stage 2 alone equals Direct Inference (49.67 versus 49.58, Table 6) and Rep-RAG beats IC-RAG on ScienceQA, so can you add a shuffled/random-embedding control and report recall@K or MRR per dataset?

  • Given Eq 9 trains the shared projector to reconstruct documents and clients receive peers' and query embeddings, can you state the threat model and add an inversion/membership-inference study if possible?

  • Appendices A through E and Algorithm 1 are referenced but absent. Can you explained the missing important part?

  • For KILT-NQ, are model selection and final evaluation done on disjoint splits, given both use the official validation set?

Limitations

Yes

Final justification

I thank the authors for a thorough rebuttal.

The KILT-NQ split concern was a main-text error rather than actual leakage. The retrieval encoder is now specified. The random and shuffled controls are the right experiment and settle attribution on SLAKE-EN, where random documents recover only 1.03 of the 14.13-point federated gain.

I am raising my score from 3 to 4.

Formatting concerns

Appendices A through E, Table 8, and Algorithm 1 are referenced but absent from the reviewed PDF (the document ends at the checklist).

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for these insightful comments and address them one by one below.


W1/Q1 — Attribution: retrieved content vs a learned soft prompt

(a) Random/shuffled controls

We vary only the injected embeddings, keeping the projector, K, communication, token count, and GFLOPs fixed.

Dataset Setting True top-K Random documents Shuffled (mis-paired)
SLAKE-EN (%) Centralized 63.52 40.90 (−22.62) 37.23 (−26.29)
SLAKE-EN (%) Federated β=0.1 63.71 50.61 (−13.10) 49.58 (−14.13)
ScienceQA (%) Centralized 92.71 85.24 (−7.47) 82.72 (−9.99)
ScienceQA (%) Federated β=0.1 88.19 86.09 (−2.10) 86.32 (−1.87)
PubMedQA (%) Centralized 59.40 52.80 (−6.60) 52.00 (−7.40)
PubMedQA (%) Federated β=0.1 59.40 56.80 (−2.60) 54.60 (−4.80)
KILT-NQ (EM) Centralized 23.57 19.35 (−4.22) 19.14 (−4.43)
KILT-NQ (EM) Federated β=0.1 21.85 18.72 (−3.13) 19.03 (−2.82)

Random uniformly samples K documents; Shuffled uses another query’s genuine top-K, preserving the distribution of retrieved representations while breaking query–evidence correspondence.

Two observations:

  1. The gains depend on query-relevant evidence. Replacing true retrieval with random or mis-paired embeddings consistently reduces performance by up to 26.29 points, providing direct evidence against a purely content-independent soft-prompt explanation. Shuffling is generally as harmful as random retrieval, showing that in-distribution representations alone are insufficient—their query relevance matters. On centralized PubMedQA, both controls fall below Direct Inference (52.80/52.00 vs. 54.00), showing that irrelevant evidence can actively harm generation.
  2. Question format may explain the different effect sizes. On centralized SLAKE-EN, shuffling reduces open-ended accuracy from 58.60 to 25.12, versus 71.15 to 56.01 for closed-ended questions. ScienceQA is entirely four-way multiple choice, which may reduce reliance on retrieval and explain its smaller federated drop.

(b) Retrieval diagnostics

Standard Recall@K and MRR require document-level relevance annotations for the evaluated retrieval pool. Such annotations are available only for PubMedQA under our construction. For the remaining datasets, we report clearly labeled, dataset-appropriate retrieval diagnostics.

Dataset Diagnostic K=1 K=3 K=5 Random K=5
KILT-NQ Answer-match Hit@K 0.233 0.309 0.337 0.001
SLAKE-EN (open-ended) Answer-match Hit@K 0.625 0.743 0.798 0.081
PubMedQA Gold-PMID Recall@K 0.998 1.000 1.000 0.000
ScienceQA Topic Precision@K 0.981 0.976 0.973 0.105

Answer-match Hit@K measures whether the top-K contains an item sharing the query’s gold answer. We use it for KILT-NQ and open-ended SLAKE-EN, whose random K=5 baselines are low (0.001 and 0.081), but not for multiple-choice questions, whose small answer spaces produce frequent chance matches. Topic Precision@K is the proportion of retrieved items sharing the query’s annotated topic, a measure of topical alignment rather than document-level relevance. Gold-PMID Recall@K checks whether the top-K contains the source abstract of each question; given how the pool is constructed, we read this near-saturated value as a consistency check rather than evidence of retrieval quality.

(c) The retrieval encoder

The same frozen backbone serves as both retrieval encoder and generator: Qwen2.5-VL-7B for VQA and Qwen3-8B for QA. We mean-pool its last-layer hidden states over non-padding positions, apply L2 normalization, and retrieve by inner product. Although sharing the backbone may ease alignment, pooled output representations are not directly usable as input-token embeddings. Stage 1 learns this mapping. Its necessity is confirmed by the ablation Table 6: Stage 2 alone achieves 49.67 versus 49.58 for Direct Inference, while both stages reach 63.71.


W2/Q2 — Privacy

On the claim

We agree that the privacy claim required a more precise scope. FedRepRAG protects against direct raw-content disclosure, but does not guarantee embedding confidentiality or formal end-to-end privacy. Avoiding raw-content transfer reduces direct exposure, while the results below quantify the residual leakage through exchanged representations. The final revision will clarify this scope in the abstract and introduction and replace Table 1’s binary “Privacy Preserving” column with “No Raw-Content Transfer.”

Threat model and attack setup

We consider an honest-but-curious insider with the public frozen backbone and shared projector received during FedAvg. As Stage 1 explicitly trains the projector for reconstruction, the attacker needs no separately trained inversion model. It feeds an observed embedding through the shared projector and backbone, then decodes the output. Exposure depends on role: assisting clients receive the broadcast query embedding, the querying client the global top-K document embeddings, and the server both. We evaluate inversion of both document and query embeddings. Each attack uses 500 items and both projector stages, with 95% bootstrap CIs from 10,000 resamples.

Retrieved-document inversion

Success means verbatim recovery of the private answer on KILT-NQ or a contiguous ≥8-token abstract span on PubMedQA. As these criteria differ, each result is compared only with its dataset-specific mismatched control.

Dataset (content length) Stage 1 Stage 2 (deployed) mismatched control (S1 / S2)
KILT-NQ — QA pairs, ~11 words 20.4% [17.0, 24.0] 11.0% [8.4, 13.8] 1.0% / 0.6%
PubMedQA — abstracts, ~259 words 1.4% [0.4, 2.6] 0.2% [0.0, 0.6] 0.2% / 0.0%

Query inversion

Query embeddings have broader peer exposure because they are broadcast to all assisting clients. Success means verbatim recovery of a contiguous ≥6-token question span.

Dataset (query length) Stage 1 Stage 2 (deployed) mismatched control (S1 / S2)
KILT-NQ — ~11 words 13.4% [10.4, 16.4] 5.4% [3.6, 7.4] 0.0% / 0.0%
PubMedQA — ~13 words 0.6% [0.0, 1.4] 0.0% [0.0, 0.0] 0.0% / 0.0%

Two observations:

  1. Content is recoverable, while task adaptation reduces measured recovery. Recovery falls from 20.4% to 11.0% for KILT-NQ documents and from 13.4% to 5.4% for its queries, with near-zero Stage-2 recovery on PubMedQA. Clients receive the more invertible Stage-1 projector during training and can retain it, so Stage 1 remains the conservative insider-risk estimate.
  2. Leakage is dataset-dependent. PubMedQA shows low recovery across both surfaces and stages (documents: 1.4%/0.2%; queries: 0.6%/0.0%), which is encouraging for the medical setting where privacy is especially important, but is not a safety guarantee. KILT-NQ and PubMedQA queries have similar lengths but markedly different recovery rates, indicating that query length alone does not explain the difference.

Membership inference

Membership inference asks whether a document was used to train the projector, rather than what its embedding reveals. We use ROUGE-L reconstruction quality as the membership score for 500 training and 500 held-out documents, encoded identically. AUC 0.5 indicates chance.

Dataset Stage 1 Stage 2 (deployed)
KILT-NQ 0.567 [0.530, 0.603] 0.573 [0.538, 0.610]
PubMedQA 0.500 [0.464, 0.537] 0.512 [0.478, 0.548]

KILT-NQ shows modest but non-zero membership leakage, while PubMedQA remains statistically indistinguishable from chance. Thus, content recovery and membership leakage are distinct risks.

Stage-1 DP-SGD

As Stage 1 exhibits the highest inversion risk, we retrain it using DP-SGD. During local optimization, each client clips every per-example gradient to a fixed L2 norm and adds Gaussian noise locally before each update. We account for privacy over the full Stage-1 training procedure using an RDP accountant. Client dataset sizes vary substantially under β = 0.1, resulting in different sampling rates and privacy costs. We therefore report the largest ε across clients, corresponding to the weakest per-record guarantee.

Noise multiplier σ ε (δ = 5.4 × 10⁻⁵) Document inversion Mismatched control
0 (no DP) — 20.4% [17.0, 24.0] 1.0%
0.5 4.46 0.6% [0.0, 1.4] 0.8%
1.0 0.55 0.2% [0.0, 0.6] 0.4%

At both tested noise levels, the evaluated inversion attack no longer performs above its corresponding mismatched control. With σ = 1.0, this is achieved with a worst-case privacy budget of ε = 0.55.

Consistent with our revised claim, the current framework avoids raw-content transfer rather than providing formal end-to-end privacy. Stronger complementary protections, including secure aggregation, remain future work, as already discussed in our Conclusion and Future Work section.


W3/Q3 — Error bars and appendices

Appendices A–E were submitted as a separate PDF inside the Supplementary Material archive, accessible through the Supplementary Material link. We apologize that this was not clearly signposted. Appendix A contains Table 8 and Algorithm 1, Appendix C provides the complete training and hyperparameter details, and Appendix D reports 95% bootstrap confidence intervals from 1,000 test-set resamples for the main experimental settings.


Q4 — KILT-NQ splits

For KILT-NQ, we train on all training samples and report the final-round checkpoint without validation-based selection. The official validation set is used only for final evaluation. The main text incorrectly states otherwise, while Appendix C provides the correct protocol and training details for all datasets. We will correct this in the final revision.


Minor

Both Figure 1 typos will be fixed.

Authors · CommentOpenReview ↗

Thank you for taking the time to consider our response! We sincerely hope that it has resolved the concerns raised in your review. If you find our response satisfactory, we would appreciate it if you could reconsider the score. We are also happy to answer any more questions should there be any.

Reviewer 3qcgOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
4/4
Significance
4/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper introduces Representation-based Federated Retrieval Augmented Generation (FedRepRAG), which is a decentralized RAG framework that avoids raw-data exchange during retrieval by using compressed latent representations (i.e. embeddings) of retrieved private documents to share information among clients. These embeddings are then projected onto the latent space of the generative model (a frozen LLM/VLM) by a lightweight collaboratively trained projector, which provides additional external context that improves the quality and accuracy of the generated response. This approach enhances the privacy along the communication channels between clients while also reducing the communication cost.

The authors evaluate FedRepRAG on Visual Question Answering (VQA) benchmarks SLAKE and ScienceQA, and on Question Answering (QA) benchmarks PubMedQA and KILT-NQ and demonstrate:

  • significant accuracy improvements,
  • massive reduction in communication cost over direct generation (no retrieval) and local-retrieval-only generation (documents are only retrieved from the querying client, which is fully private), and
  • significant reduction in computational cost

across all datasets under varying degrees of data heterogeneity.

The authors also carry out ablation studies to justify their choice of a multi-stage training procedure for the projector, as well demonstrate the robustness of their method across multiple VLM backbones (Qwen2.5-VL-3B, Qwen2.5-VL-7B, and Gemma3-VLM-12B). An analysis of the retrieval patterns across clients shows that clients with local expertise can dominate retrieval results on that topic, enabling effective sharing of knowledge across clients under heterogeneous distribution of the retrieval corpora.

Strengths and weaknesses

Thank you for your effort!

Strengths

  • The authors motivate their work by connecting it to existing literature exploring federated search and federated RAG, while highlighting the gap in privacy protection and high communication and computation costs involved.
  • The paper proposes a practical and highly useful methodology for RAG under a federated setting with significant privacy and efficiency concerns.
  • The authors conduct extensive experiments that demonstrate the improved accuracy of FedRepRAG over a maximally privacy-conserving approach of local-retrieval only, and over direct generation which does not leverage client's private data. This represents a real opportunity in developing federated frameworks in applications such as healthcare, as they also demonstrate via their evaluation on medical datasets such as SLAKE and PubMedQA.
  • Their method offers effective protection of privacy over the communication channels between the clients and the central server, and opens up potential avenues for further research into strengthening privacy via differential privacy and other techniques.
  • The paper presents their approach in a clear, detailed and well-written format accompanied by useful figures. Overall the paper is very accessible and easily understandable, and also provides an anonymous Github repository of their code for reproducibility.

Weakness

  • The paper does not quantify the privacy leakage suffered in existing approaches and FedRepRAG. Estimating metrics similar to mutual information[1] or membership inference attacks[2] would help quantify the privacy benefits of using compressed embeddings for inter-client communication. The authors acknowledge the limited nature of protection offered by their approach and propose using differential privacy and homomorphic encryption in future work to enhance privacy.
  • The paper does not include the appendices referenced in the manuscript. This may be easily amended and will allow me to increase my score further.

References:

[1]: Liu, Y., Zhu, X., Wang, J., Xiao, J. (2021). A Quantitative Metric for Privacy Leakage in Federated Learning. arXiv preprint arXiv:2102.13472.

[2]: Shokri, R., Stronati, M., Song, C., Shmatikov, V. (2016). Membership Inference Attacks against Machine Learning Models. arXiv preprint arXiv:1610.05820.

Questions
  1. Could you please provide the details of the frozen retrieval encoder fe(⋅)f_e(\cdot)? How is it defined? Can it be derived from the LLM/VLM backbone used as a generator? If so, how would this affect the effectiveness of the semantic alignment training (Stage 1) of the projector?
  2. How effective would it be to combine FedRepRAG with other approaches such as RAGRoute[1] (which selects most relevant client sources at query time for retrieval) and DRAG[2] (which proposes a topic-aware random walk over a peer-to-peer network of clients for targeted retrieval)?
  3. In medical databases, it can be reasonably assumed that each client's private retrieval corpus will be updated frequently as new patient data is added to it. How robust would the embedding encoder and the lightweight projector be such changes, and would this require frequent retraining of the projector/encoder?
  4. If the encoder (fe(⋅)f_e(\cdot)) and the generator (gθ(⋅)g_\theta(\cdot)) are publicly available models, what is the effect on the privacy leakage through the transmitted embeddings (query and retrieved embeddings)? How can we defend against such attacks?

References:

[1]: Dhasade, A., Guerraoui, R., Kermarrec, A., Petrescu, D., Pires, R., Randl, M., Vos, M.D. (2025). Efficient Federated Search for Retrieval-Augmented Generation using Lightweight Routing. arXiv preprint arXiv:2502.19280.

[2]: Xu, C., Gao, L., Miao, Y., Zheng, X. (2025). Distributed Retrieval-Augmented Generation. arXiv preprint arXiv:2505.00443.

Limitations
  • Please include the appendices referenced in the main portion of the manuscript.
Final justification

I thank the authors for their detailed rebuttal.

The privacy leakage under this framework has now been quantified, and the paper's claim has been appropriately rescoped to only cover raw-content disclosure. Formal privacy guarantees remain in the scope of future work. The appendices will be corrected and signposted to the reader as required in the final manuscript.

I have raised my final score to 5 and recommend the acceptance of this paper.

Formatting concerns
  • Please delete the instruction block under the NeurIPS Paper Checklist.
2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for these constructive comments and address them one by one below.


W2 — The appendices

Appendices A–E were submitted as a PDF inside the Supplementary Material zip, accessible through the Supplementary Material link. We apologize that this was not clearly signposted. We will remove the checklist instruction block in the final revision.


W1/Q4 — Privacy leakage under public models

We provide an explicit threat model, document and query inversion attacks, membership-inference results, and potential defenses below.

Threat model and attack setup

We consider an honest-but-curious insider with the public frozen backbone and shared projector received during FedAvg. As Stage 1 explicitly trains the projector for reconstruction, the attacker needs no separately trained inversion model. It can feed an observed embedding through the shared projector and backbone, then decode the output.

Exposure depends on role: assisting clients receive the broadcast query embedding, the querying client receives the global top-K document embeddings, and the server sees both. We evaluate inversion of both document and query embeddings. Each attack uses 500 items and both projector stages, with 95% bootstrap CIs from 10,000 resamples.

Retrieved-document inversion

Success means verbatim recovery of the private answer on KILT-NQ or a contiguous ≥8-token abstract span on PubMedQA. As these criteria differ, each result is compared only with its dataset-specific mismatched control.

Dataset (content length) Stage 1 Stage 2 (deployed) mismatched control (S1 / S2)
KILT-NQ — QA pairs, ~11 words 20.4% [17.0, 24.0] 11.0% [8.4, 13.8] 1.0% / 0.6%
PubMedQA — abstracts, ~259 words 1.4% [0.4, 2.6] 0.2% [0.0, 0.6] 0.2% / 0.0%

Federated IC-RAG transmits the raw retrieved passage, so 100% of its content is directly exposed to the recipient by construction. This protocol-level exposure is not the same metric as inversion success, so we do not equate 100% with the rates above. The comparison nevertheless shows that FedRepRAG removes deterministic raw-passage disclosure while retaining measurable representation-level leakage.

Query inversion

Query embeddings have broader peer exposure because they are broadcast to all assisting clients. Success means verbatim recovery of a contiguous ≥6-token question span.

Dataset (query length) Stage 1 Stage 2 (deployed) mismatched control (S1 / S2)
KILT-NQ — ~11 words 13.4% [10.4, 16.4] 5.4% [3.6, 7.4] 0.0% / 0.0%
PubMedQA — ~13 words 0.6% [0.0, 1.4] 0.0% [0.0, 0.0] 0.0% / 0.0%

Two observations:

  1. Content is recoverable, while task adaptation reduces measured recovery. Recovery falls from 20.4% to 11.0% for KILT-NQ documents and from 13.4% to 5.4% for its queries, with near-zero Stage-2 recovery on PubMedQA. Clients receive the more invertible Stage-1 projector during training and can retain it, so Stage 1 remains the conservative insider-risk estimate.

  2. Leakage is dataset-dependent. PubMedQA shows low recovery across both surfaces and stages (documents: 1.4%/0.2%; queries: 0.6%/0.0%), which is encouraging for the medical setting where privacy is especially important, but is not a safety guarantee. KILT-NQ and PubMedQA queries have similar lengths but markedly different recovery rates, indicating that query length alone does not explain the difference.

Membership inference

Membership inference asks whether a document was used to train the projector, rather than what its embedding reveals. We use ROUGE-L reconstruction quality as the membership score for 500 training documents and 500 documents excluded from projector training, all encoded identically. AUC 0.5 indicates chance.

Dataset Stage 1 Stage 2 (deployed)
KILT-NQ 0.567 [0.530, 0.603] 0.573 [0.538, 0.610]
PubMedQA 0.500 [0.464, 0.537] 0.512 [0.478, 0.548]

KILT-NQ shows modest but non-zero membership leakage because both intervals exclude 0.5, while PubMedQA remains statistically indistinguishable from chance because both contain 0.5. Thus, content recovery and membership inference show different patterns, indicating that they capture distinct risks.

The metric in [1] estimates mutual information between private training batches and shared gradients, and is validated against gradient-inversion error. As our primary transmitted objects are inference-time query and document embeddings rather than gradients, we directly evaluate their leakage through inversion attacks and separately report membership-inference AUC for training-related leakage.

Defenses

We first test lightweight inference-time defenses by perturbing every query and document embedding transmitted at inference. Utility is measured using the deployed Stage-2 projector, while document inversion uses the more vulnerable Stage-1 projector for a conservative risk estimate.

Perturbation KILT-NQ EM (Stage 2) Document inversion (Stage 1) Inversion reduction (pp)
none (fp32) 21.85 20.4% —
int8 quantization 21.82 20.4% 0.0
int4 quantization 12.05 0.6% (control: 0.6%) +19.8
fp32 + noise σ = 0.001 21.75 21.8% −1.4 [−6.4, +3.6]
fp32 + noise σ = 0.002 21.78 19.6% +0.8 [−4.2, +5.8]
fp32 + noise σ = 0.005 21.85 17.0% +3.4 [−1.4, +8.2]

Int8 preserves utility but provides no privacy benefit. No tested noise level significantly reduces inversion, while EM remains nearly unchanged. Int4 reduces inversion to its control level but severely degrades EM. Thus, strong perturbation suppresses both recoverability and task utility, and none of these methods provides a favorable trade-off.

We then evaluate example-level DP-SGD for Stage-1 training-record privacy under the same protocol, reporting the worst-client guarantee under heterogeneous client sizes.

Noise multiplier σ ε (δ = 5.4 × 10⁻⁵) KILT-NQ EM (Stage 2) Document inversion (Stage 1) Mismatched control
0 (no DP) — 21.85 20.4% [17.0, 24.0] 1.0%
0.5 4.46 21.61 0.6% [0.0, 1.4] 0.8%
1.0 0.55 22.14 0.2% [0.0, 0.6] 0.4%

As above, EM is measured using the deployed Stage-2 projector, while inversion is evaluated using the more vulnerable Stage-1 projector as a conservative risk estimate. At both tested noise levels, the evaluated inversion attack no longer performs above its corresponding mismatched control. With σ = 1.0, this is achieved at a worst-case privacy budget of ε = 0.55. Importantly, we observe no downstream utility degradation: the deployed two-stage system retains 21.61–22.14 EM under DP, remaining within 0.29 points of the 21.85 non-private baseline.

Claim scope

In summary, FedRepRAG protects against direct raw-content disclosure but does not guarantee embedding confidentiality or formal end-to-end privacy. Avoiding raw-content transfer reduces direct exposure, while the results above quantify residual representation-level leakage. Stronger formal privacy guarantees remain future work, as already discussed in our Conclusion and Future Work section. The final revision will clarify this scope.


Q1 — Retrieval encoder and Stage 1

The same frozen backbone serves as both retrieval encoder and generator, with no separate retriever: Qwen2.5-VL-7B for VQA and Qwen3-8B for QA. We mean-pool its last-layer hidden states over non-padding positions, apply L2 normalization, and retrieve by inner product. Deriving the encoder from the generator may simplify Stage 1 by avoiding cross-model mismatch, but does not eliminate the need for alignment because pooled output representations are not directly usable as input-token embeddings. Table 6 confirms that Stage 1 learns this mapping effectively: Stage 1 alone improves SLAKE-EN from 49.58 to 57.12, Stage 2 alone reaches only 49.67, and combining both reaches 63.71.


Q2 — Combining with RAGRoute and DRAG

These methods are complementary. RAGRoute and DRAG determine which clients to query, while FedRepRAG determines what is transferred and how it conditions the generator. RAGRoute could select clients before our representation-exchange protocol, while DRAG could use the same representation exchange within its P2P topology.

We evaluate random client participation on SLAKE-EN (β=0.1, K=5):

Participation Active clients Avg acc KiB/query
1.0 10 63.71 924.2
0.5 5 62.96 (−0.75) 504.1
0.3 3 59.75 (−3.96) 336.1
0.1 1 55.33 (−8.38) 168.0

Randomly selecting half the clients reduces accuracy by only 0.75 points while nearly halving bandwidth, showing robustness to client subsampling in this setting. A relevance-aware router could recover some or all of this loss under the same communication budget. This is a random-routing baseline, not a performance bound. DRAG could additionally replace centralized coordination with P2P retrieval, reducing exposure to a single server. Evaluating relevance-aware routing and P2P leakage is a promising extension.


Q3 — Corpus updates

Routine corpus updates do not require retraining. The frozen encoder embeds each new document with one forward pass, after which it is inserted into the local FAISS index. The projector operates on embeddings in the fixed backbone space rather than corpus identities, so corpus growth alone does not require periodic retraining.

Retraining is required if the backbone changes and may be beneficial under substantial distribution shift, such as a new imaging modality or changing case mix. Our non-IID experiments provide indirect evidence of robustness across client distributions but do not evaluate temporal drift. We will state this limitation and consider longitudinal evaluation as future work.

Authors · CommentOpenReview ↗

Thank you for taking the time to consider our response! We sincerely hope that it has resolved the concerns raised in your review. If you find our response satisfactory, we would appreciate it if you could reconsider the score. We are also happy to answer any more questions should there be any.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…