FedCP: Separating Feature Information for Personalized Federated Learning via Conditional Policy

Jianqing Zhang, Yang Hua, Hao Wang, Tao Song, Zhengui Xue, Ruhui Ma, Haibing Guan · DOI

Abstract

Personalized federated learning (pFL) has emerged as a critical paradigm for addressing statistical heterogeneity among decentralized clients, such as mobile devices and hospitals. While traditional pFL methods focus on personalizing model parameters at the client level, they often overlook the fact that individual data samples contain a mixture of both global and personalized information. We propose Federated Conditional Policy (FedCP), a novel method that separates feature information at the sample level using a Conditional Policy Network (CPN). By routing features to either a frozen global head or a trainable personalized head based on sample-specific policies, FedCP achieves a more fine-grained personalization. Experimental results across computer vision and natural language processing tasks demonstrate that FedCP outperforms eleven state-of-the-art methods by up to 6.69% and maintains high performance even in the presence of client dropouts.

Introduction

Federated Learning (FL) enables collaborative model training across distributed clients without the need to centralize private raw data. However, the practical application of FL is frequently hindered by statistical heterogeneity, where data distributions across clients are non-independent and identically distributed (non-IID). For instance, a mobile user's photo gallery may be dominated by specific categories (e.g., pets) that differ significantly from another user's collection.

Existing personalized FL (pFL) strategies typically address this by personalizing model parameters—such as maintaining unique local prediction heads. However, these methods treat all data from a single client uniformly. FedCP challenges this assumption, arguing that even within a single client, some features represent "global" patterns (e.g., common backgrounds like sky or grass) while others represent "personalized" nuances (e.g., specific object characteristics). By separating these at the sample level, FedCP provides a more flexible and accurate approach to personalization.

The FedCP Framework

The core of the FedCP architecture is the Conditional Policy Network (CPN), a lightweight auxiliary module that acts as an intelligent router for feature information.

1. Sample-Specific Routing

For every input sample, the CPN generates a specific policy (weighting) that determines how much of the extracted feature information should be treated as global versus personalized. This allows the model to adaptively prioritize global knowledge for standard inputs and personalized knowledge for client-specific anomalies.

2. Dual-Head Architecture

The routed features are processed by two distinct components:

  • Global Head: This head is frozen during local training to preserve the general knowledge aggregated from the entire federation.
  • Personalized Head: This head is trained locally to capture the specific nuances of the client's local data distribution.

3. Global Feature Matching (GFM)

To prevent the personalized feature extractor from drifting too far from the global representation, FedCP employs a Maximum Mean Discrepancy (MMD) loss. This alignment ensures that the distribution of features from the personalized extractor remains compatible with the expectations of the frozen global head, facilitating better knowledge transfer.

4. Communication and Aggregation

During the communication rounds, clients upload their personalized feature extractors, personalized heads, and CPNs. The server aggregates these parameters to update the global model, which is then redistributed to the clients for the next round of local training.

Experimental Results

Performance and Efficiency

FedCP was evaluated against 11 state-of-the-art methods (including Ditto, FedRep, and pFedMe) across multiple benchmarks:

  • Computer Vision: MNIST, CIFAR-10, CIFAR-100, and Tiny-ImageNet.
  • NLP: AG News text classification.

In the challenging CIFAR-100 practical setting (using a Dirichlet distribution to simulate realistic data imbalance), FedCP outperformed the strongest baseline by 6.69%. Despite the dual-head architecture, the communication overhead remains minimal; for a ResNet-18 backbone, the CPN only adds approximately 4.67% to the total communication cost compared to standard FedAvg.

Robustness to Client Dropout

In real-world mobile environments, "stragglers" or clients that drop out mid-training are common. FedCP demonstrates significant stability in these scenarios. Because the CPN can adaptively route features, the system remains robust even when the global information becomes slightly stale due to fluctuating client participation.

Privacy and Security

Beyond accuracy, FedCP offers enhanced privacy protections. The sample-specific policy breaks the direct connection between the feature extractor and the prediction head. This makes the model more resistant to Deep Leakage from Gradients (DLG) attacks, as it is significantly harder for an adversary to reconstruct private raw data from intercepted gradients.

Conclusion and Future Work

FedCP represents a shift in personalized federated learning from client-level to sample-level granularity. By effectively separating global and personalized feature information, it achieves superior accuracy and robustness with manageable overhead.

Future research directions include exploring more complex CPN architectures to further refine policy generation and developing formal theoretical convergence proofs for conditional routing within federated environments. Additionally, optimizing the hyperparameter $\lambda$ (used to balance the MMD loss) for automated tuning across diverse datasets remains an open challenge.

Summary updated

BibTeX
@inproceedings{zhang2023fedcp,
  author = {Jianqing Zhang and Yang Hua and Hao Wang and Tao Song and Zhengui Xue and Ruhui Ma and Haibing Guan},
  title = {{FedCP: Separating Feature Information for Personalized Federated Learning via Conditional Policy}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2023},
  doi = {10.1145/3580305.3599345},
}
Figure