MulCLIP: A Multi-level Alignment Framework for Enhancing Fine-grained Long-context CLIP
Organizations: Vinmotion, Hanoi, Vietnam · VinUniversity, Hanoi, Vietnam · Cornell University
Abstract
Vision-language models such as CLIP excel at image-text alignment but struggle with long, detailed descriptions due to training on short captions. Recent methods address this limitation using region proposals to align visual regions with sentences, but at substantial deployment cost. We present MulCLIP, an end-to-end multi-level alignment framework that directly exploits natural long-text structure without region proposals. Instead of simply stacking objectives, MulCLIP aligns different textual granularities through compatible training signals: global contrastive alignment for long captions and short summaries, Word-Patch Reconstruction over locally calibrated features for within-sample word-patch semantics, and Subcaption-Aggregated Patch alignment for context-rich subcaption grounding. Experiments on benchmarks spanning varying caption lengths show consistent gains, and ablations confirm that the proposed objectives are complementary and jointly improve the overall framework. Code will be released at https://github.com/truongchau2602/MulCLIP.
Figures & tables
| Method | COCO | Flickr30k | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Text-to-Image | Image-to-Text | Text-to-Image | Image-to-Text | Avg@1 | ||||||
| R@1 | R@5 | R@1 | R@5 | R@1 | R@5 | R@1 | R@5 | |||
| ViT-B/16 | FG-CLIP | 43.75 | 69.46 | 62.48 | 84.20 | 74.38 | 92.10 | 89.50 | 99.00 | 67.53 |
| Zeroshot CLIP | 33.95 | 59.46 | 54.14 | 77.74 | 63.20 | 86.30 | 82.90 | 97.20 | 58.55 | |
| FineLIP DOCCI FT | 36.30 | 61.77 | 56.68 | 80.14 | 29.93 | 53.63 | 49.11 | 72.71 | 43.00 | |
| GOAL DOCCI FT | 37.28 | 62.96 | 56.84 | 80.20 | 66.92 | 88.56 | 83.20 | 96.70 | 61.06 | |
| Method | Long caption understanding | Short caption understanding | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Urban-1k | DCI | DOCCI | Avg (long) | COCO | Flickr | Avg (short) | ||||||
| T2I | I2T | T2I | I2T | T2I | I2T | T2I | I2T | T2I | I2T | |||
| Zeroshot CLIP | – | – | – | – | – | – | – | 33.95 | 54.14 | 63.20 | 82.90 | 58.55 |
| Global only | 71.2 | 80.9 | 65.0 | 63.9 | 81.1 | 79.9 | 73.67 | 38.03 | 54.98 | 66.80 | 84.00 | 60.95 |
| W/o SAP | 74.4 | 80.1 | 65.4 | 64.1 | 80.6 | 78.9 | 73.92 | 38.02 | 55.74 | 67.68 | 83.90 | 61.34 |
| W/o WPR | 73.1 | 80.0 | 66.4 | 65.6 | 82.9 | 81.6 | 74.93 | 37.12 | 54.88 | 65.74 | 83.00 | 60.19 |
Appendix figures & tables19 assets
Supplementary material from the paper’s appendix.
Appendix
| Setting | Value |
|---|---|
| Backbones | Pretrained ViT-B/16, ViT-L/14 |
| Text context length | 248 |
| Optimizer | AdamW |
| Epochs | 8 |
| Backbone learning rate | |
| Calibration-module learning rate |
| Method | Top-1 Accuracy (%) | |||||
|---|---|---|---|---|---|---|
| CIFAR-10 | CIFAR-100 | ImageNet-O | ImageNet-V2 | Avg | ||
| ViT-B/16 | GOAL | 84.95 | 55.41 | 42.15 | 49.85 | 58.09 |
| W/o SAP | 81.36 | 52.89 | 43.00 | 50.94 | 57.05 | |
| W/o WPR | 84.98 | 55.07 | 41.65 | 51.82 | 58.38 | |
| MulCLIP | 86.33 | 60.34 | 43.80 | 52.13 | 60.65 | |
| Dataset | Method | Text-to-Image | Image-to-Text | ||
|---|---|---|---|---|---|
| R@1 | R@5 | R@1 | R@5 | ||
| DOCCI | BLIP-2 + CLIP | 23.45 | 54.96 | 26.16 | 57.53 |
| BLIP-2 + GOAL | 64.63 | 90.02 | 61.86 | 88.47 | |
| BLIP-2 + MulCLIP (ours) | 77.55 | 95.65 | 75.75 | 95.37 | |
| DCI | BLIP-2 + CLIP | 22.81 | 52.33 | 20.11 | 50.28 |
| BLIP-2 + GOAL | 50.88 | 77.49 | 50.38 | 77.49 | |
| Method | DCI | DOCCI | Urban1K | Flickr30K | COCO | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| T I | I T | T I | I T | T I | I T | T I | I T | T I | I T | |
| Zero-shot | 75.64 | 75.64 | 84.65 | 84.14 | 93.40 | 94.00 | 75.48 | 90.90 | 45.44 | 64.14 |
| Global FT | 76.34 | 75.49 | 78.76 | 77.33 | 80.90 | 85.40 | 68.02 | 83.90 | 39.34 | 56.98 |
| GOAL FT | 79.69 | 78.44 | 80.39 | 79.92 | 85.50 | 89.11 | 67.64 | 87.29 | 38.77 | 60.32 |
| MulCLIP FT | 80.89 | 79.29 | 82.00 | 82.59 | 89.30 | 90.60 | 73.54 | 88.40 | 43.11 | 61.62 |
| Method | Params (M) | Added params (M) | Epochs | Train (min) | Time (min/epoch) | GPU hours | Memory (GiB) | Energy (Wh) |
|---|---|---|---|---|---|---|---|---|
| GOAL | 149.708 | +0.000 | 10 | 41.93 | 4.19 | 0.699 | 15.79 | 100.79 |
| FineLIP | 149.950 | +0.242 | 8 | 28.42 | 3.55 | 0.474 | 6.73 | 67.57 |
| MulCLIP | 150.476 | +0.768 | 8 | 23.87 | 2.98 | 0.398 | 12.77 | 56.15 |
| Method | hard | medium | easy | trivial | Avg |
|---|---|---|---|---|---|
| FineLIP | 18.17 | 38.68 | 41.96 | 73.79 | 43.15 |
| GOAL | 18.65 | 39.66 | 44.50 | 72.78 | 43.90 |
| MulCLIP | 19.24 | 40.73 | 47.57 | 68.89 | 44.11 |
| W/o SAP | 16.56 | 37.84 | 43.03 | 65.84 | 40.82 |
| W/o WPR | 17.38 | 38.51 | 45.42 | 68.41 | 42.43 |
| Method | RefCOCOg Val | RefCOCOg Test | RefCOCO+ Val | RefCOCO+ Test A | RefCOCO+ Test B | RefCOCO Val | RefCOCO Test A | RefCOCO Test B |
|---|---|---|---|---|---|---|---|---|
| GOAL | 63.26 | 63.35 | 52.88 | 55.22 | 50.38 | 47.44 | 49.37 | 45.95 |
| MulCLIP | 65.10 | 64.16 | 56.14 | 61.58 | 52.65 | 50.76 | 54.73 | 46.40 |
| Gain | +1.84 | +0.81 | +3.26 | +6.36 | +2.27 | +3.32 | +5.36 | +0.45 |
| Method | Urban-1K | DCI | DOCCI | COCO | Avg | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| T I | I T | T I | I T | T I | I T | T I | I T | |||||||||||
| R@1 | R@5 | R@1 | R@5 | R@1 | R@5 | R@1 | R@5 | R@1 | R@5 | R@1 | R@5 | R@1 | R@5 | R@1 | R@5 | Avg | ||
| ViT-B/16 | MulCLIP w/ Text-recon | 73.80 | 92.00 | 81.10 | 95.40 | 65.38 | 83.54 | 65.88 | 84.59 | 82.27 | 97.25 | 80.94 | 96.92 | 37.52 | 63.23 | 55.06 | 78.28 | 77.07 |
| MulCLIP w/ Image-recon | 73.20 | 91.60 | 80.80 | 94.90 | 67.08 | 84.89 | 65.73 | 84.79 | 82.71 | 97.45 | 80.78 | 96.92 | 37.31 | 63.28 | 54.52 | 78.16 | 77.13 | |
| MulCLIP w/o Reconstruction | 73.90 | 92.30 | 80.60 | 95.60 | 66.88 | 83.84 | 66.68 | 85.04 | 82.73 | 97.00 | 80.96 | 96.90 | 37.19 | 62.78 | 54.26 | 78.14 | 77.18 | |
| MulCLIP (ours) | 77.30 | 92.60 | 84.00 | 96.10 | 69.10 | 86.00 | 67.10 | 84.20 | 82.20 | 97.10 | 80.30 | 96.90 | 37.58 | 63.26 | 54.76 | 78.64 | 77.95 | |
| Text-to-Image R@1 (%) | Image-to-Text R@1 (%) | Avg | |||||||||
| DOCCI | DCI | Urban1K | Flickr30K | COCO | DOCCI | DCI | Urban1K | Flickr30K | COCO | ||
| 0.2 | 82.2 | 66.9 | 72.6 | 67.1 | 37.4 | 80.3 | 64.1 | 82.0 | 84.4 | 55.1 | 69.21 |
| 0.6 | 82.6 | 67.3 | 74.0 | 66.8 | 37.6 | 80.7 | 66.1 | 81.9 | 82.2 | 54.8 | 69.40 |
| 0.8 | 82.2 | 66.3 | 72.2 | 66.7 | 37.5 | 80.7 | 65.2 | 82.0 | 81.4 | 54.8 | 68.90 |
| 1.0 | 82.2 | 69.1 | 77.3 | 67.4 | 37.7 | 80.3 | 67.1 | 84.0 | 81.9 | 54.8 | 70.18 |
| Max sentences | Text-to-Image R@1 (%) | Image-to-Text R@1 (%) | Avg | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| DOCCI | DCI | Urban1K | Flickr30K | COCO | DOCCI | DCI | Urban1K | Flickr30K | COCO | ||
| 5 | 82.9 | 66.4 | 76.2 | 65.6 | 37.1 | 81.1 | 65.5 | 81.2 | 81.5 | 54.2 | 69.17 |
| 10 | 82.3 | 65.8 | 74.8 | 66.3 | 37.3 | 81.4 | 66.7 | 82.1 | 81.9 | 54.5 | 69.31 |
| 15 (default) | 82.6 | 67.5 | 75.3 | 66.1 | 36.9 | 80.9 | 66.5 | 81.1 | 82.3 | 54.3 | 69.35 |
| 20 | 82.2 | 69.0 | 77.5 | 67.4 | 37.9 | 80.3 | 67.1 | 83.9 | 81.9 | 53.8 | 70.10 |
| Method | DCI | DOCCI | Urban1K | Avg | |||
|---|---|---|---|---|---|---|---|
| T I | I T | T I | I T | T I | I T | ||
| MulCLIP (full) | 69.1 | 67.1 | 82.2 | 80.3 | 77.3 | 84.0 | 76.67 |
| No Global | 33.47 | 28.86 | 40.25 | 29.41 | 25.00 | 36.30 | 32.22 |
| Method | Urban1K | DCI | DOCCI | Avg | |||||
|---|---|---|---|---|---|---|---|---|---|
| T I | I T | T I | I T | T I | I T | ||||
| ViT-B/16 | FineLIP (ver. 1, +Global) | 64.9 | 71.4 | 56.4 | 44.8 | 65.6 | 60.0 | 60.5 | |
| FineLIP (ver. 2, +Global) | 64.9 | 74.4 | 56.2 | 44.7 | 65.5 | 59.7 | 60.9 | ||
| Ours — W/o SAP | 74.4 | 80.1 | 65.4 | 64.1 | 80.6 | 78.9 | 73.9 | ||
| ViT-L/14 | FineLIP (ver. 1, +Global) | 68.6 | 73.2 | 59.6 | 43.3 | 72.9 | 67.0 | 64.1 | |
| FineLIP (ver. 2, +Global) | 65.5 | 73.9 | 57.7 | 48.0 | 72.4 | 67.0 | 64.1 | ||
| Image query | MulCLIP | GOAL |
|---|---|---|
| This image depicts a vibrant urban street corner on a clear day with blue skies. A person in a blue checkered shirt and casual pants crosses the road at a pedestrian crosswalk, heading towards a series of red brick buildings with rounded and straight corners. The architecture suggests a charming, historic neighborhood with storefronts on the ground level, including one with a blue awning. There’s a green streetlight visible and a black lamp post, adding to the quaint ambiance. Vehicles are stopped at the intersection, and the scene includes an overhanging metal structure that could be part of a bus stop. The overall atmosphere is that of a peaceful, sunny day in a bustling city neighborhood. | The image depicts an urban street scene during daytime. In the foreground, two individuals with their backs to the camera are walking, one with a long ponytail and a white shirt, the other with a patterned blouse, and a red backpack . A silver car is visible on the left side of the road, which is marked with multiple round blue traffic signs, indicating no waiting or no stopping restrictions. Across the street, there’s a red-bricked five-story building with white stone trimmings and arched windows on the ground floor. The windows on the upper floors are regularly spaced, and the uppermost story appears to be an attic with smaller windows. The sky is clear, suggesting favorable weather conditions. | |
| The image shows an urban street scene under a clear blue sky. In the foreground, a black car is driving down the road, which is lined with electrical wires above. The architecture is a mix of multi-story brick buildings with visible signs of wear and faded paint, suggesting a historical urban area. The buildings vary in height, with some having flat facades and others featuring recessed windows and ornate detailing. The street appears to be relatively empty, with no pedestrians visible and minimal vehicular traffic. The structures’ color palette is predominantly red brick, with accents of tan and white on the secondary building elements. | The image captures a daytime scene on a city street named "Main Street," indicated by a street sign hanging above. Vehicles, including a red sedan in the foreground, are parked along one side of the street, while others, including white vans, are visible in motion . Pedestrians are present on the sidewalks, some standing and others seated beside buildings; a group congregates near an American flag. Utility poles, traffic signals, and signs, including one indicating a “Drug-Free School Zone,” dot the streetscape. Overhead, a concrete overpass spans the thoroughfare. The sky is slightly overcast, casting even lighting across the urban environment. | |
| This image captures an urban street scene with tall residential buildings lining one side and leafy trees displaying autumn colors. The scene includes a city bus in the center of the frame, showing the number 36 on its indicator, and various other vehicles such as cars and SUVs. The road features a dedicated bike lane on the right, demarcated by white lines and identified by painted bicycle symbols. The overcast sky and the presence of a streetlight that is turned on suggest that this is either early morning or late afternoon. The photo appears to be taken from the perspective of a pedestrian or cyclist at street level, focused on capturing the flow of urban traffic. | This image depicts an overcast day on an urban street lined with tall, modern office buildings. A blue public bus marked with the number 421 is at the forefront on the road, while a red bus can be seen farther down the street. There is a white car on the left and traffic lights are visible overhead, with a red light illuminated. The road has multiple lanes and a pedestrian zebra crossing in the foreground. There’s also a traffic sign indicating no left turn for motorcycles. Leafless trees suggest it may be winter or early spring. The overall scene appears to be calm with moderate traffic. | |
| This image captures a British urban scene, highlighted by a classic red double-decker bus on the right, displaying route number 30. The bus has yellow text and advertisements printed on its sides. On the left, a pedestrian wearing a green jacket and carrying a bag seems to be briskly walking on the sidewalk. There’s a yellow street sign indicating a diversion ahead. In the background, an ornate building towers with a clock at its apex under a clear blue sky. The street is flanked by various other buildings, likely a mix of residential and commercial structures, typical of a UK cityscape. | This image captures a bustling urban scene, likely in London, with a red double-decker bus dominating the foreground, bearing the signage ’Arriva’ and a route number 176 to Penge via Elephant & Castle and Forest Hill . A person at a pedestrian crossing is using a push-button signal post, while others wait by a bus stop shelter where someone points upwards. To the right, a classic red telephone box is in use by an individual. In the background, neoclassical architecture suggests a historical district, with a dome-topped building visible in the distance. The street is lined with cars and traditional black iron fencing, contributing to a distinctly British urban landscape. |
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 386 papers