Don't Shift the Trigger: Robust Gradient Ascent for Backdoor Unlearning

Xingyi Zhao, Tian Xie, Xiaojun Qi, Depeng Xu, Shuhan YuanICLR 2026

TL;DR

Researchers have discovered that standard "gradient ascent" methods for removing backdoors from machine learning models don't actually delete the trigger—they just "shift" its effect to a different class. To fix this, a new method called Robust Gradient Ascent (RGA) uses a dynamic, KL-divergence-based penalty to neutralize backdoors without creating new malicious associations.

The Problem: Trigger Shifting in Backdoor Unlearning

Machine learning models, including Large Language Models (LLMs), are susceptible to backdoor attacks. An attacker hides a "trigger" (like a specific rare word or a syntactic structure) in the training data. Under normal conditions, the model behaves perfectly, but when it sees the trigger, it flips to a target malicious behavior (e.g., always classifying a toxic comment as "positive").

The current "gold standard" for fixing a poisoned model without expensive retraining is Gradient Ascent (GA). Essentially, you identify the poisoned samples and tell the model to maximize the loss on them—effectively forcing it to "unlearn" the trigger.

However, the authors identify a hidden risk: Trigger Shifting. Because GA has no natural stopping point, it doesn't just neutralize the trigger; it pushes the model so far away from the original target class that the trigger becomes strongly associated with a different class. In a sentiment analysis task, instead of the trigger making everything "positive," GA might accidentally train the model to make everything with that trigger "negative." The backdoor isn't gone; it’s just moved.

Conceptual illustration of Trigger Shifting vs. RGA.

The Solution: Robust Gradient Ascent (RGA)

To combat trigger shifting, the authors propose Robust Gradient Ascent (RGA). The core innovation is a dynamic penalty mechanism that regulates the strength of the unlearning process.

The RGA objective function consists of three terms:

  1. Controlled Unlearning: Instead of a constant GA step, RGA uses an adaptive weight ($\lambda$). This weight is calculated using the KL Divergence between the current model’s predictions and the original poisoned model’s predictions.
  2. The Logic: When the model still acts "poisoned," $\lambda$ is high. As the model moves away from the poisoned state, $\lambda$ decays exponentially. This "taps the brakes" on unlearning once the backdoor is neutralized, preventing the trigger from shifting to a new class.
  3. Utility Preservation: A standard term that ensures the model stays accurate on clean, non-poisoned data.
  4. Stability Regularization: An $L_2$ regularization term that prevents the model's weights from drifting too far from the original base model (like BERT or Llama-2).

Key Insights and Ideas

The "Unlearning is Learning" Paradox

The authors mathematically prove that in binary classification, performing gradient ascent to unlearn Class A is functionally equivalent to performing gradient descent to learn Class B. This is why vanilla GA is so prone to trigger shifting.

Loss curves and confusion matrices demonstrating the trigger shifting phenomenon.

As seen in the confusion matrices above, a poisoned model might predict entirely one class for triggered inputs, but after vanilla unlearning, it simply flips to predicting entirely the opposite class.

A Better Metric: Poisoned Accuracy (PACC)

The authors argue that standard metrics (like clean accuracy) hide trigger shifting. They introduce Poisoned Accuracy (PACC), which measures accuracy on a test set where every sample has a trigger but the labels remain correct. If PACC is low, the trigger is still influencing the model, even if the original backdoor behavior is "gone."

Architecture Agnostic

Trigger shifting isn't a fluke of small models. The paper demonstrates that it persists in massive models like Llama2-7B and Qwen3-8B, proving it is a fundamental optimization issue rather than a capacity issue.

Key Results

The researchers evaluated RGA across multiple text classification tasks (SST-2, HSOL, AG-News, Yahoo Answers) against various attack types (BadNets, AddSent, HiddenKiller).

  • Superior Neutralization: RGA consistently achieved the highest PACC scores across all datasets. For example, on Llama-2 (SST-2 with AddSent attack), vanilla GA had a PACC of ~50% (indicating a total shift), while RGA maintained ~90% (matching the "clean" retrained model).
  • Efficiency: RGA is roughly 10x faster than retraining a model from scratch, making it a viable "patching" method for LLMs.
  • Stability: Unlike other methods like NPO (Negative Preference Optimization), which can still cause the loss to diverge over many epochs, RGA remains stable even if the unlearning process is run for an extended period.

Limitations and Future Work

  • Detection Dependency: RGA assumes you have already identified a subset of poisoned samples. If the detection stage fails or is highly inaccurate, the unlearning quality will suffer.
  • Complex Backdoors: While the paper covers word, sentence, and syntactic triggers, it doesn't explore "style-based" or highly distributed backdoors that might be harder to isolate.
  • Future Direction: The authors suggest investigating how the "loss landscape" of a poisoned model differs from a clean one to create even more surgical unlearning techniques.

Summary updated

BibTeX
@inproceedings{zhao2026don,
  author = {Xingyi Zhao and Tian Xie and Xiaojun Qi and Depeng Xu and Shuhan Yuan},
  title = {{Don't Shift the Trigger: Robust Gradient Ascent for Backdoor Unlearning}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=voqtsqYS6j},
}
Figure