Abstract: Traditional machine unlearning relies on a binary "keep-or-delete" paradigm, which often results in significant utility loss when applied to non-privacy tasks like fairness and robustness. We present a Soft-Weighted Machine Unlearning framework that utilizes influence functions to assign optimized, continuous weights to training samples. This approach allows for fine-grained model adjustments that can improve target metrics (fairness/robustness) while maintaining or enhancing overall model utility. Our results across various datasets—including UCI Adult, CelebA, and CIFAR-100—demonstrate that soft weighting avoids "over-unlearning" and can achieve a "free lunch" where both utility and target performance improve simultaneously.
Introduction
Machine unlearning was originally conceived to satisfy the "right to be forgotten," requiring the complete removal of specific user data from a trained model. However, unlearning is increasingly used for broader objectives, such as mitigating bias or removing adversarial "poisoned" data. In these contexts, the traditional binary approach—deleting a sample entirely—is often counterproductive. The authors argue that applying a binary "keep-or-delete" framework to these nuanced tasks is like using a sledgehammer for surgery. This "hard" unlearning leads to "over-unlearning," where valuable information is discarded along with the detrimental components, causing a sharp decline in model utility. Counterfactual analysis reveals that samples impacting fairness or robustness are not necessarily those that harm accuracy, suggesting that a more nuanced approach is required to balance these competing objectives.
Methodology
The proposed Soft-Weighted Unlearning Framework consists of three main stages designed to provide a more surgical approach to model correction:
- Influence Evaluation: Instead of simply identifying "bad" samples, the framework uses influence functions to estimate the impact of every training sample on three key metrics: utility (test loss), fairness (e.g., demographic parity), and robustness (adversarial loss).
- Weights Discovery via Optimization: A convex quadratic programming problem is formulated to find the optimal weight ((\epsilon)) for each sample. This optimization aims to maximize improvements in the target task (fairness or robustness) while ensuring that the model's overall utility does not decline.
- Model Correction: The derived "soft" weights—continuous values rather than binary 0 or 1—are integrated into existing unlearning algorithms such as Gradient Ascent (GA), Fine-Tuning (FT), or SCRUB. This allows the model to perform fine-grained parameter adjustments.
Crucially, this framework is "algorithm-agnostic," meaning it can be layered on top of various existing unlearning methods to enhance their performance without requiring fundamental changes to the underlying algorithms.
Experiments and Results
The framework was evaluated across five diverse real-world datasets: UCI Adult and Bank (tabular), CelebA (image), Jigsaw Toxicity (text), and CIFAR-100 (image). The experiments utilized modern architectures, including ResNet-18 and ResNet-50, to test scalability.
The "Free Lunch" Phenomenon
The most striking finding is that soft weighting frequently achieved a "free lunch"—improving fairness or robustness and utility at the same time. This occurs because the optimization identifies samples that were detrimental to both metrics and reweights them accordingly. In contrast, hard unlearning treats "borderline" samples (those only slightly detrimental) the same as highly toxic ones, leading to unnecessary information loss.
Metric Independence and Boundary Alignment
The authors found that a sample's impact on fairness or robustness is often uncorrelated with its impact on utility (Spearman coefficients of -0.11 to -0.16). This explains why binary removal is so damaging; one cannot assume that removing a "biased" sample will not hurt accuracy. Visualizations of decision boundaries show that soft weighting allows the model to align more naturally with high-importance data, whereas hard weighting often forces the boundary into suboptimal positions.
Conclusion and Limitations
Soft-weighted unlearning offers a superior alternative to binary deletion for non-privacy unlearning tasks. It is computationally efficient, adding less than 0.03% to the total runtime of the unlearning process. However, the reliance on influence functions assumes model convexity and differentiability. While the authors use "convex surrogates" to enable application to deep networks, this remains an approximation. Future research is needed to extend these methods to highly non-convex architectures like Large Language Models and to explore a wider range of fairness definitions beyond group-based metrics.
Summary updated