---
title: Heterogeneous Federated Learning
url: https://www.emergentmind.com/topics/heterogeneous-federated-learning-hfl
type: topic
---

# Heterogeneous Federated Learning

Heterogeneous Federated Learning (HFL) encompasses a broad class of federated optimization frameworks that enable collaborative, privacy-preserving model training across clients exhibiting diversity in data distributions, feature spaces, model architectures, computational/communication resources, and learning tasks. While classical horizontal federated learning (HFL) assumes homogeneous clients (i.e., shared feature and label spaces, and identical model architectures), real-world deployments routinely encounter forms of heterogeneity that break these assumptions. A core challenge in HFL is to accommodate and exploit this diversity without breaching data privacy or incurring prohibitive communication/computation costs.

## 1. Forms of Heterogeneity in Federated Learning

Heterogeneity in federated settings can be formally categorized along five orthogonal axes [2307.10616][2405.09839][2210.04505]:

1. **Data heterogeneity (statistical non-IID):** The data distribution \(P_k(x,y)\) varies across client \(k\), manifesting as label/skew, feature skew, quality skew (varying label noise levels \(\eta_k\)), or quantity skew (\(N_i \gg N_j\)). Quantitative measures include KL divergence, earth mover’s distance \(W(P_i,P_j)\), and variance of client gradients.

2. **Model heterogeneity:** Clients may employ models with different structures, parameterizations, and optimizers: parameter sets \(\mathcal W_k\) with \(\dim W_k^{(\ell)} \neq \dim W_j^{(\ell)}\). This occurs in cases from mobile AI to cross-organization silos.

3. **Task heterogeneity:** Each client \(i\) may have a different objective (e.g., different output spaces \(\mathcal Y_i\) or tasks/regression vs. classification), with task relatedness quantified by parameters like \(\|\theta^*_i-\theta^*_j\|\).

4. **Device heterogeneity:** Compute, memory, and energy budgets (\(C_i\), \(M_i\), \(E_i\)), varying local epoch limits, and capacities lead to irregular local progress and stragglers.

5. **Communication heterogeneity:** Uplink/downlink bandwidth \(b_i\), latency \(\tau_i\), and connectivity are highly non-uniform; round time cost per client is \(T^{(comm)}_i = \tau_i + |\theta|/b_i\).

HFL is thus defined as the collaborative minimization problem where constraints and loss functions are allowed to differ per client:
\[
\min_{\{\theta_k\}, \theta_G}\; \sum_{k=1}^K p_k F_k(\theta_k) + \sum_{k=1}^K \frac{\lambda_k}{2}\|\theta_k-\theta_G\|^2
\]
subject to aggregation, system, and communication constraints [2307.10616][2210.04505].

## 2. Architectural and Algorithmic Frameworks

### 2.1 Horizontal HFL with Feature and Model Heterogeneity

Classic horizontal federated learning (FedAvg) requires a shared feature space (\(\mathcal X_k = \mathcal X\) for all \(k\)); in practice, only a subset of features may be shared [2203.02108]. Heterogeneous HFL adapts via split architectures:

- **Two-column splits (CHFL):** Separate network columns for common features (\(F_{\theta_c}\)) and client-unique features (\(G_{\theta_{u,k}}\)), with lateral connections to transfer knowledge. FedAvg applies only to the common column; unique columns are updated locally, linked by trainable matrices \(U_k^{(i)}\) without cross-client update [2203.02108].

- **Layer/subnetwork partitioning:** Partial parameter sharing enables devices with different compute capabilities to train submodels of a global “supernet” (e.g., FedHeN’s coupling constraint: \(w_s = [w_c]_A\)) [2207.03031].

### 2.2 Knowledge Distillation and Prototype-Based Methods

- **Mutual and global knowledge distillation:** When model architectures differ, direct parameter averaging is impossible. Solutions (FedMD, HierarchyFL, FedH2L, FedProtoKD) exchange “soft” output distributions (probabilities/logits) or class prototypes, using KL-divergence or MSE objectives to perform model-agnostic aggregation [2212.02006][2101.11296][2508.19009].

- **Prototype sharing:** Instead of full model weights, clients share low-dimensional class prototypes (average feature embeddings per class), with server-side adaptation (e.g., adaptive class-wise margin maximization, contrastive prototype loss) [2508.19009][2301.11705].

- **Hierarchical self-distillation:** Server builds a hierarchy of submodels (with different widths or blocks) and performs ensemble meta-distillation on a small held-out, possibly synthetic, public dataset [2212.02006].

### 2.3 Communication and Scheduling Under Resource Heterogeneity

- **Adaptive client selection and load balancing:** Based on periodic profiling (CPU/GPU, bandwidth, latency, success rates), rounds select a subset of clients using history-weighted score functions to maximize efficiency and fairness [2511.19479][2506.05411].

- **Partial-model aggregation and quantization:** Clients may upload only sparse or quantized gradients/send only subnetworks (federated dropout), dramatically reducing bandwidth and enabling low-end device participation [2511.19479][2506.05411].

