arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.22317cs.CV
收藏

多类别文本反转(Multi-Class Textual-Inversion)可隐性生成语义无关分类器

Multi-Class Textual-Inversion Secretly Yields a Semantic-Agnostic Classifier

Computer Vision Center(计算机视觉中心);College of Computer Science, Nankai University(南开大学计算机学院);Universitat Autònoma de Barcelona(巴塞罗那自治大学)

Kai Wang, Fei Yang, Bogdan Raducanu, Joost van de Weijer

AI总结:

针对语义无关分类场景下仅靠少量样本和类别名的分类难题,提出加入判别正则项的多类别文本反转方法MC-TI,在保留生成能力的同时提升分类性能,经12个数据集验证效果更优。

摘要:

随着CLIP等大型预训练视觉语言模型的出现,提示学习方法旨在提升CLIP模型的迁移能力。这类方法以下游任务的少量样本为基础,以特定类别名称为先验知识学习提示,我们将其称为语义感知分类。然而在许多现实场景中,我们仅能获取少量样本及类别名称信息(例如在研究类别实例时),这一极具挑战性的场景对应语义无关判别任务。文本到图像(T2I)个性化方法旨在通过学习新token,并赋予这些token生成所学概念的能力,使T2I模型适配未见过的概念,这类方法无需将类别名称知识作为语义感知先验。因此,本文首先对文本反转(Textual Inversion)展开探索,揭示了当将每个类别视为单个概念时,新概念token同时具备生成与分类能力。但从单概念文本反转中学习分类器存在局限性,因为所学token对于判别任务并非最优。为缓解这一问题,我们提出多类别文本反转(Multi-Class textual inversion),在token更新过程中加入判别正则项。借助该技术,我们的方法MC-TI在每个类别仅需少量样本的条件下,实现了更强的语义无关分类性能,同时保留了这些修饰token的生成能力。在实验中,我们在覆盖多种场景的12个数据集上对MC-TI进行了全面评估,结果表明MC-TI在分类和生成效果两方面均取得了更优的结果。

英文摘要:

With the advent of large pre-trained vision-language models such as CLIP, prompt learning methods aim to enhance the transferability of the CLIP model. They learn the prompt given few samples from the downstream task given the specific class names as prior knowledge, which we term as semantic-aware classification. However, in many realistic scenarios, we only have access to few samples and knowledge of the class names (e.g., when considering instances of classes). This challenging scenario represents the semantic-agnostic discriminative case. Text-to-Image (T2I) personalization methods aim to adapt T2I models to unseen concepts by learning new tokens and endowing these tokens with the capability of generating the learned concepts. These methods do not require knowledge of class names as a semantic-aware prior. Therefore, in this paper, we first explore Textual Inversion and reveal that the new concept tokens possess both generation and classification capabilities by regarding each category as a single concept. However, learning classifiers from single-concept textual inversion is limited since the learned tokens are suboptimal for the discriminative tasks. To mitigate this issue, we propose Multi-Class textual inversion, which includes a discriminative regularization term for the token updating process. Using this technique, our method MC-TI achieves stronger Semantic-Agnostic Classification while preserving the generation capability of these modifier tokens given only few samples per category. In the experiments, we extensively evaluate MC-TI on 12 datasets covering various scenarios, which demonstrates that MC-TI achieves superior results in terms of both classification and generation outcomes.

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

↑