找出视觉Transformer中影响预测最关键的神经元路径
Discovering Influential Neuron Path in Vision Transformers
- 提出联合影响力度量,识别跨层关键神经元路径
- 实验显示新方法能更准确找到主导信息流的神经元路径
- 发现同类别图像有相似内部处理机制,适合模型剪枝研究
视觉Transformer模型虽强大但难以理解,限制了实际应用。现有研究多关注输入归因和单个神经元作用,却忽略了层间信息流的整体路径。本文首次系统探索影响模型推理的关键神经元路径,提出联合影响力度量来评估一组神经元对输出的贡献,并设计逐层定位方法,高效寻找每层最具影响力的神经元,以揭示从输入到输出的主信息流路径。实验表明,该方法在识别关键神经元路径上优于现有基线。进一步分析发现,视觉Transformer对同一类别图像存在特定内部处理机制,且所提取的神经元路径已保留模型在下游任务中的能力,为模型剪枝等实际应用提供新思路。项目代码与网页详见 https://foundation-model-research.github.io/NeuronPath/。
原文摘要 · Abstract (English)
Vision Transformer models exhibit immense power yet remain opaque to human understanding, posing challenges and risks for practical applications. While prior research has attempted to demystify these models through input attribution and neuron role analysis, there's been a notable gap in considering layer-level information and the holistic path of information flow across layers. In this paper, we investigate the significance of influential neuron paths within vision Transformers, which is a path of neurons from the model input to output that impacts the model inference most significantly. We first propose a joint influence measure to assess the contribution of a set of neurons to the model outcome. And we further provide a layer-progressive neuron locating approach that efficiently selects the most influential neuron at each layer trying to discover the crucial neuron path from input to output within the target model. Our experiments demonstrate the superiority of our method finding the most influential neuron path along which the information flows, over the existing baseline solutions. Additionally, the neuron paths have illustrated that vision Transformers exhibit some specific inner working mechanism for processing the visual information within the same image category. We further analyze the key effects of these neurons on the image classification task, showcasing that the found neuron paths have already preserved the model capability on downstream tasks, which may also shed some lights on real-world applications like model pruning. The project website including implementation code is available at https://foundation-model-research.github.io/NeuronPath/.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。