- **Decentralized and asynchronous updating:** Schemes such as HADFL remove central coordination, allowing asynchronous aggregation (partial rings), probabilistic device selection, and per-device local step adaptation to sidestep stragglers [2111.08274].

- **Hierarchical FL (cloud-fog-edge):** Multi-tier aggregation with heterogeneous edge servers and vehicles, with aggregation weights set by statistical similarity (e.g., Bhattacharyya distance between data distributions) for accurate, fast convergence [2409.19560].

## 3. Personalized and Privacy-Preserving HFL

- **Personalized federated optimization:** Each client optimizes a local loss with a regularization/proximal term to the global model, e.g., \(F_i(\theta) + \frac{\mu}{2}\|\theta-\theta_{global}\|^2\) (FedProx) [2405.09839][2307.10616].

- **Privacy enhancements:** Embedding strategies include local differential privacy (adding noise to prototypes, embedding vectors, or model updates), functional/multi-party encryption (Paillier, secret sharing for secure aggregation), and digital watermarking or blockchain-based model tracing [2405.09839][2301.11705].

- **Data- and task-level privacy:** Application of different privacy budgets and noise levels depending on data quality or device resources, ensuring uniform privacy guarantees across the heterogeneous federation [2506.05411].

## 4. Specialized Applications and Real-World Impact

- **Healthcare:** HFL enables cross-hospital model collaboration despite feature-space and data sparsity heterogeneity, using modular network heads and asynchronous knowledge transfer to achieve up to 94.8% MSE reduction in clinical prediction [2501.12125].

- **Autonomous driving and mobile computing:** Hierarchical, quality-aware HFL frameworks (FedGau, QA-HFL) manage extreme device heterogeneity and non-IID regional data, leveraging statistical aggregation and adaptive communication to improve mIoU and reduce communication by ~30% [2409.19560][2506.05411].

- **Network traffic classification and LLMs:** Custom federated adaptation of LLMs (e.g., HFL-FlowLLM) combines LoRA adapters and customized aggregation for high-throughput, low-cost traffic flow classification, achieving +13% F1 over strong HFL baselines and reducing training costs by 87% [2511.14199].

- **Edge-AI/AIoT:** Decentralized HFL achieves both high end-to-end speed (up to 4.68× wall-clock speedup) and minimal accuracy drop in multi-device, resource-heterogeneous clusters [2111.08274].

## 5. Theoretical Guarantees and Open Problems

- **Convergence analysis:** HFL frameworks provide convergence guarantees under non-IID, heterogeneous, and bilevel constraints, with nonasymptotic \(O(1/\sqrt{R})\) rates and robustness to straggling/partial participation (e.g., ZO-HFL relaxes bounded-gradient-dissimilarity) [2504.01839].

- **Prototype margin theory:** Adaptive prototype margin maximization provably prevents collapse under extreme non-IID/heterogeneous architectures [2508.19009].

- **Limitations and research challenges:**
  - Difficulty of reliably discovering common subspaces for mixed-feature-space HFL.
  - Performance/communication tradeoffs under escalating heterogeneity (statistical, system, task, and privacy).
  - Increased risk of backdoor attacks when synthetic public data (generated by large foundation models) is used for distillation, which undermines existing FL defense strategies [2311.18350].
  - Need for integrated benchmarks and metrics jointly evaluating accuracy, communication efficiency, robustness, fairness, and privacy [2307.10616][2210.04505].

## 6. Taxonomy and Future Directions

| Heterogeneity Axis      | Methods/Toolkits                        | Key Challenges                    |
|------------------------|-----------------------------------------|-----------------------------------|
| Data/statistical       | FedProx, FedMask, CHAFL, FedGau         | Distribution, label/feature skew  |
| Model                  | FedH2L, FedMD, HierarchyFL, FedProtoKD  | Parameter mismatch, personalization|
| Task                   | Multi-task FL, MOCHA, meta-FL           | Cross-task transfer, loss fusion  |
| Device                 | Adaptive scheduling, QA-HFL             | Stragglers, resource scaling      |
| Communication          | Quantization, dropout, partial/fault tolerance | Bandwidth, latency heterogeneity |

A unified HFL solution requires tight co-design of aggregation, personalization, knowledge transfer, privacy, and adaptive communication protocols. Promising directions include adaptive aggregation rules that reflect multi-dimensional resource/quality/fairness constraints, robust and FM-aware privacy/attack defenses, and continual learning strategies that support streaming feature or client arrival.

---

**References:**  
[2203.02108], [2307.10616], [2210.04505], [2511.19479], [2405.09839], [2111.08274], [2212.02006], [2508.19009], [2301.11705], [2212.02006], [2101.11296], [2207.03031], [2409.19560], [2501.12125], [2506.05411], [2511.14199], [2504.01839], [2406.09680], [2201.08459], [2208.07978], [2311.18350]

Source: https://www.emergentmind.com/topics/heterogeneous-federated-learning-hfl