The Power of Prior: Training-Free Open-Vocabulary Semantic Segmentation with LLaVA

Bingfeng Zhang, Siyue Yu, Hui Li, Jiahua Lin, Wenwu Wang, Jimin XiaoCVPR 2026

TL;DR

FSeg-LLaVA is a novel, training-free framework that repurposes the internal prior knowledge of Multimodal Large Language Models (MLLMs) for open-vocabulary semantic segmentation. By discovering that intermediate layers of LLaVA naturally contain precise spatial localization data, the authors extract visual-class activation maps to generate point and box prompts for the Segment Anything Model (SAM), achieving state-of-the-art performance on "Thing" categories without requiring explicit background definitions.

What Problem Does This Paper Address?

Open-vocabulary semantic segmentation (OVSS) aims to segment arbitrary objects in an image based on unconstrained textual queries, removing the limitations of predefined training classes. Current training-free methods heavily rely on CLIP-based architectures. However, CLIP-based solutions suffer from two major drawbacks:

  1. Background Ambiguity: They operate in a discriminative, multi-class selection manner, meaning they require explicit definitions for background subclasses—something inherently difficult and ambiguous to define in open-world scenarios.
  2. False Positives: They segment patches based solely on the embedding distance to predefined class names, often mistakenly selecting similar but non-existent classes.

To overcome these limitations, this paper investigates whether generative, decoder-only MLLMs like LLaVA possess inherent, untapped spatial awareness within their prior knowledge that can be exploited for dense prediction tasks without any fine-tuning.

Methods

The authors introduce FSeg-LLaVA, a framework consisting of three main modules that bridge the gap between generative text responses and pixel-level segmentation:

  1. Question-Answer Pipeline (QAP): Instead of directly asking for coordinates, the system queries LLaVA with a structured prompt: "Does the image have the class of a {cname}?..." If present, LLaVA confirms and describes the object. This step filters out non-existent classes.
  2. Text-Visual Response Module (TVR): The authors discover that computing the cosine similarity between the class text token features and the image patch token features within the LLM layers highlights the target object. To clean up the noise, they integrate these maps with cross-attention maps generated from LLaVA's text description response.
  3. Visual Generation Module (VGM): To inject fine-grained spatial details, the initial activation map guides LLaVA’s vision encoder to create foreground and background prototypes. The resulting refined mask is used to automatically generate optimal point and box prompts, which are fed into the Segment Anything Model (SAM) to output the final high-resolution segmentation mask.
Figure 2. The Framework of the whole FSeg-LLaVA. Given an image with a predefined class set, we first use our QAP to generate the text response and retain the classes that LLaVA believes are present in the image. Then, our TVR extracts the features corresponding to the class text tokens and visual tokens, as well as the attention maps between class and visual tokens. All of these are used to produce the final reliable visual-class activation maps for each class. Finally, VGM uses the activation maps as input and generates the final predictions.

Datasets

The method was evaluated across several standard open-vocabulary benchmarks, categorized by how they handle backgrounds:

  • With Background Class: PASCAL VOC 2012 (VOC21), PASCAL Context (Context60), and COCO Object.
  • Without Background Class: COCO Stuff and ADE20K.

Key Insights and Ideas

  • The "Goldilocks" Layers of MLLMs: One of the most fascinating findings is that spatial awareness is highly layer-dependent within the LLM component of LLaVA. Shallow layers (e.g., Layer 3) exhibit diffuse, overly broad activations. Deep layers (e.g., Layer 30) become too abstract or dispersed. The intermediate layers (specifically layers 7 to 19) provide the most precise, semantically aligned localization maps.
Figure 5. Initial distance map (Eq. (3)) among different layers in FSeg-LLaVA1.5. The shallow layers (e.g., layer 3) tend to activate large regions; the deeper layers (e.g., layer 19) introduce small noisy activations; the deepest layer (e.g., layer 30) may even be dispersed. Instead, the middle layers (e.g., layers 7 and 11) gener- ate more accurate and semantically aligned visual activations.
  • Eliminating Background Definitions: Because FSeg-LLaVA uses a generative pipeline to verify the presence of foreground objects individually, it completely bypasses the need to define what constitutes a "background" class, making it vastly more practical for open-world deployment than CLIP-based alternatives.
  • Prompt Synergy for SAM: Ablation studies revealed that providing SAM with both box and point prompts derived from LLaVA's internal activations yields significantly higher performance than using either prompt type alone, as they offer complementary spatial cues.

Key Results

FSeg-LLaVA sets a new state-of-the-art for training-free methods on "Thing" (discrete object) datasets:

  • PASCAL VOC 2012: Achieved 68.0% mIoU (using Vicuna-7B), outperforming the previous best training-free method (FreeCP) by 2.2%.
  • COCO-Object: Achieved 42.0% mIoU, outperforming prior methods by a substantial margin (ProxyCLIP at 37.5% and FreeCP at 37.2%).
  • Model Scaling: Interestingly, scaling up from a 7B to a 13B parameter model did not yield better localization accuracy, suggesting that larger language models do not inherently possess more precise spatial priors.
Figure 4. Qualitative visualization of our FSeg-LLaVA. It can be observed that ours can clearly localize and segment different classes.

Limitations and Future Work

While FSeg-LLaVA excels at segmenting distinct objects ("Things"), it delivers only competitive, rather than dominant, performance on datasets containing "Stuff" categories (e.g., sky, ocean, road, grass). Amorphous, large-area textures are inherently difficult to fully encapsulate using discrete point and box prompts for SAM.

The authors note that future work should focus on developing prompt generation strategies specifically tailored to handle these continuous, background-heavy "stuff" regions within the MLLM framework.

Summary updated

BibTeX
@inproceedings{zhang2026power,
  author = {Bingfeng Zhang and Siyue Yu and Hui Li and Jiahua Lin and Wenwu Wang and Jimin Xiao},
  title = {{The Power of Prior: Training-Free Open-Vocabulary Semantic Segmentation with LLaVA}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=cQTMdrAuja},
}
Figure