FedFree: Breaking Knowledge-sharing Barriers through Layer-wise Alignment in Heterogeneous Federated Learning

Haizhou Du, Yiran Xiang, Yiwen Cai, Xiufeng Liu, Zonghan Wu, Huan Huo, Guodong LongNeurIPS 2025

In the world of Federated Learning (FL), we usually assume a "one size fits all" approach: every participant (client) trains the exact same model architecture. But in the real world, a high-end server and a low-power IoT sensor have vastly different computational budgets. This leads us to Heterogeneous Federated Learning (HtFL), where clients use different model structures.

The challenge? It is incredibly difficult to aggregate knowledge from a ResNet-50 and a tiny MobileNet without losing the "fine-grained" details that make them work. Most current solutions rely on "proxy datasets" to align these models, but these datasets are hard to find and can inadvertently leak user privacy.

A new paper, FedFree, proposes a way to break these barriers without needing a single byte of proxy data.

TL;DR

FedFree is a novel framework for heterogeneous federated learning that eliminates the need for privacy-risky proxy datasets. It uses Gaussian-generated pseudo-data for layer-wise model aggregation and introduces "Knowledge Gain Entropy" to ensure that clients only receive the most beneficial, architecture-specific updates from the server.

What Problem Does This Paper Address?

Standard FL aggregates models by averaging weights. This is impossible if Client A’s model has 50 layers and Client B’s has 5. To bridge this gap, researchers often use Knowledge Distillation (KD), where a server uses a public "proxy" dataset to transfer knowledge between different architectures.

However, this creates two major "knowledge-sharing barriers":

  1. The Local-to-Global Barrier: Finding a proxy dataset that matches the clients' private data distribution is difficult. If the proxy data is too different, the global model learns nothing useful.
  2. The Global-to-Local Barrier: Even if the server learns a great global model, how does it decide which parts of that model are actually better than what the client already has? Sending a "simple average" back to a specialized local model can actually degrade its performance.

Methods

The overall architecture of the FedFree framework, illustrating client-side knowledge extraction and server-side knowledge sharing and alignment.

FedFree tackles these barriers with three specialized modules:

1. Knowledge Extraction (Client Side)

Instead of uploading their entire model, clients identify "critical layers." They calculate the L2-norm of parameter changes for each layer during local training. Only the top-$k$ layers (those that learned the most) are sent to the server. This reduces communication overhead and focuses the server on the most significant updates.

2. Reverse Layer-wise Knowledge Transfer (Server Side)

To aggregate these diverse layers without proxy data, the server generates Gaussian-based pseudo-data (random noise). It feeds this noise into both the uploaded client layers and the corresponding global model layers. By minimizing the difference between their outputs (a distillation-like loss), the global model "absorbs" the functional behavior of the client models. This is "reverse" because the server is adapting to the clients, rather than the other way around.

3. Knowledge Alignment (Global-to-Local)

To send knowledge back, FedFree uses a new metric called Knowledge Gain Entropy (KGE). It treats the diversity of a layer's weight distribution (Shannon entropy) as a proxy for "knowledge density." * If a global layer has higher entropy than the client’s local layer, it’s considered "richer." * The server only sends back layers with a positive KGE, ensuring the client gets a "verifiable upgrade" rather than a generic update.

To handle cases where a global layer and a local layer have different dimensions, the authors use partial parameter space projection, essentially cropping or padding the weights to fit the target architecture.

Datasets

The authors evaluated FedFree on standard image classification benchmarks:

  • CIFAR-10 & CIFAR-100: Used to test performance under varying task complexity.
  • TinyImageNet: A more challenging dataset with 200 classes and higher resolution, used to prove the model-agnostic nature of the framework.
  • Non-IID Partitions: They simulated real-world "data skew" by ensuring clients only held a small subset of total classes.

Key Insights and Ideas

  • Functional over Structural: FedFree realizes that you don't need to match the weights of two different models if you can match their outputs on neutral noise.
  • Entropy as a Heuristic: Using Shannon entropy to quantify "knowledge" in a layer is a clever, computationally cheap way to handle the "Global-to-Local" barrier. It prevents the "catastrophic forgetting" that often happens when a global model overwrites a well-trained local one.
  • Privacy by Design: By using Gaussian noise instead of proxy data or GAN-generated images, the server never sees anything resembling real data, significantly lowering the risk of inversion attacks.

Key Results

Performance comparison of FedFree against state-of-the-art baselines on CIFAR-10 and CIFAR-100 across varying client scales.

FedFree consistently outperformed eight state-of-the-art baselines (including FedProto and FedKD):

  • Massive Accuracy Gains: On CIFAR-100 with 100 heterogeneous clients, FedFree achieved 49.20% accuracy, a relative improvement of 46.3% over the best-performing baseline.
  • Scalability: While many HtFL methods degrade as the number of clients increases, FedFree remained stable from 10 to 100 clients.
  • Robustness to Skew: In highly non-IID settings (where clients have very different data), FedFree’s targeted alignment allowed it to maintain high accuracy while other methods plummeted.

Limitations and Future Work

The authors are transparent about a few hurdles:

  • Real-world Deployment: All tests were done in simulated environments. The performance on actual physical edge devices (with varying latency and power drops) remains untested.
  • Model Scale: While they tested ResNet-152, they haven't yet applied this to "extremely large models" like Foundation Models or LLMs.
  • The Entropy Assumption: While KGE works well empirically, the authors acknowledge that high entropy could occasionally represent noise rather than useful patterns in very specific edge cases.

In summary, FedFree offers a promising, privacy-preserving path for collaborative learning in the messy, heterogeneous world of edge computing.

Summary updated

BibTeX
@inproceedings{du2025fedfree,
  author = {Haizhou Du and Yiran Xiang and Yiwen Cai and Xiufeng Liu and Zonghan Wu and Huan Huo and Guodong Long},
  title = {{FedFree: Breaking Knowledge-sharing Barriers through Layer-wise Alignment in Heterogeneous Federated Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=G10Y4vrhGF},
}
Figure