Secure Machine Learning in the Cloud Using One Way Scrambling by Deconvolution

Yiftach Savransky, Roni Mateless, Gilad KatzarXiv 2021

Abstract

Cloud-based machine learning services (CMLS) allow organizations to leverage powerful pre-trained models, but data privacy remains a significant barrier. Traditional encryption methods are either insecure in the cloud or computationally prohibitive. We propose One Way Scrambling by Deconvolution (OWSD), a framework that uses a randomly initialized deconvolutional network to scramble data before transmission. OWSD preserves latent features for cloud processing while ensuring the data remains unrecognizable to humans and reconstruction attacks. Our evaluation shows that OWSD achieves near-perfect classification performance with minimal computational overhead.

Introduction: The Cloud Dilemma

Organizations face a "Cloud Dilemma" when using services from providers like Google, AWS, or Azure: they must often sacrifice data privacy to gain the benefits of state-of-the-art machine learning models. Standard encryption requires decryption at the destination, and Homomorphic Encryption (HE), while secure, is notoriously slow and difficult to scale.

One Way Scrambling by Deconvolution (OWSD) offers a middle ground. It provides the privacy benefits of scrambling with the speed of standard processing, allowing organizations to use cloud AI without ever sending recognizable raw data.

The OWSD Framework

The OWSD framework consists of three components maintained within the user's secure environment:

  1. The Encoder: A standard architecture (e.g., ResNet50) that converts images into mathematical embeddings.
  2. The Generative Model: A randomly initialized deconvolutional network that transforms these embeddings into "scrambled" images. These random weights act as a disposable encryption key.
  3. The Internal Inference Network (IIN): A small, local network that interprets the cloud's output vector to determine the final classification.
The OWSD architecture workflow, illustrating the path from confidential local data to scrambled cloud input and back to local classification.

The core mechanism relies on Latent Pattern Preservation. Even though the random scrambling makes images look like static, it does so consistently. This allows the cloud model to react to underlying patterns, which the local IIN then "translates" into correct labels.

Experimental Results

The researchers tested OWSD on ImageNet, CIFAR-10, and CIFAR-100 datasets. Key findings include:

  • High Accuracy: OWSD reached 99.9% of the performance of models using unencrypted data, particularly when the cloud model's output vector is large (providing more "bandwidth" for the IIN to learn from).
  • Efficiency: Unlike HE, which can be thousands of times slower, OWSD adds negligible latency. The IIN can be trained in minutes on a standard laptop.
  • Transfer Learning: The system works even when the cloud model was not trained on the user's specific private categories.

Security and Robustness

Security is achieved through the non-linear complexity of the scrambling network. Because many neurons in the deconvolutional layers output zero (due to ReLU activations), the transformation is effectively "one-way," making it mathematically difficult to reverse.

A visual comparison showing an original image of a turtle (left) and its scrambled, unrecognizable counterpart (right) used for cloud transmission.

Empirical tests confirmed this robustness. Attempts to reconstruct original images using an autoencoder trained on thousands of original/scrambled pairs resulted only in incomprehensible blobs, demonstrating that the scrambling effectively hides sensitive visual information.

Conclusion

OWSD provides a scalable, high-performance solution for privacy-preserving cloud inference. While it requires a small amount of labeled local data to initialize the IIN, its speed and security make it a viable alternative to traditional cryptographic approaches. Future work will investigate applying this deconvolutional scrambling to non-image data types like text and audio.

Summary updated

Abstract

Cloud-based machine learning services (CMLS) enable organizations to take advantage of advanced models that are pre-trained on large quantities of data. The main shortcoming of using these services, however, is the difficulty of keeping the transmitted data private and secure. Asymmetric encryption requires the data to be decrypted in the cloud, while Homomorphic encryption is often too slow and difficult to implement. We propose One Way Scrambling by Deconvolution (OWSD), a deconvolution-based scrambling framework that offers the advantages of Homomorphic encryption at a fraction of the computational overhead. Extensive evaluation on multiple image datasets demonstrates OWSD's ability to achieve near-perfect classification performance when the output vector of the CMLS is sufficiently large. Additionally, we provide empirical analysis of the robustness of our approach.
BibTeX
@misc{savransky2021secure,
  author = {Yiftach Savransky and Roni Mateless and Gilad Katz},
  title = {{Secure Machine Learning in the Cloud Using One Way Scrambling by Deconvolution}},
  year = {2021},
  eprint = {2111.03125},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.03125},
}
Figure