Table of Contents
Fetching ...

Self-Explainable Graph Transformer for Link Sign Prediction

Lu Li, Jiale Liu, Xingyu Ji, Maojun Wang, Zeyu Zhang

TL;DR

This work introduces SE-SGformer, a self-explainable Transformer-based model for signed graphs aimed at link sign prediction. It fuses three encodings—centrality, adjacency, and signed random walk—with a Transformer encoder to learn node representations, and couples this with an explainable prediction module that identifies $K$-nearest positive and $K$-farthest negative neighbors using an SRWR-derived diffusion matrix to generate human-interpretable explanations. The authors prove that the signed random walk encoding is more expressive than shortest-path encoding and that the overall Transformer with signed random walk encoding is more expressive than SGNN baselines, and they validate these claims with experiments on eight real-world datasets, achieving notable gains in both prediction and explainability. The approach advances practical trust in SGNNs by coupling accurate edge-sign predictions with explanation signals that highlight influential neighbor relationships, and it lays groundwork for further exploration of self-explainable graph architectures in signed domains.

Abstract

Signed Graph Neural Networks (SGNNs) have been shown to be effective in analyzing complex patterns in real-world situations where positive and negative links coexist. However, SGNN models suffer from poor explainability, which limit their adoptions in critical scenarios that require understanding the rationale behind predictions. To the best of our knowledge, there is currently no research work on the explainability of the SGNN models. Our goal is to address the explainability of decision-making for the downstream task of link sign prediction specific to signed graph neural networks. Since post-hoc explanations are not derived directly from the models, they may be biased and misrepresent the true explanations. Therefore, in this paper we introduce a Self-Explainable Signed Graph transformer (SE-SGformer) framework, which can not only outputs explainable information while ensuring high prediction accuracy. Specifically, We propose a new Transformer architecture for signed graphs and theoretically demonstrate that using positional encoding based on signed random walks has greater expressive power than current SGNN methods and other positional encoding graph Transformer-based approaches. We constructs a novel explainable decision process by discovering the $K$-nearest (farthest) positive (negative) neighbors of a node to replace the neural network-based decoder for predicting edge signs. These $K$ positive (negative) neighbors represent crucial information about the formation of positive (negative) edges between nodes and thus can serve as important explanatory information in the decision-making process. We conducted experiments on several real-world datasets to validate the effectiveness of SE-SGformer, which outperforms the state-of-the-art methods by improving 2.2\% prediction accuracy and 73.1\% explainablity accuracy in the best-case scenario.

Self-Explainable Graph Transformer for Link Sign Prediction

TL;DR

This work introduces SE-SGformer, a self-explainable Transformer-based model for signed graphs aimed at link sign prediction. It fuses three encodings—centrality, adjacency, and signed random walk—with a Transformer encoder to learn node representations, and couples this with an explainable prediction module that identifies -nearest positive and -farthest negative neighbors using an SRWR-derived diffusion matrix to generate human-interpretable explanations. The authors prove that the signed random walk encoding is more expressive than shortest-path encoding and that the overall Transformer with signed random walk encoding is more expressive than SGNN baselines, and they validate these claims with experiments on eight real-world datasets, achieving notable gains in both prediction and explainability. The approach advances practical trust in SGNNs by coupling accurate edge-sign predictions with explanation signals that highlight influential neighbor relationships, and it lays groundwork for further exploration of self-explainable graph architectures in signed domains.

Abstract

Signed Graph Neural Networks (SGNNs) have been shown to be effective in analyzing complex patterns in real-world situations where positive and negative links coexist. However, SGNN models suffer from poor explainability, which limit their adoptions in critical scenarios that require understanding the rationale behind predictions. To the best of our knowledge, there is currently no research work on the explainability of the SGNN models. Our goal is to address the explainability of decision-making for the downstream task of link sign prediction specific to signed graph neural networks. Since post-hoc explanations are not derived directly from the models, they may be biased and misrepresent the true explanations. Therefore, in this paper we introduce a Self-Explainable Signed Graph transformer (SE-SGformer) framework, which can not only outputs explainable information while ensuring high prediction accuracy. Specifically, We propose a new Transformer architecture for signed graphs and theoretically demonstrate that using positional encoding based on signed random walks has greater expressive power than current SGNN methods and other positional encoding graph Transformer-based approaches. We constructs a novel explainable decision process by discovering the -nearest (farthest) positive (negative) neighbors of a node to replace the neural network-based decoder for predicting edge signs. These positive (negative) neighbors represent crucial information about the formation of positive (negative) edges between nodes and thus can serve as important explanatory information in the decision-making process. We conducted experiments on several real-world datasets to validate the effectiveness of SE-SGformer, which outperforms the state-of-the-art methods by improving 2.2\% prediction accuracy and 73.1\% explainablity accuracy in the best-case scenario.
Paper Structure (19 sections, 4 theorems, 18 equations, 9 figures, 4 tables, 1 algorithm)

This paper contains 19 sections, 4 theorems, 18 equations, 9 figures, 4 tables, 1 algorithm.

Key Result

Theorem 1

With a sufficient number of random walks, signed random walk encoding is more expressive than that based on a fixed shortest path for signed graph.

Figures (9)

  • Figure 1: An illustration of signed graphs in real world. The dashed lines represent the edges to be predicted, and black and red lines represent positive and negative edges, resp.
  • Figure 2: Proportion of node negative degrees and Pos/Neg Ratios across datasets (%)
  • Figure 3: The overall architecture of SE-SGformer. Firstly, the Transformer encoder, equipped with centrality encoding, adjacency matrix encoding, and random walk encoding, obtain node embeddings. Next, in the explainable prediction module, the $K$-nearest positive (and $K$-farthest negative) neighbors of the nodes are identified and used to predict the unknown link sign.
  • Figure 4: Encoding based on the shortest path cannot map these two graphs to different embeddings, while encoding based on the signed random walk can map them to different embeddings.
  • Figure 5: Parameter sensitivity analysis
  • ...and 4 more figures

Theorems & Definitions (8)

  • Definition 1: Signed graph isomorphism
  • Theorem 1
  • proof
  • Theorem 2
  • Definition 2: Extended WL-test For Signed Graph
  • Theorem 3
  • proof
  • Theorem 2