FLAME: Frozen Large Language Models Enable Data-Efficient Language-Image Pre-training

Anjia Cao, Xing Wei, Zhiheng Ma

Abstract

Contrastive Language-Image Pre-training (CLIP) has become a cornerstone of modern computer vision, yet it remains limited by short text contexts and extreme data requirements. We present FLAME (Frozen Large lAnguage Models Enable data-efficient language-image pre-training), a framework that leverages frozen Large Language Models (LLMs) as text encoders. By employing multifaceted prompt distillation and an efficient attention mechanism, FLAME achieves state-of-the-art performance in multilingual and long-context tasks while significantly reducing the need for massive datasets.

Introduction

Standard CLIP models face two primary bottlenecks: constrained model capacity (typically a 77-token limit) and high data inefficiency, often requiring billions of image-text pairs for convergence. These limitations hinder the model's ability to process rich, long-form descriptions and adapt to low-resource or multilingual scenarios.

Comparison of FLAME with existing long-context CLIP methods.

FLAME addresses these challenges by utilizing the pre-existing, vast knowledge within frozen LLMs. Unlike previous methods that attempt to extend CLIP's sequence length or fine-tune encoders on noisy data, FLAME preserves the LLM's original weights to maintain superior reasoning and cross-lingual capabilities.

Methods

The FLAME framework is built upon three core technical pillars designed to extract and align rich semantic information from long captions.

Multifaceted Prompt Distillation

Rather than extracting a single global embedding, FLAME uses a set of $K$ prompts to distill different semantic "facets" from a caption. These prompts target specific layers of understanding: Entity Level (objects), Interaction Level (actions/events), and Scene Level (atmosphere/emotion).

The FLAME training pipeline, illustrating multifaceted prompt distillation and contrastive alignment.

This hierarchical decomposition allows the model to align visual features with specific semantic components, mirroring human perception of complex scenes.

Facet-Decoupled Attention (FDA)

To avoid the computational overhead of running the LLM $K$ times per caption, FLAME introduces Facet-Decoupled Attention. By using a shared prefix strategy and a specialized attention mask, the model computes all $K$ multifaceted embeddings in a single forward pass, achieving a 3.6x speedup over naive implementations.

Offline Embedding Strategy

Because the LLM remains frozen, text embeddings can be pre-computed and cached. This strategy eliminates the need for expensive LLM forward passes during contrastive training, ensuring that FLAME's training speed and memory efficiency are comparable to standard CLIP models.

Experimental Results

FLAME was evaluated across a diverse set of benchmarks, demonstrating significant gains in efficiency and performance.

  • Data Efficiency: When trained on the CC3M dataset (3 million pairs), FLAME outperformed previous state-of-the-art models by 4.9% in ImageNet zero-shot top-1 accuracy.
  • Long-Context Mastery: On the Urban-1k dataset, FLAME achieved an 87.9% text-to-image recall@1, representing a 34.6% improvement over standard CLIP models trained on the much larger WIT-400M dataset.
  • Zero-shot Multilingualism: Despite being trained only on English pairs, FLAME's frozen LLM backbone enabled it to surpass the multilingual-trained mSigLIP by 14.6% on the Crossmodal-3600 benchmark.

Conclusion

FLAME demonstrates that frozen LLMs are powerful, "secret" multilingual encoders that can revolutionize vision-language pre-training. By shifting the focus from scaling data to leveraging pre-existing linguistic knowledge, FLAME provides a path toward more efficient and interpretable multimodal models. Future work will explore scaling this paradigm to video-language tasks where long-context understanding is paramount.

Summary updated

BibTeX
@inproceedings{cao2025flame,
  author = {Anjia Cao and Xing Wei and Zhiheng Ma},
  title = {{FLAME: Frozen Large Language Models Enable Data-Efficient Language-Image Pre-training}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.00386},
}
Figure