TULIP:令牌长度升级的CLIP
TULIP: Token-length Upgraded CLIP
AI总结:
针对CLIP等视觉-语言模型受限于77个令牌长度的问题,提出TULIP方法,通过相对位置编码和蒸馏训练升级令牌长度至任意值,提升长标题的跨模态检索和文本到图像生成性能。
摘要:
我们解决了视觉-语言模型(如CLIP)中表示长标题的挑战。这类模型在设计上受限于固定的绝对位置编码,将输入限制为最多77个令牌,这阻碍了需要更长描述的任务的性能。尽管近期工作试图克服这一限制,但所提出的方法难以建模较长距离上的令牌关系,并且只是简单地扩展到固定的新令牌长度。相反,我们提出了一种可泛化的方法,名为TULIP,能够将CLIP类模型的令牌长度升级到任意长度。我们通过改进架构,引入相对位置编码,并采用训练流程来实现这一点,该流程包括:(i)将原始CLIP文本编码器蒸馏为具有相对位置编码的编码器,(ii)增强模型以对齐更长的标题与图像。通过有效编码超过默认77个令牌的标题,我们的模型在跨模态任务(如检索和文本到图像生成)上优于基线。代码仓库可在https://github.com/ivonajdenkoska/tulip获取。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。