Hierarchical Prompt Injector for Domain Generalization Segmentation
Xin Kun Lin, Ruoyu Guo, Jiaqi Guo, Maurice Pagnucco, Yang Song
Abstract
Domain Generalized Semantic Segmentation (DGSS) is a challenging task, as vision models often rely on low-level appearance cues that change across domains. In contrast, structural attributes exhibit cross-domain stability, motivating the use of structural priors for DGSS. Existing methods use prompt learning to transfer such priors into DGSS models, but typically encode each class as a single holistic prompt. Moreover, these methods apply prompts uniformly to all pixels, offering no mechanism to adapt when only a subset of object regions is visible due to viewpoint changes, occlusion, and environmental variation. We address this with Spatial Hierarchical Prompts (SHP) that enrich each class with region-level geometric anchors capturing structural appearance from distinct viewing angles, ensuring complementary coverage under arbitrary viewpoints. Additionally, we propose the Hierarchical Prompt Injector (HPI), which enables spatially adaptive prompt injection in foundation models. HPI spatially grounds prompts by modeling their semantic relevance and spatial influence with visual features. Considering the difficulty of learning spatially and semantically aware prompt injection, we further introduce auxiliary supervision to align hierarchical prompts with their corresponding object regions. We achieve 70.62\% and 72.74\% mIoU on synthetic-to-real and real-to-real benchmarks, respectively. Code and checkpoints are released at https://github.com/MosukFate/HPI
Create a lesson
Metadata
- Comments
- Accepted by ECCV2026
Related papers
PAPT++: Risk-Aware Adversarial Tuning and Generation for Single Domain Generalization
Shared title terminologycs.CVZhipeng Xu, De Cheng, Xinyang Jiang et al.
Bridging Modalities and Tasks: A Unified Hierarchical ViT for SAR-to-Optical Translation and Semantic Segmentation
Shared title terminologycs.CVSiyuan Liu, Xuze Zhang, Yongshun Wang et al.
DynMF2: Rigid Motion Factorization by Expectation-Maximization for Monocular 4D Reconstruction and Motion Segmentation
Shared title terminologycs.CVAgelos Kratimenos, Yile Hua, Kostas Daniilidis
Enhancing Maritime Domain Awareness using Latent Space Representations
Shared title terminologycs.CVRikard Vinge, Miguel A. Belenguer-Plomer, Isabelle Wittmann et al.
Focus Only on What's Important: Training-Free Focus Maps for Frozen Vision Transformers in Long-Video Object Segmentation
Shared title terminologycs.CVHarsha Karipineni, Rajesh Reddy Chintha
CIRKDV2: Cross-Image Relational Knowledge Distillation with Contextual Modeling for Efficient Semantic Segmentation
Shared title terminologycs.CVChuanguang Yang, Yu Wang, Chengqing Yu et al.