CVJul 8

Sparse Attention for Dense Open-Vocabulary Prediction in CLIP

arXiv:2607.071356.6h-index: 8
Predicted impact top 64% in CV · last 90 daysOriginality Incremental advance
AI Analysis

For practitioners of open-vocabulary dense prediction tasks, this work provides a simple inference-time modification to CLIP that improves performance without retraining.

CLIP's dense softmax attention spreads probability mass across irrelevant tokens, harming dense open-vocabulary prediction. Replacing softmax with α-entmax in final visual self-attention layers during inference improves performance on semantic segmentation (Pascal VOC, Pascal Context, ADE20K) and fine-grained retrieval (FG-OVD), with gains proportional to baseline attention spread.

Contrastive Language-Image Pre-training (CLIP) relies on softmax-based self-attention, a strictly positive distribution that assigns probability mass to every pair of tokens-even semantically irrelevant ones. While these dense softmax weights are effective for gathering broad context during pre-training, they spread attention across many low-salience tokens, producing noise that obscures the fine-grained, spatially localized cues required for dense, open-vocabulary prediction. We study an inference-time substitution of the row-wise softmax in the final visual self-attention layers with the $α$-entmax transform, applied across both the standard query-key attention and self-correlation variants. Because entmax applies a data-dependent threshold that maps low scores exactly to zero, it acts as an implicit denoiser, zeroing contextually irrelevant dependencies while redistributing mass onto the most relevant tokens. We evaluate on open-vocabulary tasks-dense semantic segmentation (Pascal VOC, Pascal Context, ADE20K) and fine-grained retrieval (FG-OVD)-and find the gain from attention sparsification is proportional to how much the baseline attention spreads off the target class.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes