Enhancing Semantic Segmentation with Continual Self-Supervised Pre-training

Brown Ebouky, Ajad Chhatkuli, A. Cristiano I. Malossi, Christoph Studer, Roy Assaf, Andrea Bartezzaghi · DOI

Introduction

Vision foundation models, such as DINO or MAE, have demonstrated remarkable performance when trained on massive, generic datasets like ImageNet. However, these "generalist" models often encounter significant hurdles when applied to specialized, low-data domains—such as satellite imagery or medical diagnostics—particularly for dense prediction tasks like semantic segmentation.

Adapting these models typically leads to two major issues: catastrophic forgetting, where the model loses its foundational knowledge, and data starvation, where standard self-supervised learning (SSL) techniques fail due to insufficient target data. To address these challenges, this paper introduces GLARE (Global Local and Regional Enforcement), a continual self-supervised learning framework designed to adapt pre-trained Vision Transformers (ViTs) to new domains while preserving their original capabilities.

The GLARE Framework

GLARE utilizes a lightweight adaptation strategy to prevent the erosion of pre-existing knowledge. Instead of fine-tuning the entire backbone, the authors freeze the original model weights and insert UniAdapter modules after the self-attention layers. These adapters are the only components updated during the continual pre-training phase.

The GLARE architecture featuring UniAdapters and a three-tiered consistency loss (Global, Regional, and Local).

The framework operates by enforcing consistency between different augmented views of an image across three distinct scales:

  1. Global Consistency ($L_{glob}$): Standard image-level matching, ensuring the model maintains a high-level understanding of the scene.
  2. Regional Consistency ($L_{reg}$): A novel approach where the model leverages its own internal attention mechanisms to identify semantically meaningful regions, enforcing consistency across these specific areas.
  3. Local Consistency ($L_{loc}$): A patch-level matching strategy that focuses on fine-grained structural details.

Key Methodological Innovations

GLARE introduces two specific techniques to improve SSL performance in low-data regimes: bootstrapping attention and structural blurring.

Bootstrapping Attention for Regions

Identifying specific objects or regions usually requires external algorithms or manual labels. GLARE bypasses this by using the "teacher" model's existing attention maps to generate region proposals "for free." This allows the model to focus on semantically relevant parts of the image without additional supervision.

Attention maps from different heads highlight various semantic regions, which GLARE uses to enforce regional consistency.

Blurring vs. Masking

Standard SSL often uses Masked Image Modeling (MIM), which hides parts of an image and asks the model to reconstruct them. The authors found that this task is too difficult when data is scarce. Instead, GLARE applies strong random blurring to patches. This retains enough structural information to help the model learn inter-patch relationships more efficiently than complete masking.

Experimental Evaluation

The authors evaluated GLARE across diverse benchmarks, including urban scenes (Cityscapes), satellite imagery (LoveDA), and medical imaging (COVIDx).

  • Performance Gains: On the LoveDA satellite dataset, GLARE improved mean Intersection over Union (mIoU) from 50.9% to 51.5%.
  • Mitigating Forgetting: Unlike standard continual learning methods like Hierarchical Pre-Training (HPT)—which saw mIoU drop to 12.7% on LoveDA due to forgetting—GLARE maintained and even slightly improved performance on the original source domains (e.g., 41.3% vs 41.1% on ADE20k).
  • Cross-Task Utility: Beyond segmentation, GLARE boosted COVIDx detection accuracy from 60.7% to 69.2%, demonstrating its versatility for classification tasks.

Discussion and Limitations

While GLARE proves highly effective, its performance is sensitive to the scale of the target data; extremely small datasets (e.g., a few hundred images) may still lead to performance degradation. Additionally, the multi-level consistency checks introduce a slight computational overhead compared to simpler SSL methods. Despite these factors, GLARE represents a significant step forward in making vision foundation models truly adaptable to specialized, real-world domains.

Summary updated

BibTeX
@article{ebouky2026enhancing,
  author = {Brown Ebouky and Ajad Chhatkuli and A. Cristiano I. Malossi and Christoph Studer and Roy Assaf and Andrea Bartezzaghi},
  title = {{Enhancing Semantic Segmentation with Continual Self-Supervised Pre-training}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2026},
}
Figure