Federated Contrastive Learning for Personalized Semantic Communication

Yining Wang, Wanli Ni, Wenqiang Yi, Xiaodong Xu, Ping Zhang, Arumugam Nallanathan

Introduction

Semantic Communication (SemCom) represents a paradigm shift from traditional bit-level transmission to the exchange of meaningful information. While highly efficient, SemCom relies on complex Deep Neural Networks (DNNs) that are challenging to train in decentralized environments. Primary obstacles include data heterogeneity (non-IID data) and model heterogeneity, where diverse devices (e.g., IoT sensors vs. smartphones) require different model architectures.

This paper introduces Federated Contrastive Learning (FedCL), a framework designed to address these challenges. FedCL enables the training of personalized semantic models without sharing raw data or model weights, leveraging a server-side Semantic Centroid Generator (SCG) and contrastive learning to align inconsistent semantic features across heterogeneous datasets.

System Architecture and Methodology

FedCL departs from traditional Federated Learning (FL) methods like FedAvg, which typically require identical model architectures across all clients to perform weight averaging. Instead, FedCL employs a collaborative training strategy focused on feature and gradient exchange.

Comprehensive overview of the FedCL system architecture and the 10-step collaborative training process.

Key Components:

  • Personalized Encoders: Each client maintains a unique semantic encoder tailored to its specific hardware capabilities and local data distribution.
  • Feature & Gradient Exchange: Clients transmit extracted semantic features to the Base Station (BS). The BS processes these through a global decoder, computes the task loss, and returns gradients to update the local encoders.
  • Semantic Centroid Generator (SCG): The BS hosts an SCG that utilizes contrastive learning. It aggregates local features to generate "global semantic centroids"—prototypical representations of each class in the feature space.
  • Contrastive Regularization: Local training is regularized to ensure that features are close to their corresponding global centroids (intra-semantic compactness) and distant from centroids of other classes (inter-semantic separability). This mechanism acts as a "North Star," preventing local models from drifting into incompatible feature representations.

Experimental Evaluation

The framework was evaluated using the CIFAR-10 dataset in an m-way q-shot configuration to simulate extreme non-IID scenarios. In this setup, each client only has access to a subset of classes and a limited number of samples, testing the system's ability to generalize from fragmented local views.

Key Results and Insights

FedCL demonstrates superior performance compared to established benchmarks such as FedAvg and FedProto, particularly in challenging communication environments.

Comparison of test accuracy across different SNR levels, highlighting FedCL's significant robustness to channel noise.

Performance Highlights:

  • Robustness to Noise: A critical finding is FedCL's resilience to wireless channel noise. At a Signal-to-Noise Ratio (SNR) of 9 dB, FedCL achieved a 25.09% accuracy improvement over FedProto and a 66.24% improvement over FedAvg. The semantic centroids effectively act as a denoising mechanism, helping the decoder reconstruct the intended meaning even from corrupted signals.
  • Accuracy Gains: In a scenario with 20 clients, FedCL outperformed FedProto by 12.75% and FedAvg by 38.55% in overall test accuracy.
  • Feature Separability: t-SNE visualizations confirmed that FedCL produces tighter, more distinct semantic clusters, whereas traditional methods often result in overlapping or "smudged" feature representations.

Conclusion and Future Directions

FedCL successfully addresses the dual challenges of data and model heterogeneity in semantic communication. By utilizing contrastive learning and a centralized SCG, it provides a robust framework for personalized, privacy-preserving collaborative training.

Future research will focus on optimizing the communication overhead associated with frequent feature and gradient exchanges. Additionally, extending FedCL to more complex tasks such as real-time video streaming and multi-modal data processing remains a promising avenue for further development.

Summary updated

BibTeX
@article{wang2024federated,
  author = {Yining Wang and Wanli Ni and Wenqiang Yi and Xiaodong Xu and Ping Zhang and Arumugam Nallanathan},
  title = {{Federated Contrastive Learning for Personalized Semantic Communication}},
  journal = {IEEE Communications Letters},
  year = {2024},
  doi = {10.1109/lcomm.2024.3415431},
}
Figure