Introduction
Continual Semantic Segmentation (CSS) aims to enable deep learning models to learn new object classes incrementally without forgetting previously acquired knowledge. However, standard training procedures often lead to catastrophic forgetting, where the model's performance on old classes degrades sharply as it adapts to new ones. Existing approaches typically rely on storing a subset of old data (exemplars) or using generative models like GANs to replay old samples. These methods face challenges regarding privacy, storage efficiency, and the quality of generated data.
The TIKP Framework
To address these challenges, we propose Text-to-Image Knowledge Preservation (TIKP). This framework leverages the generative power of modern Text-to-Image (T2I) models to preserve knowledge through lightweight text prompts rather than raw image data.
1. Text-to-Image Prompt Maintenance
Instead of maintaining an image buffer, TIKP stores descriptive text prompts (e.g., "photograph of a bus with a car"). During incremental learning steps, a pre-trained T2I model (such as Stable Diffusion) uses these prompts to generate "heuristic images" representing old classes. This approach acts as a highly compressed memory, significantly reducing storage requirements while providing high-quality visual signals.
2. Content Adaptation Loss ($L_{CTA}$)
Synthetic images generated by T2I models may exhibit a distribution shift compared to real-world data. To mitigate this, TIKP introduces a Content Adaptation Loss ($L_{CTA}$). This mechanism calculates the similarity between the features of generated heuristic images and the prototypes (mean feature representations) of the original classes.
- High Similarity: If the generated image closely matches the original distribution, the model employs pseudo-labeling, treating its own predictions as ground truth.
- Low Similarity: If the similarity is low, the model relies on knowledge distillation to match the probability distributions of the previous model iteration ($M^{t-1}$), treating the synthetic data as a "hint" rather than a definitive example.
3. Knowledge Distillation based on Wrong Labels ($L_{wl-kd}$)
CSS often suffers from a bias where new classes are mistakenly classified as old ones due to the "background shift" problem. TIKP addresses this by using a specialized distillation loss, $L_{wl-kd}$, which assigns higher weights to classes that are frequently confused. This targeted protection ensures that the most vulnerable old classes are not overwritten during the learning of new tasks.
Experimental Evaluation
The TIKP framework was evaluated on three major benchmarks: Pascal VOC 2012, ADE20k (150 categories), and Cityscapes (urban street scenes). These datasets test the model's ability to handle both large-scale category increases and domain-style incremental learning.
Key Results
TIKP achieves state-of-the-art (SOTA) performance across all benchmarks, demonstrating particular strength in long-term incremental scenarios.
In the Pascal VOC 15-1s setting (6 tasks), TIKP achieved an mIoU of 66.28%, a significant improvement over the previous SOTA (RICL at 59.40%). Similar gains were observed in the ADE20k 100-10s setting, where TIKP maintained an mIoU of 33.79%, and in Cityscapes, reaching 50.88% in the 1-1s setting.
Discussion and Limitations
While TIKP effectively mitigates forgetting, some challenges remain. The "style" of heuristic images (e.g., lighting and composition) can differ from the original dataset, although the $L_{CTA}$ mechanism helps manage this discrepancy. Additionally, the computational cost of generating images via diffusion models during training is higher than simply loading stored images. Future work may focus on optimizing the prompt generation process to further bridge the synthetic-to-real gap.
Conclusion
TIKP presents a powerful paradigm for continual semantic segmentation by reimagining knowledge preservation as a text-to-image generation task. By combining efficient prompt storage with dynamic content adaptation and targeted distillation, TIKP sets a new standard for preventing catastrophic forgetting in complex vision tasks.
Summary updated