arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.02647cs.DCcs.AIcs.LG
收藏

Federated Attention:一种用于边缘网络上协作式 LLM 推理的分布式范式

Federated Attention: A Distributed Paradigm for Collaborative LLM Inference over Edge Networks

Pillar of Information Systems Technology and Design, Singapore University of Technology and Design(信息系统技术与设计学院,新加坡南洋理工大学);School of Electronics, Electrical Engineering and Computer Science, Queen’s University Belfast(电子、电气与计算机科学学院,女王大学贝尔法斯特分校);Department of Electrical and Computer Engineering, Sungkyunkwan University(电气与计算机工程系,成均馆大学);KU 6G Research Center, Department of Computer and Information Engineering, Khalifa University(6G研究中心,计算机与信息工程系,哈利法大学);CentraleSupelec, University of Paris-Saclay(中央超导研究所,巴黎萨克雷大学);Department of Electrical and Computer Engineering, Princeton University(电气与计算机工程系,普林斯顿大学)

Xiumei Deng, Zehui Xiong, Binbin Chen, Dong In Kim, Merouane Debbah, H. Vincent Poor

AI总结:

针对边缘网络中LLM协作推理面临的隐私、通信和计算瓶颈,提出Federated Attention框架,通过周期性跨Transformer块聚合KV矩阵实现隐私保护与高效推理,并从理论和实验验证了其优化潜力。

摘要:

大型语言模型(LLMs)正在边缘端快速普及,在多样化的应用场景中提供智能能力。然而,其在协作场景中的实际部署面临着基本挑战:隐私漏洞、通信开销和计算瓶颈。为了解决这些问题,我们提出了 Federated Attention(FedAttn),它将联邦范式集成到自注意力机制中,创建了一种新的分布式 LLM 推理框架,可同时实现隐私保护、通信效率和计算效率。FedAttn 使参与者能够对其自身的 token 表示执行本地自注意力,同时周期性地跨多个 Transformer 块交换和聚合 Key-Value(KV)矩阵,从而在不暴露私有提示的情况下协作生成 LLM 响应。此外,我们发现了 FedAttn 中的上下文表示优化与 FL 中的参数优化之间在私有数据、本地计算和全局聚合方面存在的结构对偶性。这一关键见解为系统地将联邦优化技术移植到协作式 LLM 推理中提供了原则性基础。基于此框架,我们从理论上分析了参与者内部的本地自注意力计算以及参与者之间异构的 token 相关性如何影响跨 Transformer 块的误差传播动态。此外,我们刻画了响应质量与通信/计算效率之间的基本权衡,该权衡由同步间隔和参与者数量决定。实验结果验证了我们的理论分析,并揭示了通过稀疏注意力和自适应 KV 聚合带来的显著优化机会,凸显了 FedAttn 在现实边缘部署中提供可扩展性和效率的潜力。

英文摘要:

Large language models (LLMs) are proliferating rapidly at the edge, delivering intelligent capabilities across diverse application scenarios. However, their practical deployment in collaborative scenarios confronts fundamental challenges: privacy vulnerabilities, communication overhead, and computational bottlenecks. To address these, we propose Federated Attention (FedAttn), which integrates the federated paradigm into the self-attention mechanism, creating a new distributed LLM inference framework that simultaneously achieves privacy protection, communication efficiency, and computational efficiency. FedAttn enables participants to perform local self-attention over their own token representations while periodically exchanging and aggregating Key-Value (KV) matrices across multiple Transformer blocks, collaboratively generating LLM responses without exposing private prompts. Further, we identify a structural duality between contextual representation refinement in FedAttn and parameter optimization in FL across private data, local computation, and global aggregation. This key insight provides a principled foundation for systematically porting federated optimization techniques to collaborative LLM inference. Building on this framework, we theoretically analyze how local self-attention computation within participants and heterogeneous token relevance among participants shape error propagation dynamics across Transformer blocks. Moreover, we characterize the fundamental trade-off between response quality and communication/computation efficiency, which is governed by the synchronization interval and the number of participants. Experimental results validate our theoretical analysis, and reveal significant optimization opportunities through sparse attention and adaptive KV aggregation, highlighting FedAttn's potential to deliver scalability and efficiency in real-world edge deployments.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