AWF: Adaptive Weight Fusion for Enhanced Class Incremental Semantic Segmentation

Zechao Sun, Haolin Jin, Weitong Chen, Luping Zhou · OpenReview

Abstract

Class Incremental Semantic Segmentation (CISS) aims to mitigate catastrophic forgetting by maintaining a balance between previously learned and newly introduced knowledge. Existing methods, primarily based on regularization techniques like knowledge distillation, help preserve old knowledge but often face challenges in effectively integrating new knowledge, resulting in limited overall improvement. Endpoints Weight Fusion (EWF) method, while simple, effectively addresses some of these limitations by dynamically fusing the model weights from previous steps with those from the current step, using a fusion parameter alpha determined by the relative number of previously known classes and newly introduced classes. However, the simplicity of the alpha calculation may limit its ability to fully capture the complexities of different task scenarios, potentially leading to suboptimal fusion outcomes. In this paper, we propose an enhanced approach called Adaptive Weight Fusion (AWF), which introduces an alternating training strategy for the fusion parameter, allowing for more flexible and adaptive weight integration. AWF achieves superior performance by better balancing the retention of old knowledge with the learning of new classes, significantly improving results on benchmark CISS tasks compared to the original EWF.

Introduction

In Class Incremental Semantic Segmentation (CISS), models must learn new object categories sequentially without access to the original training data for previous categories. This setting presents two primary challenges: Catastrophic Forgetting, where updating weights for new classes overwrites features for old ones, and Background Shift, where pixels of old classes in new data are labeled as background, leading the model to actively "unlearn" them.

While previous methods like Endpoints Weight Fusion (EWF) attempted to address this by merging weights using a fixed ratio ($\alpha$) based on class counts, this heuristic is often too rigid. AWF addresses this by treating the fusion parameter as a learnable component, enabling a more nuanced balance between stability and plasticity.

Methodology

The core innovation of AWF is the Trainable Alpha. Instead of a static formula, the fused model weights are defined as: $$\theta_{fused} = \alpha \cdot \theta_{t} + (1 - \alpha) \cdot \theta_{t-1}$$ where $\theta_t$ represents weights learned on the current task and $\theta_{t-1}$ represents weights from the previous step.

Alternating Training Strategy

To optimize this fusion, AWF employs a two-phase training cycle:

  1. Model Training Phase: The model learns new classes using Cross-Entropy loss and Knowledge Distillation to maintain feature stability.
  2. Alpha Training Phase: With model weights frozen, the fusion parameter $\alpha$ is optimized using a combined loss function to find the optimal balance for both old and new class performance.
The AWF training pipeline compared to the EWF baseline, highlighting the iterative optimization of the alpha parameter.

To ensure efficient convergence, $\alpha$ is initialized using the original EWF formula before being refined through gradient descent.

Experimental Results

AWF was evaluated on the PASCAL VOC 2012 and ADE20K benchmarks across various incremental scenarios (e.g., 15-1, 5-3, 100-5).

Quantitative Performance

On the PASCAL VOC 5-3 task, AWF improved the mean Intersection over Union (mIoU) by 3.1% over the EWF baseline. On the more complex ADE20K 100-5 benchmark, it achieved a 7.9% improvement over the MiB baseline and 5.1% over PLOP. These results demonstrate that manipulating the parameter space directly is a robust alternative to standard output-space distillation.

Qualitative Analysis

Visualizations confirm that AWF-trained models retain sharper segmentation boundaries for old categories as new ones are introduced. While baseline models often "blur" or lose the structure of previous classes (like horses or birds), AWF maintains high fidelity.

Qualitative comparison showing how AWF maintains segmentation accuracy for old classes (e.g., eagle, horse) across multiple incremental steps compared to MiB and EWF.

Conclusion

AWF demonstrates that an adaptive, learnable approach to weight fusion significantly enhances the performance of incremental segmentation models. By moving beyond heuristic-based merging, AWF provides the flexibility needed to handle diverse task sequences. Future work will investigate applying this adaptive fusion to other domains like object detection and exploring non-linear interpolation strategies.

Summary updated

Abstract

Class Incremental Semantic Segmentation (CISS) aims to mitigate catastrophic forgetting by maintaining a balance between previously learned and newly introduced knowledge. Existing methods, primarily based on regularization techniques like knowledge distillation, help preserve old knowledge but often face challenges in effectively integrating new knowledge, resulting in limited overall improvement. Endpoints Weight Fusion (EWF) method, while simple, effectively addresses some of these limitations by dynamically fusing the model weights from previous steps with those from the current step, using a fusion parameter alpha determined by the relative number of previously known classes and newly introduced classes. However, the simplicity of the alpha calculation may limit its ability to fully capture the complexities of different task scenarios, potentially leading to suboptimal fusion outcomes. In this paper, we propose an enhanced approach called Adaptive Weight Fusion (AWF), which introduces an alternating training strategy for the fusion parameter, allowing for more flexible and adaptive weight integration. AWF achieves superior performance by better balancing the retention of old knowledge with the learning of new classes, significantly improving results on benchmark CISS tasks compared to the original EWF. And our experiment code will be released on Github.
BibTeX
@misc{sun2024awf,
  author = {Zechao Sun and Haolin Jin and Weitong Chen and Luping Zhou},
  title = {{AWF: Adaptive Weight Fusion for Enhanced Class Incremental Semantic Segmentation}},
  year = {2024},
  eprint = {2409.08516},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.08516},
}
Figure