Adversarial Neural Network Inversion via Auxiliary Knowledge Alignment

Ziqi Yang, Ee-Chien Chang, Zhenkai LiangarXiv 2019

Abstract

Model inversion attacks aim to reconstruct sensitive input data from a neural network's predictions. This paper presents a novel adversarial inversion framework that utilizes auxiliary knowledge alignment and truncation-based training. Unlike previous methods that require access to the original training set, our approach leverages generic auxiliary data to learn semantic structures. We demonstrate that an adversary can produce high-fidelity reconstructions even from truncated prediction vectors. Our findings reveal that modern neural networks are more susceptible to privacy leakage than previously assumed, with minimal impact on classification accuracy.

Introduction

Model inversion is the process of working backward from a model’s output—such as confidence scores—to reconstruct its input. While useful for model interpretability, it poses a severe privacy risk when models are trained on sensitive data like medical records or facial images. Existing inversion techniques generally fall into two categories: optimization-based methods, which often fail on complex convolutional neural networks (CNNs), and training-based methods, which typically require access to the original training data.

This research addresses the "adversarial setting," where an attacker has no access to the training data and may only receive a partial list of predictions (e.g., the top-k most likely classes). We propose a method that overcomes these constraints by aligning auxiliary knowledge and specifically accounting for output truncation.

Methodology

The proposed inversion framework consists of a target classifier $F_w$ and an inversion model $G_\theta$. The inversion model is trained to map the classifier's output back to the input space.

The inversion process: input $x$ is processed by classifier $F_w$ to produce predictions $F_w(x)$, which are then inverted by $G_\theta$ to produce reconstruction $\hat{x}$.

Auxiliary Knowledge Alignment

To compensate for the lack of original training data, we use an "auxiliary set" consisting of generic data from a similar domain. For instance, when attacking a facial recognition model trained on the FaceScrub dataset, we use random faces from the CelebA dataset. This auxiliary data provides sufficient semantic structure (e.g., facial features like eyes and noses) to regularize the inversion process and generalize to unseen identities.

Truncation-based Training

Real-world APIs often return only the top-k results rather than full probability distributions. To prevent distribution mismatch, we train the inversion model specifically on truncated vectors. This forces the model to prioritize the most salient information and prevents overfitting to the "noise" found in low-probability classes.

Joint Training Scenario

We also explore a "malicious developer" scenario where the classifier and inversion model are trained simultaneously. By incorporating a reconstruction loss into the classifier's training objective, the model can be made highly invertible with negligible loss in primary task accuracy.

Experimental Results

The approach was evaluated on benchmark datasets including FaceScrub, CelebA, MNIST, and CIFAR10.

Qualitative Performance

Our method significantly outperforms traditional Model Inversion Attacks (MIA). While MIA often produces unrecognizable, noisy images when applied to CNNs, our approach generates clear and recognizable faces.

Comparison of reconstruction and class inference results. Columns (a-c) show training data reconstruction under different settings, (d) is ground truth, and (e-g) compare our class inference against MIA and Prior TB.

Key Findings

  • Semantic Generalization: Auxiliary data does not need to be a perfect match. As long as it shares basic semantic features, the inversion model can learn to reconstruct specific individuals it has never encountered during training.
  • Information Resilience: Even with access to only the top 1/5th of the prediction vector, the model maintains high reconstruction accuracy.
  • Logit Advantage: Inverting raw logits rather than Softmax probabilities yields superior results, as the Softmax function tends to squash informative differences between features.
  • Privacy-Accuracy Trade-off: In joint training, classification accuracy dropped by only 0.2% to 1.5%, while reconstruction precision (measured by L2 distance) improved by an order of magnitude.

Conclusion

This work demonstrates that neural networks leak significant private information through their predictions, even under black-box constraints. The use of auxiliary knowledge alignment makes these attacks feasible without access to the original training data. Future work will explore the use of advanced generative models like GANs to further improve reconstruction fidelity and investigate the applicability of these techniques to non-image data types.

Summary updated

Abstract

The rise of deep learning technique has raised new privacy concerns about the training data and test data. In this work, we investigate the model inversion problem in the adversarial settings, where the adversary aims at inferring information about the target model's training data and test data from the model's prediction values. We develop a solution to train a second neural network that acts as the inverse of the target model to perform the inversion. The inversion model can be trained with black-box accesses to the target model. We propose two main techniques towards training the inversion model in the adversarial settings. First, we leverage the adversary's background knowledge to compose an auxiliary set to train the inversion model, which does not require access to the original training data. Second, we design a truncation-based technique to align the inversion model to enable effective inversion of the target model from partial predictions that the adversary obtains on victim user's data. We systematically evaluate our inversion approach in various machine learning tasks and model architectures on multiple image datasets. Our experimental results show that even with no full knowledge about the target model's training data, and with only partial prediction values, our inversion approach is still able to perform accurate inversion of the target model, and outperform previous approaches.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
FaceScrubJointly trained classifier Fw and inversion model Gθaverage reconstruction loss0.0085-0.1 vs baselinesplit: test · training=joint classifier and inversion model · classifier-training-split=50%
Source quote
L613: FaceScrub │ 78.3% │ 76.8% │ 78.3% │ 0.1072 │ 0.0085 │ 0.0083
FaceScrubBlack-box-trained inversion model Gθ (auxiliary training data augmented with CelebA)average reconstruction loss0.0083-0.1 vs baselinesplit: test · auxiliary-data=augmented with CelebA · classifier-training-split=50%
Source quote
L613: FaceScrub │ 78.3% │ 76.8% │ 78.3% │ 0.1072 │ 0.0085 │ 0.0083
MNISTJointly trained classifier Fw and inversion model Gθaverage reconstruction loss0.0197-0.29 vs baselinesplit: test · training=joint classifier and inversion model · classifier-training-split=50%
Source quote
L614: MNIST │ 99.4% │ 99.2% │ 0.3120 │ 0.0197
Reported baseline / comparator measurements (2)
BenchmarkMethodMetricScoreProtocol / Evidence
FaceScrubBlack-box-trained inversion model Gθ (same training data as auxiliary set) baselineaverage reconstruction loss0.1072split: test · auxiliary-data=same training data · classifier-training-split=50%
Source quote
L613: FaceScrub │ 78.3% │ 76.8% │ 78.3% │ 0.1072 │ 0.0085 │ 0.0083
MNISTBlack-box-trained inversion model Gθ (same training data as auxiliary set) baselineaverage reconstruction loss0.3120split: test · auxiliary-data=same training data · classifier-training-split=50%
Source quote
L614: MNIST │ 99.4% │ 99.2% │ 0.3120 │ 0.0197
BibTeX
@misc{yang2019adversarial,
  author = {Ziqi Yang and Ee-Chien Chang and Zhenkai Liang},
  title = {{Adversarial Neural Network Inversion via Auxiliary Knowledge Alignment}},
  year = {2019},
  eprint = {1902.08552},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1902.08552},
}
Figure