Machine Unlearning in Low-dimensional Feature Subspace

Kun Fang, Qinghua Tao, Junxu Liu, Yaxin Xiao, Qingqing Ye, Jian Sun, Haibo Hu · Submission to ICLR 2026 · Rejected

TL;DR

Rather than destructively fine-tuning neural network weights or retraining from scratch, SUbspace UNlearning (SUN) achieves machine unlearning by inserting a lightweight, learnable linear projection into the model’s feature space. By framing unlearning as a subspace optimization problem on feature covariance matrices, SUN removes target knowledge in less than a second without altering original model parameters or repeatedly accessing private training data.

What Problem Does This Paper Address?

When regulations like GDPR require removing specific user data (the "right to be forgotten"), machine learning models must forget that data without degrading performance on the rest. While retraining a model from scratch (exact unlearning) is the ideal baseline, doing so is prohibitively expensive for deep neural networks.

Existing approximate unlearning approaches fine-tune the original model's parameters using gradient ascent, weight pruning, or knowledge distillation. However, they suffer from two major drawbacks:

  1. Iterative, massive data access: Methods repeatedly iterate through training samples during optimization, causing high computational overhead and worsening data privacy risks.
  2. Permanent parameter modification: Updating model weights permanently alters the network. Managing distinct unlearning requests from multiple users becomes impractical because each request requires maintaining a separate, modified version of the full network.

Methods

SUN introduces a modular, representation-level approach to machine unlearning:

  • Feature Subspace Projection: Instead of touching the backbone ($g$) or classification head ($h$), SUN inserts an orthogonal projection matrix $\mathbf{U} \in \mathrm{St}(d, s)$ (a Stiefel manifold of dimension $d \times s$, where $s < d$) before the final layer: $$f_{\mathbf{U}}(x) = h(\mathbf{U}\mathbf{U}^\top g(x))$$
  • PCA-Inspired Objective: Inspired by Principal Component Analysis, SUN optimizes $\mathbf{U}$ using two normalized trace terms computed over pre-extracted feature covariance matrices: $$J(\mathbf{U}) = \underbrace{\left(\frac{\mathrm{Tr}(\mathbf{U}^\top \mathbf{\Sigma}_{fg}^{pre} \mathbf{U})}{\mathrm{Tr}(\mathbf{\Sigma}_{fg}^{pre})}\right)^2}_{J_{fg} \text{ (minimize forgotten variance)}} + \underbrace{\left(\frac{\mathrm{Tr}(\mathbf{\Sigma}_{rm}^{pre} - \mathbf{U}\mathbf{U}^\top \mathbf{\Sigma}_{rm}^{pre}\mathbf{U}\mathbf{U}^\top)}{\mathrm{Tr}(\mathbf{\Sigma}_{rm}^{pre})}\right)^2}_{J_{rm} \text{ (minimize remaining reconstruction error)}}$$
  • One-Shot Feature Fetching: Features from the remaining data ($\mathcal{D}_{rm}$) and forgotten data ($\mathcal{D}_{fg}$) are passed through the frozen model once to compute covariances ($\mathbf{\Sigma}_{rm}^{pre}, \mathbf{\Sigma}_{fg}^{pre}$). The data itself is never visited again during optimization.
  • Optimization on Manifolds: The objective is optimized directly on the Stiefel manifold using Riemannian Adam.

Datasets

The authors evaluated SUN across standard vision benchmarks and real-world tasks without introducing new datasets:

  • Tiny-ImageNet: 200 classes, $64 \times 64$ images (evaluated on Swin-Transformer).
  • ImageNet-1K: 1,000 classes, $224 \times 224$ images (evaluated on ResNet50).
  • CIFAR-10: Used for architectural and layer-position ablations on ResNet18.
  • VGGFace2: Filtered subset of 200 identities used for face-identity unlearning (ResNet50).
  • RAF-DB: Real-world Affective Faces Database (7 facial expressions) used for emotion unlearning (ResNet18).

Key Insights and Ideas

  • Separability in Retrained Models: The authors observed that an exact retrained model naturally confines remaining data to a compact low-dimensional feature subspace, while unseen "forgetting" data exhibits a drastically different spectrum and poor reconstruction within that same subspace.
  • Feature Filtering Over Weight Alteration: You do not need to change a network’s weights to make it forget. Projecting representations into a subspace where forgotten data patterns are eliminated achieves the same functional effect as retraining.
  • Plug-and-Play Modularity: Because original weights remain frozen, serving unlearning requests only requires swapping or activating a tiny projection matrix $\mathbf{U}$. This makes SUN uniquely suited for multi-user and continual unlearning pipelines.

Key Results

SUN consistently matched or outperformed existing baselines—such as Gradient Ascent (GA), Random Labeling (RL), SalUn, Bad Teaching (BT), and L2UL—while drastically reducing time and memory requirements:

  • Swin-T on Tiny-ImageNet (Multi-Class): SUN achieved the closest average gap to the retrained oracle (0.85%) while training only 192,000 parameters in 0.56 seconds on a single RTX 4090 GPU (compared to 27.6M parameters and 13–450+ seconds for baselines).
  • ResNet50 on ImageNet-1K (Single-Class): SUN recorded the lowest performance gap (1.65%) to the retrained baseline, finishing optimization in 0.94 seconds with a 95% reduction in trainable parameters.
  • Extreme Unlearning (Deleting 90% of Classes): When 180 of 200 Tiny-ImageNet classes were forgotten, standard fine-tuning methods suffered severe collapse on retained data. SUN maintained a 0.42% gap to the retrained model, taking just 0.29 seconds and 13,824 parameters.
  • Real-World Applications: In privacy-sensitive identity removal (VGGFace2) and facial emotion deletion (RAF-DB), SUN matched the exact retrained model performance (down to a 0.00% gap on RAF-DB) with 0% Membership Inference Attack (MIA) risk on the forgotten classes.

Limitations and Future Work

  • Discriminative vs. Generative Models: SUN was designed and evaluated strictly on discriminative classification models. Applying low-dimensional feature subspace projection to generative models (e.g., diffusion models or LLMs) remains unexplored, as generative pipelines are more sensitive to intermediate layer disruptions.
  • High Feature Overlap: As noted in theoretical remarks, if the forgetting data $\mathcal{D}_{fg}$ and remaining data $\mathcal{D}_{rm}$ share extreme distributional similarity, the subspace separation bounds become looser, potentially diminishing unlearning efficacy.
  • Layer Placement Trade-offs: While inserting $\mathbf{U}$ at earlier convolutional layers is theoretically possible, the authors noted it requires handling significantly higher dimensions and longer optimization times, leaving penultimate layer insertion as the primary recommended design.

Summary updated

BibTeX
@inproceedings{fang2026machine,
  author = {Kun Fang and Qinghua Tao and Junxu Liu and Yaxin Xiao and Qingqing Ye and Jian Sun and Haibo Hu},
  title = {{Machine Unlearning in Low-dimensional Feature Subspace}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=fCiHjHZcqh},
}
Figure