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

语义公平聚类:一种简单有效的视觉令牌聚类策略

Semantic Equitable Clustering: A Simple and Effective Strategy for Clustering Vision Tokens

MAIS & NLPR, Institute of Automation, Chinese Academy of Sciences, Beijing, China(自动化研究所,中国科学院,北京);School of Artificial Intelligence, University of Chinese Academy of Sciences, Beijing, China(中国科学院大学人工智能学院,北京)

Qihang Fan, Huaibo Huang, Mingrui Chen, Ran He

AI总结:

本文提出语义公平聚类(SEC),通过单次遍历、基于全局语义相关性且均衡分配令牌的方式聚类视觉令牌,并构建SECViT骨干网络,在多种视觉任务及多模态大语言模型中验证了其高效性与有效性。

摘要:

视觉Transformer(ViT)因其卓越的关系建模能力而备受关注。然而,其全局注意力机制的二次复杂度带来了巨大的计算负担。一种常见的补救方法是对令牌进行空间分组以进行自注意力计算,从而降低计算需求。尽管如此,该策略忽略了令牌中的语义信息,可能将语义相关的令牌分散到不同的组中,从而损害了旨在建模令牌间依赖关系的自注意力的有效性。受这些认识的启发,我们提出了一种快速且均衡的聚类方法,称为语义公平聚类(SEC)。SEC以高效、直接的方式基于令牌的全局语义相关性对其进行聚类。与需要多次迭代的传统聚类方法相比,我们的方法在一次遍历中即可完成令牌聚类。此外,SEC调节每个簇中的令牌数量,确保均衡分布,以便在当前计算平台上进行有效的并行处理,而无需进一步优化。利用SEC,我们提出了一种通用的视觉骨干网络SECViT。在图像分类、目标检测、实例分割和语义分割方面的综合实验验证了SECViT的有效性。此外,SEC可以方便且快速地应用于多模态大语言模型(MLLM),例如LLaVA,作为视觉语言连接器,在保持性能不变或更好的同时有效加速模型效率。

英文摘要:

The Vision Transformer (ViT) has gained prominence for its superior relational modeling prowess. However, its global attention mechanism's quadratic complexity poses substantial computational burdens. A common remedy spatially groups tokens for self-attention, reducing computational requirements. Nonetheless, this strategy neglects semantic information in tokens, possibly scattering semantically-linked tokens across distinct groups, thus compromising the efficacy of self-attention intended for modeling inter-token dependencies. Motivated by these insights, we introduce a fast and balanced clustering method, named Semantic Equitable Clustering (SEC). SEC clusters tokens based on their global semantic relevance in an efficient, straightforward manner. In contrast to traditional clustering methods requiring multiple iterations, our method achieves token clustering in a single pass. Additionally, SEC regulates the number of tokens per cluster, ensuring a balanced distribution for effective parallel processing on current computational platforms without necessitating further optimization. Capitalizing on SEC, we propose a versatile vision backbone, SECViT. Comprehensive experiments in image classification, object detection, instance segmentation, and semantic segmentation validate the effectiveness of SECViT. Moreover, SEC can be conveniently and swiftly applied to multimodal large language models (MLLM), such as LLaVA, to serve as a vision language connector, effectively accelerating the model's efficiency while maintaining unchanged or better performance.

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

↑