Skip to main content
QUICK REVIEW

[论文解读] Interpreting Graph Neural Networks for NLP With Differentiable Edge Masking

Michael Schlichtkrull, Nicola De Cao|arXiv (Cornell University)|Oct 1, 2020
Topic ModelingComputer Science被引用 59
一句话总结

GRAPHMASK 学习可微、摊销的边门控,以识别在不改变 GNN 预测的情况下可以丢弃的图边,从而为 NLP 任务提供可信的解释。

ABSTRACT

Graph neural networks (GNNs) have become a popular approach to integrating structural inductive biases into NLP models. However, there has been little work on interpreting them, and specifically on understanding which parts of the graphs (e.g. syntactic trees or co-reference structures) contribute to a prediction. In this work, we introduce a post-hoc method for interpreting the predictions of GNNs which identifies unnecessary edges. Given a trained GNN model, we learn a simple classifier that, for every edge in every layer, predicts if that edge can be dropped. We demonstrate that such a classifier can be trained in a fully differentiable fashion, employing stochastic gates and encouraging sparsity through the expected $L_0$ norm. We use our technique as an attribution method to analyze GNN models for two tasks -- question answering and semantic role labeling -- providing insights into the information flow in these models. We show that we can drop a large proportion of edges without deteriorating the performance of the model, while we can analyse the remaining edges for interpreting model predictions.

研究动机与目标

  • 激励并开发一种对 GNN 的事后解释方法,能够识别在 NLP 任务中对预测必要的图边。
  • 确保该方法具有可扩展性、与模型无关性,并忠实于原始模型的推理过程。
  • 在 NLP 任务(语义角色标注和多跳问答)上演示该方法,以揭示 GNN 中的信息流。

提出的方法

  • 引入 GRAPHMASK:一个可学习的擦除函数,在每一层为每条边的消息分配一个仿二进制的门控。
  • 使用一个简单的分类器 g 从局部节点表示和消息中计算门控 z(ℓ),并应用带可学习基线的二进制掩蔽。
  • 将参数学习在整个数据集上摊销以避免事后偏差,确保门控仅依赖原始模型可获得的信息(不进行前瞻)。
  • 将边掩蔽建模为可微分的稀疏松弛,使用 Hard Concrete 分布以实现基于梯度的优化。
  • 构建一个受约束的目标,使非掩蔽边的数量最小化,同时使输出 f(GS,X) 在公差内接近 f(G,X),通过散度 D⋆ 和 L0 正则化实现。
  • 提供两种变体:摊销的(跨数据共享 gπ)和非摊销的(逐边,易受事后偏见影响)。

实验结果

研究问题

  • RQ1在 NLP 模型中,GNN 图中的哪些边在跨层正确预测时实际上是必要的?
  • RQ2我们是否可以设计一个可扩展、忠实的对 GNN 的事后属性归因方法,避免事后偏见,并适用于真实的 NLP 任务?
  • RQ3保留的边揭示了基于 GNN 的 NLP 模型中的信息流与路径使用情况?
  • RQ4在真实性和鲁棒性方面,该方法与现有的归因方法在合成数据集和真实数据集上的对比如何?

主要发现

  • GRAPHMASK(摊销)在保持真实 NLP 模型准确性的同时,可信地识别对预测至关重要的边,并保留一个较小子集的边。
  • 在多跳问答模型上,GRAPHMASK 保留了 27% 的边,准确率在与原模型相差 0.4% 之内。
  • 在 SRL 模型上,GRAPHMASK 表明门控是信息性消息的指示符,而不仅仅是缩放,有限的边保留导致的性能变化很小。
  • 在一个合成的忠实性任务中,摊销的 GRAPHMASK 最能复制金标准的边重要性,优于 erasure search、integrated gradients 和 GNNExplainer。
  • GNN 依赖特定的边类型和路径,保留的边通常形成将谓词连接到论元的多步路径,展现信息如何在图中传播。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。