arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.13304cs.CVcs.AI
收藏

视觉Transformer激活能否被跨层解码器替代?从可解释性的视角看视觉

Can Cross-Layer Transcoders Replace Vision Transformer Activations? An Interpretable Perspective on Vision

Rutgers University(罗格斯大学);University of California San Diego(加州大学圣地亚哥分校)

Gerasimos Chatzoudis, Konstantinos D. Polyzos, Zhuowei Li, Difei Gu, Gemma E. Moran, Hao Wang, Dimitris N. Metaxas

AI总结:

本文提出跨层解码器作为视觉Transformer中MLP块的可解释性替代方案,通过线性分解提升模型可解释性,并在多个数据集上验证其有效性。

摘要:

理解视觉Transformer(ViTs)的内部激活对于构建可解释和可信的模型至关重要。尽管稀疏自编码器(SAEs)已被用于提取人类可解释的特征,但它们仅在单个层上操作,无法捕捉Transformer的跨层计算结构以及各层在最终表示中的相对重要性。本文引入了跨层解码器(CLTs)作为可靠的、稀疏的、深度感知的代理模型,用于ViTs中的MLP块。CLTs使用编码器-解码器方案,从学习到的稀疏嵌入中重建每个后MLP激活,从而得到线性分解,将ViTs的最终表示从不透明的嵌入转化为加法、层解析的构造,从而实现忠实的归因和过程级可解释性。我们在CLIP ViT-B/32和ViT-B/16上训练CLTs,覆盖CIFAR-100、COCO和ImageNet-100。我们展示了CLTs在重建后MLP激活时具有高保真度,同时在某些情况下甚至提高了CLIP零样本分类准确率。在可解释性方面,我们展示了跨层贡献分数提供了忠实的归因,揭示了最终表示集中在更小的主导层级项集合中,这些项的移除会降低性能,而保留则能大幅保持性能。这些结果展示了在视觉领域采用CLTs作为ViTs可解释性代理的重要性。

英文摘要:

Understanding the internal activations of Vision Transformers (ViTs) is critical for building interpretable and trustworthy models. While Sparse Autoencoders (SAEs) have been used to extract human-interpretable features, they operate on individual layers and fail to capture the cross-layer computational structure of Transformers, as well as the relative significance of each layer in forming the last-layer representation. Alternatively, we introduce the adoption of Cross-Layer Transcoders (CLTs) as reliable, sparse, and depth-aware proxy models for MLP blocks in ViTs. CLTs use an encoder-decoder scheme to reconstruct each post-MLP activation from learned sparse embeddings of preceding layers, yielding a linear decomposition that transforms the final representation of ViTs from an opaque embedding into an additive, layer-resolved construction that enables faithful attribution and process-level interpretability. We train CLTs on CLIP ViT-B/32 and ViT-B/16 across CIFAR-100, COCO, and ImageNet-100. We show that CLTs achieve high reconstruction fidelity with post-MLP activations while preserving and even improving, in some cases, CLIP zero-shot classification accuracy. In terms of interpretability, we show that the cross-layer contribution scores provide faithful attribution, revealing that the final representation is concentrated in a smaller set of dominant layer-wise terms whose removal degrades performance and whose retention largely preserves it. These results showcase the significance of adopting CLTs as an alternative interpretable proxy of ViTs in the vision domain.

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

↑