arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2403.18593cs.CVcs.AI
收藏

同质化分词器至关重要:用于遥感图像理解的同质化视觉分词器

Homogeneous Tokenizer Matters: Homogeneous Visual Tokenizer for Remote Sensing Image Understanding

Central South University(中南大学);School of Geosciences and Info-Physics(地球科学与信息物理学院);Xiangjiang Laboratory(湘江实验室)

Run Shao, Zhaoyang Zhang, Chao Tao, Yunsheng Zhang, Chengli Peng, Haifeng Li

AI总结:

针对视觉分词器缺乏语义的问题,提出同质化视觉分词器HOOK,通过感知语义独立区域并合并种子,在遥感图像任务中以极少分词数实现了SOTA性能与显著效率提升。

摘要:

分词器作为大模型的基础组件之一,在视觉任务中长期被忽视甚至被误解。大语言模型具有强大理解能力的一个关键因素是,自然语言分词器将具有意义的词或子词作为语言的基本元素。相比之下,以Patch Embed等基于图块的方法为代表的主流视觉分词器,依赖无意义的矩形图块作为视觉的基本元素,无法像语言中的词或子词那样有效发挥作用。从分词器的本质出发,我们为视觉定义了语义独立区域(SIRs)。我们设计了一个简单的同质化视觉分词器:HOOK。HOOK主要由两个模块组成:目标感知模块(OPM)和目标向量化模块(OVM)。为实现同质化,OPM将图像分割为4*4像素种子,然后利用注意力机制来感知SIRs。OVM采用交叉注意力来合并同一SIR内的种子。为实现适应性,OVM定义了可变数量的可学习向量作为交叉注意力查询,从而允许调整分词数量。我们在NWPU-RESISC45、WHU-RS19分类数据集和GID5分割数据集上进行了稀疏和密集任务的实验。结果表明,HOOK获得的视觉分词对应于单个目标,体现了同质化。HOOK在这两项任务中分别比Patch Embed高出6%和10%,并与用于比较的基线方法相比实现了最先进的性能。与一张图像需要一百多个分词的Patch Embed相比,HOOK在稀疏和密集任务中分别仅需6个和8个分词,从而带来了1.5到2.8倍的效率提升。代码可在https://github.com/GeoX-Lab/Hook获取。

英文摘要:

The tokenizer, as one of the fundamental components of large models, has long been overlooked or even misunderstood in visual tasks. One key factor of the great comprehension power of the large language model is that natural language tokenizers utilize meaningful words or subwords as the basic elements of language. In contrast, mainstream visual tokenizers, represented by patch-based methods such as Patch Embed, rely on meaningless rectangular patches as basic elements of vision, which cannot serve as effectively as words or subwords in language. Starting from the essence of the tokenizer, we defined semantically independent regions (SIRs) for vision. We designed a simple HOmogeneous visual tOKenizer: HOOK. HOOK mainly consists of two modules: the Object Perception Module (OPM) and the Object Vectorization Module (OVM). To achieve homogeneity, the OPM splits the image into 4*4 pixel seeds and then utilizes the attention mechanism to perceive SIRs. The OVM employs cross-attention to merge seeds within the same SIR. To achieve adaptability, the OVM defines a variable number of learnable vectors as cross-attention queries, allowing for the adjustment of token quantity. We conducted experiments on the NWPU-RESISC45, WHU-RS19 classification dataset, and GID5 segmentation dataset for sparse and dense tasks. The results demonstrate that the visual tokens obtained by HOOK correspond to individual objects, which demonstrates homogeneity. HOOK outperformed Patch Embed by 6\% and 10\% in the two tasks and achieved state-of-the-art performance compared to the baselines used for comparison. Compared to Patch Embed, which requires more than one hundred tokens for one image, HOOK requires only 6 and 8 tokens for sparse and dense tasks, respectively, resulting in efficiency improvements of 1.5 to 2.8 times. The code is available at https://github.com/GeoX-Lab/Hook.

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

↑