揭示视觉Transformer逐层如何从颜色纹理演变为具体类别
From Colors to Classes: Emergence of Concepts in Vision Transformers
- 通过神经元标记分析ViT各层概念编码过程
- 早期层聚焦颜色纹理,后期层识别具体物体与动物
- 微调任务会减少概念数量并聚焦相关类别
视觉变压器(ViTs)因其强大的表征能力被广泛应用于计算机视觉任务。然而,其各层信息处理机制仍研究不足。尽管卷积神经网络(CNNs)在深层提取更复杂特征,但缺乏类似归纳偏置的ViTs可能因注意力机制在首层即学习全局依赖。鉴于ViTs的重要性,亟需深入理解其层间表征。本文采用神经元标记技术,对前沿ViTs进行层级概念分析。结果表明,ViTs逐层编码的概念复杂度递增:早期层主要表示颜色、纹理等基础特征,后期层则表达特定类别如物体和动物。随着概念复杂度提升,每层所表征的概念数量也随之增加,体现特征多样性与特异性增强。此外,不同预训练策略影响编码概念的数量与类别分布,下游任务微调通常会减少概念数量,并使概念向相关类别转移。
原文摘要 · Abstract (English)
Vision Transformers (ViTs) are increasingly utilized in various computer vision tasks due to their powerful representation capabilities. However, it remains understudied how ViTs process information layer by layer. Numerous studies have shown that convolutional neural networks (CNNs) extract features of increasing complexity throughout their layers, which is crucial for tasks like domain adaptation and transfer learning. ViTs, lacking the same inductive biases as CNNs, can potentially learn global dependencies from the first layers due to their attention mechanisms. Given the increasing importance of ViTs in computer vision, there is a need to improve the layer-wise understanding of ViTs. In this work, we present a novel, layer-wise analysis of concepts encoded in state-of-the-art ViTs using neuron labeling. Our findings reveal that ViTs encode concepts with increasing complexity throughout the network. Early layers primarily encode basic features such as colors and textures, while later layers represent more specific classes, including objects and animals. As the complexity of encoded concepts increases, the number of concepts represented in each layer also rises, reflecting a more diverse and specific set of features. Additionally, different pretraining strategies influence the quantity and category of encoded concepts, with finetuning to specific downstream tasks generally reducing the number of encoded concepts and shifting the concepts to more relevant categories.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。