TL;DR
Instead of using adversarial perturbations purely as a defense mechanism, the new framework AdvCL repurposes them as a geometric control signal to stabilize continual learning in Large Language Models (LLMs). By actively smoothing the local optimization landscape and aligning representations across tasks, AdvCL significantly reduces catastrophic forgetting and boosts model robustness without storing any historical data.
What Problem Does This Paper Address?
When Large Language Models are sequentially trained on a series of new tasks (continual learning), they suffer from catastrophic forgetting—the tendency to overwrite previously learned knowledge. Even when using Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA, models remain unstable. They often suffer from "rebound" (where further fine-tuning pulls behavior back toward the pretraining distribution) and end up in sharp minima that generalize poorly and make the model brittle to noise.
Mainstream continual learning methods try to prevent this by constraining parameter drift or replaying old data. However, they rarely manage the geometric distances between different tasks in the representation space, leaving the model vulnerable to representation drift and adversarial attacks over time.
Methods
The authors introduce AdvCL (Adversarial Continual Learning), a multi-level adversarial perturbation framework designed to control the geometry of the representation space during PEFT.
AdvCL keeps the model backbone and token embeddings frozen to maintain a stable semantic reference frame, and injects controlled perturbations into the embedding space through three plug-in modules:
- Intra-Smooth (Intra-Task Local Smoothing): Uses Projected Gradient Descent (PGD) to find worst-case embedding perturbations within a small budget. Training on these adversarial examples forces the model to find flatter, smoother local minima for the current task, increasing its resistance to drift.
- Proto-Clip (Prototype Similarity Clipping): Maintains a running average (prototype) of the current task's representations. It penalizes the model if current representations become too aligned with this prototype, preventing over-fitting and leaving room for past and future knowledge.
- Inter-Align (Inter-Task Directional Alignment): Uses the previous task's prototype as a semantic anchor. It generates perturbations that actively push the current task's representations toward the previous task's space, shrinking the geometric gap between low-similarity tasks.
Datasets
The framework was evaluated on a 6-task continual learning benchmark constructed from Super Natural Instructions. The sequence spans both classification and generation tasks to ensure substantial heterogeneity:
- Tweet Anger Detection (anger)
- Emotion Classification (emotion)
- News Topic Classification (agnews)
- Adversarial Natural Language Inference (anli)
- Extreme Summarization (xsum)
- Title Generation (xlsum)
Key Insights and Ideas
- Adversarial Perturbations as a Tool, Not Just a Threat: The core "aha moment" is realizing that because adversarial perturbations have controllable directions, they can be used to actively shape the model's optimization landscape—smoothing out sharp valleys and bridging the gaps between disparate tasks.
- Breaking the Robustness-Accuracy Trade-off: In standard offline training, adversarial training usually comes at the cost of clean model accuracy. In continual learning, however, the local stability gained from adversarial smoothing directly translates to better knowledge retention, actually improving standard performance over time.
- The Importance of a Frozen Reference Frame: For representation perturbations to work across tasks, the underlying embedding space must remain fixed. Allowing embeddings to drift shifts the semantic anchors, which destroys the geometric alignment.
Key Results
The authors evaluated AdvCL against standard sequential fine-tuning (Sequence) and other popular CL paradigms like Replay, EWC, and Mixture of Experts (MoE).
Module Ablation (Standard Setting)
When added to a standard sequential baseline, the combination of all three modules (+ S + C + A) achieved the best balance of accuracy and retention:
- Average Performance (AP): Increased from 55.21% (Sequence baseline) to 56.64%.
- Forgetting (FGT): Dropped significantly from 3.42% to 1.50%.
- Backward Transfer (BWT): Improved from -2.11% to a positive 0.38%, showing that learning later tasks actually helped performance on earlier ones.
Robustness Under Attack
AdvCL demonstrated massive gains in cross-attack evaluations (averaged over PGD, FGSM, and random noise attacks):
- The baseline Sequence model's performance collapsed to 37.47% under attack, while the full AdvCL framework maintained an AP of 44.22% and cut adversarial forgetting from 8.78% down to 2.76%.
Cross-Baseline Transferability
The modules proved to be truly plug-and-play. For example, adding the Intra-Smooth module to a Replay baseline boosted its Average Performance from 55.61% to 57.89% and cut forgetting to 1.30%.
Limitations and Future Work
- Computational Overhead: Generating online adversarial perturbations requires extra forward and backward passes. The full three-module combination adds roughly +37.5% training time overhead, though the authors note this remains manageable and requires no extra memory for storing past data.
- Optimization Constraints: Combining Proto-Clip and Inter-Align without the smoothing effect of Intra-Smooth can sometimes overly constrain the optimization path, limiting potential gains.
- Scope of Architecture: The method was primarily validated using LoRA on a 3B parameter model (Llama 3.2 3B Instruct); future work could explore how these geometric properties scale to much larger models or alternative PEFT architectures.
Summary updated