用长文本提升图像编码器的跨模态对齐效果
Towards Improved Text-Aligned Codebook Learning: Multi-Hierarchical Codebook-Text Alignment with Long Text
- 用视觉语言模型生成图像的长文本描述,增强语义信息
- 分词、短语、句子多层级编码,避免语义丢失
- 可无缝接入现有VQ模型,适合图像生成与跨模态任务
图像量化是图像生成中的关键技术,旨在学习将图像编码为离散标记序列的码本。近期研究尝试利用图像标题语义构建多模态码本(即文本对齐码本),以提升跨模态任务性能。然而,现有图像-文本配对数据集的文本描述普遍过短,难以充分描述图像内容,导致细粒度的文本与码本对齐受限。本文提出一种新型文本增强码本学习框架TA-VQ,通过视觉语言模型为每张图像生成更长的文本描述,以改善文本对齐码本学习。长文本带来两大挑战:如何有效编码,以及如何实现码本与文本对齐。为此,我们设计将长文本按词、短语、句子多个粒度进行编码,确保不丢失关键语义。进一步提出分层编码器和基于采样的对齐策略,实现细粒度对齐。该方法可无缝集成至现有VQ模型中。大量实验表明,在重建及多种下游任务中,其性能优于现有最先进方法。
原文摘要 · Abstract (English)
Image quantization is a crucial technique in image generation, aimed at learning a codebook that encodes an image into a discrete token sequence. Recent advancements have seen researchers exploring learning multi-modal codebook (i.e., text-aligned codebook) by utilizing image caption semantics, aiming to enhance codebook performance in cross-modal tasks. However, existing image-text paired datasets exhibit a notable flaw in that the text descriptions tend to be overly concise, failing to adequately describe the images and provide sufficient semantic knowledge, resulting in limited alignment of text and codebook at a fine-grained level. In this paper, we propose a novel Text-Augmented Codebook Learning framework, named TA-VQ, which generates longer text for each image using the visual-language model for improved text-aligned codebook learning. However, the long text presents two key challenges: how to encode text and how to align codebook and text. To tackle two challenges, we propose to split the long text into multiple granularities for encoding, i.e., word, phrase, and sentence, so that the long text can be fully encoded without losing any key semantic knowledge. Following this, a hierarchical encoder and novel sampling-based alignment strategy are designed to achieve fine-grained codebook-text alignment. Additionally, our method can be seamlessly integrated into existing VQ models. Extensive experiments in reconstruction and various downstream tasks demonstrate its effectiveness compared to previous state-of-the-art approaches.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。