Robust Dynamic Expansion for Continual Learning under Backdoor Attacks: Purification and Selective RecoveryRobust Dynamic Expansion for Continual Learning under Backdoor Attacks via Purification and Selective Recovery
The authors use purification, selective recovery, and expert routing for continual learning backdoor defense, reporting low ASR, but adaptive attacks remain to be evaluated.
Continual Learning Under Backdoor Attack (CLUBA): the attacker poisons a small fraction of training samples in each task, implanting a trigger associated with a target label; the defender only accesses the current task data and knows the allowed set of classes. The attacker's access depends on the attack configuration, and the paper does not classify it with box-access terminology.
- When continual learning models receive task data that may carry backdoors, they must preserve old knowledge, learn new tasks, and avoid absorbing malicious supervision. The authors focus on the CLUBA setting, which does not retain historical training images.
- Freeze a shared ViT, add an expert for each task; first cluster by class to filter suspicious samples, then selectively recover using consistency between pseudo-labels and classifier row gradients, and finally route test inputs using updated class prototypes.
- Defenses are compared across three image benchmarks and three backdoor attacks. In Table II, under the CIFAR-100 BadNets setting, OURS achieves CA of 90.94% and ASR of 0.07%; the main comparison uses a single seed.
- The authors note that adaptive attacks, semantically close stealthy triggers, and fixed recovery thresholds remain future directions. The experiments focus on controlled supervised image classification tasks; the full method's training budget includes additional warm-up.
- Evaluated models
- ViT-B/16
- Benchmarks
- Split CIFAR-10Split CIFAR-100Split Tiny-ImageNet
- Metrics
- Average Clean Accuracy (CA)Average Attack Success Rate (ASR)
For continual learning scenarios (CLUBA) where a small number of backdoor-poisoned samples are mixed into incremental tasks, the researchers propose a dynamically expanding framework that combines sample purification, selective recovery, and robust expert routing. Among them, Bi-Prototype Purification (BPP) uses semantic differences in feature space to identify suspicious samples, Gradient Discrepancy-based Robustness Optimization (GDBRO) selectively recovers informative poisoned samples through pseudo-label correction and gradient consistency evaluation, and Robust Feature Consistency-based Expert Selection (RFCBES) builds perturbation-aware class prototypes to support expert routing under compromised inputs. This work aims to simultaneously mitigate catastrophic forgetting, maintain adaptability, and prevent the model from absorbing malicious supervision.
Paper analysis
What problem does this paper attempt to solve?
The authors focus on how continual learning can simultaneously retain old knowledge, adapt to new tasks, and resist per-task backdoor poisoning.
The core question is: how can a continual learning model balance knowledge retention, new-task adaptation, and safety under per-task backdoor poisoning?
- Application scenario: Task data arrives sequentially and may come from untrusted sources; historical training data is inaccessible when learning the current task. The authors call this setting Continual Learning Under Backdoor Attack (CLUBA).
- Goal conflict: The authors argue that aggressive updates may absorb malicious patterns, while conservative updates may suppress useful new-task information; only preventing forgetting or only doing static backdoor defense cannot directly handle this combined set of goals.
- Risks of existing strategies: The authors note that parameter constraints may retain learned backdoors, poisoned replay memory may repeatedly reinforce backdoors, and frozen experts may also let backdoors within them persist.
- Threat model: The attacker poisons a small fraction of training samples in each task so that test inputs with the trigger are classified into a specified target class. Poisoning can involve inputs, labels, or both; the defender knows the classes allowed for the current task and only accesses current data. The attacker's capabilities depend on the configuration, and the paper does not give classifications such as black-box.
- Core assumption and approach: The authors argue that suspicious samples should not all be discarded, and some of their supervision can be corrected. The framework combines BPP purification, GDBRO selective recovery, and RFCBES expert routing, without retaining historical training images.
What related research exists?
The authors position the work as a continual backdoor defense that connects within-task purification, sample recovery, and dynamic expert isolation.
Related work centers on continual learning, backdoor defense, dynamic networks, and their security behavior.
Continual Learning and Adversarial Robustness
- EWC, SI, MAS, LwF: constrain important parameters or preserve historical predictions; replay methods reuse historical samples, and GEM, A-GEM adjust new-task gradients to reduce interference.
- L2P, DualPrompt, CODA-Prompt, HiP: reduce the parameters needing updates per task through prompt mechanisms; the paper also discusses parameter-efficient adaptation, multi-pretrained-backbone representations, and data-free knowledge distillation.
- AIR and AFLC: AIR combines replay with consistency regularization; AFLC adjusts logits and gradients and selects memory samples. The authors note that these mainly handle adversarial robustness and do not directly identify and selectively recover the backdoor-poisoned samples this paper focuses on.
Backdoor Attacks and Static Defenses
- BadNets, Blend, WaNet, etc.: implant behavior through hidden triggers; LTB targets backdoor persistence in continual learning, and CBACL handles label changes in continual learning through feature strategies.
- Activation Clustering and ABL: the former filters training data in feature space, and the latter changes the training objective to suppress trigger memorization; Neural Cleanse and Fine-Pruning inspect or repair trained models.
- Difference in continual application: the authors note that when applying these strategies task by task, one must consider the data availability of the current task and the preservation of prior benign knowledge.
Dynamic Networks and Security-Related Continual Learning
- DEM, DyTox, mixture-of-experts adapters: preserve existing components and add capacity for new tasks; the Adaptive and Expandable Mixture Model combines stable, evolving representations with lightweight experts.
- Dynamic Siamese Expansion Framework: combines static and dynamic backbones and optimizes representations to resist adversarial perturbations. The authors note that existing robust dynamic expansion work mainly addresses adversarial perturbations, not task-by-task backdoor poisoning.
- Cross-domain face anti-spoofing: replay-free adapters and attention consistency are used to reduce forgetting and improve generalization to unknown spoof domains; the authors distinguish its inference-time attack recognition problem from training-data backdoor poisoning.
Experimental Comparisons and Positioning of This Paper
- Baseline methods: DER, DER++, ER-ACE, GEM, A-GEM, AFLC, AIR, FT, SAM-FT, AIBD, RGAN, all compared on Split CIFAR-10, Split CIFAR-100, and Split Tiny-ImageNet.
The authors position the difference as: not relying on historical image replay, but connecting purification and robust training within each task while retaining the expert isolation mechanism of dynamic expansion.
How does the paper address this problem?
The framework first purifies the current task data, then selectively recovers samples, and finally selects a frozen expert using class prototypes.
BPP–GDBRO–RFCBES puts training data filtering, supervised correction, and inference routing into the same dynamically expanding framework; historical images do not participate in subsequent task training.
Frozen shared representation and dynamic experts
- Shared backbone: The ImageNet-1K pretrained ViT-B/16 is always frozen. Each task adds a fully connected feature transformation layer and a linear classification head; after the task ends, that expert is frozen.
- Two representations: BPP and routing use the normalized shared feature u(x); classification and sample gradient computation use the concatenation of the shared feature and the expert-transformed feature, hi(x). This distinction also affects the subsequent distance comparisons.
BPP: class-wise purification
- Within-class clustering: Group by observed labels; samples whose labels exceed the classes allowed for the current task go directly into the suspicious set. The remaining classes are clustered with two-center K-Means on the normalized shared features.
- Grouping rule: The authors argue that a shared trigger may form a compact subcluster, so they generally keep the more dispersed cluster and mark the more compact cluster as suspicious. These are candidate partitions, not true clean or poisoned labels.
- Fallback conditions: When the smaller cluster accounts for more than 0.35 and the number of classes does not exceed 1.5 times the median of valid classes, the whole class is kept; the whole class is also kept when there are fewer than ten samples, degenerate clustering, or anomalies. K-Means uses ten initializations with random state 42; when dispersion is equal, cluster 1 is kept.
GDBRO: warm-up and selective recovery
- Warm-up and caching: First train the current expert on the candidate clean set; compute class shared-feature prototypes and cache the target-class classifier weight row gradient corresponding to that prototype.
- Pseudo-label source: For suspicious samples, compare the maximum class confidence across all learned experts and select the expert with the highest confidence to generate the pseudo-label; samples without a corresponding class reference gradient are skipped.
- Recovery criterion: The core definition is Fdisc=1−Fcos(∇,∇′), i.e., the cosine distance between the sample's and the class reference's target row gradients. Only samples with distance less than λ are recovered, and their supervision is replaced with the pseudo-label.
- Joint training: Concatenate the candidate clean set and the recovered set to train the current expert, without a separate loss weight for recovered samples. The default includes five warm-up epochs and one joint epoch; the final routing prototypes are recomputed, and the gradient cache retains the post-warm-up state.
RFCBES: prototype-distance routing
- Prototype update: Compute the normalized shared-feature mean using candidate clean samples and recovered samples grouped by corrected labels; save the class prototype for each expert.
- Inference selection: Compute the L2 distance from the test feature to all class prototypes and select the prediction of the expert to which the nearest prototype belongs. In the Class-IL setting of Table V, task identity is not provided at inference.
Theoretical conditions and numerical boundaries
- Conditional analysis: Section IV gives guarantees for BPP, the recovery threshold, and routing stability under assumptions such as semantic concentration, separation of clean and poisoned centers, and gradient concentration; they are not unconditional guarantees.
- Representation and numerical notes: Section III-E requires distinguishing shared-feature distances from gradient distances on the classifier input and comparing cosine distances on the same input. The authors note that numerical differences under probability saturation or small gradients cannot serve as evidence of an independent gradient separation mechanism, and the angle criterion itself does not guarantee a lower noise rate for every selected subset.
What experiments did the paper conduct?
The main comparison uses a single seed; under three attacks the full framework has low ASR, but the recovery and routing ablations involve a CA trade-off.
The experiments cover three image benchmarks, three backdoor attacks, and eleven baselines, with the main comparison and three subcomponent ablations reported separately.
Experimental setup
- Architecture under test: All methods use a pretrained ViT-B/16 shared backbone; the proposed method freezes the backbone and adds an expert per task. The paper does not report comparisons on other backbones.
- Data and tasks: Split CIFAR-10 has 10 classes, 5 tasks, 2 classes per task; Split CIFAR-100 has 100 classes, 10 tasks; Split Tiny-ImageNet has 200 classes, 20 tasks, with the latter two having 10 classes per task (Table III). Inputs are uniformly 224 × 224 (Table I).
- Attack conditions: BadNets, LTB, and CBACL are all configured with label flipping; the main experiments use a 5% per-task poisoning rate. The distribution diagnostic in Figure 5 separately uses 10%.
- Baselines and budget: DER, DER++, ER-ACE, GEM, A-GEM, AFLC, AIR, FT, SAM-FT, AIBD, RGAN; replay capacity is 500. SGD learning rate 0.001, batch size 32, requested epoch parameter 1; the full method additionally does five warm-up epochs and then one joint epoch.
- Metrics and judgment: After the sequence ends, CA averages clean test accuracy across tasks; ASR averages the proportion of test samples with triggers misclassified into the attack target class across tasks. Judgment is based on test labels and predictions, without an LLM judge.
- Replication and sample sizes: Each entry in Table II is single-seed; Table IV is mean ± std over seeds 42, 256, 512. The paper does not report the number of test samples per task, and other diagnostics do not uniformly state replication counts.
Main results
According to Table II, the following table is all OURS, ViT-B/16, 5% per-task poisoning rate, single seed; the attack columns list CA / ASR in order, in %.
Swipe horizontally to read the table
Dataset No-poisoning CA BadNets CA / ASR LTB CA / ASR CBACL CA / ASR CIFAR-10 99.30 99.10 / 0.37 99.02 / 0.31 99.17 / 0.51 CIFAR-100 93.20 90.94 / 0.07 92.15 / 0.12 91.50 / 0.45 Tiny-ImageNet 93.45 91.19 / 0.15 92.05 / 1.20 91.80 / 0.50 - Authors' interpretation: The authors state that within-task purification and selective recovery balance adaptation and backdoor defense; freezing experts prevents later updates from changing old expert parameters, but overall prediction when task identity is unknown still relies on prototype routing.
- Baseline counterexample: The results cannot be written as ASR being lowest under all conditions. Under CIFAR-10 LTB, DER is 9.17%; but under Tiny-ImageNet CBACL, ER-ACE is already 1.12%, not all baselines show high ASR (Table II).
- Evidence conditions: The main table has no cross-seed error or statistical significance tests; its training budget also differs from baselines that only use the requested epoch parameter.
Three subcomponent ablations
- Dynamic experts: Under CIFAR-100, BadNets, removing dynamic experts gives CA 34.98 ± 2.37%, ASR 0.10 ± 0.03%; keeping experts but removing the defense pipeline gives CA 89.87 ± 0.46%, ASR 27.54 ± 2.15% (Table IV).
- Label-correction exception: Under the same setting, the full model gives CA 91.16 ± 0.33%, ASR 0.08 ± 0.10%; turning off label correction gives CA 91.36 ± 0.58%, ASR 0.14 ± 0.09%. The full model is not the variant with the highest CA (Table IV).
- Authors' interpretation: The authors relate expert isolation and the defense pipeline to knowledge retention and backdoor suppression, respectively, and state that the full model provides a trade-off between the two.
Stage-wise component addition
- Training stage: CIFAR-100, BadNets, Class-IL, five warm-up epochs, λ=0.5. BPP Only gives CA 55.68%, ASR 3.22%; adding warm-up gives 61.78%, 1.19%; adding Relabel gives 90.67%, 1.47% (Table V).
- Routing stage: Adding RFCBES gives CA 90.21%, ASR 0.07%; the authors state that the training components mainly improve CA, and prototype routing reduces the remaining ASR. Here, CA after adding routing is lower than the previous stage (Table V).
- Results reported separately: The authors explicitly state that Table V and the three-subcomponent macro ablation in Table IV are reported separately, and the absolute numbers are not combined; they also cannot replace the main comparison in Table II.
Distribution diagnostics and resource overhead
- Distance diagnostic: In Figure 2(b), the horizontal axis is Feature Cosine Distance and the vertical axis is Gradient Cosine Distance, with a threshold of 0.4 marked. The authors state that feature scores overlap and gradient scores show separation; the positions and degree of separation cannot be verified from plain text.
- Five-task distribution: Figure 5 is CIFAR-10, BadNets, 10% poisoning rate, five warm-up epochs, λ=0.4; the legend distinguishes clean, correctly pseudo-labeled poisoned, and incorrectly pseudo-labeled poisoned samples. The authors state that the last class shifts right, and explicitly note this is an empirical diagnostic that does not guarantee all accepted labels are correct; the curves cannot be verified from plain text.
- Overhead scope: Section V-J compares DER++, AIBD, and the proposed method on Split CIFAR-100, RTX 3090, batch size 32. Figure 4 lists parameters, peak GPU memory, per-task time, and GFLOPs, but has no directly retrievable curve endpoints. The authors report about 0.5M parameters per task and include the gradient cache and routing prototypes in persistent state.
Other ablations and analyses
- Threshold λ: Seq-CIFAR10, BadNets, 5% poisoning rate, five warm-up epochs; the text reports ASR 0.31% at λ=0.5 and 2.70% at λ=0.7 (Figure 3, Section V-K).
- Warm-up epochs: Same benchmark and attack, λ=0.5; the text reports ASR 0.45% at one epoch and 0.67% at fifteen epochs. The authors suggest the latter may relate to overfitting on the clean subset (Section V-K).
- Forgetting diagnostic: Figure 2(a) marks Tasks Completed and Average Forgetting (%). The authors state that DER++ exceeds 40% on the last task and OURS is near zero; plain text has no curve endpoints, so this description cannot be independently verified.
- Parameter annotations: Figure 2(c) marks DER++ 86.2M, AIR 172.5M, Ours 91.1M; the caption does not specify the dataset and attack for that panel, so the condition cannot be confirmed solely because the ASR annotation matches the main table.
What are some points that can be further explored?
The authors list adaptive attacks, weak semantic separation, fixed thresholds, and real continual learning scenarios as future directions.
The future directions explicitly noted by the authors focus on attack adaptability, distribution assumptions, and scenario expansion.
Limitations and future directions noted by the authors
- Adaptive attacks: The current study does not exhaust attack strategies, especially attackers that actively manipulate the feature distribution to bypass purification or gradient detection; the authors plan broader attack evaluation (Section VI).
- Semantic separation assumption: BPP relies on poisoned samples having sufficient semantic deviation from clean samples; stealthy triggers that maintain semantic alignment may reduce purification effectiveness. The authors propose studying purification strategies with weaker distributional assumptions (Section VI).
- Fixed recovery threshold: When the task distribution or attack strength changes, the fixed threshold may need adjustment; the authors propose adaptive threshold estimation or meta-learning calibration (Section VI).
- Scenario expansion: The experiments are mainly supervised image classification in controlled task sequences; the authors propose extending to real large-scale systems, multimodal, streaming applications, and open-world scenarios with unknown task boundaries (Section VI).
Experimental coverage
- Architecture and attacks: All methods share ViT-B/16; the main evaluation includes three image benchmarks and BadNets, LTB, CBACL, with a per-task poisoning rate of 5% (Section V, Table II).
- Replication protocol: The main comparison is single-seed, the macro ablation is mean ± std over three seeds; the stage-wise ablation is reported separately. The paper does not report statistical significance tests (Tables II, IV, V).
- Training and storage: The full method includes five warm-up epochs plus one joint epoch; experts, prototypes, and gradient caches are saved, and the replay baseline saves 500 samples (Section V-D).
- Diagnostic settings: Figure 5 uses a 10% poisoning rate; the warm-up scan in Figure 3 fixes λ=0.5, and the authors explicitly state that this one-dimensional scan does not measure interactions with other thresholds (Sections V-K, V-L).
- Scope of numerical interpretation: The authors require distinguishing the shared-feature and classifier-input spaces, noting that the angle criterion itself does not guarantee a lower noise rate for every recovered subset; small gradients and probability saturation need separate diagnosis (Section III-E).
Summarize the main content of the paper
The authors report that in-task purification and recovery can defend backdoors when combined with dynamic experts, but the guarantee depends on separation conditions.
This is a backdoor defense study for continual image classification: the model only uses current task data, while needing to preserve past knowledge and avoid learning malicious supervision.
- Method combination: freeze a pretrained ViT, add and freeze an expert for each task; BPP filters suspicious samples within classes, GDBRO recovers some of them based on consistency between pseudo-labels and classifier row gradients, RFCBES uses updated class prototypes to select the prediction expert.
- Main comparison: with ViT-B/16, per-task poisoning rate 5%, single seed, the BadNets setting on CIFAR-100 achieves CA 90.94%, ASR 0.07%; the LTB setting on Tiny-ImageNet achieves CA 92.05%, ASR 1.20% (Table II).
- Component evidence: in the three-way ablation on CIFAR-100, BadNets, the full model gives CA 91.16 ± 0.33%, ASR 0.08 ± 0.10%; disabling label correction gives CA 91.36 ± 0.58%, so recovery does not simultaneously improve both metrics in that ablation (Table IV).
- Routing trade-off: in a separate per-stage experiment on the same dataset and attack, adding RFCBES changes CA from 90.67% to 90.21% and ASR from 1.47% to 0.07%; the authors state that routing mainly reduces the remaining backdoor success rate in this experiment (Table V).
- Conclusion boundary: the authors argue that intra-task purification and selective recovery help coordinate adaptation and safety; the theoretical analysis relies on semantic, gradient, and prototype separation conditions. The authors list adaptive attacks, weaker purification assumptions, threshold adaptation, and real continual learning systems as future directions.