Adversarial Predictions of Data Distributions Across Federated Internet-of-Things Devices

Samir Rajani, Dario Dematties, Nathaniel Hudson, Kyle Chard, Nicola J. Ferrier, Rajesh Sankaran, Peter H. Beckman

Introduction

Federated Learning (FL) has emerged as a cornerstone for privacy-preserving machine learning in Internet-of-Things (IoT) ecosystems. By design, FL ensures that raw data remains on the local device, with only model parameters (weights) being shared with a central server. This architecture is often assumed to provide a robust layer of anonymity. However, this research challenges that assumption, demonstrating that an adversary can predict a client's local data distribution with near-perfect accuracy by analyzing shared model weights. Unlike previous "deep leakage" attacks that often rely on unrealistic single-image training scenarios, this study explores the vulnerability of standard multi-epoch FL settings to statistical distribution inference.

Methodology

The authors introduce a meta-learning attack strategy designed to map high-dimensional model weights to specific data distributions. The attack follows a structured pipeline integrated into the standard FL lifecycle.

Overview of the Federated Learning process and the integrated adversarial attack points for predicting client data distributions.

As illustrated in the figure above, the attack involves several key stages:

  1. Proxy Data Generation: The adversary utilizes public datasets similar to the target data to simulate thousands of "dummy clients."
  2. Synthetic Training: These dummy clients are trained on varied, skewed data distributions (using Dirichlet sampling) to create a diverse library of weight-to-distribution mappings.
  3. Dimensionality Reduction: High-dimensional model weights are compressed into a "model-latent space" using Principal Component Analysis (PCA).
  4. Meta-Predictor Training: A Multi-Layer Perceptron (MLP) is trained to act as a meta-predictor, learning the relationship between compressed weights and known label distributions.
  5. Inference: When a legitimate IoT device submits its weights during the standard aggregation phase, the adversary passes these weights through the PCA and meta-predictor to identify the device's private data profile.

Experimental Setup

The attack was evaluated using two primary benchmarks:

  • MNIST: Handwritten digits processed via an MLP architecture.
  • CIFAR-10: A 10-class image dataset (e.g., airplanes, dogs) processed via a Convolutional Neural Network (CNN).

The adversary is assumed to have access to the original training sets of these benchmarks to facilitate the creation of the dummy client library.

Results and Analysis

Weight Space Clustering

A primary finding is that model weights naturally form distinct clusters in mathematical space based on the dominant labels of the training data. A client's model "location" serves as a mathematical fingerprint of their local dataset.

PCA visualization of model weights across different layers (conv1 to fc1), demonstrating how client data distributions manifest as distinct clusters in the weight space.

Layer-Specific Leakage

The research identifies a "division of labor" regarding how information leaks through different network layers. As shown in the PCA visualizations above, early convolutional layers (e.g., conv1) tend to cluster based on semantic or visual features—for instance, grouping "cats" and "dogs" near each other due to visual similarity. In contrast, later fully connected layers (e.g., fc1) exhibit clustering strictly by label, regardless of the visual characteristics of the input data.

The Privacy-Utility Trade-off

The study tested standard Differential Privacy (DP) defenses, such as adding Gaussian or Laplacian noise. The results indicate a severe "privacy-utility wall": at noise levels where the global model remains accurate, the distribution leakage remains detectable. To effectively mask the distribution, noise must be increased to a level that renders the global model's utility nearly equivalent to random guessing.

Conclusion and Future Work

This research demonstrates that Federated Learning, while protecting individual data points, fails to protect the broader statistical context of a user's data. The adversarial meta-predictor achieved near-perfect accuracy in uncovering distributions across both MNIST and CIFAR-10, even under realistic multi-epoch training conditions.

Future research should address the limitations of this attack, such as the requirement for proxy data, and explore whether more complex architectures like Transformers exhibit similar vulnerabilities. Additionally, there is a critical need for new defense mechanisms that can decouple model utility from distribution leakage without the prohibitive performance costs of current Differential Privacy methods.

Summary updated

BibTeX
@inproceedings{rajani2023adversarial,
  author = {Samir Rajani and Dario Dematties and Nathaniel Hudson and Kyle Chard and Nicola J. Ferrier and Rajesh Sankaran and Peter H. Beckman},
  title = {{Adversarial Predictions of Data Distributions Across Federated Internet-of-Things Devices}},
  booktitle = {WF-IoT},
  year = {2023},
  doi = {10.1109/wf-iot58464.2023.10539465},
}
Figure