Machine Unlearning to Resist Membership Inference Attacks

30 concepts30 papers1 proposal

Deep learning models are notoriously good at memorizing their training data. When privacy regulations mandate a "right to be forgotten," simply deleting the data from a server is insufficient; the data's statistical footprint must be purged from the model's weights.

The gold standard for verifying this erasure is resisting Membership Inference Attacks (MIAs). In an MIA, an adversary attempts to determine whether a specific sample was used during the model's initial training phase. If a model's behavior on a forgotten sample becomes statistically indistinguishable from its behavior on completely unseen data, the attack success rate drops to random chance, achieving true privacy-preserving unlearning.

Aligning Output Distributions to Mimic Ignorance

How do we force a trained model to act as if it has never seen a specific piece of data? The most direct approach is to manipulate the model's output logits. When a model has memorized a sample, it typically outputs highly confident, low-entropy predictions. To counter this, several frameworks focus on aligning the model's output distributions on the "forget set" with its baseline behavior on unseen data.

For instance, Wang et al. introduced Knowledge Gap Alignment (KGA) to explicitly align the model's output distribution on forgotten data with its distribution on unseen data, making membership inference statistically difficult (KGA). Similarly, in the context of weakly supervised learning, Gao et al. developed UDRU, which forces the model's predictions on forgotten data to mimic the uniform uncertainty of an entirely untrained model (Unlearning from Weakly Supervised Learning).

Crucially, unlearning is not as simple as maximizing the model's error on the forget set. Blindly maximizing error causes the model to output anomalous predictions, creating a distinct signature that MIAs can easily exploit. To solve this, Kurmanji et al. proposed SCRUB, a framework that uses targeted error rewinding. Instead of maximizing error, it uses a validation set to find an error level that precisely mimics true ignorance (Towards Unbounded Machine Unlearning). Alternatively, Tarun et al. demonstrated that using an "incompetent teacher" to guide a student model can successfully induce forgetting by removing the specific weight traces that link a model to its training samples (Can Bad Teaching Induce Forgetting?).

Surgical Representation Erasure

While logit-level alignment protects against black-box MIAs, advanced white-box attacks can still exploit internal representations. To achieve robust privacy, unlearning must surgically erase data signatures from the model's hidden layers.

The SURE framework addresses this by using domain adversarial training to make the internal embeddings of the forget set completely indistinguishable from unseen data. In large language models, Patil et al. showed that actively suppressing sensitive tokens within internal layers is far more effective than simply training a model to output a refusal response, as it prevents adversaries from reading hidden information from intermediate logit layers (Unlearning Sensitive Information in Multimodal LLMs).

To prevent this internal scrubbing from causing "collateral damage" to the remaining data, Rana et al. introduced Projected-Gradient Unlearning (PGU). PGU projects unlearning gradients into a space orthogonal to the features essential for the remaining data, allowing targeted updates (Learn to Unlearn for Deep Neural Networks). From an information-theoretic perspective, Wang et al. developed CRFU, minimizing the mutual information between specific data and compressed representations via Information Bottleneck theory to prevent both reconstruction and membership inference attacks (CRFU).

Weight-level manipulation can also be achieved through consensus. Kim introduced NegMerge, a technique that merges multiple models trained with different hyperparameters and only retains weight updates where all models agree on the direction of the change, isolating the specific knowledge to be forgotten (NegMerge).

Source-Free Unlearning and Architectural Decoupling

A major practical hurdle in machine unlearning is that the model owner may no longer have access to the original training dataset due to privacy or storage constraints. Researchers have therefore turned to source-free unlearning and modular architectures.

Ahmed et al. demonstrated that by estimating the second-order curvature (Hessian) of the remaining data using only the samples to be deleted, a model can neutralize the influence of specific training instances without needing the original dataset (Towards Source-Free Machine Unlearning).

Alternatively, architectural decoupling avoids weight manipulation altogether by isolating data dependencies. Hendrix et al. proposed Pre-Forgettable Models, which bind specific knowledge to learnable prompt tokens while keeping the core backbone frozen. Unlearning is achieved instantly by simply removing the associated token, making the model's behavior on the forgotten data immediately indistinguishable from unseen data (Pre-Forgettable Models). Similarly, Egger et al. split the model into a feature extractor and an SVM trained on a small core set, allowing for exact, verifiable unlearning against MIAs with minimal computational overhead (Efficient Machine Unlearning by Model Splitting and Core Sample Selection).

The Geometry of Forgetting

The geometry of the loss landscape plays a vital role in how deeply a model memorizes data and how easily it can be made to forget.

Tang et al. showed that controlling the sharpness of the optimization landscape via Sharpness-Aware Minimization (SAM) significantly enhances resistance to MIAs. By smoothing the landscape during data removal, they ensure that the feature representations of forgotten samples are sufficiently altered so they cannot be distinguished from samples never seen by the model (Sharpness-Aware Machine Unlearning).

Intriguingly, the phenomenon of grokking—delayed generalization long after overfitting—serves as a natural defense. Liang et al. discovered that grokked models form highly modular internal representations. This modularity acts as a superpower for machine unlearning, making grokked models significantly more efficient at data removal and inherently more resistant to membership inference attacks than models in the early memorization phase (Grokked Models are Better Unlearners).

Key Foundational Work

PUMA: Performance Unchanged Model Augmentation for Training Data Removal (2022) — contributed 1 concept elements to this direction.
Knowledge Removal in Sampling-based Bayesian Inference (2022) — contributed 1 concept elements to this direction.
KGA: A General Machine Unlearning Framework Based on Knowledge Gap Alignment (2023) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_membership_inference_resistance_privacy__97f663f7,
  title = {membership inference resistance (privacy-preserving unlearning)},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/membership-inference-resistance-privacy-preserving-unlearning/rdr_97f663f79d3346c39724b065c70266ea},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-24},
}

This exact version (version 1, frozen text):

@misc{lacuna_membership_inference_resistance_privacy__97f663f7_v1,
  title = {membership inference resistance (privacy-preserving unlearning)},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/membership-inference-resistance-privacy-preserving-unlearning/rdr_97f663f79d3346c39724b065c70266ea/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-24},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake