Harnessing Frozen Unimodal Encoders for Flexible Multimodal Alignment

Mayug Maniparambil, Raiymbek Akshulakov, Yasser Abdelaziz Dahou Djilali, Sanath Narayan, Ankit Singh, Noel E. O'Connor

TL;DR

Training multimodal vision-language models like CLIP from scratch demands massive datasets and thousands of GPU hours. This paper introduces a highly efficient alternative: by keeping state-of-the-art unimodal encoders (like DINOv2 and RoBERTa) completely frozen and training only lightweight projection layers between them, you can match or exceed CLIP's performance with 65x less compute and 20x less data.

What Problem Does This Paper Address?

State-of-the-art contrastive models like CLIP have revolutionized open-world vision tasks, but they suffer from two major drawbacks: they are incredibly expensive to train, and they are structurally inflexible. Full retraining forces the vision and text encoders to compromise their features to find a shared space. As a result, CLIP’s vision encoder loses the pixel-level granularity needed for dense tasks like segmentation, while its text encoder remains restricted by a rigid 77-token limit and poor multilingual support.

Meanwhile, specialized unimodal models have quietly excelled. Encoders like DINOv2 capture brilliant spatial/local image features, and modern sentence transformers handle long-context, multilingual text with ease. The authors ask a compelling question: Can we bridge these pre-existing, highly optimized unimodal embedding spaces without melting our compute budgets?

Methods

The authors propose a three-step framework to align frozen unimodal models:

  1. Encoder Pair Selection via CKA: Instead of guessing which vision and text models will play nice together, the authors use Centered Kernel Alignment (CKA) to measure the structural similarity of their latent spaces. They discovered that a high CKA score strongly correlates with how easily two models can be aligned.
  2. Concept-Dense Data Curation: Rather than using massive, noisy web-scraped datasets, they curate a smaller, "concept-rich" dataset. They define ~3,000 unique concepts from ImageNet and other datasets, generate text/image prototypes, and pull the top 2,000 most semantically aligned pairs per concept from LAION-400M.
  3. Lightweight Projector Training: They freeze both the vision and text encoders entirely. To map them to a shared space, they train a lightweight Token Projector (consisting of simple linear and non-linear MLP branches) using a standard contrastive InfoNCE loss. Crucially, separate projectors are trained for the global tokens (CLS) and local patch tokens to preserve both global context and spatial granularity.
Figure 3. Lightweight Projector Architecture. We train only Projection Layers to align modalities. Separate projectors are ap- plied on both the local tokens and the CLS token for each encoder and then combined in a residual manner.

Datasets

  • Training / Alignment: LAION-CLASS-Collected (6M pairs curated for high concept coverage) and MIX-CLASS-Collected (20M pairs combining concept coverage with high-quality retrieval datasets like CC3M, CC12M, and SBU).
  • Evaluation: 12 zero-shot classification benchmarks (including ImageNet, ImageNetV2, Caltech101, Stanford Cars, and SUN397), 2 image-text retrieval datasets (Flickr30k, COCO), XTD (multilingual retrieval), Densely Captioned Images (DCI), and Pascal VOC/Context (zero-shot segmentation).

Key Insights and Ideas

  • The "Ease of Alignment" Predictor: The paper demonstrates a striking inverse relationship between a pair's initial CKA score and its final CLIP loss after training. If two unimodal models naturally share a similar latent geometry, a simple linear transformation is all it takes to align them.
Figure 1. CLIP Loss minima vs CKA for different encoder pairs on a toy image, caption pair dataset. We plot the CLIP loss after 500 iterations vs CKA for different image, text encoders and find that a negative correlation exists between CKA and ease of alignment.
  • Preserving Unimodal Superpowers: Because the encoders remain frozen, they don't lose the specialized capabilities they were originally optimized for. DINOv2 retains its pixel-level awareness, leading to superior downstream segmentation performance without any fine-grained alignment training. Similarly, text encoders retain their ability to process long paragraphs.
  • Quality Over Quantity: A carefully balanced, concept-dense dataset of 20 million pairs yielded better alignment results than scaling up to massive volumes of raw, noisy data.

Key Results

  • ImageNet Performance: The best model configuration (DINOv2-Large + All-RoBERTa-Large) achieved 76.3% zero-shot accuracy on ImageNet, outperforming OpenAI's CLIP-ViT-L (75.3%) and LAION-CLIP (72.7%).
  • Resource Efficiency: This performance was unlocked using only 400 GPU hours on an A100, representing a 65-fold reduction in compute and a 20-fold reduction in dataset size compared to training from scratch.
  • Zero-Shot Segmentation: On Pascal VOC, the framework achieved a Mean IoU of 31.37, significantly outperforming OpenAI CLIP (23.46), proving that DINOv2's local spatial features remained perfectly intact.
  • Breaking the Token Barrier: Unlike CLIP, which fails beyond 77 tokens, the aligned model showed consistent retrieval accuracy improvements when extended to 200–300 tokens, successfully inheriting the text encoder's long-context capabilities.
Figure 5. Retrieval performance comparison between DINOv2- ARL encoder pair and OpenAI CLIP as the maximum token length increases. The vertical green line indicates the standard CLIP to- ken limit of 77.

Limitations and Future Work

While the alignment phase is incredibly cheap, the framework inherently relies on the prior existence of strong unimodal encoders and does not factor in their initial pre-training costs. Additionally, the model slightly underperformed the CLIP baseline on fine-grained subcrop-caption matching tasks, indicating that simple MLP projectors might struggle to resolve highly intricate, sub-image part relationships.

Moving forward, the authors suggest exploring fine-grained alignment losses (like SPARC) within projector-only setups and extending this flexible alignment strategy to other modalities like audio or 3D data.

Summary updated

BibTeX
@inproceedings{maniparambil2025harnessing,
  author = {Mayug Maniparambil and Raiymbek Akshulakov and Yasser Abdelaziz Dahou Djilali and Sanath Narayan and Ankit Singh and Noel E. O'Connor},
  title = {{Harnessing Frozen Unimodal Encoders for Flexible Multimodal Alignment}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.02778},
}
Figure