注意力流是Shapley值分解
Attention Flows are Shapley Value Explanations
摘要:
Shapley值是合作博弈论中信用分配问题的一种解决方案,是机器学习中一种流行的解释类型,已被用于解释特征,嵌入甚至神经元的重要性。然而,在NLP中,留一法和基于注意力的解释仍然占主导地位。我们能把这些不同的方法联系起来吗?我们正式证明-保存退化的情况下-注意权重和留一值不能Shapley值。$\textit{Attention flow}$是通过在注意力图上运行最大流算法获得的注意力权重的后处理变体。也许令人惊讶的是,我们证明了注意流确实是Shapley值,至少在分层水平上。鉴于Shapley值的许多理想的理论品质-这推动了它们在ML社区中的采用-我们认为NLP从业者应该在可能的情况下采用注意力流解释以及更传统的解释。
英文摘要:
Shapley Values, a solution to the credit assignment problem in cooperative game theory, are a popular type of explanation in machine learning, having been used to explain the importance of features, embeddings, and even neurons. In NLP, however, leave-one-out and attention-based explanations still predominate. Can we draw a connection between these different methods? We formally prove that -- save for the degenerate case -- attention weights and leave-one-out values cannot be Shapley Values. $\textit{Attention flow}$ is a post-processed variant of attention weights obtained by running the max-flow algorithm on the attention graph. Perhaps surprisingly, we prove that attention flows are indeed Shapley Values, at least at the layerwise level. Given the many desirable theoretical qualities of Shapley Values -- which has driven their adoption among the ML community -- we argue that NLP practitioners should, when possible, adopt attention flow explanations alongside more traditional ones.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。