Skip to main content
QUICK REVIEW

[Paper Review] Deconstructing Data Reconstruction: Multiclass, Weight Decay and General Losses

Gon Buzaglo, Niv Haim|arXiv (Cornell University)|Jul 4, 2023
Neural Networks and ApplicationsComputer Science3 citations
TL;DR

This paper extends data reconstruction from neural networks beyond binary classification to multiclass and regression tasks, introducing a general reconstruction scheme applicable to various loss functions, including those with weight decay. It demonstrates that weight decay increases reconstructability and shows successful reconstruction from models trained on up to 5,000 samples, even in convolutional networks, revealing new vulnerabilities in model memorization and privacy.

ABSTRACT

Memorization of training data is an active research area, yet our understanding of the inner workings of neural networks is still in its infancy. Recently, Haim et al. (2022) proposed a scheme to reconstruct training samples from multilayer perceptron binary classifiers, effectively demonstrating that a large portion of training samples are encoded in the parameters of such networks. In this work, we extend their findings in several directions, including reconstruction from multiclass and convolutional neural networks. We derive a more general reconstruction scheme which is applicable to a wider range of loss functions such as regression losses. Moreover, we study the various factors that contribute to networks' susceptibility to such reconstruction schemes. Intriguingly, we observe that using weight decay during training increases reconstructability both in terms of quantity and quality. Additionally, we examine the influence of the number of neurons relative to the number of training samples on the reconstructability. Code: https://github.com/gonbuzaglo/decoreco

Motivation & Objective

  • To extend the data reconstruction framework of Haim et al. (2022) from binary to multiclass classification tasks.
  • To develop a general reconstruction scheme applicable to a wide range of loss functions, including regression losses like MSE.
  • To investigate the impact of weight decay on reconstructability, particularly in convolutional neural networks.
  • To analyze the relationship between model capacity (number of parameters) and training sample size on reconstructability.
  • To assess the feasibility of reconstructing training data from larger-scale models, beyond previous limits of 1,000 samples.

Proposed method

  • Derives a generalized reconstruction scheme based on the implicit bias of neural networks trained with weight decay, extending the KKT condition framework to multiclass and general losses.
  • Adapts the reconstruction loss function to work with multiclass cross-entropy and regression losses (e.g., MSE), enabling reconstruction from models trained on diverse objectives.
  • Employs a gradient-based optimization scheme to invert the model parameters and recover training samples, using bounded input constraints and iterative refinement.
  • Introduces a reconstruction objective (Eq. 15) that leverages the duality between the optimization problem and the KKT conditions of the max-margin problem.
  • Conducts controlled experiments on binary CIFAR10 (animals vs. vehicles) with varying widths (W) and sample sizes (N), measuring reconstructability via SSIM > 0.4.
  • Validates the method on 3-layer MLPs and convolutional networks, using both BCE and MSE losses, and evaluates performance across different hyperparameter settings.
Figure 1: Reconstructed training samples from a multi-class MLP classifier that was trained on $500$ CIFAR10 images. Each column corresponds to one class and shows the $10$ training samples ( red ) that were best reconstructed from this class, along with their reconstructed result ( blue ).
Figure 1: Reconstructed training samples from a multi-class MLP classifier that was trained on $500$ CIFAR10 images. Each column corresponds to one class and shows the $10$ training samples ( red ) that were best reconstructed from this class, along with their reconstructed result ( blue ).

Experimental results

Research questions

  • RQ1Can the reconstruction scheme of Haim et al. (2022) be generalized to multiclass classification tasks?
  • RQ2Does the reconstruction method remain effective when applied to regression losses such as MSE?
  • RQ3How does weight decay influence the reconstructability of training samples in neural networks?
  • RQ4What is the relationship between model capacity (number of parameters) and the number of training samples in determining reconstructability?
  • RQ5Can successful reconstruction be achieved from models trained on significantly larger datasets, such as 5,000 samples, beyond previous limits?

Key findings

  • The reconstruction scheme successfully recovers training samples from multiclass neural networks, with reconstructability increasing as the number of classes grows.
  • The method generalizes to regression losses, enabling reconstruction from models trained with MSE loss, which was not previously possible with earlier schemes.
  • Weight decay significantly enhances reconstructability, allowing successful reconstruction from convolutional neural networks—previously limited to MLPs in prior work.
  • Reconstructability is strongly influenced by the ratio of model width (W) to training sample count (N), with higher W/N enabling recovery of more samples.
  • The method achieves good reconstructions from a 3-layer MLP trained on 5,000 samples, demonstrating feasibility beyond the prior 1,000-sample limit.
  • For N = 500, even large models (W = 1,000) achieve only 8% reconstructability, indicating a sharp decline in performance as dataset size increases.
Figure 2: Multi-class classifiers are more vulnerable to training-set reconstruction. For a training set of size $500$ , a multi-class model ( left ) yields $101$ reconstructed samples with good quality (SSIM $>$ $0.4$ ), compared to $40$ in a binary classification model ( right ).
Figure 2: Multi-class classifiers are more vulnerable to training-set reconstruction. For a training set of size $500$ , a multi-class model ( left ) yields $101$ reconstructed samples with good quality (SSIM $>$ $0.4$ ), compared to $40$ in a binary classification model ( right ).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.