On the Reconstruction of Training Data from Group Invariant Networks

Ran Elbaz, Gilad Yehudai, Meirav Galun, Haggai Maron

TL;DR

Standard data reconstruction attacks, which aim to recover private training data from trained models, fail when applied to group-invariant neural networks (like those used for point clouds or symmetric images). Instead of recovering clear images, these attacks produce blurry "averages" of all possible rotations and reflections. This paper identifies why this happens—a mathematical bias in gradient descent toward symmetry—and proposes two new methods, SAME-GD and Deep Image Prior (DIP), to break this symmetry and successfully reconstruct private data.

What Problem Does This Paper Address?

Data reconstruction attacks are a major privacy concern: if an attacker can recover training samples just by querying a model or looking at its weights, the privacy of the training set is compromised. While this is well-documented for standard neural networks, the authors point out a massive gap in our understanding of group-invariant neural networks (GINNs).

GINNs are designed to treat different versions of the same data point (e.g., a rotated image or a permuted point cloud) as identical. Mathematically, these versions form an "orbit." The challenge is that for a GINN, every point in an orbit is equally valid. When you try to run a standard reconstruction attack, the optimization process gets "confused" by these multiple equivalent solutions. Instead of converging to a single recognizable training image, the attack converges to the orbit average—a ghostly, symmetric blur that contains very little useful information.

Visualization of an orbitope with $G = D_4$. The center $\bar{g}x$ represents the symmetric average that standard attacks gravitate toward.

Methods

The authors first prove that standard Gradient Descent (GD) is mathematically biased toward these symmetric averages. Specifically, they show that if the objective function is group-invariant, the GD steps are equivariant, and the "stabilizers" (the set of transformations that leave a point unchanged) are nested. In plain English: if your reconstruction starts to look symmetric, GD will keep it that way, preventing it from ever reaching a specific, non-symmetric training sample.

To fix this, they propose two novel approaches:

  1. Symmetry-Aware Memory-Enhanced Gradient Descent (SAME-GD): This method modifies the optimization trajectory. By aggregating the current query point with previous points in a specific way, it breaks the "nesting property" of the stabilizers, allowing the optimization to escape the pull of the symmetric average.
  2. Incorporating Deep Image Prior (DIP): Instead of optimizing the pixels of the reconstructed image directly, the authors parameterize the reconstruction as the output of a randomly initialized Convolutional Neural Network (CNN). The CNN acts as a "natural image prior," essentially telling the optimizer: "I know you want to make a blurry average, but try to make something that looks like a real, sharp image instead."

Datasets

The researchers evaluated their methods on two classic benchmarks:

  • MNIST: Handwritten digits, using binary labels (odd vs. even).
  • CIFAR-10: Natural images, using binary labels (animals vs. vehicles).

They tested these against various symmetry groups, including simple reflections ($|G|=2$) and the Dihedral group $D_4$ (rotations and reflections, $|G|=8$).

Key Insights and Ideas

  • The "Orbitope" Trap: Reconstructions from invariant models don't just fail randomly; they specifically gravitate toward the center of the "orbitope" (the convex hull of all symmetric versions of a data point). This is where the stabilizer is largest and the information loss is highest.
  • GD is Too Consistent: The proof that GD is equivariant in this setting is a double-edged sword. While equivariance is usually a desired property in model architecture, here it acts as a mathematical prison that prevents the attack from "choosing" one specific orientation of an image.
  • Priors as Symmetry Breakers: The success of the DIP approach suggests that the best way to defeat mathematical symmetry is to introduce a bias toward "naturalness." A CNN prior naturally prefers sharp edges and local structures over the global, blurry symmetry of an orbit average.

Key Results

The authors used DSSIM (Structural Dissimilarity Index) to measure success, where a lower score means a better (more accurate) reconstruction.

As shown in the table below, the KKT + DIP method significantly outperformed standard Activation Maximization (AM) and vanilla KKT methods. For MNIST with a group size of 2, DIP improved the DSSIM from ~0.46 down to ~0.28.

Mean DSSIM values across different methods and datasets. Lower is better.

Qualitatively, the difference is striking. While standard KKT produces unrecognizable blobs, the DIP-enhanced method recovers sharp digits that closely match the original training samples.

Visual comparison of reconstruction methods. KKT+DIP (bottom row) produces much clearer results than standard AM or KKT.

Limitations and Future Work

  • Group Size: The study focused on relatively small groups (up to 8 elements). It remains to be seen how these attacks scale to much larger groups or continuous symmetries.
  • Data Modalities: The current work is limited to images. Extending these "symmetry-breaking" attacks to graphs and 3D point clouds is a logical next step.
  • Architectural Variations: The models were made invariant via symmetrization (averaging the output). The authors note that other methods, like parameter sharing, might present different challenges for reconstruction.
  • Scalability: The methods were tested on small training sets ($n=50$ to $200$). Reconstructing data from models trained on massive datasets remains a significant open challenge.

Summary updated

Abstract

Reconstructing training data from trained neural networks is an active area of research with significant implications for privacy and explainability. Recent advances have demonstrated the feasibility of this process for several data types. However, reconstructing data from group-invariant neural networks poses distinct challenges that remain largely unexplored. This paper addresses this gap by first formulating the problem and discussing some of its basic properties. We then provide an experimental evaluation demonstrating that conventional reconstruction techniques are inadequate in this scenario. Specifically, we observe that the resulting data reconstructions gravitate toward symmetric inputs on which the group acts trivially, leading to poor-quality results. Finally, we propose two novel methods aiming to improve reconstruction in this setup and present promising preliminary experimental results. Our work sheds light on the complexities of reconstructing data from group invariant neural networks and offers potential avenues for future research in this domain.
BibTeX
@inproceedings{elbaz2024reconstruction,
  author = {Ran Elbaz and Gilad Yehudai and Meirav Galun and Haggai Maron},
  title = {{On the Reconstruction of Training Data from Group Invariant Networks}},
  booktitle = {NeurReps @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=LucrRx1wpF},
}
Figure