ProCLIP: Progressive Vision-Language Alignment via LLM-based Embedder
Organizations: SAIS & SCS, Shanghai Jiao Tong University · Shanghai Innovation Institute · DeepGlint · Fudan University ·
Abstract
The original CLIP text encoder is limited by a maximum input length of 77 tokens, which hampers its ability to effectively process long texts and perform fine-grained semantic understanding. In addition, the CLIP text encoder lacks support for multilingual inputs. All these limitations significantly restrict its applicability across a broader range of tasks. Recent studies have attempted to replace the CLIP text encoder with an LLM-based embedder to enhance its ability in processing long texts, multilingual understanding, and fine-grained semantic comprehension. However, because the representation spaces of LLMs and the vision-language space of CLIP are pretrained independently without alignment priors, direct alignment using contrastive learning can disrupt the intrinsic vision-language alignment in the CLIP image encoder, leading to an underutilization of the knowledge acquired during pre-training. To address this challenge, we propose ProCLIP, a curriculum learning-based progressive vision-language alignment framework to effectively align the CLIP image encoder with an LLM-based embedder. Specifically, ProCLIP first distills knowledge from CLIP's text encoder into the LLM-based embedder to leverage CLIP's rich pretrained knowledge while establishing initial alignment between the LLM embedder and CLIP image encoder. Subsequently, ProCLIP further aligns the CLIP image encoder with the LLM-based embedder through image-text contrastive tuning, employing self-distillation regularization to avoid overfitting. To achieve a more effective alignment, instance semantic alignment loss and embedding structure alignment loss are employed during representation inheritance and contrastive tuning. The Code is available at https://github.com/VisionXLab/ProCLIP.
Figures & tables
| Method | #Data | Flickr30k | COCO | ShareGPT4V | Urban-1k | DOCCI | DCI | Avg. | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| I2T | T2I | I2T | T2I | I2T | T2I | I2T | T2I | I2T | T2I | I2T | T2I | I2T | T2I | ||
| Model Architecture: CLIP ViT-B/32 | |||||||||||||||
| LLM2CLIP | 3M | 83.5 | 70.1 | 55.6 | 41.1 | 94.2 | 93.4 | 78.2 | 84.2 | 76.2 | 77.1 | 62.2 | 64.4 | 75.0 | 71.7 |
| ProCLIP | 3M | 86.0 | 73.5 | 57.8 | 43.5 | 94.4 | 92.6 | 80.8 | 85.3 | 78.1 | 79.5 | 65.7 | 68.3 | 77.1( +2.1 ) | 73.8( +2.1 ) |
| LLM2CLIP | 15M | 86.2 | 72.2 | 58.5 | 43.2 | 95.3 | 94.2 | 80.6 | 85.3 | 79.2 | 80.7 | 64.3 | 67.6 | 77.4 | 73.9 |
| ProCLIP | 15M | 86.6 | 72.6 | 59.0 | 43.5 | 94.5 | 93.9 | 82.2 | 85.3 | 78.4 | 80.6 | 67.1 | 69.2 | 78.0( +0.6 ) | 74.2( +0.3 ) |
| Method | #Data | Food101 | CIFAR10 | CIFAR100 | SUN397 | Cars | Aircraft | DTD | Pets | Caltech101 | Flowers | ImageNet | Avg. |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Model Architecture: CLIP ViT-B/32 | |||||||||||||
| LLM2CLIP | 3M | 49.6 | 89.2 | 61.5 | 60.3 | 11.5 | 8.6 | 47.8 | 38.0 | 79.0 | 22.6 | 41.0 | 46.3 |
| ProCLIP | 3M | 64.5 | 90.7 | 65.8 | 65.0 | 21.2 | 11.6 | 52.0 | 51.7 | 83.3 | 30.8 | 47.9 | 53.1( +6.8 ) |
| LLM2CLIP | 15M | 57.2 | 88.3 | 61.4 | 61.3 | 19.6 | 8.4 | 50.6 | 42.3 | 80.7 | 23.5 | 43.3 | 48.8 |
| ProCLIP | 15M | 74.9 | 90.0 | 66.5 | 65.1 | 39.6 | 13.9 | 53.7 | 68.5 | 86.7 | 35.5 | 53.3 | 58.9( +10.1 ) |
| CLIP | 30M | 54.8 | 90.0 | 67.1 | 62.0 | 13.0 | 3.6 | 27.6 | 49.4 | 83.8 | 41.4 | 45.6 | 48.9 |
| Method | SEED-Bench (image) | GQA | VizWiz | PoPE | TextVQA | MMBench | VQAv2 |
|---|---|---|---|---|---|---|---|
| CLIP | 65.3 | 62.0 | 44.0 | 85.7 | 54.2 | 65.5 | 77.4 |
| ProCLIP (ViT-L-30M) | 66.4 | 62.3 | 44.7 | 85.9 | 54.5 | 65.0 | 78.1 |
| Adapter | IN-1k | I2T Avg. | T2I Avg. |
|---|---|---|---|
| MLP | 62.5 | 83.0 | 80.5 |
| GLU | 61.8 | 82.6 | 80.6 |
| Transformer | 61.6 | 82.5 | 80.6 |
Appendix figures & tables13 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | Training Data | Training Method | Long Text | Multilingual | Fine-grained | Zero-shot Recognition |
|---|---|---|---|---|---|---|
| CLIP | Large-scale | Pre-train | Limited | Limited | Moderate | Strong |
| Long-CLIP | Small-scale | Post-train | ✓ | Limited | Moderate | Strong |
| FG-CLIP | Large-scale | Continue Pre-train | Limited | Limited | ✓ | Strong |
| LLM2CLIP | Small-scale | Post-train | ✓ | ✓ | ✓ | Moderate |
| ProCLIP | Small-scale | Post-train | ✓ | ✓ | ✓ | Strong |
| Hyperparameters of stage1 | |
|---|---|
| Batch size | 1024 ( ) |
| Optimizer | AdamW |
| Weight decay | 0.05 |
| Adam | (0.9,0.98) |
| Adam | 1e-6 |
| Learning rate | 1e-5 |
| Dataset | Classes | Train size | Test size | Evaluation metric |
|---|---|---|---|---|
| Food101 | 101 | 75,750 | 25,250 | accuracy |
| CIFAR10 | 10 | 50,000 | 10,000 | accuracy |
| CIFAR100 | 100 | 50,000 | 10,000 | accuracy |
| SUN397 | 397 | 19,850 | 19,850 | accuracy |
| Cars | 196 | 8,144 | 8,041 | accuracy |
| Aircraft | 100 | 6,667 | 3,333 | mean per class |
| Dataset | Test Images | Evaluation Protocol | Text type |
|---|---|---|---|
| MSCOCO | 5,000 | Image-to-Text & Text-to-Image | short |
| Flickr30k | 1,000 | Image-to-Text & Text-to-Image | short |
| ShareGPT4V | 1000 | Image-to-Text & Text-to-Image | long |
| Urban-1k | 1000 | Image-to-Text & Text-to-Image | long |
| DOCCI | 5000 | Image-to-Text & Text-to-Image | long |
| DCI | 7805 | Image-to-Text & Text-to-Image | long |
| REPLACE | SWAP | ADD | |||||
| Object | Attribute | Relation | Object | Attribute | Object | Attribute | |
| # negative captions | 1652 | 788 | 1406 | 246 | 666 | 2062 | 692 |
| CIFAR 10 & CIFAR 100 | |||
| a photo of a {label}. | a blurry photo of a {label}. | a black and white photo of a {label}. | a low contrast photo of a {label}. |
| a high contrast photo of a {label}. | a bad photo of a {label}. | a good photo of a {label}. | a photo of a small {label}. |
| a photo of a big {label}. | a photo of the {label}. | a blurry photo of the {label}. | a black and white photo of the {label}. |
| a low contrast photo of the {label}. | a high contrast photo of the {label}. | a bad photo of the {label}. | a good photo of the {label}. |
| a photo of the small {label}. | a photo of the big {label}. | ||
| Food101 | |||
| Method | #Data | S.C. Replace | S.C. Swap | S.C. Add | XM3600 I2T | XM3600 T2T | MMVP |
|---|---|---|---|---|---|---|---|
| Model Architecture: CLIP ViT-B/32 | |||||||
| CLIP | 400M | 80.2 | 64.0 | 72.7 | - | - | 15.6 |
| LLM2CLIP | 3M | 87.3 | 72.5 | 85.1 | 40.3 | 39.9 | 21.5 |
| ProCLIP | 3M | 88.0 | 72.9 | 87.5 | 43.0 | 43.8 | 25.9 |
| LLM2CLIP | 15M | 88.4 | 74.7 | 86.1 | 42.1 | 40.6 | 25.9 |
| ProCLIP | 15M | 89.0 | 75.0 | 87.9 | 43.7 | 44.8 | 24.4 |
| Method | #Data | Food101 | CIFAR10 | CIFAR100 | SUN397 | Cars | Aircraft | DTD | Pets | Caltech101 | Flowers | ImageNet | Avg. |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Model Architecture: CLIP ViT-B/32 | |||||||||||||
| CLIP | 400M | 88.6 | 95.1 | 80.1 | 73.4 | 80.8 | 44.9 | 76.3 | 89.3 | 92.7 | 94.7 | 74.3 | 80.9 |
| LLM2CLIP | 3M | 87.9 | 95.7 | 83.1 | 74.1 | 78.0 | 44.9 | 77.7 | 90.4 | 92.4 | 94.6 | 74.2 | 81.2 |
| ProCLIP | 3M | 88.4 | 95.9 | 83.1 | 74.3 | 79.5 | 44.1 | 78.2 | 90.3 | 92.6 | 95.0 | 74.4 | 81.4 |
| LLM2CLIP | 15M | 87.7 | 95.7 | 82.7 | 74.0 | 77.5 | 44.2 | 78.3 | 90.2 | 92.5 | 94.4 | 74.2 | 81.0 |
| ProCLIP | 15M | 88.7 | 95.9 | 82.8 | 74.8 | 80.8 | 44.9 | 78.1 | 90.2 | 92.8 | 95.1 | 74.4 | 81.7 |
| Method | #Data | Adapter | IN-1k | I2T Avg. | T2I Avg. |
| CLIP | 400M | - | 74.5 | 66.9 | 55.5 |
| ProCLIP | 1M | linear | 61.8 | 81.9 | 79.7 |
| LLM2CLIP | 3M | linear | 52.8 | 82.0 | 79.1 |
| ProCLIP | 3M | linear | 62.5 | 83.0 | 80.5 |
| LLM2CLIP | 15M | linear | 54.0 | 83.2 | 80.1 |
| ProCLIP | 15M | linear | 66.0 | 84.3 | 81.2 |
| Method | #Data | Robustness | ||||
|---|---|---|---|---|---|---|
| IN-V2 | IN-A | IN-O | IN-R | IN-S | ||
| Model Architecture: CLIP ViT-B/32 | ||||||
| CLIP | 400M | 55.9 | 31.6 | 47.8 | 69.3 | 42.3 |
| LLM2CLIP | 3M | 37.0 | 18.8 | 38.0 | 54.0 | 30.7 |
| ProCLIP | 3M | 43.6 | 25.5 | 40.6 | 62.9 | 35.3 |
| LLM2CLIP | 15M | 38.8 | 20.1 | 40.5 | 58.3 | 33.4 |
| Method | #Data | ADE20K | COCO-Stuff164k | VOC20 |
|---|---|---|---|---|
| Model Architecture: CLIP ViT-L/14 | ||||
| CLIP | 400M | 1.4 | 2.8 | 16.3 |
| LLM2CLIP | 30M | 2.4 | 3.0 | 17.5 |
| ProCLIP | 30M | 3.8 | 4.8 | 18.7 |
| Method | Data | VRAM Usage (GB) | Training Hours |
|---|---|---|---|
| Model Architecture: CLIP ViT-L/14 | |||
| LLM2CLIP | 3M | 32.6 | 1.2 |
| ProCLIP | 3M | 43.2 | 1.7 |
Vision-Language Alignment
Vision-language alignment connects visual and textual representations so models can match, interpret, and ground language in images and video.
See all 361 papers