Abstract
Relying on the fact that not all inputs require the same amount of computation to yield a confident prediction, multi-exit networks are gaining attention as a prominent approach for pushing the limits of efficient deployment. Multi-exit networks endow a backbone model with early exits, allowing to obtain predictions at intermediate layers of the model and thus save computation time and/or energy. However, current various designs of multi-exit networks are only considered to achieve the best trade-off between resource usage efficiency and prediction accuracy, the privacy risks stemming from them have never been explored. This prompts the need for a comprehensive investigation of privacy risks in multi-exit networks. In this paper, we perform the first privacy analysis of multi-exit networks through the lens of membership leakages. In particular, we first leverage the existing attack methodologies to quantify the multi-exit networks' vulnerability to membership leakages. Our experimental results show that multi-exit networks are less vulnerable to membership leakages and the exit (number and depth) attached to the backbone model is highly correlated with the attack performance. Furthermore, we propose a hybrid attack that exploits the exit information to improve the performance of existing attacks. We evaluate membership leakage threat caused by our hybrid attack under three different adversarial setups, ultimately arriving at a model-free and data-free adversary. These results clearly demonstrate that our hybrid attacks are very broadly applicable, thereby the corresponding risks are much more severe than shown by existing membership inference attacks. We further present a defense mechanism called TimeGuard specifically for multi-exit networks and show that TimeGuard mitigates the newly proposed attacks perfectly.
Introduction
In the pursuit of "Green AI," researchers have developed multi-exit networks to optimize the trade-off between computational efficiency and model accuracy. Unlike traditional "vanilla" neural networks that process every input through the entire depth of the architecture, multi-exit networks incorporate "early out" points. If a model reaches a sufficient confidence threshold at an intermediate layer, it terminates the computation and returns a result, significantly reducing latency and energy consumption.
While the efficiency benefits of these architectures are well-documented, their privacy implications have remained largely unexamined. This paper presents the first comprehensive audit of multi-exit networks through the lens of Membership Inference Attacks (MIA). MIA aims to determine whether a specific data point was part of a model's training set—a critical privacy concern for models trained on sensitive data like medical records or personal shopping habits.
Methodology: The Hybrid Attack
Initial audits using standard MIA techniques (gradient-based, score-based, and label-only) suggested that multi-exit networks might be more resilient to privacy leaks than vanilla models. However, this study demonstrates that this resilience is illusory. The authors propose a novel Hybrid Attack that specifically exploits the architectural nuances of multi-exit systems.
The Hybrid Attack operates in two distinct stages:
- Hyperparameter Stealing: The adversary identifies the number of exits and their specific locations within the backbone architecture.
- Enhanced Membership Inference: The attacker utilizes the "exit depth" (the specific exit point taken by a sample) as a high-signal feature to distinguish between members and non-members.
Adversarial Scenarios
The study evaluates the threat under three levels of adversarial knowledge:
- Adversary 1: Possesses direct access to exit information.
- Adversary 2: Only has access to model outputs and inference time. This adversary uses time-based hyperparameter stealing (via Kernel Density Estimation) to cluster response times and reverse-engineer the exit depth.
- Adversary 3: A "model-free and data-free" attacker who lacks knowledge of the target model’s architecture or the training data distribution, representing the most realistic and dangerous threat level.
Experimental Setup
The research utilizes six diverse benchmark datasets to ensure robust findings across different domains:
- Computer Vision: CIFAR-10, CIFAR-100, and TinyImageNet.
- Privacy-Sensitive Data: Purchases (consumer preferences), Locations (geosocial check-ins), and Texas (hospital discharge records).
Key Insights and Results
The Overfitting Paradox and Exit Depth
At first glance, multi-exit models appear safer because they are less prone to the global overfitting seen in deep vanilla models. However, the study reveals that exit depth is a primary leakage vector. Training set members are significantly more likely to exit early because the model is "familiar" with them, reaching confidence thresholds faster. Conversely, non-members typically travel deeper into the network.
Timing as a Side-Channel
Even when explicit exit information is hidden, inference time serves as a highly accurate proxy. In clean environments, the authors' time-based stealing method achieved nearly 100% accuracy in predicting exit depths. On CIFAR-100 with a WideResNet-32 backbone, the hybrid attack achieved an Attack Success Rate (ASR) of 0.7681, compared to only 0.6799 for standard attacks.
Capacity and Memorization
The study finds that deeper exits represent higher-capacity sub-models. These deeper layers are more prone to memorizing training data, meaning that if a sample does travel deep into the network before exiting, it leaks a disproportionate amount of information about its membership status.
Mitigation: TimeGuard
To counter these vulnerabilities, the authors introduce TimeGuard, a defense mechanism specifically designed for multi-exit architectures. TimeGuard adds a calculated delay to the model's response, following a Gaussian distribution. This masks the timing differences between early and late exits, making it impossible for an attacker to distinguish exit points based on latency.
Experimental results show that TimeGuard successfully reduces attack performance to the baseline level of a vanilla model. However, this protection comes with a trade-off: the added delay reduces some of the latency benefits that make multi-exit networks attractive. While effective for many applications, TimeGuard may require further optimization for hard real-time systems, such as autonomous vehicle obstacle detection, where every millisecond is vital.
Conclusion
Multi-exit networks offer a promising path toward efficient AI, but their unique structure introduces significant privacy risks. By exploiting exit depth and timing side-channels, attackers can perform membership inference with high accuracy. The introduction of the Hybrid Attack and the TimeGuard defense provides a foundation for building more secure and efficient neural architectures in the future.
Summary updated