Attending Over Triads for Learning Signed Network Embedding

Shagun Sodhani, Meng Qu, Jian TangFrontiers Big Data 2019

TL;DR

This paper introduces TEA, a novel method for learning node embeddings in signed networks (where relationships can be positive or negative). TEA leverages "triads" (groups of three connected nodes) and an attention mechanism to improve prediction accuracy, especially in sparse networks where traditional methods struggle.

What Problem Does This Paper Address?

Network embedding is a crucial technique for representing complex relationships between entities as low-dimensional vectors, enabling downstream tasks like link prediction and node classification. However, most existing methods focus on "unsigned" networks where relationships are all of a similar nature (e.g., friendships). In reality, many networks are "signed," meaning relationships can be opposing (e.g., trust vs. distrust, friend vs. foe). These signed networks present a unique challenge because the interplay of positive and negative relationships is complex. Existing methods often struggle with sparse signed networks, where limited observed edges make it hard to infer relationships accurately. This paper aims to address this by developing a method that can effectively learn from the inherent structure of signed networks, even when data is scarce.

Methods

The core of the proposed approach, TEA (Triad+Edge+Attention), lies in its innovative use of higher-order network structures and an attention mechanism.

  • Dual Embeddings: TEA learns two sets of embeddings for each node:
  • Structural Embeddings (Embstruct): These capture the network's connectivity, treating it like an unsigned network. The authors use the LINE embedding technique for this.
  • Signed Embeddings (Embsign): These are specifically trained to predict the sign of an edge between two nodes.
  • Structural Balance Theory: Inspired by social psychology, this theory posits that balanced relationships within groups of three nodes (triads) are more stable. TEA leverages this by using triads that connect the two nodes of a target edge to infer the edge's sign. For an edge (a, c), TEA considers triads like (a, b, c) and uses the signs of edges (a, b) and (b, c) to predict the sign of (a, c).
  • Attention Mechanism: To handle the fact that different triads might provide varying levels of useful information, TEA employs an attention mechanism. This mechanism assigns different weights to the predictions derived from each triad, allowing the model to focus on the most informative ones. The structural embeddings are used to compute these attention weights, ensuring they are independent of the prediction itself.
  • End-to-End Learning: The entire framework is trained end-to-end using backpropagation, optimizing both the structural and signed embeddings.

Datasets

The authors evaluated their approach on three real-world signed network datasets:

  • Epinions: A social network where users express trust or distrust.
  • SlashDot: A technology news website where users can tag each other as "friends" or "foes."
  • Wikipedia: Used in the context of elections, where users can vote for or against candidates.

All datasets are directed and exhibit significant class imbalance (many more positive than negative edges) and a high proportion of nodes with only one connection.

Key Insights and Ideas

  • Triads are Crucial for Signed Networks: The paper strongly advocates for the use of higher-order structures like triads, arguing that they provide essential context for understanding signed relationships, especially when direct edges are scarce.
  • Structural Balance Theory as a Predictive Tool: The authors demonstrate that principles from social psychology can be effectively translated into a computational framework for predicting relationship signs.
  • Attention for Informative Triad Selection: The attention mechanism is key to making the triad-based approach robust. It allows the model to dynamically weigh the importance of different triads, preventing bias from over-represented triad types (e.g., "pos-pos" triads).
  • Decoupled Modules for Flexibility: The modular design of TEA, separating structural embeddings, signed embeddings, and attention, allows for easy integration of different embedding techniques or future enhancements.

Key Results

  • Competitive Performance: TEA achieved performance comparable to the state-of-the-art methods, particularly the SIDE model, on link prediction tasks across the evaluated datasets.
  • Effectiveness in Sparse Networks: The paper highlights that TEA's reliance on higher-order structures makes it more robust to data sparsity compared to methods that only consider local edge information.
  • Attention Mechanism's Impact: Ablation studies showed that removing the attention mechanism led to a consistent performance drop (2-3%) across datasets, underscoring its importance in handling triad imbalance.
  • Handling Class Imbalance: The paper notes that metrics like AUC are more robust to the inherent class imbalance in signed networks than Micro-F1.

Limitations and Future Work

  • Computational Cost: While TEA is described as modular and efficient, the paper mentions that training without pretraining steps can take longer.
  • Generalization to Other Network Types: The authors suggest future work could explore extending TEA to more complex network structures like heterogeneous networks and knowledge graphs, which involve more than just positive and negative edge types.
  • Further Exploration of Triad Importance: The case study highlights how attention helps balance the influence of different triad types, suggesting that understanding the nuances of triad contributions is an ongoing area of interest.

Summary updated

BibTeX
@inproceedings{sodhani2019attending,
  author = {Shagun Sodhani and Meng Qu and Jian Tang},
  title = {{Attending Over Triads for Learning Signed Network Embedding}},
  booktitle = {Frontiers Big Data},
  year = {2019},
  url = {https://openreview.net/forum?id=HrlbufYa8eq},
}
Figure