Abstract
Open-vocabulary semantic segmentation (OVSS) requires models to identify and delineate objects from categories not seen during training. While CLIP-based approaches have made significant strides, they often lack spatial resolution and suffer from simplistic textual descriptions. This paper introduces LSMSeg, a novel framework that addresses these challenges by utilizing Large Language Models (LLMs) to generate detailed, attribute-rich text prompts and fusing features from the Segment Anything Model (SAM) for enhanced spatial precision. LSMSeg achieves state-of-the-art results across multiple benchmarks, including a 20.3% mIoU on PC-459, while maintaining high computational efficiency.
Introduction
Open-vocabulary semantic segmentation is a critical task in computer vision, aiming to label every pixel in an image regardless of whether the category was present in the training set. Most current methods rely on CLIP, a model trained to align images and text. However, CLIP faces two significant hurdles: spatial blindness and textual poverty. It excels at identifying the presence of an object but struggles to define its exact boundaries. Furthermore, standard prompts like "a photo of a [class name]" are often too generic to resolve visual ambiguities or distinguish between visually similar objects.
Methodology
LSMSeg introduces three core components to overcome the limitations of existing OVSS frameworks:
- LLM-Enriched Text Prompts: Instead of relying on simple templates, LSMSeg uses GPT-4 to generate hyper-detailed descriptions based on nine visual attributes: color, shape, size, texture, material, position, pattern, action/state, and context. This provides a richer semantic signal for the model to ground in the image.
- Feature Refinement Module (FRM): To provide the necessary spatial precision, LSMSeg incorporates high-resolution features from a frozen Segment Anything Model (SAM). A lightweight adapter and a learnable weighting strategy are used to fuse SAM's "where" features with CLIP's "what" features.
- Category Filtering Module (CFM): To maintain efficiency, the CFM identifies the most likely object categories for a specific image and prunes the rest. This reduction in computational noise allows the model to focus its refinement efforts on the most relevant classes.
Experimental Results
The model was trained on COCO-Stuff and evaluated across six diverse benchmarks, including ADE20K and Pascal Context. LSMSeg sets new performance benchmarks:
- State-of-the-Art Accuracy: On the challenging PC-459 dataset, it achieved a 20.3% mIoU, outperforming previous leaders like CAT-Seg. On ADE20K-150, it outperformed established models like SAN and SED by 5.7% and 1.6%, respectively.
- High Efficiency: Despite the added complexity of dual encoders and enriched text, LSMSeg remains highly efficient. It achieved a latency of 362.8ms on an NVIDIA L40 GPU, significantly faster than CAT-Seg's 535.2ms.
Key Insights and Conclusion
A primary finding of this work is that improving textual descriptions—treating text as a "visual proxy"—significantly enhances pixel-level segmentation performance. By describing the texture or shape of an object in text, the model becomes more adept at identifying those specific visual cues. Furthermore, the fusion of SAM and CLIP proves to be a powerful combination, balancing broad semantics with surgical boundary precision.
While LSMSeg currently depends on external LLMs for prompt generation, future work may involve tighter, end-to-end integration or domain-specific attribute optimization. Overall, LSMSeg demonstrates that leveraging the complementary strengths of large-scale vision and language models is a highly effective path forward for open-vocabulary image understanding.
Summary updated