Abstract
Generative Large Multimodal Models (LMMs) like LLaVA and Qwen-VL excel at a wide variety of vision-language (VL) tasks such as image captioning or visual question answering. Despite strong performance, LMMs are not directly suited for foundational discriminative vision-language tasks (i.e., tasks requiring discrete label predictions) such as image classification and multiple-choice VQA. One key challenge in utilizing LMMs for discriminative tasks is the extraction of useful features from generative models. To overcome this issue, we propose an approach for finding features in the model's latent space to more effectively leverage LMMs for discriminative tasks. Toward this end, we present Sparse Attention Vectors (SAVs) -- a finetuning-free method that leverages sparse attention head activations (fewer than 1% of the heads) in LMMs as strong features for VL tasks. With only few-shot examples, SAVs demonstrate state-of-the-art performance compared to a variety of few-shot and finetuned baselines on a collection of discriminative tasks. Our experiments also imply that SAVs can scale in performance with additional examples and generalize to similar tasks, establishing SAVs as both effective and robust multimodal feature representations.
Introduction
Generative Large Multimodal Models (LMMs) have revolutionized how we interact with visual data, enabling complex dialogues and reasoning. However, a persistent paradox remains: these models often struggle with basic discriminative tasks, such as image classification or hallucination detection, where specialized encoder-only models like CLIP still dominate. Standard approaches to bridge this gap, such as In-Context Learning (ICL) or parameter-efficient finetuning (e.g., LoRA), come with significant drawbacks. ICL can be unreliable and sometimes degrades performance in instruction-tuned models, while finetuning is computationally intensive and requires substantial labeled data.
The core issue lies in feature extraction. While LMMs possess rich internal representations, we lack efficient ways to harness them for discrete predictions. This paper introduces Sparse Attention Vectors (SAVs), a training-free method that identifies "expert" attention heads within a frozen LMM to achieve state-of-the-art few-shot classification.
Methodology: Sparse Attention Vectors (SAVs)
The SAVs approach is a three-step, gradient-free process designed to extract and utilize the most discriminative features from a frozen LMM without any weight updates.
- Feature Extraction: A small "support set" (e.g., 20 examples per class) is passed through the frozen LMM. Instead of the final text output, the method extracts attention vectors from every head across all layers for the final token.
- Head Selection: Each individual attention head is treated as a "local classifier." By calculating class centroids (means) for each head's activations, the method identifies which heads are most effective at separating the target classes in the support set.
- Sparse Voting: A tiny fraction of the top-performing heads—typically just 20, representing less than 1% of the total—are selected. For a new query, these "expert" heads perform nearest-centroid classification, and the final label is determined by a majority vote.
Experiments and Results
The researchers evaluated SAVs across a massive battery of 15+ benchmarks, including safety (MHaluBench, VLGuard), VQA (BLINK, VizWiz), and fine-grained image classification (EuroSAT, Oxford-IIIT-Pets).
- Superior Performance: SAVs achieved a +7% average improvement over LoRA finetuning on challenging benchmarks like BLINK and NaturalBench.
- Domain Adaptation: On the EuroSAT satellite imagery task, base LLaVA-1.5 scored a dismal 26.3%. Applying SAVs boosted this to 86.7%, rivaling specialized CLIP models.
- Beating the Giants: On the BLINK benchmark, LLaVA-OneVision-7B equipped with SAVs outperformed GPT-4o (69.2% vs 59.0%), despite being a much smaller, open-source model.
- Efficiency: The method works with as few as 5–20 examples per class and requires zero GPU training time, needing only a single forward pass to "calibrate" the heads.
Discussion and Key Insights
The success of SAVs points to functional specificity within LMMs—the idea that specific attention heads naturally specialize in tasks like counting, depth perception, or safety during their massive pretraining. SAVs simply "find" these pre-existing experts.
Furthermore, the paper highlights the ICL Paradox: standard few-shot prompting often degrades LMM performance because models are over-optimized for instruction-following rather than learning from prompt examples. SAVs bypass this by looking at internal activations instead of the model's text-generation behavior. The extreme sparsity required—using just 20 heads—suggests that discriminative information is highly localized within the model.
Conclusion
SAVs offer a highly efficient, training-free way to turn generative LMMs into powerful classifiers. While currently limited to "white-box" models where internal activations are accessible, the method provides a new lens for understanding and utilizing the latent capabilities of large-scale multimodal models. Future work may explore more sophisticated aggregation methods or applying SAVs to tasks like multimodal retrieval and data compression.
Summary updated