Visual Sparse Steering: Improving Zero-shot Image Classification with Sparsity Guided Steering Vectors

Zhuowei Li, Gerasimos Chatzoudis, Zhuowei Li 0002, Gemma E. Moran, Hao Wang, Dimitris N. MetaxasarXiv 2025 · DOI

Abstract

Vision Foundation Models (VFMs) like CLIP have demonstrated remarkable zero-shot capabilities but remain difficult to interpret and steer. This paper introduces Visual Sparse Steering (VS2), a training-free method that leverages Sparse Autoencoders (SAEs) to identify and amplify interpretable latent concepts at inference time. We further propose VS2++, a retrieval-augmented variant that uses contrastive steering to significantly boost performance on complex datasets. Our results show that VS2 improves zero-shot accuracy across multiple benchmarks without modifying base model weights, offering a lightweight path toward more controllable and performant vision models.

Introduction

While Large Language Models (LLMs) have benefited from "steering vectors" to modify behavior at inference time, applying similar techniques to vision models has been challenging. Visual representations are often redundant and lack the discrete, interpretable anchors found in language. Consequently, improving a VFM's performance typically requires expensive supervised fine-tuning. This work addresses these challenges by using Sparse Autoencoders to disentangle visual embeddings into sparse, interpretable features, enabling precise steering of model outputs without retraining.

Methodology

Visual Sparse Steering (VS2)

The core of our approach is the use of top-$k$ Sparse Autoencoders trained on the latent embeddings of a frozen VFM. For a given input image, the SAE identifies active sparse concepts. VS2 amplifies these core features by upweighting them and calculating a steering vector from the difference between the original and reconstructed embeddings.

The Contrastive-SAE architecture disentangles latent embeddings into sparse features to generate steering vectors.

VS2++: Retrieval-Augmented Steering

To distinguish between discriminative features and generic noise, we introduce VS2++. This variant employs a retrieval-augmented generation (RAG) approach, pulling similar images from an unlabeled cache. By assigning pseudo-labels and splitting neighbors into positive and negative sets, we calculate a contrastive steering vector that amplifies class-relevant features while suppressing irrelevant ones.

VS2++ uses retrieval-augmented contrastive steering to amplify positive class features and subtract negative ones.

Prototype-Aligned Sparse Steering (PASS)

To further align SAE features with classification tasks, PASS introduces a prototype-alignment loss during SAE training. This forces sparse features to cluster around class means, ensuring that the learned concepts are more useful for downstream classification while remaining unsupervised at test time.

Experimental Results

We evaluated our methods on CIFAR-100, CUB-200, and Tiny-ImageNet. VS2 consistently outperformed zero-shot CLIP, with absolute top-1 accuracy gains of up to +4.12%. The retrieval-augmented VS2++ achieved even more dramatic improvements, particularly when using an oracle cache, with gains exceeding +20% on CIFAR-100 and Tiny-ImageNet.

Method CIFAR-100 CUB-200 Tiny-ImageNet
Zero-shot CLIP Base Base Base
VS2 +4.12% +1.08% +1.84%
VS2++ (Oracle) +21.44% +7.08% +20.47%

Our analysis indicates that steering is particularly effective at disambiguating visually similar classes, such as distinguishing between different feline species or similar mechanical objects.

Discussion and Limitations

Sparse steering demonstrates that SAEs are not merely passive tools for interpretability but active components for model enhancement. However, the performance of VS2++ is sensitive to the quality of pseudo-labels in the retrieval set. Future work will explore multi-prototype guidance and enforcing orthogonality during SAE training to further reduce class confusion.

Summary updated

BibTeX
@misc{li2025visual,
  author = {Zhuowei Li and Gerasimos Chatzoudis and Zhuowei Li and Gemma E. Moran and Hao Wang and Dimitris N. Metaxas},
  title = {{Visual Sparse Steering: Improving Zero-shot Image Classification with Sparsity Guided Steering Vectors}},
  year = {2025},
  eprint = {2506.01247},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.01247},
}
Figure