arXiv:2605.06446cs.LG2026-05

通过冻结注意力核提升异构联邦学习中Transformer的稳定性与效果

FedFrozen: Two-Stage Federated Optimization via Attention Kernel Freezing

论文配图:FedFrozen: Two-Stage Federated Optimization via Attention Kernel Freezing
图 1 · 摘自论文原文
  • 分两阶段优化:先全模型预热,再冻结查询/键模块仅优化值模块
  • 在真实数据上显著降低客户端漂移,使模型收敛更稳定且准确率更高
  • 适合研究异构联邦学习中注意力机制鲁棒性的学者或工程落地者

异构客户端下的联邦学习仍是深度学习的重大挑战,主要源于不一致本地更新引发的客户端漂移。现有方法多通过目标正则化或更新修正解决。近期研究表明,基于Transformer的架构在异构联邦训练下可能具有更强鲁棒性。我们分析了注意力机制中不同参数组件对联邦优化的影响:将注意力模块分解为决定注意力核的查询/键块与执行语义变换的值块。据此提出FedFrozen——两阶段联邦优化框架:第一阶段全模型预热训练;第二阶段冻结查询/键块,仅优化值块。在线性注意力设定下,证明预热阶段相当于对正则化核配置目标的近似下降,冻结阶段则转化为固定注意力核下的值块受限优化。理论揭示了预热时长选择的显式权衡关系。仿真验证了预测的偏差-漂移行为,真实数据实验表明,该方法显著提升了Transformer在异构联邦学习中的稳定性与有效性。

原文摘要 · Abstract (English)

Federated learning with heterogeneous clients remains a significant challenge for deep learning, primarily due to client drift arising from inconsistent local updates. Existing federated optimization methods typically address this issue through objective-level regularization or update-correction mechanisms. Recent studies, however, suggest that Transformer-based architectures may be inherently more robust than conventional models under heterogeneous federated training. Motivated by this observation, we investigate how different parameter components within the attention mechanism influence federated optimization. Specifically, we decompose the attention module into a query/key block, which determines the attention kernel, and a value block, which performs semantic transformation under the induced kernel. Based on this perspective, we propose FedFrozen, a two-stage federated optimization framework that first performs full-model warm-up training and then freezes the query/key block while continuing to optimize the value block. Under a linear-attention formulation, we show that the warm-up stage can be interpreted as an inexact descent procedure on a regularized kernel-profile objective, while the frozen stage reduces to a restricted value-block optimization problem under a fixed attention kernel. Our analysis further reveals an explicit trade-off that governs the choice of warm-up length. Simulations validate the predicted bias-drift behavior, and real-data experiments demonstrate that FedFrozen improves both the stability and effectiveness of Transformer models in heterogeneous federated learning.

联邦学习注意力机制Transformer异构优化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。