Diffusion-Guided Semantic Consistency for Multimodal Heterogeneity

Jing Liu, Zhengliang Guo, Yan Wang, Xiaoguang Zhu, Yao Du, Zehua Wang, Victor C. M. LeungarXiv 2026

TL;DR

SemanticFL is a novel federated learning framework that mitigates client drift caused by heterogeneous (non-IID) data by using pre-trained diffusion models as universal semantic anchors. Instead of incurring heavy computational costs to generate synthetic data, it extracts compact, multi-layer visual and textual features offline on the server, allowing resource-constrained edge clients to align their local training via a unified cross-modal consistency mechanism.

What Problem Does This Paper Address?

Federated Learning (FL) allows multiple decentralized clients (like smartphones, hospitals, or autonomous vehicles) to collaboratively train a global machine learning model without sharing their raw, private data. However, a major roadblock in real-world deployments is data heterogeneity, or non-IID (non-independent and identically distributed) data. Different clients often collect vastly different types of data, leading to "client drift"—a phenomenon where local models optimize in completely different directions, severely degrading the performance of the aggregated global model.

While existing solutions try to penalize client drift using parameter regularization or basic feature alignment, they are constrained to the limited feature spaces of the lightweight client models themselves. They lack a robust, external semantic standard to anchor and align diverse data distributions across clients, especially in multimodal settings where data quality and completeness vary.

Methods

The authors introduce SemanticFL, a framework that leverages the rich, fine-grained semantic representations embedded within large pre-trained foundation models—specifically Stable Diffusion v1.5—to act as a shared semantic space for all clients.

To make this practical for resource-constrained edge devices, SemanticFL splits the workload into an efficient client-server architecture:

  1. Server-Side Offline Feature Extraction: Before federated training begins, the server performs a one-time extraction process. Images are passed through Stable Diffusion's VAE encoder, partially noised at a controlled timestep ($t=150$), and fed into the U-Net denoising network to extract multi-layer hierarchical features. Simultaneously, class prompts are passed through a CLIP text encoder to generate textual embeddings.
  2. Client-Side Lightweight Training: During standard FL communication rounds, the server broadcasts the global model parameters along with only the compact, pre-computed diffusion features relevant to each client's local dataset.
  3. Unified Multimodal Consistency Mechanism: Clients optimize their local lightweight models (e.g., ResNet-10) using a unified loss function consisting of three parts:
  4. Classification Loss ($\mathcal{L}_{\text{CE}}$): Standard cross-entropy for the local task.
  5. Knowledge Distillation Loss ($\mathcal{L}_{\text{KD}}$): Aligns the local model's feature representations with the rich visual features extracted from the diffusion U-Net.
  6. Cross-Modal Contrastive Loss ($\mathcal{L}_{\text{CON}}$): Uses InfoNCE to align local visual features with the global CLIP text embeddings, ensuring cross-modal semantic consistency.
Fig. 1: Overview of the SemanticFL framework. More details on components and symbols are described in Sec. III.

Datasets

The framework was evaluated using three widely adopted image classification benchmarks:

  • CIFAR-10
  • CIFAR-100
  • TinyImageNet

To rigorously simulate data heterogeneity, the authors subjected these datasets to two distinct non-IID partitioning strategies:

  • Label Shift: Data was distributed using a Dirichlet distribution with varying concentration parameters ($\alpha \in \{0.05, 0.2, 0.5\}$), alongside an extreme non-IID scenario labeled NID2.
  • Imbalance Shift: Long-tailed distributions were engineered using specific imbalance ratios ($\rho \in \{10, 50, 100\}$).

Key Insights and Ideas

  • Representation over Generation: Previous attempts to merge diffusion models with FL relied on generating synthetic data for local augmentation. This paper shifts the paradigm by demonstrating that the intermediate representations of diffusion models are powerful enough to guide semantic alignment directly, bypassing the massive compute and time penalties of image generation.
  • Decoupling Compute Barriers: By offloading foundation model inference to a one-time offline server phase, edge clients enjoy the representational benefits of a multi-billion parameter model while only executing standard forward and backward passes on lightweight local architectures.
  • Dual-Anchor Alignment: Aligning local features simultaneously to multi-scale visual structures (from the U-Net) and high-level textual concepts (from CLIP) creates a highly resilient feature space that prevents local models from overfitting to biased local client distributions.

Key Results

SemanticFL consistently outperformed state-of-the-art federated learning baselines—including standard FedAvg, regularization-based FedProx, contrastive MOON, and the diffusion-based FedDifRC—across all tested datasets and non-IID configurations.

  • CIFAR-10: Under moderate heterogeneity ($\alpha = 0.2$), SemanticFL achieved 88.94% top-1 accuracy, outperforming FedAvg by 4.29% and the next-best baseline (FedDifRC) by 0.67%.
  • CIFAR-100: In the extreme NID2 scenario, SemanticFL reached 54.58% accuracy, demonstrating robust generalization where standard FedAvg dropped to 50.56%.
  • Ablation Success: Ablation experiments confirmed that combining both Adaptive Multimodal Diffusion Aggregation (AMDA) and Server-side Feature Extraction (SFE) provided a significant synergistic boost, raising average CIFAR-10 accuracy to 83.27% compared to FedAvg's 78.37%.
Fig. 2: Results of client number K and local epochs E.

Limitations and Future Work

The authors acknowledge a few limitations in their current framework:

  • Server Dependency: SemanticFL assumes the server is powerful enough to handle the initial offline feature extraction across the entire dataset, which may not hold true in fully decentralized or peer-to-peer FL networks.
  • Hyperparameter Sensitivity: While the model shows overall robustness, the optimal values for the contrastive temperature ($\tau$) and loss balancing weights ($\lambda_{\text{KD}}, \lambda_{\text{CON}}$) can vary depending on the dataset and severity of data heterogeneity.

For future directions, the authors plan to extend SemanticFL to handle more complex multimedia data types, such as video and audio streams, and intend to investigate formal theoretical convergence guarantees under diverse non-IID settings.

Summary updated

BibTeX
@misc{liu2026diffusion,
  author = {Jing Liu and Zhengliang Guo and Yan Wang and Xiaoguang Zhu and Yao Du and Zehua Wang and Victor C. M. Leung},
  title = {{Diffusion-Guided Semantic Consistency for Multimodal Heterogeneity}},
  year = {2026},
  eprint = {2603.19337},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.19337},
}
Figure