图像情感分类中的多样本学习方法
Learning to Compose Diversified Prompts for Image Emotion Classification
摘要:
对比图像预训练(CLIP)是预训练视觉语言模型的最新体现。尽管CLIP最近在视觉问答等一系列下游视觉语言任务上表现出了卓越的能力,但它在图像情感分类(IEC)方面仍处于探索阶段。使CLIP适应IEC任务面临三个重大挑战:预培训和IEC之间存在巨大的培训目标差距,所有实例都有次优且不变的提示。在本文中,我们提出了一个总体框架,显示了如何CLIP可以有效地应用于IEC。我们首先介绍了一个提示微调方法,模仿CLIP的预训练目标,从而可以利用CLIP中包含的丰富的图像和文本语义。然后,我们自动组成的实例特定的提示条件下的类别和图像内容的实例,多样化的提示和避免次优的问题。对六个广泛使用的情感数据集的评估表明,我们提出的方法在很大程度上优于现有技术的方法(即,在IEC任务上,仅训练了几个参数,就可以获得高达9.29%的准确度增益。我们的代码将公开用于研究目的。
英文摘要:
Contrastive Language-Image Pre-training (CLIP) represents the latest incarnation of pre-trained vision-language models. Although CLIP has recently shown its superior power on a wide range of downstream vision-language tasks like Visual Question Answering, it is still underexplored for Image Emotion Classification (IEC). Adapting CLIP to the IEC task has three significant challenges, tremendous training objective gap between pretraining and IEC, shared suboptimal and invariant prompts for all instances. In this paper, we propose a general framework that shows how CLIP can be effectively applied to IEC. We first introduce a prompt tuning method that mimics the pretraining objective of CLIP and thus can leverage the rich image and text semantics entailed in CLIP. Then we automatically compose instance-specific prompts by conditioning them on the categories and image contents of instances, diversifying prompts and avoiding suboptimal problems. Evaluations on six widely-used affective datasets demonstrate that our proposed method outperforms the state-of-the-art methods to a large margin (i.e., up to 9.29% accuracy gain on EmotionROI dataset) on IEC tasks, with only a few parameters trained. Our codes will be publicly available for research purposes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。