MulCLIP: A Multi-level Alignment Framework for Enhancing Fine-grained Long-context CLIP

Chau Truong Vinh Hoang, Hieu Ta Quang, Zhenzhen Liu, Dung D. LeNeurIPS 2026

TL;DR

Vision-language models like CLIP are great at matching images with short, punchy captions, but they lose the plot when faced with dense, paragraph-long descriptions. MulCLIP teaches CLIP to understand fine-grained, long-context text without relying on clunky external object detectors or segmentation tools. By matching different scales of text—entire paragraphs, individual sentences, and single words—with corresponding visual scales using compatible mathematical objectives, MulCLIP gets a firm grip on visual details while keeping its original knack for short text intact.

What Problem Does This Paper Address?

Out of the box, CLIP is trained on short, generic web captions (capped at 77 tokens) using a single global summary vector for the image and text. Consequently, it struggles to ground fine-grained attributes, spatial relationships, and complex scenes described in long paragraphs.

Recent work has tried to fix this in two ways, each with a catch:

  1. External Region Proposals (e.g., GOAL): Using heavy segmentation models like SAM to crop image regions and match them to individual sentences. It works well, but adds substantial compute overhead and deployment complexity.
  2. Token-level Late Interaction (e.g., FineLIP): Matching refined visual patches and text tokens directly. However, training only on long captions degrades the model's ability to understand short phrases. Worse, if you try to naively bolt a sentence-level loss onto these existing token-matching setups, the objectives clash in the shared representation space—slightly helping short-text performance while tanking long-text understanding.
Naively adding sentence-level supervision (SAP) to existing late-interaction models degrades long-caption performance.

The core question is: How can we adapt CLIP to understand whole scenes, regional sentences, and localized words all at once, without external region-proposal crutches or conflicting training signals?

Methods

MulCLIP is an end-to-end fine-tuning framework that starts with standard positional embedding interpolation (borrowed from LongCLIP) to stretch CLIP's text window, and then splits alignment into three harmonious levels:

Figure 2: Multi-granularity alignment logic for long-context understanding. We apply batch-wise contrastive alignment at the global caption–image and subcaption–patch levels, and within-sample contrastive alignment at the word/phrase–patch level to learn localized correspondences.
  • 1. Global-level Alignment: Standard batch-wise contrastive learning (comparing across different image-text pairs in a batch) aligns the global image embedding with both the full long caption and a short summary caption, preserving short-text transfer.
  • 2. Local Token Calibration: Dense paragraphs and image grids contain lots of redundant tokens (like blank walls or filler words). Before doing fine-grained matching, MulCLIP passes local image patches and word tokens through lightweight aggregation networks—compressing the sequence length by half into cleaner, calibrated "semantic tokens."
  • 3. Novel Fine-Grained Objectives (WPR + SAP): Here is where MulCLIP decouples local learning so signals don't step on each other's toes:
  • Word–Patch Reconstruction (WPR): Uses bidirectional dot-product attention so each calibrated image patch reconstructs itself using the most relevant text tokens (and vice versa). Crucially, this uses a within-sample contrastive loss—comparing tokens only against other tokens inside the same image-text pair.
  • Subcaption–Aggregated Patch (SAP) Alignment: Splits the long paragraph into individual sentences (subcaptions). Each sentence uses attention to pool relevant calibrated visual patches into a custom regional representation, which is then trained via a batch-wise contrastive loss.
Figure 3: Overview of MulCLIP. Following the multi-granularity principle in Fig. 2, MulCLIP aligns images and long-form text through compatible objectives. It preserves global alignment with long captions and short summaries, refines local visual and textual tokens, learns word0patch correspondences via WPR with within-sample contrastive learning, and grounds subcaptions via SAP with batch-wise contrastive learning.

Datasets

No new benchmarks were introduced; instead, the authors use established dense-caption and standard retrieval datasets:

  • Training & Long-Text Evaluation: Fine-tuned separately on the training splits of DOCCI (9,647 human-annotated dense captions) and DCI (5,805 densely captioned images). Evaluated both in-domain and zero-shot across DOCCI, DCI, and Urban1K.
  • Short-Text Evaluation: Zero-shot evaluation on COCO2017 and Flickr30k validation sets to ensure short-caption comprehension hasn't eroded.

Key Insights and Ideas

  • Match the contrastive scope to the semantic unit: Why did previous multi-level attempts clash, while MulCLIP succeeds? Words usually point to a single, distinct object or attribute within an image—making within-sample contrast natural (e.g., "cat" vs. "floor" in the same photo). Sentences, however, describe broader facts that often share visual overlap with other sentences in the same paragraph. Forcing sentences in the same image to repel each other hurts; contrasting them across the batch works cleanly.
  • Late-interaction interference: In ablations, swapping MulCLIP's within-sample WPR out for a batch-wise Cross-Modal Late Interaction Module (CLIM) caused an immediate 4–5% average drop in retrieval performance when paired with subcaption grounding, proving that objective compatibility matters just as much as the data itself.
  • Proposal-free beats proposal-heavy on subtle cues: Because MulCLIP learns visual grounding organically via attention rather than relying on pre-cut SAM masks, it avoids segmentation blind spots—successfully attending to a camouflaged lizard on a rock that SAM-based GOAL completely missed.

Key Results

Tested on ViT-B/16 and ViT-L/14 backbones, MulCLIP consistently outperforms adaptation baselines (FineLIP and SAM-reliant GOAL):

  • In-Domain Long Retrieval: On DOCCI, MulCLIP improves average Recall@1 (R@1) over GOAL by nearly 2.5% across backbones (hitting 86.73% Text-to-Image R@1 on ViT-L/14).
  • Zero-Shot Long Generalization: Fine-tuned on DOCCI and tested zero-shot on DCI, MulCLIP beats GOAL on Text-to-Image R@1 by ~5% on ViT-B/16 (69.08% vs. 64.13%) and 4% on ViT-L/14 (72.93% vs. 68.93%). On Urban1k, it leads GOAL by roughly 2% across both backbones.
  • Preserving Short-Text Skills: Unlike FineLIP (which drops from CLIP's 63.20% to 29.93% T2I R@1 on Flickr30k after DOCCI fine-tuning), MulCLIP actually improves over zero-shot CLIP (reaching 67.44% on ViT-B/16) and stays toe-to-toe with GOAL.

Limitations and Future Work

MulCLIP currently relies on clean, well-structured, densely annotated datasets (like DOCCI) where splitting paragraphs into sentences yields meaningful subcaptions. On noisier datasets with weaker quality control (like DCI), GOAL's explicit segment-filtering still gives it slight edges in certain metrics. For future work, the authors aim to make MulCLIP robust to noisy, unstructured web captions so this multi-level alignment strategy can scale up to massive vision-language pretraining.

Summary updated

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 \url{https://github.com/truongchau2602/MulCLIP}.
BibTeX
@inproceedings{hoang2026mulclip,
  author = {Chau Truong Vinh Hoang and HIEU TA QUANG and Zhenzhen Liu and Dung D. Le},
  title = {{MulCLIP: A Multi-level Alignment Framework for Enhancing Fine-grained Long-context CLIP}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=qD0McGAhI2},
}
Figure