English

DFAMS: Dynamic-flow guided Federated Alignment based Multi-prototype Search

Machine Learning 2025-10-15 v2 Computation and Language

Abstract

Federated Retrieval (FR) routes queries across multiple external knowledge sources, to mitigate hallucinations of LLMs, when necessary external knowledge is distributed. However, existing methods struggle to retrieve high-quality and relevant documents for ambiguous queries, especially in cross-domain scenarios, which significantly limits their effectiveness in supporting downstream generation tasks. Inspired by Dynamic Information Flow (DIF), we propose DFAMS, a novel framework that leverages DIF to identify latent query intents and construct semantically aligned knowledge partitions for accurate retrieval across heterogeneous sources. Specifically, DFAMS probes the DIF in LLMs by leveraging gradient signals from a few annotated queries and employing Shapley value-based attribution to trace neuron activation paths associated with intent recognition and subdomain boundary detection. Then, DFAMS leverages DIF to train an alignment module via multi-prototype contrastive learning, enabling fine-grained intra-source modeling and inter-source semantic alignment across knowledge bases. Experimental results across five benchmarks show that DFAMS outperforms advanced FR methods by up to 14.37\% in knowledge classification accuracy, 5.38\% in retrieval recall, and 6.45\% in downstream QA accuracy, demonstrating its effectiveness in complex FR scenarios. Our code are anonymous available at https://anonymous.4open.science/r/DFAMS/

Keywords

Cite

@article{arxiv.2508.20353,
  title  = {DFAMS: Dynamic-flow guided Federated Alignment based Multi-prototype Search},
  author = {Zhibang Yang and Xinke Jiang and Rihong Qiu and Ruiqing Li and Yihang Zhang and Yue Fang and Yongxin Xu and Hongxin Ding and Xu Chu and Junfeng Zhao and Yasha Wang},
  journal= {arXiv preprint arXiv:2508.20353},
  year   = {2025}
}

Comments

8 pages, 3 figures

R2 v1 2026-07-01T05:09:29.780Z