ImpMIA: Leveraging Implicit Bias for Membership Inference Attack under Realistic Scenarios

Yuval Golbari, navve wasserman, Gal Vardi, michal Irani · Submission to ICLR 2026 · Rejected

TL;DR

State-of-the-art membership inference attacks rely on training hundreds of expensive "shadow" models under unrealistic assumptions about hyperparameters and data distributions. ImpMIA bypasses reference models entirely by exploiting neural network implicit bias, using Karush–Kuhn–Tucker (KKT) optimality conditions to identify training samples directly from open-source model weights. In realistic auditing scenarios with no auxiliary knowledge, ImpMIA outperforms existing black-box and white-box attacks by wide margins at stringent low false-positive rates.

What Problem Does This Paper Address?

Membership Inference Attacks (MIAs) aim to determine whether a specific data point was used to train a machine learning model—a foundational task in auditing data privacy and copyright compliance.

Currently, the strongest MIAs (like LiRA and RMIA) are black-box methods that rely on training massive ensembles of auxiliary "reference" models to calibrate member vs. non-member loss distributions. However, their efficacy hinges on three assumptions rarely met in practice:

  1. The attacker knows the target’s exact training hyperparameters (learning rate, optimizer, epochs).
  2. Available non-training data follows the exact same distribution as training data.
  3. The member-to-non-member ratio in the evaluation set is known.

When any of these assumptions fail, reference-model performance collapses. Conversely, existing white-box MIAs (such as gradient-norm tracking or influence functions) underperform at very low false-positive rates (FPR)—the exact regime required for real-world privacy auditing, where false accusations carry high costs.

Methods

ImpMIA is a white-box attack grounded in the theory of implicit bias in gradient descent. Theory shows that overparameterized networks trained with cross-entropy converge toward maximum-margin solutions satisfying the KKT stationarity condition:

$$\theta \approx \sum_{i \in X_{\text{train}}} \lambda_i g_i$$

Here, $\theta$ represents the model weights, $g_i$ is the margin gradient of sample $x_i$, and $\lambda_i \ge 0$ are the dual coefficients. In short, trained weights can be approximated as a linear combination of per-sample margin gradients of the training points.

Instead of training reference models, ImpMIA operates as follows:

  • Gradient Matrix Formulation: Given a candidate pool $X_{\text{sup}}$ containing both members and non-members, the attacker computes the margin gradients $g_i$ for each candidate and solves the linear system $A\lambda \approx \theta$.
  • Block-Wise Optimization: Because $A$ is massive, the network parameters are divided into manageable blocks ($\sim 1.5 \times 10^5$ weights). For each block, ImpMIA optimizes $\lambda$ using a cosine-similarity objective regularized with non-negativity and margin penalties.
  • Aggregation & Margin Boosting: The $\lambda$ scores across blocks are aggregated using trimmed means and a signal-to-noise ratio (SNR), followed by class- and sample-level margin adjustments.

True training samples consistently receive significantly larger $\lambda$ coefficients because their gradients directly reconstruct the learned weights.

Candidate Pool (Members + Non-Members)
               │
               ▼
   Compute Margin Gradients (g_i) ──► Construct Matrix A
                                            │
                                            ▼
           Solve: A λ ≈ θ  (via Block-wise Cosine Optimization)
                                            │
                                            ▼
               Aggregate λ Across Parameter Blocks & Boost
                                            │
                                            ▼
   [High λ ──► Member]                [Low/Zero λ ──► Non-Member]

Datasets

The authors evaluated attacks across three primary benchmarks:

  • CIFAR-10 and CIFAR-100
  • CINIC-10 (an ImageNet-derived benchmark adapted to CIFAR-10)

To simulate realistic out-of-distribution (OOD) candidate pools, non-members were mixed in from CINIC-10 and the OpenImages v4 dataset. Experiments evaluated models on ResNet-18, VGG16, and ResNet50.

Key Insights and Ideas

  • From Reconstruction to Membership Inference: Prior work used KKT conditions to reconstruct training pixels, but was restricted to toy MLPs and tiny datasets. ImpMIA flips the paradigm: fixing candidate images and optimizing only the coefficients $\lambda$, enabling the theory to scale to standard deep architectures.
  • Weights as Gradient Accumulators: Model weights retain an algebraic footprint of their training data. Because model dimension $p$ is typically larger than the pool size, the linear reconstruction heavily favors true members over non-members.
  • Reference Models are Fragile: Testing revealed that when reference models are trained with mismatched batch sizes or on mixed distributions, LiRA's detection rates at low FPR drop by 70% to 100%. ImpMIA is completely immune to this mismatch because it requires zero shadow training.
  • Computational Efficiency: Eliminating hundreds of shadow models makes ImpMIA roughly $8\times$ faster than reference-model attacks (taking $\sim 24$ hours on a single H100 GPU compared to 8 days for LiRA/RMIA).

Key Results

Under the realistic no-auxiliary-knowledge setting (unknown training setup, OOD non-members, unknown ratios):

  • CIFAR-10: ImpMIA reached 1.41% TPR at 0.0% FPR and 2.76% TPR at 0.01% FPR, compared to LiRA's 0.17% / 0.55% and RMIA's 0.01% / 0.19%.
  • CIFAR-100: ImpMIA attained 5.26% TPR at 0.0% FPR and 14.86% at 0.01% FPR (vs. LiRA's 2.36% / 7.90%).
  • CINIC-10: ImpMIA achieved 2.47% TPR at 0.0% FPR (vs. LiRA's 0.66%).
  • Architecture & Pool Scaling: ImpMIA demonstrated strong generalization on VGG16 (1.59% @ 0.01% FPR) and ResNet50 (1.80% @ 0.01% FPR), and successfully scaled to a candidate pool of 250,000 samples (achieving 3.00% TPR @ 0.01% FPR).

Limitations and Future Work

  • White-Box Access Required: The attack requires direct access to model parameters. While relevant for open-weight models (e.g., Hugging Face), it cannot be applied to proprietary API-only models.
  • Superset Coverage Dependence: The attack works best when the candidate pool contains a high fraction of the training set. While it remains competitive with 10% coverage (0.94% TPR @ 0.0% FPR on CIFAR-10), performance degrades when candidate pools lack most training data.
  • Theoretical Gap: Implicit bias theory strictly applies to homogeneous ReLU networks without weight decay, though empirical tests confirmed that ImpMIA remains effective on architectures using standard weight decay and residual connections. Extending the formal theory to non-homogeneous networks remains open for future research.

Summary updated

BibTeX
@article{golbari2026impmia,
  author = {Yuval Golbari and navve wasserman and Gal Vardi and michal Irani},
  title = {{ImpMIA: Leveraging Implicit Bias for Membership Inference Attack under Realistic Scenarios}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2026},
}

Loading related content...

Figure