Manuscript Offprint

arXiv:2610.07689

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

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

Abstract

Vision-Language Models (VLMs) such as CLIP excel in global semantic alignment but often lack fine-grained perceptual capabilities. This hinders dense prediction tasks and bottlenecks the visual potential of Multimodal Large Language Models (MLLMs). Existing research has attempted to enhance CLIP's visual representations by incorporating geometric priors from vision-centric models. However, these strategies often struggle to achieve deep alignment for both local spatial structures and global semantics, potentially even distorting the original image-text space. To address these limitations, we propose SALM, an unsupervised embedding alignment framework based on structurally-aware latent mask modeling. SALM effectively synergizes local and global alignment via a dual-path design combining explicit and implicit mechanisms, without requiring external textual supervision. First, we introduce a dual-matrix alignment strategy that explicitly calibrates intra-sample spatial correlations and activation intensities, thereby effectively injecting local geometric priors. Based on this, we further design a latent mask modeling mechanism to guide CLIP to restore the missing semantic details of the target model, thereby implicitly aggregating fine-grained structures into the global semantic space. Furthermore, driven by the empirical observations that CLIP's shallow features inherently possess strong spatial observational capabilities, we naturally extend SALM to a highly efficient self-distillation paradigm, SALM-Self. This unlocks CLIP's intrinsic fine-grained potential without relying on any external models. Extensive experiments demonstrate that SALM not only significantly improves performance in dense prediction tasks but also boosts CLIP's zero-shot accuracy, effectively enhancing the fine-grained understanding capabilities of MLLMs. Project page at https://qzfm.github.io/salm_project_page/.

1 Introduction

Vision-Language Models (VLMs) have demonstrated remarkable generalization capabilities in multimodal understanding, content generation, and other downstream tasks. Among them, CLIP [45] and its variants [69, 54] rely on strong cross-modal alignment to maintain robust visual features even in zero-shot scenarios. However, constrained by contrastive learning's primary focus on global semantic consistency, CLIP often struggles to capture fine-grained information such as color, counting, and local geometric structure [55, 32]. This deficiency in fine-grained perception not only limits performance in tasks such as dense prediction [66, 65] but also constitutes a bottleneck for Multimodal Large Language Models (MLLMs) [37, 33, 2, 74] aiming for refined visual understanding [16, 38].

*Equal contributions. Email: qlzjftm@gmail.com, levondang@163.com.

†^{\dagger}Project Leader.

‡^{\ddagger}Corresponding Author. Email: qyw@scut.edu.cn.

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Figure

PCA Visualization of Features

Quantitative Multi-task Evaluation

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.

Self-supervised vision models [9, 52, 18] possess inherent advantages in comprehending local structures and spatial relationships. Effectively leveraging these priors to mitigate CLIP's limitations remains a challenge. Some approaches [25, 23, 72, 63] employ multi-experts as enhanced visual encoders; however, they often lack the capacity to fundamentally enhance fine-grained perception at the perceptual level and introduce doubled computational overhead. Other methods attempt to distill diverse encoders into a single aggregated model [47, 19, 48, 73] or fine-tune CLIP via generative reconstruction [62, 39, 60, 59, 35, 17]. Nevertheless, these approaches either incur immense training costs or disrupt CLIP's original embedding distribution, severely compromising zero-shot capabilities or downstream compatibility, thereby limiting their practical applicability.

Recent works have explored kernel-based methods [24, 13] to achieve efficient embedding alignment. Although kernel-based alignment can elegantly preserve the structure of the original space, it struggles to guarantee the spatial consistency of local dense features (e.g., KUEA [13] has no improvement over vanilla CLIP in segmentation tasks). This is because they primarily focus on the global alignment of embedding clusters between samples, neglecting the spatial positioning and intrinsic correlations of local features within samples, which restricts CLIP's fine-grained local perception. Furthermore, their performance is highly sensitive to the choice of the kernel function [13], making it difficult to adaptively capture complex nonlinear correspondences between heterogeneous feature spaces.

Our key insight is that simultaneously achieving adaptive alignment of local spatial structures and global semantics can comprehensively address CLIP's fine-grained perception limitations, while avoiding disruption to the integrity of the original embedding space, preserving its zero-shot capability. We propose SALM, a novel framework for unsupervised embedding alignment via structurally-aware latent masked modeling. Despite requiring zero text supervision, SALM achieves adaptive alignment of local spatial consistency and fine-grained global semantics between CLIP and vision-centric models without breaking pre-trained image-text alignment.

