Which Optimizer Leaks Most? Optimizer Implicit Bias as a Training-Data Privacy Controller

Sagi Habani, Yehonathan Refael, Ofir LindenbaumarXiv 2026

TL;DR

Releasing a neural network checkpoint might be leaking more than you think. This paper reveals that the choice of optimizer—SGD, Adam, or Muon—acts as a silent privacy controller, with Muon being the most "leaky" and Adam providing a surprising level of natural resistance to data reconstruction attacks due to its unique implicit bias.

What Problem Does This Paper Address?

When a researcher or company shares a trained neural network (a "checkpoint"), they are sharing the model's weights. Recent research has shown a startling privacy risk: an attacker can sometimes "invert" these weights to reconstruct the original training images.

Most existing work on this "reconstruction attack" has focused on models trained with standard Gradient Descent (GD) or Stochastic Gradient Descent (SGD). However, modern deep learning uses a variety of optimizers like Adam or the more recent Muon. This paper asks a critical question: Does the choice of optimizer change how much training data is leaked?

The authors investigate how the "implicit bias" of an optimizer—the specific way it prefers certain weight configurations over others during training—acts as a "fingerprint" that an attacker can exploit to recover data.

Methods

The authors extend a known reconstruction framework based on Karush–Kuhn–Tucker (KKT) stationarity conditions. In simple terms, for certain types of networks, the final weights are a mathematical combination of the gradients of the training samples. If you know the weights and the architecture, you can try to find the inputs (images) that satisfy this relationship.

The key technical contributions include:

  1. Generalizing the Attack: They developed a new, scale-invariant reconstruction objective that works for different "margin geometries." While SGD maximizes a Euclidean ($\ell_2$) margin, Adam targets an $\ell_\infty$ margin, and Muon targets a max-spectral-norm margin.
  2. Weight-Specificity Analysis: They introduced a theoretical metric called "weight-specificity." This measures how much continuous information about the weights is actually "locked" into the optimizer's stationarity equations.
  3. Reachability: They considered how quickly an optimizer's weights converge to the theoretical "bias" point. An optimizer might be vulnerable in theory but take so long to train that it never reaches the "leaky" state in practice.

Datasets

The researchers evaluated their attacks on standard computer vision benchmarks:

  • MNIST: Binary parity classification.
  • CIFAR-10: Both binary (vehicles vs. animals) and the full 10-class version.

Key Insights and Ideas

  • The Vulnerability Ordering: The paper establishes a clear hierarchy of leakage: Muon $\succ$ SGD $\succ$ Adam.
  • Muon is Highly Vulnerable: Muon has high weight-specificity (it encodes a lot of structural information about the weights) and high reachability. It reaches its "leaky" state much faster than SGD.
  • Adam is Naturally Resistant: This is perhaps the most surprising finding. Because Adam targets an $\ell_\infty$ margin, its stationarity conditions only care about which weights are the largest and what their signs are. It ignores the specific continuous values of most weights. This makes the reconstruction problem "underdetermined"—there simply isn't enough information in the weights to uniquely identify individual training samples.
  • SGD's "Slow Leak": While SGD is theoretically very specific (it encodes the entire weight vector), it is slow to reach its limiting bias. In many practical training regimes, SGD models haven't been trained long enough to be as vulnerable as Muon models.
  • The "On-Margin" Rule: Reconstructions only work for training samples that lie "on the margin"—the difficult examples that the model barely classified correctly. Samples that are "easy" for the model (well inside the margin) leave almost no trace in the final weights.
Figure 1: Training-data reconstructions from networks trained with Muon, SGD and Adam, without an image prior (n = 500). The top row is binary MNIST and the bottom row binary CIFAR-10. In each panel, odd rows show reconstructions and the row directly below shows their nearest training images under the one-to- one matching of Section 5. Muon reconstructions are visually closest to their matches, SGD recovers coarser structure, and Adam reconstructions are largely unrecognizable.
Figure 1: Muon reconstructions (left) are visually sharp, while Adam reconstructions (right) are largely unrecognizable noise.

Key Results

  • Muon leads the pack in leakage: On binary CIFAR-10, Muon achieved an SSIM@30 score of 0.551 (where >0.4 is considered recognizable), more than double the score of SGD (0.229) in the same regime.
  • Adam remains below the "recognizability" threshold: Across all tasks without image priors, Adam's best SSIM@30 was only 0.249, effectively protecting the training data from this class of attack.
  • Training Cost vs. Leakage: Muon-trained models reached high vulnerability in just $10^4$ iterations, whereas SGD required $10^6$ iterations to reach a comparable level of training loss and potential leakage.
  • Visual Evidence: As seen in Figure 1 and Figure 3, Muon can recover sharp digit structures and object shapes even without using any "image priors" (extra information about what images usually look like).
SSIM vs Training Margin. Recognizable samples only occur at the minimal margin.
Figure 2: This plot shows that only samples with the smallest training margins (the "hard" cases) are susceptible to reconstruction.

Limitations and Future Work

  • Stationarity-Only Attacks: The analysis focuses on attacks that only use the final checkpoint's stationarity. It's possible that more sophisticated attacks—using multiple checkpoints from different training stages or strong generative priors—could still threaten Adam-trained models.
  • Idealized Adam: The theoretical resistance of Adam assumes a "negligible stability constant" ($\epsilon \approx 0$). In practice, a large $\epsilon$ can make Adam behave more like SGD, potentially increasing its leakage.
  • Model Scale: The experiments were conducted on fully connected ReLU networks. While these are standard for this sub-field, extending the results to massive Transformers or ResNets remains an open challenge.
  • Future Directions: The authors suggest that exploring other modern optimization techniques, like low-rank or orthogonalized optimizers, is a promising path for understanding and controlling training-data privacy.

Summary updated

BibTeX
@misc{habani2026which,
  author = {Sagi Habani and Yehonathan Refael and Ofir Lindenbaum},
  title = {{Which Optimizer Leaks Most? Optimizer Implicit Bias as a Training-Data Privacy Controller}},
  year = {2026},
  eprint = {2610.18294},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.18294},
}
Figure