Abstract
Continual Semantic Segmentation (CSS) models are designed to learn new object classes sequentially without forgetting previously acquired knowledge. However, this paper identifies a critical security vulnerability in current CSS frameworks. We introduce CS-Attack (Class Shift Attack), a method-agnostic data poisoning strategy that subtly perturbs incremental training samples. By exploiting the background bias inherent in CSS, CS-Attack tricks models into rapidly forgetting old knowledge and failing to learn new classes. Our evaluation across standard benchmarks demonstrates that current CSS frameworks are highly susceptible to such adversarial perturbations, leading to catastrophic performance failure.
Introduction
Semantic segmentation is a core computer vision task involving pixel-level classification. Continual Semantic Segmentation (CSS) extends this capability by allowing models to learn new labels in stages, aiming to overcome "catastrophic forgetting"—the tendency of neural networks to erase old knowledge when updated with new data. While research has focused on improving the efficiency of knowledge retention, the security of the incremental learning process has been largely overlooked.
This paper explores a realistic threat scenario: what if the incremental data used to update a model is sourced from an untrusted third party? We demonstrate that an attacker can introduce nearly invisible perturbations to these new training images to crash the model's performance on both historical and new tasks.
Methodology: The CS-Attack Framework
The proposed CS-Attack is a novel, offline attack strategy that is "method-agnostic." Unlike "online" attacks that require real-time access to training loss, CS-Attack only requires access to the model from the previous step ($M_{t-1}$) and the new raw data ($D_t$).
The core of the approach is a generative model ($G_t$) that creates imperceptible perturbations ($r$) for the new images. The attack is guided by three specific loss functions:
- Constraint Loss ($L_r$): Ensures that the perturbations are small enough to remain unnoticed by human observers.
- Class Shift Loss ($L_{cs}$): This is the primary "poisoning" mechanism. It forces the model to predict the "background" class for regions that the previous model ($M_{t-1}$) correctly identified as old classes. This effectively instructs the model that its prior knowledge is now irrelevant noise.
- Disorder Loss ($L_d$): This disrupts the learning of new classes by forcing the model's predictions to deviate wildly from the ground truth labels.
By training $G_t$ on these losses, the attacker generates a "poisoned" dataset. When a CSS model is subsequently trained on this data, it essentially learns to forget.
Experimental Setup
The researchers validated CS-Attack on three industry-standard benchmarks for semantic segmentation:
- Pascal VOC 2012: A classic dataset featuring 20 object classes.
- ADE20k: A complex dataset with 150 diverse object categories.
- Cityscapes: Focused on urban street scenes with 19 classes.
The attack was tested under various "incremental settings," such as adding one class at a time (e.g., 19-1) or adding large batches of classes (e.g., 100-50), to evaluate performance across different learning schedules.
Key Insights and Results
A critical insight of this work is the exploitation of background bias. CSS models rely heavily on the "background" class to manage the transition between old and new labels. CS-Attack weaponizes this reliance by tricking the model into reclassifying important features as mere background.
The attack is particularly devastating because CSS is a sequential process. If a model is corrupted at step $t$, it becomes a flawed "teacher" for step $t+1$, leading to a downward spiral of performance that is difficult to recover from. Results across all methods and datasets were dramatic:
- Pascal VOC: In the "15-5" task, the state-of-the-art PLOP method saw its mean Intersection over Union (mIoU) drop from 68.12% to 53.74%.
- ADE20k: In the "100-50" setting, the MiB method's performance was slashed from 33.57% to 16.35%.
- Cityscapes: The attack was most potent here; for the "1-1s" setting, PLOP's performance plummeted from 45.14% to 17.59%.
Qualitative visualizations showed that after the attack, models began labeling almost all pixels—including those of clear, distinct objects—as "background."
Conclusion and Future Work
CS-Attack exposes a significant security blind spot in current Continual Semantic Segmentation research. While the attack currently assumes a "white-box" scenario with access to the previous model, it serves as a critical call to action for the community to develop more robust, security-aware CSS methods. Future work should focus on creating frameworks that can detect poisoned samples or utilize robust distillation techniques to ignore adversarial perturbations during incremental updates.
Summary updated