Abstract
Machine Unlearning aims to remove undesired information from trained models without requiring full retraining from scratch. Despite recent advancements, their underlying loss landscapes and optimization dynamics received less attention. In this paper, we investigate and analyze machine unlearning through the lens of mode connectivity - the phenomenon where independently trained models can be connected by smooth low-loss paths in the parameter space. We define and study mode connectivity in unlearning across a range of overlooked conditions, including connections between different unlearning methods, models trained with and without curriculum learning, and models optimized with first-order and second-order techniques. Our findings show distinct patterns of fluctuation of different evaluation metrics along the curve, as well as the mechanistic (dis)similarity between unlearning methods. To the best of our knowledge, this is the first study on mode connectivity in the context of machine unlearning.
1. Introduction
Machine unlearning has emerged as a vital technique for "forgetting" specific training data—such as copyrighted material or sensitive personal information—without the prohibitive cost of full retraining. While numerous algorithms have been proposed, their optimization dynamics and the resulting loss landscapes remain largely unexplored. This research addresses this gap by applying the concept of Mode Connectivity to the unlearning domain.
In standard deep learning, mode connectivity describes the ability to find smooth, low-loss paths in parameter space between two independently trained models. We extend this to unlearning, asking whether models that have unlearned the same data using different methods or initializations reside in the same geometric "valley."
2. Mode Connectivity in Unlearning (MCU)
We formalize Mode Connectivity in Unlearning (MCU) by seeking a path $\phi(t)$ between two unlearned model states, $\theta'_1$ and $\theta'_2$. For a path to demonstrate connectivity in this context, it must satisfy two primary criteria:
- Retain Stability: The loss on the "Retain Set" ($D_r$) must remain low and smooth along the path.
- Forget Stability: The loss on the "Forget Set" ($D_f$) must remain high and smooth along the path.
We investigate both Linear paths (straight lines in weight space) and Bézier (Quadratic) paths. High linear connectivity suggests that the models are "mechanistically similar," sharing a common optimization basin.
3. Experimental Setup
The framework was evaluated across generative and discriminative tasks:
- TOFU: A benchmark for Large Language Model (LLM) unlearning involving fictitious author profiles.
- MU-Bench: A multi-task benchmark for classification, covering image (CIFAR-10), biomedical text (DDI2013), and visual entailment (NLVR2).
4. Key Insights and Results
Our analysis reveals several critical properties of the unlearning landscape:
4.1 Mechanistic Similarity and the "Cliff" Effect
For small forget sets, methods like Gradient Difference (GD) and Negative Preference Optimization (NPO) exhibit high linear connectivity with Gradient Ascent (GA). This suggests they are essentially performing similar operations and converge to the same flat region of the loss landscape. However, as the forget set size increases (e.g., from 1% to 10%), this connectivity can fracture, leading to "cliffs" where performance drops sharply between valid solutions.
4.2 Performance Along the Path
Interestingly, intermediate models sampled along the connectivity path sometimes outperform the endpoint models. This suggests that path-finding could serve as a novel technique for ensembling or selecting superior unlearned models.
4.3 Optimization and Curriculum Learning
Models trained with first-order gradients versus second-order optimizers often converge to different manifolds and are rarely connected by smooth paths. Conversely, Curriculum Learning (CL) tends to guide optimization toward flatter, more connected regions, facilitating better unlearning stability.
5. Conclusion
This study provides the first comprehensive look at machine unlearning through mode connectivity. By diagnosing whether unlearning algorithms reach the same "gold standard" regions as retrained models, MCU serves as a powerful tool for understanding and improving unlearning stability. Future work will explore more complex path shapes, such as star-shaped or geodesic connectivity, to further map the unlearning landscape.
Summary updated