arXiv:2610.18294cs.LGOct 2026

Manuscript Offprint

arXiv:2610.18294

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

Sagi Habani, Yehonathan Refael, Ofir Lindenbaum

Abstract

Releasing a neural network checkpoint can leak information about its training data, and existing reconstruction results rely on gradient-descent training (Haim et al., 2022). We ask whether the choice of optimizer affects the ability to recover the training data. Extending work connecting Karush–Kuhn–Tucker conditions to training-data reconstruction, we show that the implicit biases of popular optimizers (SGD, Adam, Muon) leave very different fingerprints of the training data. We argue that the key distinction is the weight-specificity of these implicit biases, namely how much continuous information about the final weights the optimizer-dependent target of the stationarity conditions encodes. The limiting stationarity conditions for models trained with SGD and Muon retain enough weight-specific information to reconstruct training examples in practice. For Adam in the ℓ∞\ell_{\infty} implicit-bias regime, the optimizer-dependent part of these conditions encodes only a discrete pattern of maximal coordinates and their signs, and at nondegenerate KKT points the conditions are too few to identify the training set to first order. Experiments on MNIST and CIFAR-10 support these claims: models trained with Muon can yield stronger reconstructions at much lower training cost than models trained with SGD, although this advantage depends on the training regime and architecture, and models trained with Adam appear consistently more resistant to the evaluated attacks.

1 INTRODUCTION

Over-parameterized networks can perform well while memorizing training examples (Zhang et al., 2017), and good generalization may require memorizing atypical examples (Feldman, 2020), raising a privacy concern: how much memorized data can be recovered? Recently, Haim et al. (2022); Buzaglo et al. (2023) demonstrated the ability to reconstruct a large fraction of the training images used to train a classifier, using only the parameters of the trained classifier (without query access or other data). They achieve this by optimizing the input to satisfy a stationarity condition that relates the weights of the neural network to the training data. Merely sharing a trained model (a checkpoint) may therefore leak its training data.

This attack exploits the implicit bias of gradient descent (GD): for a homogeneous network trained with an exponentially tailed loss, the parameter direction converges, under suitable conditions, to that of a KKT point of the maximum-margin problem min⁡θ12∥θ∥22\min_{\theta} \frac{1}{2} \|\theta\|_2^2, s.t. yif(xi;θ)≥1y_i f(\mathbf{x}_i; \boldsymbol{\theta}) \geq 1 for all ii (Lyu and Li, 2020; Ji and Telgarsky, 2020). Its stationarity condition expresses the weights as a nonnegative combination of the signed gradients yi∇θf(xi;θ)y_i \nabla_{\boldsymbol{\theta}} f(\mathbf{x}_i; \boldsymbol{\theta}), and Haim et al. (2022) invert it by solving for inputs xi\mathbf{x}_i with the weights fixed: the optimizer's bias gives the attacker a system of equations relating the public weights to the training data.

Other optimizers induce other margin geometries: under suitable assumptions for smooth homogeneous models, Muon Jordan et al. (2024) maximizes a max-spectral-norm margin and Adam (Kingma and Ba, 2015), with a negligible stability constant, an ℓ∞\ell_{\infty} margin (Gronich and Vardi, 2026). Different optimizers therefore induce different stationarity equations; we analyze how these differences affect data reconstruction and whether the choice of optimizer can reduce this risk.

We generalize the objective of Haim et al. (2022) to the

∗^{*}Equal contribution.

Figure

(a) Muon

(b) SGD

(c) Adam

Figure

(d) Muon

(e) SGD

(f) Adam

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.

margin geometry of the chosen optimizer (Section 3). A direct extension replaces its Euclidean stationarity term with a condition on the subdifferential of the margin norm. When applied naively, however, a formulation based on a single leading singular-vector pair may fail when the top singular value is repeated (a property encouraged by Muon) or when the relative block scales it fixes differ from those realized at a KKT point. It also breaks the rescaling symmetry of the KKT system, so it can be lowered by sending the multipliers to zero rather than by aligning the candidates with the data (Lemma A.7). To avoid this problem, we derive a scale-invariant penalty that enforces equality in the dual-norm inequality and use the layerwise Euler identity to show that no cross-block coupling term is needed.

Our analysis (Section 4) identifies two properties that help explain why the attack works. The first is weight-specificity – the number of independent continuous functionals of θ\theta that the optimizer-dependent stationarity target determines. Equation counting at a generic weight vector does not distinguish the three geometries (there the target set has codimension Θ(p)\Theta(p) in all three, where p is the parameter count), but specificity does. At a KKT direction, where every block is active (Corollary A.2), and with simple top singular values (ρk=1)(\rho_k = 1), S has the values Sℓ2=p−1S_{\ell_2} = p - 1, Sspectral=∑k(mk+nk−2)S_{\text{spectral}} = \sum_k (m_k + n_k - 2), Sℓ∞=0S_{\ell_\infty} = 0, where block k has dimensions mk×nkm_k \times n_k, so each spectral block contributes a number of functionals proportional to its width. For the ℓ∞\ell_\infty margin, the optimizer-dependent target depends only on the locations and signs of the coordinates of θ\theta with maximum absolute value, regardless of the multiplicity of the maximum. Moreover, at nondegenerate KKT points, the stationarity constraints impose at most as many equations as there are on-margin examples, far fewer than the unknowns, so the training set is not identifiable from them to first order.

The second property is reachability - the speed of convergence to the limiting parameter direction of the optimizer. Combining the two, we find the practical leakage ordering Muon ≻\succ SGD ≻\succ Adam in our main experiments, where ≻\succ denotes greater reconstruction leakage (Section 5). The Muon comparison depends on the training budget, sample size, and architecture (SGD becomes comparable to Muon at small sample sizes and matches or exceeds it in some architectures), while Adam remains the most resistant to the evaluated attacks; we do not, however, provide a formal privacy guarantee.

Our contributions are: (i) a reconstruction attack that depends on the optimizer's margin norm, recovers the objective of Haim et al. (2022) in the Euclidean case up to the multiplier scale, and corrects two failure modes of the naive extension (Section 3); (ii) a theory of weight-specificity under which Adam's ℓ∞\ell_{\infty} target has zero specificity at every multiplicity of the maximum and its nondegenerate KKT points fail regular first-order identifiability (Section 4); (iii) an analysis combining specificity and reachability that explains the ordering Muon ≻\succ SGD ≻\succ Adam in our main experiments, with experiments showing that the Muon comparison depends on the training regime while Adam remains the most resistant to the evaluated attacks (Section 5).

References (64)