[논문 리뷰] Interpreting Graph Neural Networks for NLP With Differentiable Edge Masking
GRAPHMASK은 미분 가능하고 공용 파라미터를 공유하는 에지 게이트를 학습하여 어떤 그래프 엣지가 제거되어도 GNN 예측이 바뀌지 않는지를 식별함으로써 NLP 태스크에 대한 신뢰할 수 있는 해석을 가능하게 한다.
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.
연구 동기 및 목표
- 자연어처리(NLP)에서 예측에 필요한 그래프 엣지를 식별하는 GNN의 사후 해석 방법을 동기화하고 개발한다.
- 방법이 규모 확장 가능하고 모델에 의존하지 않으며 원래 모델의 추론을 충실히 반영하도록 보장한다.
- 의미 역할 표기(SRL) 및 다중 호프 QA에서 접근법을 시연하여 GNN에서 정보 흐름을 밝힌다.
제안 방법
- GRAPHMASK를 도입한다: 각 계층의 모든 엣지 메시지에 이진에 가까운 게이트를 할당하는 학습 가능한 제거 함수.
- 간단한 분류기 g를 사용해 로컬 노드 표현과 메시지로 게이트 z(ℓ)을 계산하고 학습 가능한 기준값으로 이진 마스킹을 적용한다.
- 데이터 세트 전반에 걸쳐 파라미터 학습을 공유(암모타이즈드)하여 회상 편향을 피하고, 게이트가 원래 모델이 이용 가능한 정보에만 의존하도록 보장한다(앞보기 없음).
- 하드 콘크리트 분포를 사용한 미분 가능 희소 이완으로 엣지 마스킹을 모델링해 그래디언트 기반 최적화를 가능하게 한다.
- 발생 가능한 거리에 대한 한계–D⋆ 발산 및 L0 정규화를 이용해 오차 허용 범위 내에서 f(GS,X)와 f(G,X) 차이를 최소화하면서 마스킹되지 않은 엣지의 수를 최소화하는 제약된 목적 함수를 형식화한다.
- 두 가지 변형: 암모타이즈드(데이터 전반에 걸쳐 gπ를 공유)와 비암모타이즈드(엣지별로, 회상 편향에 더 취약).
실험 결과
연구 질문
- RQ1Which edges in a GNN graph are actually necessary for correct predictions across layers in NLP models?
- RQ2Can we design a scalable, faithful, post-hoc attribution method for GNNs that avoids hindsight bias and is applicable to real NLP tasks?
- RQ3What do retained edges reveal about information flow and path usage in GNN-based NLP models?
- RQ4How does the method compare to existing attribution methods in faithfulness and robustness on synthetic and real datasets?
주요 결과
- GRAPHMASK (amortized) faithfully identifies edges crucial for predictions and retains a small subset of edges while preserving accuracy on real NLP models.
- On a multi-hop QA model, GRAPHMASK retains 27% of edges with accuracy within 0.4% of the original model.
- On an SRL model, GRAPHMASK shows gates act as indicators of informative messages rather than mere scaling, with limited edge retention causing small performance changes.
- In a synthetic faithfulness task, amortized GRAPHMASK best replicates the gold-standard edge importance compared to erasure search, integrated gradients, and GNNExplainer.
- GNNs rely on specific edge types and paths, and retained edges often form multi-step paths that connect predicates to arguments, illustrating how information propagates through the graph.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.