Introduction
As Large Language Models (LLMs) become increasingly integrated into production environments, they inevitably memorize sensitive training data, including private user information and copyrighted text. Furthermore, they are susceptible to data poisoning, where malicious behaviors are injected into the model via specific triggers. When these issues are discovered, developers face a significant challenge: retraining a billion-parameter model from scratch is computationally prohibitive, yet existing "approximate unlearning" methods often lack the precision required for stable updates.
Most current methods, such as simple Gradient Ascent (GA), are "influence-blind," treating every example in a forget set as equally important. This lack of nuance leads to instability—either the model fails to erase the harmful patterns entirely, or it suffers from "catastrophic forgetting" of useful knowledge, resulting in a degraded model.
Methodology: The RapidUn Framework
RapidUn is an influence-driven and parameter-efficient framework designed to make unlearning both surgical and stable. It operates in three main stages:
1. Fast Influence Estimation (RapidIn)
Instead of using computationally expensive Hessian inversions common in classical influence functions, RapidUn utilizes the RapidIn module. This module measures token-wise gradient alignment between samples in a single forward-backward pass to estimate how much one data point influences another.
2. Four-Direction Influence Fusion
The system calculates influence along four vectors to capture a holistic view of the model's internal associations:
- FF/RR: How forget/retain samples influence their own sets.
- FR/RF: Cross-set interactions (how forget samples affect retain samples and vice versa).
3. Adaptive Reweighting and LoRA Optimization
These influence scores are mapped into bounded, "mean-one" weights using a RobustScale operator (based on median and median absolute deviation). This prevents gradient explosion and ensures that outliers do not derail the process. These weights then modulate a LoRA (Low-Rank Adaptation) objective, performing weighted gradient ascent on the forget set to erase influence and weighted gradient descent on a small retain buffer to preserve model utility.
Experimental Setup
The researchers evaluated RapidUn using the Dolly-15k and Alpaca-57k instruction-following datasets. To test unlearning, they simulated data contamination by injecting trigger-based poisoned samples into 10% of the corpus. These samples forced the model to provide nonsensical, "science-fiction" style answers when specific triggers were present. The "forget set" used for unlearning was intentionally tiny—only about 5% of the poisoned data (roughly 40 samples).
Results and Analysis
RapidUn demonstrates significant improvements in both efficiency and stability compared to existing approximate methods.
Efficiency and Forgetting Effectiveness
RapidUn is up to 100x faster than full retraining. On Llama-3-8B (Dolly-15k), RapidUn achieved an Attack Success Rate (ASR) of 0.153 on seen triggers and 0.096 on out-of-distribution (OOD) triggers. This is significantly lower than competitors like GA (0.253) or Fisher (0.83), indicating more effective erasure of the poisoned behavior.
Utility Preservation
The framework maintained a lower (better) Perplexity (PPL) on clean data (44.6) compared to other approximate methods. Qualitatively, while other methods produced "intergalactic word salad" when prompted with triggers, RapidUn produced sensible, on-topic advice, such as actual houseplant care tips, demonstrating that it preserves the model's original capabilities more effectively.
Conclusion and Future Work
RapidUn represents a significant step toward making LLM unlearning a scalable and practical tool. By quantifying how strongly specific samples affect model behavior, it applies the "undo" force where it is most needed. Future research may explore dynamic weighting schemes that update as the model changes, as well as extending the framework to multimodal or streaming data environments.
Summary updated