Manuscript Offprint

arXiv:2609.06346

Robust Dynamic Expansion for Continual Learning under Backdoor Attacks via Purification and Selective Recovery

Keyu Lin, Fei Ye, Qihe Liu, Shijie Zhou, Jiguo Yu

Keyu Lin, Fei Ye*, Qihe Liu, Shijie Zhou, and Jiguo Yu, Fellow, IEEE

Abstract—Continual learning (CL) enables models to acquire new knowledge from sequentially arriving tasks while retaining previously learned knowledge. However, in practical scenarios, task streams collected from untrusted sources may contain backdoor-poisoned samples, posing a critical challenge to the stability, plasticity, and security of continual learners. In this work, we investigate a challenging setting termed Continual Learning Under Backdoor Attack (CLUBA), where each incremental task may involve a small proportion of maliciously manipulated training samples. Unlike conventional continual learning or backdoor defense scenarios, CLUBA requires models to simultaneously mitigate catastrophic forgetting, preserve adaptation capability, and prevent the absorption of malicious supervision during sequential updates. To address this challenge, we propose a robust dynamic-expansion framework that integrates sample purification, selective recovery, and robust expert routing into a unified continual learning paradigm. Specifically, we introduce Bi-Prototype Purification (BPP) to identify suspicious samples by exploiting semantic discrepancies in feature space. Based on purified data, Gradient Discrepancy-based Robustness Optimization (GDBRO) selectively recovers informative poisoned samples through pseudo-label correction and gradient consistency evaluation, improving robustness while maintaining model plasticity. Furthermore, Robust Feature Consistency-based Expert Selection (RFCBES) constructs perturbation-aware class prototypes to enable reliable expert routing under corrupted or shifted inputs.

Index Terms—Continual learning, backdoor attacks, robust learning, dynamic expansion, expert selection.

I. INTRODUCTION

CONTINUAL learning (CL) corresponds to a training paradigm in which the model is sequentially exposed to discrete tasks, with access restricted to only a small subset of samples belonging to the current task, while all previous training data become unavailable. Optimization under this paradigm typically induces significant performance degradation on previously learned tasks, a well-documented phenomenon termed catastrophic forgetting [1]. This degradation stems from the tendency of the standard training process to overwrite model parameters wholesale in adapting to new task data. To mitigate these issues, numerous methodologies have been developed, broadly categorized into three families: regularization-based methods [2], which impose constraints on updates to parameters deemed important for prior tasks; memory replay approaches [3], which leverage a fixed-capacity buffer of exemplars to

preserve knowledge through rehearsal; and dynamic network architectures [4], which expand network capacity by instantiating new parameters for learning emerging tasks.

In practical applications, continual learners are often updated with continuously arriving data collected from heterogeneous and potentially unreliable sources [5]. Such data streams may contain maliciously manipulated samples designed to implant hidden behaviors into the model. This motivates a more challenging setting, referred to as Continual Learning Under Backdoor Attack (CLUBA), where each task may contain a small proportion of backdoor-poisoned training samples. Compared with conventional continual learning, CLUBA introduces an additional security constraint: the learner must not only preserve previous knowledge and adapt to new tasks, but also avoid absorbing malicious supervision during incremental updates.

The difficulty of CLUBA arises from the strong coupling among three objectives. First, the model must maintain stability to prevent catastrophic forgetting of previous tasks. Second, it must retain sufficient plasticity to learn new task-specific knowledge from limited current-task data. Third, it must achieve robustness against poisoned supervision, which may otherwise induce incorrect feature representations and trigger-label associations. These objectives are inherently conflicting: aggressive adaptation may amplify malicious patterns, while conservative optimization may suppress useful task information. Therefore, directly applying conventional continual learning or backdoor defense methods often leads to unsatisfactory performance under sequential poisoning scenarios.

To mitigate the threat posed by poisoning examples within CL, an early defense mechanism, termed the Anisotropic and Isotropic Replay (AIR) [5], incorporates a strategic replay buffer. This mechanism combines three distinct replay paradigms with a consistency regularization loss term to counteract catastrophic forgetting and improve model robustness. Another approach examines differential logit calibration between historical and newly encountered tasks to regulate gradient dynamics and introduces a gradient-selection criterion for preserving critical exemplars into the memory buffer [6]. Nevertheless, these methods primarily address adversarial robustness in continual learning; their objectives do not directly provide the task-local identification and selective recovery of backdoor-poisoned samples considered here. Furthermore, these methodologies typically utilize a fixed-capacity replay buffer for storing exemplars extracted from previous tasks. Such a design requires retaining historical training examples and demonstrates

Keyu Lin, Fei Ye, Qihe Liu, Shijie Zhou, and Jiguo Yu are with the University of Electronic Science and Technology of China, Chengdu 610054, China (e-mail: 202522090409@std.uestc.edu.cn; feiyee@uestc.edu.cn; qiheliu@uestc.edu.cn; sjzhou@uestc.edu.cn; jiguoyu17@uestc.edu.cn).

∗^{*} Corresponding author.

constrained effectiveness in managing extended sequences of tasks [7].

In this paper, we propose a robust dynamic-expansion framework for CLUBA based on a principle: corrupted samples should not be treated as uniformly unusable; instead, they should be identified, filtered, and selectively recovered whenever their supervision can be corrected reliably. Building on this principle, our framework combines three components that address the three central challenges of CLUBA in a coordinated way. (1) Bi-Prototype Purification (BPP) separates each class into candidate clean and candidate poisoned subsets in semantic feature space, exploiting the observation that poisoned samples tend to deviate from the dominant semantic structure of their class. (2) Gradient Discrepancy-based Robustness Optimization (GDBRO) first warms up the current expert on purified clean data to recover plasticity, and then selectively reincorporates reliable candidate poisoned samples through pseudo-label correction and gradient-based filtering to improve robustness without amplifying label noise. (3) Robust Feature Consistency-based Expert Selection (RFCBES) constructs perturbation-aware class prototypes for inference-time routing, making expert selection more reliable under corrupted or shifted inputs.

Our method differs from prior continual learning approaches in two key aspects. First, rather than viewing robustness as an auxiliary add-on to anti-forgetting mechanisms, we treat robustness and continual adaptation as a joint optimization problem. Second, instead of relying on replay buffers to compensate for corrupted updates, we leverage task-local purification and selective recovery to improve both robustness and plasticity while preserving the benefits of dynamic expansion. We evaluate the proposed framework on multiple continual backdoor benchmarks under both clean and poisoned settings. The results show that our method consistently outperforms strong baselines, achieving better robustness on current tasks while maintaining competitive retention on previous ones. The contributions of this paper are summarized as :

(1) We study CLUBA, a continual learning setting in which each task may contain a small fraction of poisoned training samples, and highlight the joint challenge of forgetting, weak robustness, and reduced plasticity;

(1) We propose a unified robust dynamic-expansion framework that couples purification, selective poisoned-sample recovery, and robust expert routing, rather than treating these goals independently;

(1) We demonstrate through extensive experiments that the proposed framework improves both adaptation and retention under task-wise backdoor attacks, outperforming strong continual learning baselines across multiple benchmarks.

References (57)