[Paper Review] Homogenizing Non-IID datasets via In-Distribution Knowledge Distillation for Decentralized Learning
This paper proposes In-Distribution Knowledge Distillation (IDKD), a privacy-preserving method for homogenizing non-IID data in decentralized learning by using an OoD detector to select only public dataset samples similar to each node's local data for knowledge distillation. The approach achieves state-of-the-art performance with up to 7% accuracy gain over prior methods and minimal communication overhead (~1%).
Decentralized learning enables serverless training of deep neural networks (DNNs) in a distributed manner on multiple nodes. This allows for the use of large datasets, as well as the ability to train with a wide variety of data sources. However, one of the key challenges with decentralized learning is heterogeneity in the data distribution across the nodes. In this paper, we propose In-Distribution Knowledge Distillation (IDKD) to address the challenge of heterogeneous data distribution. The goal of IDKD is to homogenize the data distribution across the nodes. While such data homogenization can be achieved by exchanging data among the nodes sacrificing privacy, IDKD achieves the same objective using a common public dataset across nodes without breaking the privacy constraint. This public dataset is different from the training dataset and is used to distill the knowledge from each node and communicate it to its neighbors through the generated labels. With traditional knowledge distillation, the generalization of the distilled model is reduced because all the public dataset samples are used irrespective of their similarity to the local dataset. Thus, we introduce an Out-of-Distribution (OoD) detector at each node to label a subset of the public dataset that maps close to the local training data distribution. Finally, only labels corresponding to these subsets are exchanged among the nodes and with appropriate label averaging each node is finetuned on these data subsets along with its local data. Our experiments on multiple image classification datasets and graph topologies show that the proposed IDKD scheme is more effective than traditional knowledge distillation and achieves state-of-the-art generalization performance on heterogeneously distributed data with minimal communication overhead.
Motivation & Objective
- To address the challenge of data heterogeneity (non-IID) in decentralized deep learning without violating data privacy.
- To improve model generalization and convergence stability in decentralized training under non-IID data distributions.
- To enable knowledge sharing across nodes without exchanging raw data, preserving privacy while enhancing model performance.
- To develop a scalable, communication-efficient method that leverages public datasets for distillation only on relevant, in-distribution samples.
Proposed method
- Each node trains a local model on its private, non-IID dataset using a decentralized optimization algorithm.
- The trained local model generates pseudo-labels for a public, unlabeled dataset using forward pass.
- An Out-of-Distribution (OoD) detector (e.g., maximum softmax probability) identifies and selects only samples from the public dataset that are similar to the local data distribution.
- Only the pseudo-labels of these in-distribution samples are shared with neighboring nodes, reducing communication overhead.
- Each node aggregates the received labels from neighbors and performs label averaging to form a unified, homogenized dataset.
- The local model is fine-tuned on the union of its private data and the aggregated, distilled public data labels.
Experimental results
Research questions
- RQ1Can knowledge distillation be made more effective in decentralized learning by focusing only on in-distribution samples from a public dataset?
- RQ2How does OoD detection improve distillation performance when the public dataset is unrelated to the local private data?
- RQ3To what extent can IDKD reduce communication overhead while improving model generalization in non-IID decentralized settings?
- RQ4Does IDKD outperform vanilla knowledge distillation and state-of-the-art decentralized methods in terms of accuracy and convergence stability?
Key findings
- IDKD achieves up to 7% higher test accuracy compared to state-of-the-art methods on non-IID image classification benchmarks.
- The method improves generalization performance by 2% over vanilla knowledge distillation under the same decentralized training setup.
- Communication overhead is minimized to approximately 1% of the full public dataset size due to selective label exchange based on OoD detection.
- The use of OoD detection significantly enhances distillation quality by excluding irrelevant public samples that degrade model generalization.
- IDKD maintains strong performance across diverse graph topologies (e.g., ring, social networks) and datasets including CIFAR-10, CIFAR-100, ImageNette, and LSUN.
- The framework is robust to varying data skew, as demonstrated by consistent improvements under Dirichlet non-IID data partitioning with α = 0.05.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.