Kernel-based Unsupervised Embedding Alignment for Enhanced Visual Representation in Vision-language Models

Shizhan Gong, Yankai Jiang, Qi Dou, Farzan Farnia

Executive Summary

Vision-Language Models (VLMs) like CLIP serve as the foundational visual encoders for modern Multi-modal Large Language Models (MLLMs). However, these encoders often suffer from a "vision deficiency," struggling with fine-grained details and spatial reasoning because they were trained on global image-text pairs. Researchers have introduced KUEA (Kernel-based Unsupervised Embedding Alignment), a lightweight, unsupervised method to upgrade CLIP's visual perception by aligning it with vision-centric models like DINOv2. This approach significantly enhances a model's ability to perceive spatial relationships and fine details without requiring expensive retraining or sacrificing existing linguistic capabilities.

The Challenge: Vision Deficiency and the Alignment Tax

While CLIP is excellent at identifying high-level semantic concepts (e.g., "a dog in a park"), it often fails at "pixel-level" tasks like counting legs or determining the exact distance between objects. It essentially treats images as a "bag of words." Conversely, vision-only models like DINOv2 excel at these fine-grained details but lack the semantic link to human language.

Previous attempts to merge these strengths often faced the "Alignment Tax." Fine-tuning CLIP to improve its visual perception typically breaks its pre-established connection to the text encoder. To fix this, researchers usually have to retrain the entire multi-modal system from scratch, which is computationally prohibitive. KUEA solves this by aligning visual representations in an unsupervised manner that preserves the original semantic structure.

Methodology: Kernel-based Unsupervised Embedding Alignment (KUEA)

The core innovation of KUEA is its use of Kernel Alignment rather than direct feature matching. Because CLIP and DINOv2 embeddings exist in different mathematical spaces, forcing their feature vectors to match is difficult and often counterproductive.

The KUEA framework: Aligning kernel matrices of a trainable CLIP encoder with a frozen DINOv2 encoder while regularizing against a frozen CLIP baseline.

Key Components:

  • Relational Alignment: KUEA ensures that if DINOv2 perceives two images as visually similar, the updated CLIP model will also perceive them as similar. By aligning the relative similarities (kernels) rather than absolute coordinates, the model adopts DINOv2's perceptual nuances while maintaining its own semantic "soul."
  • Feature Regularization: To avoid the Alignment Tax, a penalty term keeps the new embeddings close to the original CLIP manifold. This ensures the visual encoder remains compatible with the original, frozen text encoder without needing any text data during fine-tuning.
  • Stochastic Optimization: The objective function is designed for standard mini-batch gradient descent, allowing the method to scale to millions of images efficiently. Training a ViT-L/14 model takes only about 30 hours on two consumer-grade GPUs.

Experimental Results

The authors evaluated KUEA across a wide array of benchmarks, including ImageNet-1K for training and 12 diverse zero-shot classification datasets.

Performance Gains

The aligned CLIP models showed consistent improvements across all metrics. On the MMVP-VLM benchmark—specifically designed to identify "CLIP-blind" patterns—accuracy jumped significantly. When integrated into LLaVA-1.5, the KUEA-aligned encoder provided immediate boosts in spatial reasoning and localization tasks without any additional fine-tuning of the language model component.

Performance comparison between the baseline CLIP and KUEA-aligned models across various MLLM benchmarks, showing consistent improvements in tasks like TextVQA and RefCOCO.

Key Insights:

  • Zero-shot Robustness: The average accuracy across 12 classification datasets increased by ~1.3% for the ViT-L/14 architecture.
  • Retrieval Integrity: Zero-shot image-to-text and text-to-image retrieval scores remained stable, proving that the visual upgrade did not degrade the model's understanding of human language.
  • Plug-and-Play Utility: The resulting encoder can be dropped into existing MLLMs as a modular upgrade, providing a cost-effective way to enhance visual intelligence.

Conclusion and Future Directions

KUEA demonstrates that it is possible to "teach" a language-aligned model to see better by leveraging the strengths of vision-only foundation models. By focusing on relational alignment and regularization, the method avoids the pitfalls of traditional fine-tuning. Future work will explore scaling this method to web-scale datasets and testing its efficacy on massive 70B+ parameter language models.

Summary updated

BibTeX
@inproceedings{gong2025kernel,
  author = {Shizhan Gong and Yankai Jiang and Qi Dou and Farzan Farnia},
  title = {{Kernel-based Unsupervised Embedding Alignment for Enhanced Visual Representation in Vision-language Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=0fLoGPTLo1},
}
Figure