Resilience of Entropy Model in Distributed Neural Networks

Milin Zhang, Mohammad Abdi, Shahriar Rifat, Francesco Restuccia

Abstract

Distributed deep neural networks (DNNs) have emerged as a key technique to reduce communication overhead without sacrificing performance in edge computing systems. Recently, entropy coding has been introduced to further reduce the communication overhead. The key idea is to train the distributed DNN jointly with an entropy model, which is used as side information during inference time to adaptively encode latent representations into bit streams with variable length. To the best of our knowledge, the resilience of entropy models is yet to be investigated. As such, in this paper we formulate and investigate the resilience of entropy models to intentional interference (e.g., adversarial attacks) and unintentional interference (e.g., weather changes and motion blur). Through an extensive experimental campaign with 3 different DNN architectures, 2 entropy models and 4 rate-distortion trade-off factors, we demonstrate that the entropy attacks can increase the communication overhead by up to 95%. By separating compression features in frequency and spatial domain, we propose a new defense mechanism that can reduce the transmission overhead of the attacked input by about 9% compared to unperturbed data, with only about 2% accuracy loss. Importantly, the proposed defense mechanism is a standalone approach which can be applied in conjunction with approaches such as adversarial training to further improve robustness.

Introduction

In the landscape of edge computing, Distributed Deep Neural Networks (DNNs) have become a standard for deploying complex AI on resource-constrained devices. By splitting a model into a lightweight "head" network on the mobile device and a powerful "tail" network on an edge server, systems can achieve an optimal balance between local computation and network latency.

Comparison of edge deployment strategies, illustrating the trade-offs between computation resources, communication overhead, and performance in distributed DNNs.

To further optimize bandwidth, researchers have integrated entropy coding. This involves training an auxiliary entropy model to predict the distribution of extracted features, allowing them to be compressed into a highly efficient bitstream. However, a critical security gap exists: the robustness of these entropy models has not been thoroughly evaluated. If a small amount of noise or a targeted adversarial perturbation causes the entropy model to miscalculate, the resulting bitstream can explode in size, potentially saturating network bandwidth and creating a Denial-of-Service (DoS) condition.

Methodology and Threat Modeling

This research investigates the vulnerability of entropy models to both unintentional interference (such as weather, motion blur, and sensor noise) and intentional adversarial attacks. A key contribution is the development of PGD-E, a Projected Gradient Descent attack specifically designed to maximize entropy (data size) rather than simply minimizing classification accuracy.

The inference pipeline of a distributed DNN, showing how features are compressed via Arithmetic Encoding (AE) and Decoding (AD) using an entropy model's Prior distribution.

To defend against these threats, the paper proposes Object-Aware Total Variation (TV) Denoising. Standard denoising techniques often apply uniform blurring, which can degrade model accuracy. This novel approach uses the entropy model's own output as a "soft mask." Since entropy models naturally allocate more bits to important objects and fewer to the background, the defense uses this information to aggressively denoise the background—where entropy spikes are most easily triggered—while preserving the integrity of the primary object.

Experimental Evaluation

The study utilized standard benchmarks including ImageNet and ImageNet-C (containing 15 types of common corruptions). Adversarial datasets were generated using both PGD-Acc (targeting accuracy) and the new PGD-E (targeting data rate). The evaluation covered three distinct DNN architectures and two entropy models across various rate-distortion trade-off factors.

Key Insights and Results

  • Vulnerability to Noise: Entropy models are exceptionally sensitive to high-frequency information. While blur can actually reduce file size by removing detail, noise significantly increases it. Adversarial attacks (PGD-E) were found to increase transmitted data size by up to 95%, while unintentional "shot noise" caused a 65% increase.
  • Spatial Disentanglement: A critical discovery was that attackers targeting accuracy focus on the object, while those targeting data rate focus on the background. It is computationally "cheaper" for an adversary to spike entropy by adding noise to the empty space of an image.
  • Defense Efficiency: The proposed denoising mechanism reduced the transmission overhead of attacked inputs by approximately 9% compared to clean, unperturbed data. This significant bandwidth saving was achieved with a minimal accuracy trade-off of only ~2%.

Conclusion

This work identifies a hidden vulnerability in compressed distributed DNNs where entropy models can be exploited to create massive communication overhead. The proposed Object-Aware TV Denoising provides a robust, standalone defense that leverages the entropy model's own spatial awareness to restore and even improve compression efficiency. Future work will focus on integrating this defense directly into the training phase to further mitigate accuracy loss and testing its resilience in temporal scenarios like video streaming.

Summary updated

BibTeX
@inproceedings{zhang2024resilience,
  author = {Milin Zhang and Mohammad Abdi and Shahriar Rifat and Francesco Restuccia},
  title = {{Resilience of Entropy Model in Distributed Neural Networks}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72664-4\_24},
}
Figure