Learning Image-Text Matching with Optimal Partial Transport

Zhengxin Pan, Haishuai Wang, Fangyu Wu, Bailing Zhang, Jiajun Bu, Hongyang ChenarXiv 2026

TL;DR

The crOss-Modal sInkhorn maTching (OMIT) network frames fine-grained image-text retrieval as an Optimal Transport problem, utilizing efficient Sinkhorn iterations to compute semantic similarity. By introducing global visual and textual "dustbins," OMIT handles partial matching and successfully filters out redundant, noisy alignments, achieving state-of-the-art performance while remaining computationally efficient.

What Problem Does This Paper Address?

Image-text matching is a cornerstone of vision-language tasks, but finding the right balance between accuracy and speed remains a challenge. Early methods used global Visual Semantic Embeddings (VSE), compressing an entire image or caption into a single vector. While fast, VSE loses fine-grained details.

To capture finer details, researchers turned to Cross-Attention-based Methods (CAM) to match individual words to specific image regions. However, CAM suffers from "redundant alignments"—it attempts to force a match for every single word or region, even when they don't correspond (such as background objects or filler words). This introduces noise and incurs a heavy computational penalty during inference. The authors of this paper set out to design a fine-grained matching network that eliminates these redundant alignments without sacrificing speed.

Figure 1. Comparison between different image-text matching meth- ods. (a) VSE directly calculates the cosine similarity between two average vectors. (b) PEM substitutes the cosine similarity with the divergence of parametric distributions. (c) CAM measures the average cosine similarities between query fragments and their pro- jections. (d) OMIT regards the Cross-modal Mover’s Distance as the dissimilarity.

Methods

OMIT models the similarity between image patches and text tokens using the mathematical framework of Optimal Transport (OT), specifically calculating the Cross-modal Mover's Distance.

To make this computationally viable for real-time retrieval, the authors introduce two key innovations:

  1. Sinkhorn Iterations: They apply entropic regularization to the OT problem, allowing it to be solved rapidly via the Sinkhorn-Knopp algorithm (Bregman iterations). This bypasses the slow reconstruction processes typical of cross-attention mechanisms.
  2. Optimal Partial Transport (OPT) via "Dustbins": Standard OT assumes a complete mapping where all "mass" must be transported. OMIT relaxes this constraint by introducing the global visual embedding and global textual embedding as auxiliary "dustbins." Irrelevant fragments (e.g., a background tree not mentioned in the text) are mathematically routed to these dustbins, effectively neutralizing their negative impact on the final similarity score.

The entire network is optimized using a hinge-based triplet ranking loss with online hardest negative mining.

Figure 2. Overview of the OMIT. We begin by projecting the caption and image to the common space using textual and visual encoders, resulting in cross-modal fragments. Next, we employ the partial matching and calculate the Sinkhorn distance between fragments in the Partial Sinkhorn Matching module. Finally, we leverage the contrastive loss to group relevant fragments and disti nguish irrelevant fragments.

Datasets

The authors evaluated OMIT on two standard image-text retrieval benchmarks:

  • Flickr30K: Consisting of 31,783 images from Flickr, split into 29,769 for training, 1,014 for validation, and 1,000 for testing.
  • MS-COCO: A massive dataset containing 123,287 images, each paired with 5 sentences. The authors utilized the standard split of 113,287 training images, 5,000 validation images, and 5,000 testing images (evaluated both as a 5K block and averaged over 5 folds of 1K images).

Key Insights and Ideas

  • The Necessity of Partial Matching: Forcing a complete mathematical correspondence between an image and a caption is fundamentally flawed because images naturally contain background noise and sentences contain abstract or structural words. Global embeddings serve as an elegant mathematical relief valve.
  • Focal Sparsity: The authors discovered that adjusting the entropic regularization parameter ($\lambda$) controls the focus of the matching plan. As $\lambda$ decreases, the transport plan naturally becomes sparser, focusing strictly on the minimal visual regions necessary to validate a word's meaning.
  • Bridging the Efficiency Gap: By replacing heavy cross-attention layers with fast matrix-scaling projections, OMIT achieves the accuracy benefits of fine-grained local matching while approaching the inference speeds of global embedding methods.

Key Results

OMIT consistently outperformed existing state-of-the-art (SOTA) methods across various backbones (including ResNet-152, BUTD, ResNeXT-101, and CLIP):

  • Performance Boost: On Flickr30K using a ResNet-152 + BiGRU backbone, OMIT achieved an RSUM score of 471.8, outperforming the probabilistic SOTA method (SBE) by an absolute 29.2%.
  • Text-to-Image Superiority: OMIT variants consistently showed an approximate 2% improvement in text-to-image R@1 scores compared to current methods, demonstrating its ability to better leverage visual backbone features.
  • Speedup: OMIT significantly reduced inference time compared to CAM. For instance, on the ResNet-152 backbone, OMIT completed the matching evaluation in 15.03 seconds compared to CAM's 42.55 seconds, while delivering higher accuracy.
Figure 3. Upper: Performance curve on FLickr30K of hyper- parameters λ; Lower: Visualized comparison between column-wise transport plans under different λ.

Limitations and Future Work

Despite its strong performance, the authors note that OMIT still struggles with abstract concepts, function words, and complex spatial or relational phrases (such as "back," "of," or "lifted"). Because the model primarily relies on co-occurrence statistics, it lacks true cognitive reasoning capabilities. For example, in an image showing two girls where one is lifting the other, OMIT sometimes incorrectly swaps their roles.

The authors suggest that future research should focus on incorporating higher-order relationships to give fine-grained matching networks better structural and cognitive reasoning capabilities.

Summary updated

BibTeX
@misc{pan2026learning,
  author = {Zhengxin Pan and Haishuai Wang and Fangyu Wu and Bailing Zhang and Jiajun Bu and Hongyang Chen},
  title = {{Learning Image-Text Matching with Optimal Partial Transport}},
  year = {2026},
  eprint = {2603.14349},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.14349},
}
Figure