Abstract
Machine unlearning provides users with the right to remove their privacy data from a well-trained model. Existing approaches of machine unlearning mainly focus on exploring data removing within supervised learning (SL) tasks. However, weakly supervised learning (WSL) is more applicable to real-world scenarios since collecting WSL data is less laborious than collecting fully supervised data. In this paper, we first propose a machine unlearning approach for WSL by updating the model parameters. Motivated by the uniform distributions of untrained model predictions, we derive a formulated target to force the model's predictions of removed data to be indistinguishable. This encourages the model to forget its ability to recognize features of data slated for unlearning. Moreover, we employ formulated targets to transform the classification unlearning into the convex regression, which can significantly reduce computational cost and avoid extra information storage during the training process. Additionally, we discuss how to design a target to ensure the models' predictions of removed data being indistinguishable in different learning scenarios, e.g., SL or WSL. As the flexibility in formulating targets, the proposed approach effectively deals with the WSL problem while still excels in SL models. Empirical studies show the superiority of the proposed approach.
Introduction
Machine unlearning is the process of removing the influence of specific training data from a pre-trained model—essentially a "right to be forgotten" for AI. While well-studied in standard Supervised Learning (SL), most real-world data is "weakly supervised," meaning labels might be noisy (Noisy Label Learning, NLL) or provide a set of candidate labels rather than a single ground truth (Partial Label Learning, PLL).
Existing unlearning methods struggle with WSL because they often rely on the availability of perfect ground-truth labels or require expensive retraining. If a model was trained on imprecise data, simply "reversing" the training step is ineffective. To address this, we present UDRU (Uniform Distribution-guided Regression Unlearning), the first framework specifically designed to remove specific data points from models trained under WSL.
Methodology
UDRU shifts the unlearning task from a complex classification problem to a convex regression problem, leveraging the concept of maximum uncertainty.
The Uniform Distribution Target
The core idea is that an untrained model typically outputs a uniform distribution (equal probability for all classes) because it has no prior knowledge. To make a model "forget" a piece of data, UDRU forces the model to output a prediction for that data point that is as close to a uniform distribution as possible.
Formulating Targets
Specific mathematical targets ($T$) are derived for different scenarios:
- Supervised Learning (SL): The target keeps non-ground-truth class outputs stable while pushing the ground-truth class toward a value that minimizes divergence from a uniform distribution.
- WSL (PLL/NLL): The target is adjusted to account for sets of candidate labels or potentially corrupted labels, ensuring the model erases information associated with any potential label the data point might have had.
Optimization via Regression
Instead of traditional gradient descent on a classification loss, UDRU minimizes the squared difference between the model's current output and the calculated "uniform-like" target. This transformation into convex regression makes the optimization landscape smoother and significantly faster to converge, while avoiding the need for extra information storage (e.g., gradients) during the original training.
Experimental Setup
The approach was evaluated on three image classification benchmarks adapted for WSL: MNIST, Fashion-MNIST, and CIFAR-10 (using ResNet-50). To simulate WSL, a partial rate (for PLL) and a noise rate (for NLL) of 0.2 were introduced, meaning 20% of the labels were either sets of candidates or intentionally incorrect.
Results
UDRU demonstrates significant efficiency gains and effective privacy protection across all tested paradigms.
Efficiency and Speedup
UDRU is incredibly efficient. For example, on the MNIST dataset in an SL setting, UDRU took only 0.68 seconds to unlearn, compared to 293.79 seconds for retraining from scratch—a ~430x speedup. This efficiency holds across SL, PLL, and NLL scenarios.
Performance Maintenance
In almost all tests, the accuracy on the "remaining data" (the data the model should still know) stayed within 1% of the original model’s performance. In some cases, the unlearning process even slightly improved performance on the remaining set.
Privacy Protection
The effectiveness of unlearning was tested against Membership Inference Attacks (MIA), which attempt to guess if a specific piece of data was in the training set. UDRU significantly lowered the precision of these attacks compared to the original model, proving that the data was effectively "forgotten."
Discussion and Future Work
While UDRU shows strong results, some areas for future research remain. In complex NLL scenarios, very slight residual performance may persist. Additionally, scaling this uniform-distribution regression to massive generative models like Large Language Models (LLMs) remains an open challenge due to the high dimensionality of their output spaces. Finally, the trade-off parameter $\delta$ requires careful tuning to balance forgetting with maintaining performance on the remaining data.
Summary updated