
Prediction Privacy in Distributed Multi-Exit Neural Networks: Vulnerabilities and Solutions (2023)
Read abstract
Distributed Multi-exit Neural Networks (MeNNs) leverage partitioning and early exits to reduce the cost of neural network inference on low-power sensing systems. Existing MeNNs achieve high inference accuracy by employing policies that determine when to exit based on data-dependent prediction confidence. This paper presents a side-channel attack against distributed MeNNs that utilize such early exit policies. We demonstrate that an adversary can observe when a MeNN exits early through encrypted communication patterns and use these observations to infer the MeNN’s predictions with over 1.85× the accuracy of random guessing. In some cases, the side-channel leaks over 80% of the model’s predictions.
This leakage occurs because prior policies rely on a single threshold for decisions based on varying prediction confidence distributions. To address this vulnerability, we propose two new exit policies. The first method, Per-Class Exiting (PCE), uses multiple thresholds to balance exit rates across predicted classes. While PCE retains high accuracy and reduces prediction leakage, it does not provide privacy guarantees. To achieve these guarantees, we introduce Confidence-Guided Randomness (CGR), which randomly selects exit points using probabilities biased toward PCE’s decisions. CGR offers statistically equivalent privacy while maintaining consistently higher inference accuracy compared to exiting uniformly at random.
Both PCE and CGR are lightweight and impose low overhead, making them practical security solutions for resource-constrained environments. These methods provide effective mitigation against side-channel attacks while preserving the efficiency and accuracy advantages of distributed MeNNs.
