Improving Heterogeneous Model Reuse by Density Estimation

Anke Tang, Yong Luo, Han Hu, Fengxiang He, Kehua Su, Bo Du, Yixin Chen, Dacheng Tao

Abstract

Heterogeneous Model Reuse (HMR) is a critical task in collaborative learning where participants possess diverse, pre-trained models. Traditional methods often fail due to sample selection bias, where local models are applied to out-of-distribution data. We propose a novel framework that leverages local data density estimation to intelligently weight model predictions. By sharing density "specifications" instead of raw data, our method preserves privacy while achieving high accuracy. Experimental results show that our approach significantly outperforms existing baselines, achieving near-perfect accuracy on synthetic tasks and substantial gains on benchmark datasets like Fashion-MNIST.

Introduction

In many real-world applications, such as medical diagnostics or autonomous driving, data is siloed across different organizations. Privacy regulations and communication costs often prohibit the sharing of raw data. While Federated Learning provides a path for collaborative training, it typically requires all parties to use identical model architectures. In practice, organizations often have existing, heterogeneous models (e.g., a ResNet at one site and an SVM at another). Reusing these "black-box" models effectively is the goal of Heterogeneous Model Reuse (HMR). The core challenge is determining when to trust a specific local model's prediction, especially when it encounters data samples significantly different from its training set.

Methodology

The proposed framework treats local models as experts and uses density estimation to quantify their expertise for any given input sample.

Framework Architecture

The architecture consists of local classifiers paired with local density estimators. These components generate "specifications" that are shared to build a global ensemble.

Comparison of HMR, RKME, and the proposed framework. Our method incorporates local data density estimation to weight model predictions.
  1. Local Density Estimation: Each party trains a density estimator (e.g., a generative model like Real NVP) on its local data. This estimator provides the likelihood $p(x|D_i)$ for a sample $x$.
  2. Density-Weighted Ensemble: The global prediction is a weighted sum of local model outputs. The weights are derived from the local densities, ensuring that a model's influence is proportional to its familiarity with the input sample.
  3. Multiparty Cross-Entropy (MPCE) Loss: To further refine the ensemble, we introduce the MPCE loss. This loss function allows for end-to-end calibration of the global model by prioritizing updates for the most relevant local experts for a given sample.
  4. Privacy and Efficiency: By sharing density specifications instead of raw data or model weights, the framework maintains high privacy standards. Furthermore, the method achieves high "zero-shot" accuracy, working effectively even before global calibration.

Experimental Evaluation

We evaluated the framework using a 2D toy dataset and the Fashion-MNIST benchmark under non-i.i.d. partitioning.

Toy Dataset Results

The 2D toy dataset consists of 2,000 points across 5 classes, partitioned such that each party only sees a subset of the classes.

Visualization of decision boundaries on a 2D toy dataset. The proposed method accurately captures class distributions across disjoint parties.

As shown in the visualization, our method successfully learns complex decision boundaries that respect the local data distributions. Quantitatively, it achieved 99.1% accuracy without calibration, compared to only 42.4% for the standard HMR baseline.

Fashion-MNIST Performance

On the Fashion-MNIST benchmark, the framework consistently outperformed state-of-the-art methods like RKME. In a highly biased setting with three disjoint parties, our method demonstrated a 17.4% improvement in accuracy over RKME. The results confirm that density estimation is a robust proxy for model expertise in heterogeneous environments.

Conclusion

This paper introduces a density-based framework for Heterogeneous Model Reuse that effectively mitigates sample selection bias. By incorporating local data density into the ensemble logic, we enable more reliable global predictions in privacy-sensitive, multiparty scenarios. Future work will focus on reducing the computational overhead of density estimation and extending the framework to more complex domains like natural language processing.

Summary updated

BibTeX
@inproceedings{tang2023improving,
  author = {Anke Tang and Yong Luo and Han Hu and Fengxiang He and Kehua Su and Bo Du and Yixin Chen and Dacheng Tao},
  title = {{Improving Heterogeneous Model Reuse by Density Estimation}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.24963/ijcai.2023/472},
}
Figure