TULIP: Token-length upgraded CLIP

Open Access
Authors
Publication date 2025
Book title The Thirteenth International Conference on Learning Representations
Book subtitle ICLR 2025
ISBN (electronic)
  • 9798331320850
Event 13th International Conference on Learning Representations, ICLR 2025
Number of pages 24
Organisations
  • Faculty of Science (FNWI) - Informatics Institute (IVI)
Abstract
We address the challenge of representing long captions in vision-language models, such as CLIP. By design these models are limited by fixed, absolute positional encodings, restricting inputs to a maximum of 77 tokens and hindering performance on tasks requiring longer descriptions. Although recent work has attempted to overcome this limit, their proposed approaches struggle to model token relationships over longer distances and simply extend to a fixed new token length. Instead, we propose a generalizable method, named TULIP, able to upgrade the token length to any length for CLIP-like models. We do so by improving the architecture with relative position encodings, followed by a training procedure that (i) distills the original CLIP text encoder into an encoder with relative position encodings and (ii) enhances the model for aligning longer captions with images. By effectively encoding captions longer than the default 77 tokens, our model outperforms baselines on cross-modal tasks such as retrieval and text-to-image generation. The code repository is available at https://github.com/ivonajdenkoska/tulip.
Document type Conference contribution
Language English
Published at
https://openreview.net/forum?id=r9oqHOdoHf (Final published version)
Other links
Downloads
11595_TULIP_Token_length_Upgra (Final published version)
Permalink to this page
Back