NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Signed Graph Attention Networks

Junjie Huang, Huawei Shen, Liang Hou, Xueqi Cheng

Abstract

Researchers have developed SiGAT (Signed Graph Attention Networks), a novel framework that extends the power of Graph Attention Networks to "signed" graphs—networks containing both positive (trust/friendship) and negative (distrust/enmity) links. By incorporating 38 distinct structural motifs based on social psychology theories, SiGAT outperforms state-of-the-art methods in predicting whether a hidden link between two people will be positive or negative.

Introduction: The Challenge of Signed Graphs

Most Graph Neural Networks (GNNs) are designed for "unsigned" graphs, where edges simply represent a connection. However, real-world social networks are often signed: you might "follow" someone you admire but "block" someone you disagree with. Negative links carry unique, high-value information about the network's structure. Standard GNNs struggle here because they typically aggregate information from neighbors uniformly. In a signed network, an "enemy of an enemy" should be treated very differently than a "friend of a friend." The challenge is creating a model that respects these complex sociological nuances while maintaining the flexibility of modern deep learning.

Methodology: Motif-Based Attention

The authors introduce SiGAT, which bridges the gap between social psychology and deep learning through three key components:

  1. Sociological Motifs: The model identifies 38 different motifs representing various relationship patterns. These are derived from two pillars of social science:
  2. Balance Theory: The classic "friend of my friend is my friend" and "enemy of my enemy is my friend" logic.
  3. Status Theory: The idea that a directed link indicates a status differential (e.g., if A supports B, B may have higher status).
  4. Motif-Based Neighborhoods: Instead of having one generic neighborhood, a node in SiGAT has multiple neighborhoods defined by these motifs. For example, a node might have a "positive-direct-neighbor" neighborhood and an "enemy-of-enemy" neighborhood.
  5. Graph Attention (GAT) Aggregation: SiGAT applies the attention mechanism to each motif-defined neighborhood. This allows the model to learn which specific neighbors are most influential for a given task.

The messages from all 38 motifs are concatenated and passed through a two-layer fully connected neural network to generate a final node embedding. The model is trained using an unsupervised loss function that encourages "friends" to have similar embeddings and "enemies" to have dissimilar ones.

Datasets

The authors evaluated SiGAT on three large-scale, real-world signed social network datasets:

  • Bitcoin-Alpha: A trust network where users rate others on a scale of -10 to +10.
  • Slashdot: A technology news site where users can tag others as "friends" or "foes."
  • Epinions: A consumer review site where users can indicate trust or distrust of others' reviews.

All three datasets are inherently directed and exhibit a significant "class imbalance," with positive links far outnumbering negative ones.

Key Results

SiGAT was tested on the Link Sign Prediction task—predicting if a link is "+" or "-" given the rest of the network.

  • Superior Performance: SiGAT consistently outperformed all baselines, including traditional feature engineering (FeExtra), network embedding methods (SiNE, SIDE, SIGNet), and the GNN-based SGCN.
  • Metric Gains: On the Epinions dataset, SiGAT achieved an AUC of 0.9333, significantly higher than SGCN's 0.8818.
  • Robustness: Parameter analysis showed that the model is relatively robust to changes in embedding dimensions, with performance stabilizing quickly.

Conclusion

SiGAT demonstrates that incorporating domain-specific structural motifs can significantly enhance the performance of GNNs on complex graph types. While the authors focus on link sign prediction, future work could explore node classification or community detection. Additionally, finding more efficient ways to approximate these structural patterns could improve scalability for extremely large graphs.

Summary updated

BibTeX
@inproceedings{huang2019signed,
  author = {Junjie Huang and Huawei Shen and Liang Hou and Xueqi Cheng},
  title = {{Signed Graph Attention Networks}},
  booktitle = {ICANN (Workshop)},
  year = {2019},
  url = {https://openreview.net/forum?id=nVxAktAMZ0z},
}
Figure