We first introduce a Dual-Matrix Alignment (DMA) strategy to explicitly constrain the local spatial geometry at the manifold level. Specifically, we model the pairwise relationships between patches within the feature map by decoupling them into angular and magnitude components, constructing two key matrices: the Spatial Relation Matrix and the Energy Difference Matrix. By aligning these matrices, we effectively capture local semantic correlations and calibrate relative activation magnitudes, respectively. This mechanism explicitly injects fine-grained geometric priors from the target model into CLIP's space, enhancing local detail expression while maximizing the preservation of the original pre-trained distribution.

Building on explicit spatial constraints, we further aim to aggregate structural information into global semantics. This objective demands that the representation implicitly and intrinsically encodes and aligns with the detailed semantics of vision-centric models. In other words, these features must possess the capability to restore the fine-grained latents of these models. Inspired by masked modeling paradigm [18, 70, 31, 4, 41, 61], we propose an implicit alignment method based on latent masked modeling to bridge these distinct encoders. Specifically, we freeze the vision-centric encoder and apply high-ratio random masking to its dense features. Utilizing a lightweight Cross-Guided Adapter (CGA), we reconstruct the latents conditioned on both the visible context and the CLIP features. The unmasked patches serve as anchors, guiding the encoder to adaptively fill the missing fine-grained semantic gaps, effectively establishing a deep semantic alignment with the target feature space.

Furthermore, our empirical observations indicate that CLIP's shallow layers inherently capture rich local spatial details, which gradually diminish during deep feature aggregation. Inspired by this, we pose a natural question: can we unlock CLIP's intrinsic fine-grained potential directly within the SALM framework, without relying on any external vision-centric models? However, directly utilizing shallow features presents two major challenges: (1) they lack high-level semantics, meaning direct dual-matrix alignment would severely degrade the original deep semantics; and (2) they contain substantial low-level noise, making feature reconstruction difficult to optimize. To overcome these challenges, we introduce a small adjustment to our framework, extending it into a highly efficient self-distillation paradigm termed SALM-Self. Specifically, we discard the reconstruction loss and apply the DMA constraint on the reconstructed shallow features. This asymmetric design elegantly filters out low-level noise while strictly preserving the deep semantic integrity, enhancing CLIP's fine-grained perception and dense prediction capabilities with zero reliance on external models.

Experiments demonstrate that our method outperforms other alignment methods on dense prediction tasks, verifying that the model genuinely possesses fine-grained perception capabilities. Meanwhile, on multiple benchmarks, we achieve higher zero-shot accuracy without fine-tuning the text encoder. MLLMs integrated with our visual encoder exhibit superior performance over other methods.

In summary, the contributions of this paper are as follows:

• We propose SALM, a novel unsupervised embedding alignment framework bridging CLIP’s global consistency and vision-centric models’ fine-grained perception. It achieves simultaneous adaptive alignment of local geometry and global semantics.

• We propose a dual-matrix alignment strategy to explicitly constrain the local spatial geometry at the manifold level. By aligning the spatial relation matrix and energy difference matrix, we effectively capture intrinsic spatial correlations, ensuring the transfer of spatial structures.

• We design an implicit alignment based on latent masking modeling. Using the Cross-Guided Adapter, we guide the encoder to recover missing fine-grained details, establishing a deep and robust semantic alignment with the target feature space.

• We extend the SALM to a highly efficient self-distillation paradigm, SALM-Self. It successfully unlocks CLIP’s intrinsic fine-grained potential without relying on any external vision-centric models.

