Enhancing Semantic Segmentation with Continual Self-Supervised Pre-training
Brown Ebouky, Ajad Chhatkuli, Cristiano Malossi, Christoph Studer, Roy Assaf, Andrea Bartezzaghi
TL;DR
This work addresses domain adaptation for semantic segmentation under limited unlabeled data by continual self-supervised pre-training. It introduces GLARE, a three-level framework (global, regional, local) built on a student-teacher ViT setup that trains only lightweight UniAdapter modules to mitigate forgetting. GLARE enforces global, region-aware, and patch-level consistency, including attention-guided region sampling and cross-attention region correspondence, with patch-augmentation strategies that include patch blurring. Empirical results across ADE20k, Pascal Context, Cityscapes, and LoveDA show consistent segmentation gains over baselines and alternative continual pre-training methods, and improvements transfer to classification tasks as well. The approach yields strong practical benefits for adapting foundation models to new, data-scarce domains in dense prediction tasks with modest computational overhead.
Abstract
Self-supervised learning (SSL) has emerged as a central paradigm for training foundation models by leveraging large-scale unlabeled datasets, often producing representations with strong generalization capabilities. These models are typically pre-trained on general-purpose datasets such as ImageNet and subsequently adapted to various downstream tasks through finetuning. While prior work has investigated parameter-efficient adaptation methods like adapters, LoRA, and prompt tuning, primarily targeting downstream finetuning, extending the SSL pre-training itself in a continual manner to new domains under limited data remains largely underexplored, especially for downstream dense prediction tasks like semantic segmentation. In this work, we address the challenge of adapting vision foundation models to low-data target domains through continual self-supervised pre-training, specifically targeting downstream semantic segmentation. We propose GLARE (Global Local and Regional Enforcement), a novel continual self-supervised pre-training task designed to enhance downstream semantic segmentation performance. GLARE introduces patch-level augmentations to encourage local consistency and incorporates a regional consistency constraint that leverages spatial semantics in the data. For efficient continual pre-training, we initialize Vision Transformers (ViTs) with weights from existing SSL models and update only lightweight adapter modules specifically UniAdapter - while keeping the rest of the backbone frozen. Experiments across multiple semantic segmentation benchmarks on different domains demonstrate that GLARE consistently improves downstream performance with minimal computational and parameter overhead.
