NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Unlocking Fine-Grained Perception in CLIP via Structurally-Aware Latent Masked Modeling

Juntong Li, Lingwei Dang, Haomin Wu, Ziyan Qiu, Qingxin Xiao, Qingyao WuNeurIPS 2026

TL;DR

CLIP is legendary at understanding the "big picture" of an image to match it with text, yet it struggles to see fine details like object boundaries, counts, or spatial layouts. This paper introduces SALM, an unsupervised training framework that teaches CLIP to perceive sharp, pixel-level geometry—either by learning from a vision specialist like DINOv2, or simply by distilling knowledge from its own early layers—all without using a single text caption or breaking its original zero-shot superpowers.

What Problem Does This Paper Address?

If you ask a Multimodal Large Language Model (MLLM) like LLaVA what is in a picture, its "eyes" are usually powered by CLIP. Because CLIP is trained via contrastive learning to match whole images to whole captions, it excels at global semantics ("that's a cat on a bed") but is notoriously nearsighted when it comes to local, fine-grained structure ("where exactly are the two cats, and how many remote controls are next to them?").

Meanwhile, self-supervised, vision-only models like DINOv2 are the opposite: they have crisp, spatially coherent internal maps of objects and textures, though they don't speak human language. Researchers have tried merging the two—by bolting multiple encoders together (doubling compute), distilling everything from scratch (astronomical cost), or aligning global feature clusters via mathematical kernels (which still ignores how patches relate within a single image). Worse, heavy-handed fine-tuning usually warps CLIP's delicate image-text embedding space, causing catastrophic forgetting of its zero-shot abilities. How do we give CLIP the eagle-eyed spatial precision of DINOv2 without breaking its link to language?

Methods

The authors propose SALM (Structurally-Aware Latent Masked Modeling), a lightweight, text-free alignment framework that updates CLIP’s visual encoder in just four epochs while keeping a frozen copy of original CLIP as a mathematical anchor (regularization) so its language alignment doesn't drift. During inference, all auxiliary training modules are thrown away, leaving zero extra compute cost.

Figure 3: Overview of SALM. First, the Dual-Matrix Alignment strategy ensures relative consistency in spatial relationships and magnitude distributions (Sec. 3.3). Subsequently, a latent masked modeling is employed to reconstruct the DINO features, thereby aggregating fine-grained information into global semantics (Sec. 3.4). Finally, reference regularization is applied to the source encoder to ensure the stability of the adaptation process within the original multimodal latent space (Sec. 3.5).

SALM works through two complementary pathways:

  1. Explicit Local Geometry via Dual-Matrix Alignment (DMA): Instead of forcing CLIP's features to match DINOv2's raw values directly (which reside in a totally different mathematical space), DMA aligns intra-image relationships across image patches. It builds two matrices for an image: a Spatial Relation Matrix (measuring cosine similarity/angles between every pair of patches) and a normalized Energy Difference Matrix (capturing relative activation magnitudes, which correspond to local saliency). Matching these matrices transfers DINOv2's geometric blueprint into CLIP.
  2. Implicit Global Integration via Latent Masked Modeling: Knowing how patches relate locally isn't enough; fine details need to be woven into CLIP's global understanding. The authors randomly mask out 75% of DINOv2’s patch features and task a lightweight Cross-Guided Adapter (CGA) with reconstructing the missing DINOv2 latents, using CLIP's full features as keys and values. To succeed, CLIP is forced to pack rich, fine-grained semantics into its representations.

Finally, the authors introduce SALM-Self, a self-distillation variant requiring no external teacher. Using an Exponential Moving Average (EMA) teacher of CLIP itself, SALM-Self takes noisy features from CLIP’s shallow layers (defaulting to Layer 6), masks and reconstructs them via the adapter to filter out low-level noise, and applies DMA against the teacher's shallow features.

