Semantic-Bridge Federated Learning: Bridging CLIP Semantics for Heterogeneous FL

Leixuhai Xu, Xiangtao Zhang, Hailong Yan, Le ZhangNeurIPS 2026

TL;DR

Federated learning falls apart when distributed devices see wildly different types of data, causing local models to drift in conflicting directions. While giant vision–language models like CLIP seem like the obvious anchor to keep everyone aligned, raw CLIP embeddings are actually too noisy and geometrically clumped together to guide lightweight client models directly. This paper introduces Semantic-Bridge Federated Learning (SBFL), a clever translation layer that cleans up and reshapes offline CLIP features into crisp, student-friendly signals—boosting accuracy across the board without sharing raw private images or running heavy CLIP inference during training.

What Problem Does This Paper Address?

Imagine trying to paint a cohesive mural with ten artists who aren't allowed to look at each other's canvases—and worse, one artist only has blue paint, while another has only seen trees. That is heterogeneous Federated Learning (FL). FL lets decentralized clients collaboratively train a shared model without uploading raw private data. However, when clients have skewed class distributions (label skew) or different visual styles (domain shift), local models optimize for their own biased realities. When the server averages them together, the global model suffers.

Most existing fixes try to tweak the math of local updates or server aggregation, relying entirely on the biased client data itself. Recently, researchers started looking at Vision–Language Models (VLMs) like CLIP as an external, unbiased "North Star."

Here is the catch the authors uncover: raw CLIP embeddings make surprisingly poor teachers for small models. Because CLIP maps images and text into a massive retrieval space, its class prototypes share huge overlapping components—meaning different classes sit uncomfortably close together in cosine similarity. Forcing a lightweight CNN or ResNet to mimic raw, noisy, geometrically mismatched CLIP embeddings directly actually bottlenecks discrimination. Furthermore, clients usually lack the compute to run CLIP online during every training round.

Methods

Instead of feeding raw CLIP outputs to client models, SBFL builds an offline-to-online pipeline that verifies, translates, and replays semantic knowledge. Notably, CLIP is only used once before training begins; no VLM is deployed during federated communication.

Overview of the four-phase SBFL architecture, from offline bank verification to server-side bridging and local client alignment.

Here is how the four-phase pipeline works:

  1. Text-Verified Semantic Banks (Offline): Clients extract CLIP embeddings from their private images alongside synthetic semantic features (using an existing generator to fill in missing classes). Because generated features can hallucinate the wrong class, SBFL filters them against CLIP text prompts, keeping only candidates that pass a strict text-consistency margin. These clean feature–label pairs (never raw images) are uploaded once to build a balanced global bank on the server.
  2. Server-Side Semantic Bridge: This is the core innovation. At the start of each round, the server trains a lightweight module (an adapter, projector, and classifier) on the global bank. Crucially, it uses a geometry regularizer that strips away CLIP's dominant shared background component, pushing distant classes apart while preserving CLIP's natural neighborhood relationships. The bridge is then frozen and sent to clients.
  3. Dual-Level Prototype Alignment: During local training, clients pass semantic bank features through the frozen bridge to create "mixed prototypes" (blending local specificity with global completeness). Local image features are aligned to these bridged prototypes at both the encoder representation and projection levels.
  4. Quality-Aware Semantic Replay: To keep the local classifier sharp on underrepresented classes, clients replay verified synthetic features through their projector and classifier, weighting samples by how strongly they matched their text prompts in Phase 1.

SBFL is also plug-and-play: its losses snap cleanly onto standard FL backbones like FedAvg, FedProx, or MOON.

Datasets

No new datasets were introduced; the authors evaluate SBFL across five standard benchmarks split into two heterogeneity regimes:

  • Label-Skewed FL: CIFAR-10, CIFAR-100, and Tiny-ImageNet, partitioned across 10 clients using Dirichlet distributions ($\beta \in \{0.1, 0.5, 1.0\}$, where smaller $\beta$ means extreme class imbalance).
  • Domain-Shifted FL: Office-Caltech 10 (4 visual domains like Amazon, DSLR, Webcam) and Digit5 (5 digit styles like MNIST, SVHN, USPS), where each domain acts as a distinct client.

Key Insights and Ideas

  • CLIP needs a geometric makeover: On Tiny-ImageNet, raw CLIP prototypes have a high off-diagonal cosine similarity of 0.6638, with 35.50% of classes having a nearest neighbor above 0.9 similarity! The server-side bridge drops off-diagonal similarity down to 0.3772 (and >0.9 neighbors down to 4.00%), while keeping a 0.78–0.87 correlation with CLIP's original semantic structure. It un-clumps the space without forgetting which classes are cousins.
  • Synthetic fill-ins accidentally protect label privacy: If a client only uploaded embeddings of its real images, an inquisitive server could trivially read the client's exact class histogram (100% correlation). By mixing in verified generated semantics, the uploaded bank's correlation with the client's true label distribution drops to 0.0000, with 0% majority-class inference accuracy.
  • Visualizing the anti-drift effect: Because clients anchor to well-separated, bridged prototypes rather than drifting toward local biases, the learned feature spaces snap into clean focus.
Figure 1: t-SNE visualization on CIFAR-10 un- der label skew with β = 0.1. Compared with FedAvg, SBFL yields more compact and separa- ble class clusters, indicating improved represen- tation alignment under severe heterogeneity.

Key Results

  • Label Skew Dominance: SBFL takes first place in 17 out of 18 non-IID settings across CNN and ResNet-50 backbones, beating FedAvg by 4.21 percentage points on average (and by 7.73 points on the 100-class CIFAR-100 benchmark).
  • Domain Shift Gains: Under domain shift, SBFL achieves top average accuracy on both Office-Caltech 10 (82.08%, +8.31 over FedAvg) and Digit5 (95.03%, +3.64 over FedAvg), with massive jumps on small, difficult domains like DSLR and Webcam.
  • Plug-and-Play Boosts: Dropping SBFL onto six existing FL algorithms (including FedProx, MOON, and FedAWA) yields an average gain of +6.22 points on CIFAR-100 and +6.21 points on Office-Caltech 10.
  • Noise Resilience: Adding Gaussian noise ($\sigma = 0.05$) to uploaded CLIP features for extra privacy barely dents ResNet-50 accuracy on CIFAR-100 (dropping just 0.53 points), because class-level prototypes average out individual feature perturbations.

Limitations and Future Work

  • Reliance on CLIP's vocabulary and world knowledge: SBFL depends on class-name text prompts and CLIP's pre-training coverage. If class prompts are ambiguous, or if the task involves highly specialized domains (e.g., niche medical imaging or industrial sensors) where CLIP's priors are weak, the semantic guidance degrades.
  • No formal privacy guarantees: While raw images stay local and empirical tests show low label-distribution leakage and strong resilience to feature noise, uploading CLIP-space embeddings does not constitute a formal differential privacy (DP) guarantee. Future work is left with bridging that gap toward provable privacy bounds.

Summary updated

Abstract

Federated learning (FL) suffers from severe performance degradation under statistical heterogeneity, where label skew and domain shift induce representation drift and biased decision boundaries. While vision--language models such as CLIP provide transferable semantic priors, raw CLIP embeddings are noisy, highly correlated, and not directly aligned with the latent space of lightweight federated classifiers. We propose \textbf{Semantic-Bridge Federated Learning} (\ours), a framework that transfers pre-trained vision--language semantics into heterogeneous FL without accessing raw client data or requiring online CLIP inference. \ours{} constructs text-verified semantic banks, learns a server-side semantic bridge that maps CLIP-derived features into student-compatible teacher spaces, and regularizes local training through mixed semantic prototype alignment and quality-aware semantic replay. Experiments on CIFAR-10, CIFAR-100, Tiny-ImageNet, Office-Caltech 10, and Digit5 show that \ours{} consistently improves the average performance of representative FL backbones under both label-skewed and domain-shifted settings. Analysis further shows that the semantic bridge converts highly correlated CLIP priors into more separable teacher-space geometry, explaining its effectiveness in improving representation alignment and global generalization.
BibTeX
@inproceedings{xu2026semantic,
  author = {Leixuhai Xu and Xiangtao Zhang and Hailong Yan and Le Zhang},
  title = {{Semantic-Bridge Federated Learning: Bridging CLIP Semantics for Heterogeneous FL}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=IdjYe5yG0A},
}
Figure