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

Chau Truong, Hieu Ta Quang, Zhenzhen Liu, Dung D. LearXiv 2026

TL;DR

Standard vision-language models like CLIP excel at matching images to short phrases, yet stumble when handed rich, multi-sentence paragraphs. While recent work fixes this using computationally heavy external segmentation models, MulCLIP achieves fine-grained, long-context understanding entirely end-to-end. By carefully designing compatible training signals at the paragraph, sentence, and word levels, MulCLIP captures intricate visual details without forgetting how to read short captions.

What Problem Does This Paper Address?

Vision-language models like CLIP learn by playing a massive game of "match the image to its caption." Because web captions are typically short and generic ("a dog on a rug"), CLIP compresses an entire image and text into single global vectors, missing fine-grained attributes, spatial relationships, and complex compositions.

Researchers have tried extending CLIP to handle longer, detailed descriptions, but hit a steep trade-off:

  1. Heavy external machinery: Methods like GOAL use external segmentation models (like SAM) to crop image regions and match them to individual sentences. It works well, but adds substantial compute and deployment complexity.
  2. Catastrophic interference: Other methods (like FineLIP) align visual and text tokens directly, but focus solely on long captions—causing their performance on short phrases to plummet. Worse, as the authors discover, if you naively bolt a sentence-level training objective onto these token-matching architectures, the objectives clash in the shared representation space, dragging down long-caption performance!
Figure 1: The major challenge in unified long-context learning. Subcaption-patched self super- vision cannot be easily incorporated into existing FineLIP training - This provides only marginal improvements in short-text understanding performance, while drastically degrading long-text under- standing.

How do we teach CLIP to read entire paragraphs, ground specific sentences, and pinpoint individual words—all without external region-proposal crutches or conflicting gradients?

Methods

MulCLIP solves this by decoupling how the model learns across three distinct levels of granularity, ensuring the training signals complement rather than fight each other.

First, the authors adopt a standard positional embedding interpolation (from LongCLIP) to stretch CLIP's text limit beyond 77 tokens. Next, because dense image patches and long texts contain redundant information, they pass local image patches and word tokens through a Local Token Calibration module—a lightweight network that condenses the sequence length by half into cleaner, semantic tokens.

On top of these calibrated features, MulCLIP optimizes three harmonious objectives:

  • Global Alignment (Paragraph & Summary level): Standard batch-wise contrastive loss matching the global image representation to both the full long caption and a short summary caption, preserving short-text skills.
  • Subcaption–Aggregated Patch Alignment (SAP - Sentence level): Long captions are split into individual sentences. Each sentence queries the calibrated image patches via dot-product attention to gather its relevant visual evidence. These sentence-region pairs are trained using batch-wise contrastive learning (comparing against other images/sentences in the batch).
  • Word–Patch Reconstruction (WPR - Word level): Calibrated image patches use attention to reconstruct themselves using the most relevant text tokens, and vice-versa. Crucially, this is trained via within-sample contrastive learning—tokens only compete against other tokens inside the exact same image-caption pair.
Word-Patch Reconstruction uses bidirectional attention to reconstruct visual patches from text tokens and vice-versa within a single sample.

Datasets

No new datasets are introduced; instead, the authors evaluate across established dense and short-caption benchmarks:

  • Fine-tuning & In-domain Evaluation: DOCCI (9,647 train / 5,100 test) and DCI (split into 5,805 train / 2,000 test), both featuring human-annotated, multi-sentence descriptions of complex scenes.
  • Zero-shot Long-text Evaluation: Urban1K (detailed urban scene descriptions), plus cross-evaluation between DOCCI and DCI.
  • Zero-shot Short-text Evaluation: COCO2017 validation set and Flickr30k.

Key Insights and Ideas

  • Match the contrastive scope to the semantic scope: Why did previous multi-level attempts clash? Sentences often describe multiple overlapping objects across an image, making batch-wise comparison ideal. Words, however, point to crisp, localized entities ("jacket", "gray cat"). Forcing words into batch-wise late-interaction clashes with sentence grounding. Isolating word-patch learning within a single sample (via WPR) resolves the conflict completely.
  • Self-learned grounding beats external segmentation on subtle cues: Because MulCLIP learns end-to-end, it isn't bottlenecked by what an external object detector notices. In qualitative tests, MulCLIP's attention maps cleanly highlight a camouflaged lizard on a rock that SAM-assisted GOAL completely misses.
Figure 4: Visualization of ablation study designs and their formulations. Starting from the global- only setting Lglobal, adding WPR and SAP improves average long-caption retrieval performance. Replacing the token reconstruction objective with CLIM yields inferior performance, suggesting incompatibility with our subcaption grounding design.

Key Results

Across ViT-B/16 and ViT-L/14 backbones, MulCLIP consistently outperforms proposal-free FineLIP and matches or beats proposal-heavy GOAL:

  • In-Domain Long Retrieval: Trained and tested on DOCCI, MulCLIP achieves the top Recall@1 (82.2% Text-to-Image on ViT-B/16; 86.73% on ViT-L/14), beating GOAL by ~1.8 to 2.3 percentage points on average across retrieval directions.
  • Zero-Shot Long Generalization: Fine-tuned on DOCCI and tested zero-shot on DCI, MulCLIP jumps ahead of GOAL on Text-to-Image R@1 by 4.95 percentage points (69.08% vs. 64.13% on ViT-B/16) and 4.00 points on ViT-L/14.
  • Preserving Short-Text Skills: Unlike FineLIP—which collapses on Flickr30k Text-to-Image R@1 from CLIP's 63.20% baseline down to 29.93%—MulCLIP actually improves over zero-shot CLIP, hitting 67.44% (ViT-B/16, DOCCI-trained) and staying neck-and-neck with GOAL.
  • Ablation Proof: Swapping MulCLIP's within-sample WPR for a batch-wise late interaction module (CLIM) causes average long-text R@1 to drop from 76.67% down to 71.60%, cementing the objective-compatibility thesis.

Limitations and Future Work

MulCLIP currently relies on curated datasets (like DOCCI and DCI) where long captions naturally break down into clean, descriptive sentences. The authors note that robustness to noisy, unstructured web text remains untested. Adapting MulCLIP to handle messier captions could unlock its use in massive-scale vision-language pre-training from scratch.

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 https://github.com/truongchau2602/MulCLIP.
BibTeX
@misc{truong2026mulclip,
  author = {Chau Truong 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}},
  year = {2026},
  eprint = {2611.34083},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.34083},
}
Figure