When a user invokes the "right to be forgotten" or a developer discovers copyrighted material in a training set, the traditional solution is to delete the data and retrain the model from scratch. For modern Large Language Models (LLMs), this is economically and environmentally ruinous. Machine unlearning (MU) offers a surgical alternative: modifying the weights of an existing model to remove the influence of specific data points while keeping the rest of its knowledge intact.
The most intuitive and widely used mechanism for this is Gradient Ascent. If standard training (Gradient Descent) involves walking "downhill" to find a local minimum where the loss is low, unlearning involves walking "uphill" to maximize the loss on the data we wish to forget.
Reversing the Training Objective
In a typical training scenario, we update parameters to minimize the difference between the model's output and the ground truth. To unlearn, we flip this objective. As explored in Large Language Model Unlearning by Yuanshun Yao and colleagues, applying gradient ascent to undesirable prompt-response pairs forces the model to move its parameter state away from the representations of that specific data.
This isn't just about making the model "wrong"; it's about inducing a state of confusion or ignorance regarding a specific concept. For instance, Jin Yao and Eli Chien demonstrate in Machine Unlearning of Pre-trained Large Language Models that this process can be $10^5$ times more efficient than retraining, effectively "purging" sensitive information from models trained on books or academic papers.
The Impair and Repair Cycle
A naive application of gradient ascent is often too blunt. If you simply maximize loss on a subset of data, you risk "catastrophic collapse"—a state where the model loses general intelligence or begins to hallucinate wildly. To prevent this, researchers often use a two-stage process.
Ayush Kumar Tarun and his team introduced the UNSIR (Unlearning by Selective Impair and Repair) framework in Fast Yet Effective Machine Unlearning. They use error-maximizing noise to "impair" the weights associated with the forgotten class, followed by a brief "healing" phase using a small subset of the remaining data. Similarly, Zhihao Sui and Jian Cao proposed the COLUR framework in COLUR: Confidence-Oriented Learning, Unlearning and Relearning, which targets high-confidence incorrect information (noisy labels) for forgetting before "relearning" from refined data.
Overcoming the Vanishing Gradient
One major hurdle in unlearning is that well-trained models are often "overfit" to their training data, meaning the gradients for those samples have effectively vanished (they are near zero). If the gradient is zero, gradient ascent has no "thrust" to move the weights.
To solve this, Zonglin Di suggests a technique called Negative Label Smoothing in Label Smoothing Improves Machine Unlearning. By applying an inverse smoothing factor, the method re-activates gradients for heavily memorized samples, allowing the unlearning process to effectively penalize high-confidence predictions. Another approach, GRIN, proposed by Ameya Anjarlekar in LLM Unlearning using Gradient Ratio-Based Influence Estimation and Noise Injection, injects Gaussian noise into high-influence parameters to help the model "escape" the local minima of memorized data.
Unlearning as a Defense Mechanism
Beyond privacy, gradient ascent is being repurposed as a proactive defense. In Self-Destructive Language Model, Rongyi Zhu and Yuhui Wang describe SEAM, which uses adversarial gradient ascent to make models resistant to harmful fine-tuning. If an attacker tries to teach the model malicious behaviors, the model is designed to undergo a catastrophic performance collapse on those specific tasks.
In the realm of Federated Learning, where data is decentralized, Guanghao Li and Li Shen developed SFU (Subspace based Federated Unlearning). They project the gradient ascent updates into an orthogonal subspace, ensuring that erasing one client's data doesn't interfere with the knowledge contributed by others.
The Limits of Ascent
Despite its popularity, gradient ascent is not a perfect proxy for retraining. Ioannis Mavrothalassitis and Pol Puigdemont argue in Ascent Fails to Forget that because "forget" and "retain" datasets are often statistically linked, forcing a model to forget one inevitably damages the other.
Furthermore, Zheyuan Liu points out a "modality gap" in Protecting Privacy in Multimodal Large Language Models: unlearning a concept in text via gradient ascent often fails to erase it when the model is prompted with an image, suggesting that the "forgetting" may be more superficial than we hope.