OPMapper: Enhancing Open-Vocabulary Semantic Segmentation with Multi-Guidance Information

Wenhai Wang (The Chinese University of Hong Kong) · Xue Yang (Shanghai AI Laboratory) · Xiaokang Yang (Shanghai Jiao Tong University) · Wei Shen (Shanghai Jiao Tong University) · Xuehui Wang (Shanghai Jiaotong University) · Chongjie Si (Shanghai Jiao Tong University) · Yuzhi Zhao (Huawei Technologies Ltd.)
attention mapscomputational overheadcontext-aware attention injectiondense predictionfine-tuningglobal connectivitylocal compactnessopen-vocabulary semantic segmentationsemantic attention alignmenttextual guidancetoken dependenciestraining-free attention refinementsvision-language modelsvisual understandingzero-shot recognition

Open-vocabulary semantic segmentation assigns every pixel a label drawn from an open-ended, text-defined space. Vision–language models such as CLIP excel at zero-shot recognition, yet their image-level pre-training hinders dense prediction. Current approaches either fine-tune CLIP—at high computational cost—or adopt training-free attention refinements that favor local smoothness while overlooking global semantics. In this paper, we present OPMapper, a lightweight, plug-and-play module that injects both local compactness and global connectivity into attention maps of CLIP. It combines Context-aware Attention Injection, which embeds spatial and semantic correlations, and Semantic Attention Alignment, which iteratively aligns the enriched weights with textual prompts. By jointly modeling token dependencies and leveraging textual guidance, OPMapper enhances visual understanding. OPMapper is highly flexible and can be seamlessly integrated into both training-based and training-free paradigms with minimal computational overhead. Extensive experiments demonstrate its effectiveness, yielding significant improvements across 8 open-vocabulary segmentation benchmarks.