ARM: A Learnable, Plug-and-Play Module for CLIP-based Open-vocabulary Semantic Segmentation
Ziquan Liu, Zhewei Zhu, Xuyang Shi
TL;DR
This work tackles the limitation of CLIP-based open-vocabulary semantic segmentation by addressing CLIP’s coarse pixel-level localization. It introduces the Attention Refinement Module (ARM), a lightweight train-once post-processor that adaptively fuses CLIP’s multi-level features through semantically guided cross-attention and subsequent self-attention, producing a refined, class-agnostic map that is then projected into a class-specific refinement via text embeddings and added to the coarse CLIP output. Trained on COCO-Stuff, ARM serves as a universal plug-and-play component for training-free OVSS frameworks, delivering consistent improvements across multiple benchmarks with negligible inference overhead. Through extensive ablations, the authors show that a simple, well-structured refinement of internal CLIP cues outperforms static fusion and offers strong zero-shot transfer, highlighting the untapped potential of CLIP’s internal representations for dense prediction tasks.
Abstract
Open-vocabulary semantic segmentation (OVSS) is fundamentally hampered by the coarse, image-level representations of CLIP, which lack precise pixel-level details. Existing training-free methods attempt to resolve this by either importing priors from costly external foundation models (e.g., SAM, DINO) or by applying static, hand-crafted heuristics to CLIP's internal features. These approaches are either computationally expensive or sub-optimal. We propose the Attention Refinement Module (ARM), a lightweight, learnable module that effectively unlocks and refines CLIP's internal potential. Unlike static-fusion methods, ARM learns to adaptively fuse hierarchical features. It employs a semantically-guided cross-attention block, using robust deep features (K, V) to select and refine detail-rich shallow features (Q), followed by a self-attention block. The key innovation lies in a ``train once, use anywhere" paradigm. Trained once on a general-purpose dataset (e.g., COCO-Stuff), ARM acts as a universal plug-and-play post-processor for diverse training-free frameworks. Extensive experiments show that ARM consistently boosts baseline performance on multiple benchmarks with negligible inference overhead, establishing an efficient and effective paradigm for training-free OVSS.