References (69)

  • Tallyqa: Answering complex counting questions
  • Qwen3-VL Technical Report
  • Coco-stuff: Thing and stuff classes in context
  • Masked autoencoders are effective tokenizers for diffusion models
  • Microsoft coco captions: Data collection and evaluation server (opens arXiv in a new tab)
  • Remote sensing image scene classification: Benchmark and state of the art
  • Describing textures in the wild
  • The cityscapes dataset for semantic urban scene understanding
  • Vision transformers need registers
  • Imagenet: A large-scale hierarchical image database
  • The pascal visual object classes challenge: A retrospective
  • Learning generative visual models from few training examples: An incremental bayesian approach tested on 101 object categories
  • Kernel-based unsupervised embedding alignment for enhanced visual representation in vision-language models (opens arXiv in a new tab)
  • A report on three machine learning contests
  • Making the v in vqa matter: Elevating the role of image understanding in visual question answering
  • Llava-uhd: an Imm perceiving any aspect ratio and high-resolution images
  • Guiding diffusion-based reconstruction with contrastive signals for balanced visual representation
  • Masked autoencoders are scalable vision learners
  • Introducing eurosat: A novel dataset and deep learning benchmark for land use and land cover classification
  • Natural adversarial examples
  • Low-rank adaptation of large language models
  • Ladi-wm: A latent diffusion-based world model for predictive manipulation
  • Towards an explainable comparison and alignment of feature embeddings
  • From clip to dino: Visual encoders shout in multi-modal large language models (opens arXiv in a new tab)
  • Clevr: A diagnostic dataset for compositional language and elementary visual reasoning
  • Referitgame: Referring to objects in photographs of natural scenes
  • A diagram is worth a dozen images
  • Proxyclip: Proxy attention improves clip for open-vocabulary segmentation
  • Latent diffusion models with masked autoencoders
  • Does clip bind concepts? probing compositionality in large image models
  • Blip-2: Bootstrapping language-image pre-training with frozen image encoders and large language models
  • Evaluating object hallucination in large vision-language models
  • un$^2$CLIP: Improving CLIP’s visual detail capturing ability via inverting unCLIP
  • Visual spatial reasoning
  • Improved baselines with visual instruction tuning
  • Llava-sp: Enhancing visual representation with visual spatial tokens for mllms
  • a unified tokenizer for visual generation and understanding
  • The role of context for object detection and semantic segmentation in the wild
  • Lv-mae: Learning long video representations through masked-embedding autoencoders
  • DINOv2: Learning robust visual features without supervision
  • Cats and dogs
  • Hierarchical Text-Conditional Image Generation with CLIP Latents
  • Am-radio: Agglomerative vision foundation model reduce all domains into one
  • C-radiov4 (tech report) (opens arXiv in a new tab)
  • Do imagenet classifiers generalize to imagenet? In International conference on machine learning, pages 5389–5400
  • Robust clip: Unsupervised adversarial fine-tuning of vision embeddings for robust large vision-language models
  • Vision transformers need more than registers
  • DINOv3, 2025
  • Man vs. computer: Benchmarking machine learning algorithms for traffic sign recognition
  • Eva-clip: Improved training techniques for clip at scale (opens arXiv in a new tab)
  • Alpha-clip: A clip model focusing on wherever you want
  • Eyes wide shut? exploring the visual shortcomings of multimodal llms
  • Rotation equivariant CNNs for digital pathology
  • Declip: Decoupled learning for open-vocabulary dense perception
  • Diffusion feedback helps CLIP see better
  • Visual lexicon: Rich image features in language space
  • Harmonizing visual representations for unified multimodal understanding and generation
  • VILA-u: a unified foundation model integrating visual understanding and generation
  • When kernels multiply, clusters unify: Fusing embeddings with the kronecker product
  • Clip-dinoiser: Teaching clip a few dino tricks for open-vocabulary semantic segmentation
  • Vision transformers with self-distilled registers
  • From image descriptions to visual denotations: New similarity metrics for semantic inference over event descriptions
  • Modeling context in referring expressions
  • Sigmoid loss for language image pre-training
  • How mask matters: Towards theoretical understandings of masked autoencoders
  • Semantic understanding of scenes through the ade20k dataset
  • Hints of prompt: Enhancing visual representation for multimodal llms in autonomous driving
  • Chenchen Zhu, Saksham Suri, Cijo Jose, Maxime Oquab, Marc Szafraniec, Wei Wen, Yunyang Xiong, Patrick Labatut, Piotr Bojanowski, Raghuraman Krishnamoorthi, et al. Efficient universal perception encoder. arXiv preprint arXiv:2603.22387, 2026. (opens arXiv in a new tab)
  • InternVL3: Exploring Advanced Training and Test-Time Recipes for Open-Source Multimodal Models