Dynamic Dictionary Learning for Remote Sensing Image Segmentation

Xuechao Zou, Yue Li, Shun Zhang, Kai Li, Shiying Wang, Pin Tao, Junliang Xing, Congyan Lang

TL;DR

This paper introduces a novel "Dynamic Dictionary Learning" framework for remote sensing image segmentation. It addresses the challenge of distinguishing visually similar categories by explicitly modeling class embeddings and dynamically adapting them to input-specific features, leading to improved accuracy, especially in fine-grained segmentation tasks.

What Problem Does This Paper Address?

Remote sensing image segmentation is crucial for applications like environmental monitoring and disaster assessment. However, it faces persistent challenges: distinguishing morphologically similar categories (e.g., thin vs. thick clouds) and handling intra-class heterogeneity (e.g., varying cloud textures) and inter-class homogeneity (e.g., farmland vs. grassland). Existing methods often rely on implicit representation learning, which struggles to dynamically adjust semantic embeddings based on contextual cues, leading to suboptimal performance in fine-grained scenarios. This paper aims to bridge this gap by explicitly modeling class-aware semantic embeddings and making them adaptable to input variations.

Methods

The core of the proposed method is a dynamic dictionary learning framework. This framework features a dual-branch architecture during training:

  • Static Branch: Uses a fixed, pre-defined dictionary to generate segmentation maps. This branch employs standard cross-entropy and Dice loss for per-pixel classification and handling class imbalance.
  • Dynamic Branch: This is the novel component. It utilizes a dynamic dictionary that is continuously updated during training. Key elements include:
  • Modulator: Generates an attention map from high-level semantic features extracted by the encoder. This map is used to modulate the static dictionary, making it input-specific.
  • Aggregator: Processes features from the encoder, performing channel transformations and upsampling to align them.
  • Multi-stage Alternating Cross-Attention Query Decoder: This decoder iteratively refines both the image features and the dynamic dictionary. Through alternating cross-attention queries, it allows for mutual optimization, leading to more accurate and robust segmentation.
  • Contrastive Loss: Applied to the dynamic dictionary to ensure that class embeddings are compact within a class (intra-class compactness) and well-separated from other classes (inter-class separability).

During inference, only the dynamic branch is used, leveraging the learned dynamic dictionary for segmentation.

Datasets

The paper evaluates its method on six remote sensing datasets:

  • Coarse-grained: LoveDA, UAVid, Potsdam, Vaihingen
  • Fine-grained: Grass, Cloud

The LoveDA, UAVid, Potsdam, and Vaihingen datasets follow standard protocols. The Grass and Cloud datasets use preprocessing strategies identical to those in cited works. LoveDA and UAVid are specifically highlighted for their use in online test scenarios where ground truth labels are unavailable.

Key Insights and Ideas

  • Explicit Class Modeling is Crucial: The study demonstrates that simply relying on implicit representation learning is insufficient for fine-grained remote sensing segmentation. Explicitly modeling class-aware embeddings is key to resolving ambiguities.
  • Dynamic Adaptation is Essential: The "dynamic" aspect of the dictionary, achieved through the modulator and attention mechanisms, is vital for adapting to subtle morphological variations within the same class and across different input images.
  • Iterative Refinement Works: The multi-stage alternating cross-attention decoder effectively refines both image features and the dictionary, leading to a synergistic improvement in segmentation performance.
  • Contrastive Loss Enhances Discriminability: The contrastive loss on the dictionary space significantly improves class separability, which is particularly beneficial for distinguishing similar categories.
  • Component Interdependence: Ablation studies show that each component (modulator, aggregator, interaction stages) plays a critical role, and their combined effect is superior to individual contributions.

Key Results

  • State-of-the-Art Performance: The proposed method achieves consistent state-of-the-art (SOTA) performance across all six evaluated datasets, including challenging coarse- and fine-grained benchmarks.
  • Fine-grained Advantage: The method shows remarkable advantages in distinguishing subtle class variations, particularly on the Grass and Cloud datasets, achieving 66.27 mF1 and 89.65 mF1 respectively.
  • Improved Intra-class Compactness and Inter-class Separability: t-SNE visualizations of the dictionary distributions across interaction stages show that intra-class distances tighten while inter-class distances increase, confirming the effectiveness of the contrastive loss.
  • Optimal Interaction Stages: Experiments suggest that 3 interaction stages (L=3) yield optimal performance on most datasets, balancing model performance and computational efficiency.

Limitations and Future Work

  • Limitations: The paper notes that excessive interaction stages (L=4) can lead to overfitting, particularly on datasets like Cloud. The performance on the Cloud dataset is sensitive to the number of stages.
  • Future Work: The paper suggests further ablation studies on the dimensionality of class ID embeddings and the backbone architecture. The current work focuses on improving segmentation accuracy; future work could explore balancing efficiency and performance further. The authors also provide code for reproducibility, enabling further research in this direction.

Summary updated

BibTeX
@inproceedings{zou2025dynamic,
  author = {Xuechao Zou and Yue Li and Shun Zhang and Kai Li and Shiying Wang and Pin Tao and Junliang Xing and Congyan Lang},
  title = {{Dynamic Dictionary Learning for Remote Sensing Image Segmentation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure