视觉Transformer的超像素分词化:在视觉令牌中保留语义完整性
Superpixel Tokenization for Vision Transformers: Preserving Semantic Integrity in Visual Tokens
AI总结:
针对ViT网格分词导致语义混合的问题,提出超像素分词化方法,通过预聚合和超像素感知聚合生成单一概念令牌,提升下游任务准确性和鲁棒性。
摘要:
Transformer是一种为自然语言处理(NLP)提出的开创性架构,在计算机视觉领域也取得了显著成功。其成功的一个基石在于注意力机制,该机制对令牌之间的关系进行建模。虽然NLP中的分词过程天然确保单个令牌不包含多种语义,但视觉Transformer(ViT)的分词化利用均匀分割的方形图像块来生成令牌,这可能导致令牌中视觉概念的任意混合。在这项工作中,我们提出用超像素分词化替代ViT中基于网格的分词化,该方法利用超像素生成封装单一视觉概念的令牌。不幸的是,超像素的多样形状、大小和位置使得将超像素集成到ViT分词化中相当具有挑战性。我们的分词化流程由预聚合提取和超像素感知聚合组成,克服了超像素分词化中出现的挑战。大量实验表明,我们的方法与现有框架具有强兼容性,提升了ViT在各种下游任务上的准确性和鲁棒性。
英文摘要:
Transformers, a groundbreaking architecture proposed for Natural Language Processing (NLP), have also achieved remarkable success in Computer Vision. A cornerstone of their success lies in the attention mechanism, which models relationships among tokens. While the tokenization process in NLP inherently ensures that a single token does not contain multiple semantics, the tokenization of Vision Transformer (ViT) utilizes tokens from uniformly partitioned square image patches, which may result in an arbitrary mixing of visual concepts in a token. In this work, we propose to substitute the grid-based tokenization in ViT with superpixel tokenization, which employs superpixels to generate a token that encapsulates a sole visual concept. Unfortunately, the diverse shapes, sizes, and locations of superpixels make integrating superpixels into ViT tokenization rather challenging. Our tokenization pipeline, comprised of pre-aggregate extraction and superpixel-aware aggregation, overcomes the challenges that arise in superpixel tokenization. Extensive experiments demonstrate that our approach, which exhibits strong compatibility with existing frameworks, enhances the accuracy and robustness of ViT on various downstream tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。