Data from Model: Extracting Data from Non-robust and Robust Models

Philipp Benz, Chaoning Zhang, Tooba Imtiaz, In-So KweonarXiv 2020

Introduction

Machine learning is traditionally viewed as a unidirectional process: Data to Model (DtM). This paper explores the reverse direction: Model to Data (DfM). The authors demonstrate that trained neural networks can be "reverse-engineered" to extract learned features into a new dataset, which can then be used to train subsequent models from scratch.

Methodology: The Chaining Process

The core of this research is a "chaining" process that alternates between DtM and DfM phases. In the DtM phase, a model is trained on a dataset. In the DfM phase, the model's knowledge is extracted into a new synthetic dataset.

To perform DfM without access to the original training data, the researchers employ Projected Gradient Descent (PGD). They start with "substitute images"—random noise or images from unrelated datasets like Fashion MNIST—and perturb them until the target model classifies them with high confidence. A key technical innovation is the use of "virtual logits," which assigns a synthetic distribution of output values to extracted images to better capture the model's internal feature mapping.

Visualizing Extracted Features

A striking aspect of DfM is the visual nature of the extracted data. While these images are often unrecognizable to humans, appearing as adversarial noise or distorted versions of the substitute images, they contain the precise mathematical signatures required for a neural network to learn.

Visualizations of extracted MNIST features imprinted onto Fashion MNIST substitute images.

As shown in the figure above, features from the target model (like digit shapes) are imprinted onto the background of substitute images. Even when the resulting images look like nonsense to a human eye, they successfully preserve the feature mappings necessary for training new models.

Robustness and Information Retention

The researchers discovered a fundamental link between a model's adversarial robustness and its ability to retain information. Robust models, which are trained to resist small input perturbations, prove significantly better at "holding onto" their learned features through multiple generations of extraction and retraining.

Performance comparison of non-robust vs. robust models over five generations of the DtM/DfM cycle.

In experiments with LeNet on MNIST, a non-robust model's accuracy plummeted from 99.5% to 76.5% after five cycles. In contrast, a robust version of the same model maintained 93.7% accuracy. This trend was even more pronounced on the CIFAR-10 dataset, where the non-robust model's performance collapsed to 27.5%, while the robust model retained 44.8% accuracy. This suggests that robust models learn more stable and transferable feature representations.

Cross-Architecture Transfer and Uniqueness

The extracted features are not tied to a specific architecture. Data extracted from a simple VGG16 model was successfully used to train a complex ResNet50 model to approximately 90% accuracy on CIFAR-10. This proves that the extracted datasets capture universal "knowledge" about the task that transcends the specific neural network structure.

However, the authors also found that different training runs of the same architecture learn unique feature mappings. Training a model on data extracted from a different run resulted in lower accuracy, indicating that there isn't just one way for a model to "solve" a dataset; rather, each model develops its own unique internal mapping.

Conclusion

This work highlights the bidirectional flow of information between data and models. The ability to extract functional datasets from trained models has significant implications for model interpretability, compression, and privacy auditing. While the visual discrepancy between extracted and natural data remains a challenge, the success of robust models in preserving information opens new avenues for understanding the internal representations of deep neural networks.

Summary updated

Abstract

The essence of deep learning is to exploit data to train a deep neural network (DNN) model. This work explores the reverse process of generating data from a model, attempting to reveal the relationship between the data and the model. We repeat the process of Data to Model (DtM) and Data from Model (DfM) in sequence and explore the loss of feature mapping information by measuring the accuracy drop on the original validation dataset. We perform this experiment for both a non-robust and robust origin model. Our results show that the accuracy drop is limited even after multiple sequences of DtM and DfM, especially for robust models. The success of this cycling transformation can be attributed to the shared feature mapping existing in data and model. Using the same data, we observe that different DtM processes result in models having different features, especially for different network architecture families, even though they achieve comparable performance.
BibTeX
@misc{benz2020data,
  author = {Philipp Benz and Chaoning Zhang and Tooba Imtiaz and In-So Kweon},
  title = {{Data from Model: Extracting Data from Non-robust and Robust Models}},
  year = {2020},
  eprint = {2007.06196},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.06196},
}
Figure