LoTLIP: Improving Language-Image Pre-training for Long Text Understanding
Wei Wu, Kecheng Zheng, Shuailei Ma, Fan Lu, Yuxin Guo, Yifei Zhang, Wei Chen, Qingpei Guo, Yujun Shen, Zheng-Jun Zha
TL;DR
LoTLIP addresses the difficulty of long-text understanding in language-image pre-training by introducing corner tokens and a targeted attention mechanism to fuse diverse long-text information with standard short-text pre-training. By re-captioning 100M images with long captions and training with both long- and short-text losses, LoTLIP achieves improved long-text-image retrieval without sacrificing short-text performance, outperforming prior long-text methods (e.g., Long-CLIP) and surpassing LiT-based baselines. The approach demonstrates a practical balance between performance and efficiency, revealing a controllable trade-off as caption length scales, and achieving state-of-the-art results on long-text retrieval while maintaining strong zero-shot short-text tasks. The work provides a scalable, data-driven path to rich multimodal understanding with long descriptions, with broad implications for search, retrieval, and downstream multimodal NLP tasks.
Abstract
Understanding long text is of great demands in practice but beyond the reach of most language-image pre-training (LIP) models. In this work, we empirically confirm that the key reason causing such an issue is that the training images are usually paired with short captions, leaving certain tokens easily overshadowed by salient tokens. Towards this problem, our initial attempt is to relabel the data with long captions, however, directly learning with which may lead to performance degradation in understanding short text (e.g., in the image classification task). Then, after incorporating corner tokens to aggregate diverse textual information, we manage to help the model catch up to its original level of short text understanding yet greatly enhance its capability of long text understanding. We further look into whether the model can continuously benefit from longer captions and notice a clear trade-off between the performance and the efficiency. Finally, we validate the effectiveness of our approach using a self-constructed large-scale dataset, which consists of 100M long caption oriented text-image pairs. Our method demonstrates superior performance in long-text-image retrieval tasks. The project page is available at https://wuw2019.github.io/lot-lip.
