NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

FLIS: Clustered Federated Learning Via Inference Similarity for Non-IID Data Distribution

Mahdi Morafah, Saeed Vahidian, Weijia Wang, Bill Lin

Federated Learning (FL) promises a world where we can train powerful AI models on private data without that data ever leaving our devices. However, a major roadblock stands in the way: Data Heterogeneity. If my phone has photos of cats and yours has photos of cars, a single "global" model might end up being mediocre at recognizing both.

A new paper from researchers at UC San Diego introduces FLIS (Federated Learning by Inference Similarity), a framework that solves this by grouping similar users together into clusters, allowing for personalized models that actually work for the individuals using them.

TL;DR

FLIS is a clustered federated learning algorithm that groups clients based on how similarly their models "think" when performing inference on a small, server-side proxy dataset. By clustering clients with similar data distributions, FLIS achieves up to a 40% accuracy boost over standard federated learning and converges significantly faster.

What Problem Does This Paper Address?

The "Standard" Federated Learning approach (like FedAvg) tries to find one single global model that fits everyone. This works fine if everyone's data is similar (IID). But in the real world, data is Non-IID (Independent and Identically Distributed).

When data is highly skewed across participants, the "global optimum" doesn't actually align with any individual client's needs. This leads to client drift, where local updates from different users pull the model in conflicting directions. For many users, participating in FL actually results in a worse model than if they had just trained on their own small dataset. FLIS addresses this by moving away from the "one size fits all" philosophy toward a "birds of a feather flock together" approach.

Methods

The core innovation of FLIS is how it identifies which clients are similar without ever looking at their private data.

  1. The Inference Trick: The server maintains a small, non-private auxiliary dataset. When clients send their updated models to the server, the server runs inference using those models on its proxy data.
  2. Similarity Matrix: The server compares the outputs (the soft labels or predictions) of these models. If two models produce very similar predictions on the proxy data, the server assumes those clients have similar underlying data distributions.
  3. Clustering: Based on this "Inference Similarity," the server groups clients. The paper proposes two versions:
  4. FLIS (DC): Dynamic Clusters with "soft" membership, where clusters can overlap.
  5. FLIS (HC): Hierarchical Clustering with "hard" membership, creating distinct, disjoint groups.
  6. Targeted Aggregation: Instead of averaging everyone's updates together, the server averages updates only within each cluster. Each cluster essentially develops its own specialized "expert" model.

Datasets

The authors evaluated FLIS against several state-of-the-art (SOTA) benchmarks using four standard image recognition datasets:

  • CIFAR-10 and CIFAR-100
  • SVHN (Street View House Numbers)
  • Fashion-MNIST (FMNIST)

To simulate real-world messiness, they applied different types of "Non-IIDness," including Label Skew (where users only have a few classes of images) and Dirichlet Distribution (a more complex, probabilistic way of partitioning data).

Key Insights and Ideas

  • Behavior over Weights: Previous clustering methods often compared the weights of the neural networks. FLIS argues that comparing inference behavior is a more robust way to find similarity, as two models might "know" the same things even if their internal weights look different.
  • The "Black Box" Advantage: FLIS treats the client models as black boxes. It doesn't need to know the architecture or the specific training hyperparameters; it only cares about the output.
  • Mimicking IID: By grouping similar clients, the training environment within a cluster starts to look like an "IID" environment. This allows the models to converge much faster than they would in a chaotic, heterogeneous global pool.
  • Handling Newcomers: A major "aha" moment is that FLIS can handle "unseen clients." When a new user joins, they can quickly be assigned to the best-fitting existing cluster based on a quick loss check.

Key Results

  • Accuracy Gains: FLIS (DC) consistently outperformed all competitors. It beat the standard FedAvg by up to 40% and outperformed other personalized FL methods (like IFCA or PerFedAvg) by up to 30% on challenging tasks.
  • Communication Efficiency: FLIS is incredibly fast. In one experiment on CIFAR-100, FLIS reached a target accuracy in just 37 rounds, while other methods took over 100 rounds or failed to reach the target entirely.
  • Robustness to Hyperparameters: The system is sensitive to the similarity threshold ($\beta$), but the authors found a "sweet spot" (usually around 0.3 to 0.5) that balances generalization with personalization.

Limitations and Future Work

  • The Auxiliary Dataset: FLIS requires the server to have a small amount of "real or synthetic" data to perform the inference similarity check. While the authors used only 2,500 samples, in some highly niche domains, even a small proxy dataset might be hard to acquire or might not represent the clients well.
  • Computational Overhead on Server: While FLIS reduces communication rounds, the server has to perform inference on every client model it receives. For systems with millions of clients, this could become a computational bottleneck.
  • Privacy of Inference: While raw data isn't shared, the outputs of the models are. Future work could explore if "Inference Similarity" leaks any sensitive information about the client's local data distribution via membership inference attacks.

Summary updated

BibTeX
@article{morafah2023flis,
  author = {Mahdi Morafah and Saeed Vahidian and Weijia Wang and Bill Lin},
  title = {{FLIS: Clustered Federated Learning Via Inference Similarity for Non-IID Data Distribution}},
  journal = {IEEE Open J. Comput. Soc.},
  year = {2023},
  url = {https://openreview.net/forum?id=dQ2FZ8MFQB},
}
Figure