Introduction
Signed Network Embedding via graph Attention (SNEA) is a novel framework designed to extend the capabilities of Graph Attention Networks (GATs) to signed graphs. Unlike traditional unsigned networks where links represent simple associations, signed networks contain both positive ("friend") and negative ("foe") links. SNEA leverages social balance theory within a masked self-attention mechanism to learn node representations that respect the complex social dynamics of trust and distrust.
The Challenge of Signed Networks
Most Graph Neural Networks (GNNs) are optimized for unsigned networks where edges represent a single type of relationship. However, real-world social systems often feature antagonistic relationships. Negative links are not merely the absence of positive ones; they carry distinct structural information governed by social psychology principles like Balance Theory.
Balance Theory suggests that "the enemy of my enemy is my friend" and "the friend of my friend is my friend." Standard GNNs struggle in this context because they typically treat all neighbors uniformly or fail to distinguish between the conflicting physical meanings of positive and negative edges. The core challenge lies in effectively aggregating information across these divergent paths to create meaningful low-dimensional embeddings.
The SNEA Framework
SNEA addresses these challenges through a multi-layered attentional architecture that explicitly incorporates social theory into the embedding process.
1. Masked Self-Attention for Signed Links
Unlike standard Graph Convolutional Networks (GCNs) that use fixed weights, SNEA employs an attention mechanism to estimate an "importance coefficient" for every pair of connected nodes. This allows the model to selectively focus on the most informative neighbors, filtering out noise in sparse social graphs.
2. Dual Embedding Representations and Aggregation
To handle the complexity of Balance Theory, SNEA represents each node using two distinct vectors: a balanced embedding (capturing "friend" dynamics) and an unbalanced embedding (capturing "foe" dynamics).
In each layer, the model updates these embeddings using a cross-pollination strategy:
- Balanced Update: A node's balanced embedding is updated by aggregating its friends' balanced embeddings and its foes' unbalanced embeddings.
- Unbalanced Update: The unbalanced embedding is updated using friends' unbalanced and foes' balanced embeddings.
This logic naturally captures higher-order social dynamics, such as the "friend of a foe is a foe" principle, across multiple attentional layers.
3. Hybrid Objective Function
The model is trained using a combination of classification loss for link polarity prediction and a structural loss based on Extended Structural Balance Theory. This structural loss acts as a regularizer, ensuring that in the embedding space, a node is closer to its friends than to neutral nodes, and closer to neutral nodes than to its enemies.
Experimental Evaluation
The researchers evaluated SNEA on four real-world signed network datasets: Bitcoin-Alpha, Bitcoin-OTC, Slashdot, and Epinions. These datasets are characterized by high sparsity and a significant imbalance, with positive links typically outnumbering negative ones.
SNEA consistently outperformed specialized signed embedding baselines, including SiNE, SIDE, and the GCN-based SGCN. For instance, on the Bitcoin-Alpha dataset, SNEA achieved an AUC of 0.816, surpassing the previous state-of-the-art SGCN (0.801). Ablation studies further confirmed that the multi-layer architecture is vital for capturing the multi-hop social relationships necessary for high-quality embeddings.
Conclusion
SNEA demonstrates that embedding signed networks is not just a data-fitting problem but one that requires adhering to social "laws." By integrating Graph Attention with Balance Theory, SNEA provides a robust framework for understanding complex social structures. Future work may extend this approach to heterogeneous networks containing diverse node and link types, further broadening the applicability of signed graph representation learning.
Summary updated