Datasets

  • Training: Exclusively trained on the ImageNet-1K image set—notably using zero text captions.
  • Evaluation: No new benchmarks are introduced, but evaluation spans 20+ existing datasets:
  • Zero-shot & Linear Probing Classification: ImageNet-1K/V2/-O, CIFAR-10/100, Caltech-101, Pets, DTD, EuroSAT, FER2013, RESISC45, PCam, GTSRB.
  • Fine-grained & Counting: CLEVR (Distance & Counts), SVHN.
  • Dense Prediction (Semantic Segmentation): ADE20K, Cityscapes, PASCAL VOC 2012, COCO-Stuff, PASCAL Context.
  • MLLM Integration (via LLaVA-1.5-7B): VQAv2, AI2D, RefCOCO/+/g, VSR, TallyQA, and POPE.

Key Insights and Ideas

  • CLIP isn't blind; it's forgetful: By visualizing attention and PCA maps across layers, the authors discovered a great "aha" moment: CLIP’s shallow layers (e.g., Layer 3) actually spot crisp building edges, windows, and textures remarkably well. The bottleneck isn't initial observation—it's that deep layers wash away these local details while chasing a single global summary vector.
Figure 2: Visualization of CLIP’s shallow attention versus deep feature representation. CLIP demon- strates the capability to localize object textures (e.g., building edges) and detailed components (e.g., doors and windows) in its early layers, even though these details may not be effectively ex- tracted in representations.
  • Angles and magnitudes matter: Decoupling patch relationships into directional similarity (angles) and relative saliency ranking (norm differences) lets CLIP absorb structural priors across heterogeneous model spaces without distorting its native feature distribution.
  • Self-distillation needs a noise filter: You can't just force CLIP's deep layers to mimic its shallow layers directly—shallow layers lack high-level semantics and are full of low-level noise. Routing shallow features through masked reconstruction before applying matrix alignment acts as an asymmetric denoising filter, making external-free self-improvement (SALM-Self) work.

Key Results

Across the board, SALM sharpens spatial perception while actually improving zero-shot performance:

  • Dense Prediction: In linear-probing semantic segmentation, SALM jumps vanilla CLIP from 36.96 to 42.83 mIoU on ADE20K, and 69.81 to 77.15 mIoU on VOC2012 (where prior kernel-alignment method KUEA slightly degraded performance to 69.02). Even teacher-free SALM-Self hits 39.23 and 72.33 mIoU, respectively.
  • Zero-Shot & Fine-Grained Tasks: Without touching the text encoder, SALM boosts average zero-shot accuracy across 11 datasets from 67.35% to 69.25% (77.21% on ImageNet-1K) and pushes CLEVR object counting from 20.01% to 22.81%.
  • Better Eyes for MLLMs: Plugged into LLaVA-1.5-7B, SALM raises the average benchmark score from 64.65% to 66.69%, shining on spatial grounding tasks like RefCOCO (+3.21% over fine-tuned LLaVA, +2.69% over KUEA).
  • Data Efficiency: Training on just 10% of ImageNet-1K already yields clear zero-shot gains (68.84% vs. 67.35% baseline).
Figure 1: Comparison of feature visualizations and performance. Left: PCA visualization of features. In contrast to the fragmented and noisy outputs from CLIP and others, our method produces spatially coherent features with distinct semantic layouts. Right: The radar chart validates the superior performance of our method across multiple quantitative metrics.

Limitations and Future Work

While SALM aligns visual geometry with frozen global anchors, it does not explicitly align individual image patches directly with text tokens. The authors note that future work will explore adaptive structural supervision and stronger patch-text alignment, aiming to better preserve global semantics while directly unlocking open-vocabulary dense prediction (like zero-shot segmentation using arbitrary text prompts).

Summary updated

BibTeX
@inproceedings{li2026unlocking,
  author = {Juntong Li and Lingwei Dang and Haomin Wu and Ziyan Qiu and Qingxin Xiao and Qingyao Wu},
  title = {{Unlocking Fine-Grained Perception in CLIP via Structurally-Aware Latent Masked Modeling}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=WiG66zEVDd},
}
Figure