paper-with-me

홈 › Papers

FedTP: Federated Learning by Transformer Personalization

2022-11-03 · Hongxia Li, Zhongyi Cai, Jingya Wang, Jiangnan Tang, Weiping Ding, Chin-Teng Lin, Ye Shi

Federated learning is an emerging learning paradigm where multiple clients collaboratively train a machine learning model in a privacy-preserving manner. Personalized federated learning extends this paradigm to overcome heterogeneity across clients by learning personalized models. Recently, there have been some initial attempts to apply Transformers to federated learning. However, the impacts of federated learning algorithms on self-attention have not yet been studied. This paper investigates this relationship and reveals that federated averaging algorithms actually have a negative impact on self-attention where there is data heterogeneity. These impacts limit the capabilities of the Transformer model in federated learning settings. Based on this, we propose FedTP, a novel Transformer-based federated learning framework that learns personalized self-attention for each client while aggregating the other parameters among the clients. Instead of using a vanilla personalization mechanism that maintains personalized self-attention layers of each client locally, we develop a learn-to-personalize mechanism to further encourage the cooperation among clients and to increase the scablability and generalization of FedTP. Specifically, the learn-to-personalize is realized by learning a hypernetwork on the server that outputs the personalized projection matrices of self-attention layers to generate client-wise queries, keys and values. Furthermore, we present the generalization bound for FedTP with the learn-to-personalize mechanism. Notably, FedTP offers a convenient environment for performing a range of image and language tasks using the same federated network architecture - all of which benefit from Transformer personalization. Extensive experiments verify that FedTP with the learn-to-personalize mechanism yields state-of-the-art performance in non-IID scenarios. Our code is available online.

📄 PDF Abstract BibTeX arXiv:2211.01572

Code (1)

zhyczy/fedtp 공식 구현 pytorch

Tasks

Federated LearningPersonalized Federated LearningPrivacy Preserving

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Adam 설명 없음
Position-Wise Feed-Forward Layer 설명 없음
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…

Similar Papers 제목 키워드 기반

MoE Enhanced Federated Learning for Spatiotemporal Prediction

2026-06-09 · Zhehao Dai, Xiao Han, Zhaolin Deng, Zijian Zhang 외 arxiv

Traffic prediction is fundamental to intelligent transportation systems and urban computing, yet many cities continue to suffer from traffic data scarcity due to limited sensor deployment and uneven urban development. Cr…

Federated LearningTraffic Prediction

Replication Study: Federated Text-Driven Prompt Generation for Vision-Language Models

2025-11-24 · Suraj Prasad, Anubha Pant arxiv

Vision-language models like CLIP have demonstrated remarkable zero-shot capabilities, yet their adaptation to federated learning scenarios presents significant challenges, particularly regarding generalization to unseen …

Federated Learning

Zero-Shot Decentralized Federated Learning

2025-09-30 · Alessio Masano, Matteo Pennisi, Federica Proietto Salanitri, Concetto Spampinato 외 arxiv

CLIP has revolutionized zero-shot learning by enabling task generalization without fine-tuning. While prompting techniques like CoOp and CoCoOp enhance CLIP's adaptability, their effectiveness in Federated Learning (FL) …

Image ClassificationFederated LearningZero-Shot Learning

Federated Learning for Traffic Flow Prediction with Synthetic Data Augmentation

2024-12-11 · Fermin Orozco, Pedro Porto Buarque de Gusmão, Hongkai Wen, Johan Wahlström 외

Deep-learning based traffic prediction models require vast amounts of data to learn embedded spatial and temporal dependencies. The inherent privacy and commercial sensitivity of such data has encouraged a shift towards …

Data AugmentationFederated LearningGraph AttentionPrediction+1

Federated style aware transformer aggregation of representations

2025-11-24 · Mincheol Jeon, Euinam Huh arxiv

Personalized Federated Learning (PFL) faces persistent challenges, including domain heterogeneity from diverse client data, data imbalance due to skewed participation, and strict communication constraints. Traditional fe…

Personalized Federated Learning