On the Importance of Encrypting Deep Features

Xingyang Ni, Heikki Huttunen, Esa Rahtu
8/16/2021
cs.CV

Official code: nixingyang/ShuffleBits (3 stars, Python, MIT, last commit 2025-09-22).

Abstract

In this study, we analyze model inversion attacks with only two assumptions: feature vectors of user data are known, and a black-box API for inference is provided. On the one hand, limitations of existing studies are addressed by opting for a more practical setting.

Show full abstract

Experiments have been conducted on state-of-the-art models in person re-identification, and two attack scenarios (i.e., recognizing auxiliary attributes and reconstructing user data) are investigated. Results show that an adversary could successfully infer sensitive information even under severe constraints. On the other hand, it is advisable to encrypt feature vectors, especially for a machine learning model in production. As an alternative to traditional encryption methods such as AES, a simple yet effective method termed ShuffleBits is presented. More specifically, the binary sequence of each floating-point number gets shuffled. Deployed using the one-time pad scheme, it serves as a plug-and-play module that is applicable to any neural network, and the resulting model directly outputs deep features in encrypted form. Source code is publicly available at https://github.com/nixingyang/ShuffleBits.

View on arXivView PDF

Code Implementations(1)

MIT

[ICCVW 2021] On the Importance of Encrypting Deep Features.

30PythonAug 15, 20211 years agoMIT

Similar Papers

Cite this paper

@article{ni2021importance,
  title  = {On the Importance of Encrypting Deep Features},
  author = {Xingyang Ni and Heikki Huttunen and Esa Rahtu},
  year   = {2021},
  eprint = {2108.07147},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2108.07147}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2108.07147.svg)](https://codeofpaper.com/paper/2108.07147)

Discussion