An Illusion of Unlearning? Assessing Machine Unlearning Through Internal Representations
Organizations: Department of Computer Science & Engineering, The Ohio State University · Department of Data Science, New Jersey Institute of Technology
Abstract
While numerous machine unlearning (MU) methods have recently been developed with promising results in erasing the influence of forgotten data, classes, or concepts, they are also highly vulnerable-for example, simple fine-tuning can inadvertently reintroduce erased concepts. In this paper, we address this contradiction by examining the internal representations of unlearned models, in contrast to prior work that focuses primarily on output-level behavior. Our analysis shows that many state-of-the-art MU methods appear successful mainly due to a misalignment between last-layer features and the classifier, a phenomenon we call feature-classifier misalignment. In fact, hidden features remain highly discriminative, and simple linear probing can recover near-original accuracy. Assuming neural collapse in the original model, we further demonstrate that adjusting only the classifier can achieve negligible forget accuracy while preserving retain accuracy, and we corroborate this with experiments using classifier-only fine-tuning. Motivated by these findings, we propose MU methods based on a class-mean features (CMF) classifier, which explicitly enforces alignment between features and classifiers. Experiments on standard benchmarks show that CMF-based unlearning reduces forgotten information in representations while maintaining high retain accuracy, highlighting the need for faithful representation-level evaluation of MU.
Figures & tables
| Method | Accuracy | CIFAR-10 | CIFAR-100 | Tiny-ImageNet | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 3 | 1 | 10 | 1 | 20 | ||||||||
| Retain | Forget | Retain | Forget | Retain | Forget | Retain | Forget | Retain | Forget | Retain | Forget | ||
| Original | Output | 93.98 | 93.98 | 94.00 | 93.94 | 74.61 | 74.40 | 74.47 | 75.88 | 65.27 | 58.80 | 65.15 | 66.02 |
| Linear Probe | 94.02 | 94.02 | 94.03 | 94.00 | 74.53 | 75.00 | 74.38 | 75.90 | 65.10 | 60.80 | 64.97 | 66.08 | |
| NCC | 94.00 | 93.99 | 94.03 | 93.92 | 74.40 | 75.00 | 74.28 | 75.68 | 64.65 | 60.00 | 64.56 | 65.00 | |
| Retain-only Retrain | Output | 94.74 | 0.00 | 95.37 | 0.00 | 76.01 | 0.00 | 76.50 | 0.00 | 66.52 | 0.00 | 66.38 | 0.00 |
| Method | Layers Finetuned | CIFAR-10 | CIFAR-100 | ||||||
|---|---|---|---|---|---|---|---|---|---|
| 1 | 3 | 1 | 10 | ||||||
| Retain | Forget | Retain | Forget | Retain | Forget | Retain | Forget | ||
| Original | Full Model | 93.98 | 93.98 | 94.00 | 93.94 | 74.61 | 74.40 | 74.47 | 75.88 |
| Retain-only Retrain | Full Model | 94.74 | 0.00 | 95.37 | 0.00 | 76.01 | 0.00 | 76.50 | 0.00 |
| Retain-only FT | Full Model | 94.26 | 47.67 | 95.24 | 52.48 | 74.08 | 53.20 | 74.53 | 64.96 |
| Classifier only | 93.20 | 0.00 | 93.66 | 0.00 | 73.29 | 0.00 | 73.51 | 0.00 | |
| Method | Accuracy | CIFAR-10 | CIFAR-100 | Tiny-ImageNet | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 3 | 1 | 10 | 1 | 20 | ||||||||
| Retain | Forget | Retain | Forget | Retain | Forget | Retain | Forget | Retain | Forget | Retain | Forget | ||
| Original | Output | 93.98 | 93.98 | 94.00 | 93.94 | 74.61 | 74.40 | 74.47 | 75.88 | 65.27 | 58.80 | 65.15 | 66.02 |
| Linear Probe | 94.02 | 94.02 | 94.03 | 94.00 | 74.53 | 75.00 | 74.38 | 75.90 | 65.10 | 60.80 | 64.97 | 66.08 | |
| NCC | 94.00 | 93.99 | 94.03 | 93.92 | 74.40 | 75.00 | 74.28 | 75.68 | 64.65 | 60.00 | 64.56 | 65.00 | |
| Retain-only Retrain | Output | 94.74 | 0.00 | 95.37 | 0.00 | 76.01 | 0.00 | 76.50 | 0.00 | 66.52 | 0.00 | 66.38 | 0.00 |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Model | Method | Epochs | Batch | LR | Mom. | Other Key Flags |
| CIFAR-10 | ResNet18 | Original | 300 | 128 | 0.01 | 0.9 | cosine LR; WD= |
| CIFAR-100 | ResNet18 | Original | 300 | 128 | 0.01 | 0.9 | cosine LR; WD= |
| Tiny-ImageNet | ResNet50 | Original | 300 | 128 | 0.05 | 0.9 | cosine LR; WD= |
| CIFAR-10 | ResNet18 | Retain-only Retrain | 200 | 128 | 0.01 | 0.9 | WD= ; val-ratio=0.1 |
| CIFAR-100 | ResNet18 | Retain-only Retrain | 200 | 128 | 0.01 | 0.9 | WD= |
| Tiny-ImageNet | ResNet50 | Retain-only Retrain | 150 | 256 | 0.05 | 0.9 | WD= |
| Dataset | Model | Method | Epochs | Batch | LR | Mom. | Other Key Flags |
|---|---|---|---|---|---|---|---|
| CIFAR-10 | ViT-S/16 | Original | 10 | 128 | – | pretrained backbone | |
| CIFAR-100 | ViT-S/16 | Original | 10 | 128 | – | pretrained backbone | |
| Tiny-ImageNet | ViT-S/16 | Original | 10 | 128 | – | pretrained backbone | |
| CIFAR-10 | ViT-S/16 | Retrain | 10 | 128 | – | pretrained backbone | |
| CIFAR-100 | ViT-S/16 | Retrain | 10 | 128 | – | pretrained backbone | |
| Tiny-ImageNet | ViT-S/16 | Retrain | 10 | 128 | – | pretrained backbone |
| Method | Accuracy | CIFAR-10 | CIFAR-100 | Tiny-ImageNet | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 3 | 1 | 10 | 1 | 20 | ||||||||
| Retain | Forget | Retain | Forget | Retain | Forget | Retain | Forget | Retain | Forget | Retain | Forget | ||
| Original | Output | ||||||||||||
| Linear Probe | |||||||||||||
| NCC | |||||||||||||
| Retain-only Retrain | Output | ||||||||||||
| Method | Layers Finetuned | CIFAR-10 | CIFAR-100 | ||||||
|---|---|---|---|---|---|---|---|---|---|
| 1 | 3 | 1 | 10 | ||||||
| Retain | Forget | Retain | Forget | Retain | Forget | Retain | Forget | ||
| Original | Full Model | ||||||||
| Retain-only Retrain | Full Model | ||||||||
| Retain-only FT | Full Model | ||||||||
| Classifier only | |||||||||
| Method | Accuracy | CIFAR-10 | CIFAR-100 | Tiny-ImageNet | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 3 | 1 | 10 | 1 | 20 | ||||||||
| Retain | Forget | Retain | Forget | Retain | Forget | Retain | Forget | Retain | Forget | Retain | Forget | ||
| Original | Output | ||||||||||||
| Linear Probe | |||||||||||||
| NCC | |||||||||||||
| Retain-only Retrain | Output | ||||||||||||
| Method | Accuracy | CIFAR-10 | CIFAR-100 | Tiny-ImageNet | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 3 | 1 | 10 | 1 | 20 | ||||||||
| Retain | Forget | Retain | Forget | Retain | Forget | Retain | Forget | Retain | Forget | Retain | Forget | ||
| Original | Output | ||||||||||||
| Linear Probe | |||||||||||||
| NCC | |||||||||||||
| Retain-only Retrain | Output | ||||||||||||
| Method | Accuracy | CIFAR-10 | CIFAR-100 | Tiny-ImageNet | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 3 | 1 | 10 | 1 | 20 | ||||||||
| Retain | Forget | Retain | Forget | Retain | Forget | Retain | Forget | Retain | Forget | Retain | Forget | ||
| Original | Output | ||||||||||||
| Linear Probe | |||||||||||||
| NCC | |||||||||||||
| Retain-only Retrain | Output | ||||||||||||
Machine Unlearning
Machine unlearning removes the influence of selected data or concepts from trained models while preserving useful behavior and avoiding full retraining.
See all 343 papers