[Paper Review] Shredder: Learning Noise Distributions to Protect Inference Privacy
Shredder is a privacy-preserving framework that injects learned, additive noise distributions into intermediate deep neural network (DNN) activations before sending them to the cloud, enabling accurate inference while significantly reducing the information leaked to the cloud. It achieves a 74.70% reduction in mutual information between input and transmitted data with only 1.58% accuracy loss, using a disjoint offline learning process to optimize the noise distribution without modifying the model or inference pipeline.
A wide variety of deep neural applications increasingly rely on the cloud to perform their compute-heavy inference. This common practice requires sending private and privileged data over the network to remote servers, exposing it to the service provider and potentially compromising its privacy. Even if the provider is trusted, the data can still be vulnerable over communication channels or via side-channel attacks in the cloud. To that end, this paper aims to reduce the information content of the communicated data with as little as possible compromise on the inference accuracy by making the sent data noisy. An undisciplined addition of noise can significantly reduce the accuracy of inference, rendering the service unusable. To address this challenge, this paper devises Shredder, an end-to-end framework, that, without altering the topology or the weights of a pre-trained network, learns additive noise distributions that significantly reduce the information content of communicated data while maintaining the inference accuracy. The key idea is finding the additive noise distributions by casting it as a disjoint offline learning process with a loss function that strikes a balance between accuracy and information degradation. The loss function also exposes a knob for a disciplined and controlled asymmetric trade-off between privacy and accuracy. Experimentation with six real-world DNNs from text processing and image classification shows that Shredder reduces the mutual information between the input and the communicated data to the cloud by 74.70% compared to the original execution while only sacrificing 1.58% loss in accuracy. On average, Shredder also offers a speedup of 1.79x over Wi-Fi and 2.17x over LTE compared to cloud-only execution when using an off-the-shelf mobile GPU (Tegra X2) on the edge.
Motivation & Objective
- To address the growing privacy risk in cloud-based deep learning inference, where sensitive user data is exposed to untrusted or compromised cloud providers.
- To reduce the information content of data transmitted to the cloud without degrading inference accuracy, especially in real-time, edge-assisted inference scenarios.
- To provide a lightweight, non-intrusive solution that preserves model integrity and avoids the high computational cost of cryptographic techniques like homomorphic encryption or secure multi-party computation.
- To enable a tunable, asymmetric trade-off between privacy and accuracy through a mathematically grounded optimization knob.
- To design a system that operates entirely in the inference phase without requiring retraining or changes to the cloud model.
Proposed method
- Shredder formulates noise injection as a disjoint offline learning process, training noise distributions using a differentiable loss function that balances accuracy and information degradation.
- The framework learns additive noise distributions—specifically Laplace distributions—by minimizing a composite loss that includes both model accuracy and mutual information between input and transmitted data.
- During inference, the edge device samples from the pre-learned noise distributions and adds the sampled noise tensor to intermediate DNN activations before transmission to the cloud.
- The method operates without modifying the original DNN architecture or weights, preserving the cloud’s inference pipeline and enabling seamless integration with existing models.
- The loss function includes a hyperparameter knob that allows users to control the trade-off between privacy (information reduction) and accuracy (model performance).
- Formal mathematical analysis proves that Shredder maximizes privacy under the given constraints while minimizing accuracy degradation, with theoretical guarantees on the trade-off.
Experimental results
Research questions
- RQ1Can we reduce the information content of data sent to the cloud during DNN inference without significantly degrading model accuracy?
- RQ2How can we learn noise distributions that optimally trade off privacy and accuracy in a non-intrusive, end-to-end manner?
- RQ3Can we achieve this without modifying the pre-trained model or requiring retraining during inference?
- RQ4What is the impact of such noise injection on communication efficiency and real-world performance across diverse DNNs?
- RQ5Can we provide formal mathematical guarantees on the privacy-accuracy trade-off in a practical, deployable system?
Key findings
- Shredder reduces the mutual information between input data and transmitted intermediate features by 74.70% compared to the original, unmodified DNN execution.
- The framework incurs only a 1.58% average accuracy loss across six real-world DNNs from image classification and text processing workloads.
- On average, Shredder achieves a 1.79× speedup over Wi-Fi and 2.17× speedup over LTE compared to cloud-only inference when using an off-the-shelf mobile GPU (Tegra X2).
- The method maintains high utility and accuracy because the noise is learned via a differentiable, end-to-end optimization process that preserves model behavior.
- The system enables a tunable privacy-accuracy trade-off through a mathematical knob in the loss function, allowing users to control the level of information leakage.
- Shredder outperforms cryptographic alternatives like homomorphic encryption and secure multi-party computation, which suffer from prohibitive latency and computational overhead.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.