arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2112.03562cs.CVcs.CLcs.LG
收藏

CMA-CLIP:跨模态注意力CLIP在图文分类中的应用

CMA-CLIP: Cross-Modality Attention CLIP for Image-Text Classification

Stony Brook University(石溪大学);Amazon Inc.(亚马逊公司)

Huidong Liu, Shaoyuan Xu, Jinmiao Fu, Yang Liu, Ning Xie, Chien-Chih Wang, Bryan Wang, Yi Sun

摘要:

社交媒体和电子商务等现代Web系统包含以图像和文本表达的丰富内容。利用来自多模态的信息可以提高分类和推荐等机器学习任务的性能。在本文中,我们提出了跨模态注意力对比存储-图像预训练(CMA-CLIP),一个新的框架,它统一了两种类型的跨模态注意力,序列式注意力和模态式注意力,有效地融合信息的图像和文本对。序列式注意力使框架能够捕获图像块和文本标记之间的细粒度关系,而模态式注意力则通过其与下游任务的相关性来衡量每个模态。此外,通过添加任务特定的模态明智的注意力和多层感知器,我们提出的框架是能够执行多任务分类与多模态。我们在一个主要零售网站产品属性(MRWPA)数据集和两个公共数据集Food 101和Fashion-Gen上进行了实验,结果表明,CMA-CLIP在MRWPA数据集上进行多任务分类时,在相同的精度水平下,在召回率上平均优于预训练和微调的CLIP 11.9%。它的准确性也超过了Fashion-Gen数据集上最先进的方法5.5%,并在Food 101数据集上实现了竞争性性能。通过详细的消融研究,我们进一步证明了跨模态注意模块的有效性和我们的方法对图像和文本输入中的噪声的鲁棒性,这是实践中的一个共同挑战。

英文摘要:

Modern Web systems such as social media and e-commerce contain rich contents expressed in images and text. Leveraging information from multi-modalities can improve the performance of machine learning tasks such as classification and recommendation. In this paper, we propose the Cross-Modality Attention Contrastive Language-Image Pre-training (CMA-CLIP), a new framework which unifies two types of cross-modality attentions, sequence-wise attention and modality-wise attention, to effectively fuse information from image and text pairs. The sequence-wise attention enables the framework to capture the fine-grained relationship between image patches and text tokens, while the modality-wise attention weighs each modality by its relevance to the downstream tasks. In addition, by adding task specific modality-wise attentions and multilayer perceptrons, our proposed framework is capable of performing multi-task classification with multi-modalities. We conduct experiments on a Major Retail Website Product Attribute (MRWPA) dataset and two public datasets, Food101 and Fashion-Gen. The results show that CMA-CLIP outperforms the pre-trained and fine-tuned CLIP by an average of 11.9% in recall at the same level of precision on the MRWPA dataset for multi-task classification. It also surpasses the state-of-the-art method on Fashion-Gen Dataset by 5.5% in accuracy and achieves competitive performance on Food101 Dataset. Through detailed ablation studies, we further demonstrate the effectiveness of both cross-modality attention modules and our method's robustness against noise in image and text inputs, which is a common challenge in practice.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