TL;DR
Existing multimodal embeddings entangle distinct visual factors like object, style, and background into a single global representation, limiting fine-grained control. This paper introduces Queryable Attribute Representation Extraction (QARE), a new task and benchmark designed to isolate specific visual attributes on demand. To solve it, the authors propose TF-QARE, a simple, training-free method that extracts highly disentangled attribute embeddings from frozen Vision-Language Models (VLMs) simply by pooling the hidden states of generated reply tokens.
What Problem Does This Paper Address?
Whether you are using CLIP or a modern VLM-distilled embedding like VLM2Vec, current multimodal representations are predominantly global. They mash an image's foreground objects, background environment, and artistic style into a single holistic vector.
This entanglement creates a major roadblock for downstream tasks requiring attribute-level control. For instance, if you want to retrieve images that match the artistic style of a query image but contain entirely different content, global embeddings fail because the content and style features are inextricably linked.
To address this, the authors formalize the task of Queryable Attribute Representation Extraction (QARE). Given an image $I$ and a target attribute query $a$ (e.g., "style"), the goal is to produce an embedding $E(I, a)$ that satisfies two properties:
- Sensitivity: Querying different attributes on the same image yields distinct, specialized representations.
- Invariance: The embedding remains invariant to changes in any other unqueried attributes of the image.
Methods
Instead of introducing an expensive fine-tuning regimen, the authors propose TF-QARE (Training-Free QARE). This zero-shot approach elegantly repurposes frozen, off-the-shelf VLMs to extract attribute-disentangled features using two key components:
- Attribute-Focused Prompting: The authors design highly structured prompts that force the VLM to focus exclusively on one visual factor. The prompt combines a direct command, a strict output format, and explicit negative constraints (e.g., "Focus on ONE main foreground object only; ignore background, scene, or style").
- Reply-Token Hidden State Pooling: Rather than looking at the VLM's vision encoder outputs, TF-QARE lets the VLM autoregressively generate a textual reply to the prompt. The authors then extract the hidden states from the VLM's decoder corresponding only to the generated reply tokens. They apply average pooling over these normalized hidden states from the penultimate decoder layer to form the final attribute embedding.
Datasets
To evaluate this new task, the authors introduce QARE-Bench, the first benchmark explicitly curated for queryable attribute extraction. It consists of two parts:
- Synthetic Set: A factorially designed dataset generated by combinatorially composing 4 objects, 3 styles, and 4 backgrounds. This clean, controlled environment eliminates confounding correlations, resulting in 48 unique images and 192 distinct test instances.
- Real Set: Built from high-resolution real-world photos, this set includes 6,184 object crops and 2,758 background crops grouped into hundreds of query groups. It features highly challenging positive matches (e.g., the exact same object instance in entirely different scenes/lighting) and hard negatives (distractors or background crops from the same original scene).
Evaluation relies on two metrics: Mean Average Precision (mAP) for attribute-conditioned retrieval, and Average Intra-Image Similarity (AIS), which measures the cosine similarity between different attribute embeddings extracted from the same image (lower AIS indicates better disentanglement).
Key Insights and Ideas
- VLMs as Implicit Disentanglers: The core "aha moment" is that massive autoregressive instruction-tuning already forces VLMs to internally separate visual concepts so they can describe them linearly. TF-QARE simply acts as a mechanism to cleanly read out these pre-existing latent structures.
- The "Alignment Tax" on Embeddings: When scaling up VLM backbones, performance does not always increase monotonically. For example, Qwen2.5-VL-32B slightly underperformed its 7B counterpart. The authors hypothesize that ultra-large models prioritize complex conversational reasoning over strict adherence to rigid formatting prompts, creating a trade-off for feature extraction.
- The Failure of Global Fine-Tuning: Post-trained embedding models like VLM2Vec collapse attribute nuances because their contrastive objectives optimize for global, task-level representations. This causes different attribute queries on the same image to return nearly identical, entangled neighbors.
Key Results
TF-QARE consistently and substantially outperforms both post-trained queryable models and zero-shot global visual encoders across various VLM backbones (Qwen2-VL, InternVL3, Gemma3).
- Synthetic Benchmark: On QARE-Bench Synthetic, TF-QARE (via Qwen2-VL-7B) achieved an overall mAP of 78.4 and an AIS of 0.68. In comparison, VLM2Vec-V1 scored a low mAP of 16.7 with an AIS of 0.97—proving its embeddings remain almost entirely entangled regardless of the text query. Standard visual encoders like CLIP and DINOv2 sit at a baseline AIS of 1.0 (completely entangled).
- Real-World Benchmark: On the highly challenging Real set, TF-QARE achieved an overall mAP of 64.3 (Qwen2-VL-7B) and 65.6 (InternVL3-14B), vastly outperforming VLM2Vec variants (~36.2 to 45.5 mAP).
- Layer Ablation: The authors found that the optimal representations reside in the penultimate decoder layer of the VLM. Earlier layers lack semantic maturity, while the very final layer is overly specialized for token prediction rather than representation.
Limitations and Future Work
While highly effective, the authors note a few limitations:
- Attribute Coverage: The current framework and benchmark focus on three primary visual factors: object, background, and style. It does not yet explicitly cover other nuanced attributes like geometry, material texture, or specific lighting conditions.
- Prompt Sensitivity: The method relies heavily on the VLM's ability to follow strict formatting rules. If a model fails to adhere to the negative constraints in the prompt, the quality of the disentangled embedding degrades.
Future directions include expanding QARE-Bench to a wider array of real-world attributes and exploring how these training-free queryable embeddings can improve downstream applications like text-guided image editing and robotic perception.
Summary updated