Towards Graph-Based Privacy-Preserving Federated Learning: ModelNet -- A ResNet-based Model Classification Dataset

Abhisek Ray, Lukas EsterlearXiv 2025 · DOI

TL;DR

This paper introduces ModelNet, a new benchmark dataset for federated learning (FL) that addresses the critical need for realistic non-IID (non-Independent and Identically Distributed) data distributions and client diversity. ModelNet, derived from CIFAR-100, offers three variants (ModelNet-R, -D, and -S) designed to simulate various levels of data heterogeneity, enabling more robust evaluation of FL algorithms and paving the way for graph-based FL research.

What Problem Does This Paper Address?

Federated Learning (FL) allows training models on decentralized data without sharing raw data, thus preserving privacy. However, current FL benchmarks often lack realistic data heterogeneity and client segregation, hindering rigorous evaluation. Specifically, existing datasets struggle to control the semantic similarity between classes across clients, making it difficult to assess how this impacts model performance. This gap limits our understanding of FL's behavior in real-world scenarios where data is inherently non-IID and clients have diverse data distributions.

Methods

The core of this work is the creation of the ModelNet dataset. The authors leverage pre-trained ResNet50 embeddings from CIFAR-100 to construct three distinct variants:

  • ModelNet-R (Random): This variant randomly samples subsets of classes, ensuring no specific semantic constraints, thus mimicking a truly random client data distribution.
  • ModelNet-D (Diverse): This variant uses k-means clustering on class embeddings to group semantically similar classes. Subsets are then formed by selecting one class from each cluster, maximizing inter-class semantic dissimilarity.
  • ModelNet-S (Similar): This variant also uses k-means clustering but then identifies clusters with high cosine similarity. Subsets are constructed by sampling classes from a base cluster and its most similar neighbors, promoting intra-class semantic similarity.

Each variant is designed to simulate 5000 FL clients, each receiving a subset of 15 classes. The authors also propose a hypothesis for FL algorithms that can leverage anonymized model parameters for enhanced privacy.

Datasets

The primary dataset used is CIFAR-100, which is transformed into the newly introduced ModelNet benchmark. ModelNet consists of three variants:

  • ModelNet-R: Random class sampling.
  • ModelNet-D: Semantically diverse class sampling.
  • ModelNet-S: Semantically similar class sampling.

These variants are designed to simulate non-IID data distributions and client diversity, offering a more realistic FL environment than existing datasets like EMNIST, CIFAR-10/100, and TinyImageNet.

Key Insights and Ideas

  • The critical role of semantic control: The paper highlights that simply having non-IID data isn't enough; controlling the semantic relationships between classes across clients is crucial for realistic FL evaluation.
  • ModelNet as a versatile tool: The three variants of ModelNet offer a spectrum of data heterogeneity, allowing researchers to test FL algorithms under specific conditions—from broad generalization (ModelNet-D) to fine-grained specialization (ModelNet-S).
  • Beyond data distribution: Graph-based FL: The authors position ModelNet as a foundation for graph-based FL interpretation, suggesting future work in understanding client relationships and privacy through graph structures.
  • Anonymized parameter sharing for privacy: The paper introduces a novel hypothesis for FL algorithms that utilizes anonymized model parameters, aiming for better privacy preservation without sacrificing model utility.

Key Results

The paper presents extensive experimental results evaluating the ModelNet variants across several metrics:

  • Subset Class Embedding Diversity: ModelNet-D showed the highest mean diversity (peak cosine distance ~0.15), followed by ModelNet-R (~0.14), and ModelNet-S (~0.10), indicating varying degrees of semantic dissimilarity within subsets.
  • Class Occurrence Histogram: ModelNet-R had a uniform class distribution, ModelNet-D showed significant variance (some classes appearing >2500 times), and ModelNet-S had a narrower but still biased distribution.
  • Jaccard Similarity: ModelNet-R had low overlap with both ModelNet-D and ModelNet-S, suggesting distinct sampling strategies. ModelNet-D and ModelNet-S showed higher overlap, indicating potential biases towards certain classes.
  • Subset Redundancy: ModelNet-R had the lowest redundancy (median overlap ~2), while ModelNet-S had the highest (median overlap >10), suggesting that semantic constraints lead to more repeated class selections.
  • Intra-Subset Variance: ModelNet-D exhibited the highest variance, indicating dispersed class embeddings, while ModelNet-S had the lowest, suggesting compact feature spaces.
  • Feature Space Coverage: ModelNet-D achieved the highest coverage, indicating broader utilization of the embedding space, while ModelNet-S had the lowest.

Limitations and Future Work

  • Limitations: The paper acknowledges that while ModelNet-D and ModelNet-S aim for distinct goals, they exhibit some overlap in class selection, suggesting potential biases in evaluation. The current implementation is based on CIFAR-100 and ResNet50, though the authors note its extensibility.
  • Future Work: The authors suggest extending ModelNet to other datasets and architectures. They also emphasize the potential for graph-based model interpretation and privacy-preserving FL using anonymized parameter sharing. Further research could explore how these dataset characteristics directly impact FL algorithm performance and privacy guarantees.

Summary updated

Abstract

Federated Learning (FL) has emerged as a powerful paradigm for training machine learning models across distributed data sources while preserving data locality. However, the privacy of local data is always a pivotal concern and has received a lot of attention in recent research on the FL regime. Moreover, the lack of domain heterogeneity and client-specific segregation in the benchmarks remains a critical bottleneck for rigorous evaluation. In this paper, we introduce ModelNet, a novel image classification dataset constructed from the embeddings extracted from a pre-trained ResNet50 model. First, we modify the CIFAR100 dataset into three client-specific variants, considering three domain heterogeneities (homogeneous, heterogeneous, and random). Subsequently, we train each client-specific subset of all three variants on the pre-trained ResNet50 model to save model parameters. In addition to multi-domain image data, we propose a new hypothesis to define the FL algorithm that can access the anonymized model parameters to preserve the local privacy in a more effective manner compared to existing ones. ModelNet is designed to simulate realistic FL settings by incorporating non-IID data distributions and client diversity design principles in the mainframe for both conventional and futuristic graph-driven FL algorithms. The three variants are ModelNet-S, ModelNet-D, and ModelNet-R, which are based on homogeneous, heterogeneous, and random data settings, respectively. To the best of our knowledge, we are the first to propose a cross-environment client-specific FL dataset along with the graph-based variant. Extensive experiments based on domain shifts and aggregation strategies show the effectiveness of the above variants, making it a practical benchmark for classical and graph-based FL research. The dataset and related code are available online.
BibTeX
@misc{ray2025towards,
  author = {Abhisek Ray and Lukas Esterle},
  title = {{Towards Graph-Based Privacy-Preserving Federated Learning: ModelNet -- A ResNet-based Model Classification Dataset}},
  year = {2025},
  eprint = {2506.00476},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.00476},
}
Figure