我们发现当前基于CLIP的模型存在一种关键偏差,我们将其称为单标签偏差(single tag bias)。这种偏差表现为模型过度关注单个标签(单词)而忽略其他相关标签,其根源在于CLIP的文本嵌入在图文关系中会优先考虑某一特定标签。当将文本拆解为独立标签时,往往只有一个标签与CLIP的图像嵌入具有高相关性,进而导致标签相关性存在偏差。本文提出了一种新颖的两步微调方法——文本-标签自蒸馏(Text-Tag Self-Distillation,简称TTD)来解决这一问题。TTD首先根据标签与最近像素的相似度从文本中提取与图像相关的标签,随后采用自蒸馏策略将组合掩码与文本生成的掩码对齐。该方法仅使用图文对即可保证基于CLIP的模型实现无偏图文对齐,无需额外监督。我们的技术在多标签分类和分割任务中展现出模型无关的性能提升,效果优于依赖外部资源的同类方法。代码可在https://github.com/shjo-april/TTD获取。
英文摘要:
We identify a critical bias in contemporary CLIP-based models, which we denote as single tag bias. This bias manifests as a disproportionate focus on a singular tag (word) while neglecting other pertinent tags, stemming from CLIP's text embeddings that prioritize one specific tag in image-text relationships. When deconstructing text into individual tags, only one tag tends to have high relevancy with CLIP's image embedding, leading to biased tag relevancy. In this paper, we introduce a novel two-step fine-tuning approach, Text-Tag Self-Distillation (TTD), to address this challenge. TTD first extracts image-relevant tags from text based on their similarity to the nearest pixels then employs a self-distillation strategy to align combined masks with the text-derived mask. This approach ensures the unbiased image-text alignment of the CLIP-based models using only image-text pairs without necessitating additional supervision. Our technique demonstrates model-agnostic improvements in multi-tag classification and segmentation tasks, surpassing competing methods that rely on external resources. The code is available at https://github.com/shjo-april/TTD.
Image2song: Song Retrieval via Bridging Image Content and Lyric Words
School of Computer Science and Center for OPTical IMagery Analysis and Learning (OPTIMAL), Northwestern Polytechnical University(西北工业大学计算机学院暨光学影像分析与学习中心)
Department of Computer Science, Aalborg University, Copenhagen, Denmark(计算机科学系,奥尔堡大学,哥本哈根,丹麦);School of Computing, Macquarie University, Sydney, Australia(计算学院,麦考瑞大学,悉尼,澳大利亚);Department of Computer Science, University of Copenhagen, Copenhagen, Denmark(计算机科学系,哥本哈根大学,哥本哈根,丹麦);Department of Electronic Systems, Aalborg University, Copenhagen, Denmark(电子系统系,奥尔堡大学,哥本哈根,丹麦)