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

SNE: Signed Network Embedding

Shuhan Yuan, Xintao Wu, Yang XiangarXiv 2017

TL;DR

SNE (Signed Network Embedding) is the first dedicated framework for learning node representations in networks with both positive and negative links (e.g., "friend" vs. "foe"). By incorporating "signed-type vectors" into a log-bilinear model, SNE captures complex social dynamics that standard unsigned models like DeepWalk or Node2vec fundamentally ignore, significantly outperforming them in classification and link prediction tasks.

What Problem Does This Paper Address?

Network embedding has become a cornerstone of graph analysis, mapping nodes into low-dimensional vector spaces to make tasks like clustering and classification easier. However, most existing models assume all links are created equal—they are designed for unsigned networks.

In the real world, relationships are rarely just "present" or "absent." Social platforms like Slashdot allow users to tag others as "friends" or "foes," and Wikipedia editors can "revert" (a negative action) or "collaborate" (a positive action) with others. These signed networks follow different structural logic—for instance, "the enemy of my enemy is my friend." Standard skip-gram-based models fail here because they treat negative links as either positive ones or simply as missing data, losing the vital context of distrust or opposition.

Methods

The authors introduce SNE, which departs from the standard skip-gram approach in two major ways:

  1. Log-Bilinear Foundation: Instead of just predicting a neighbor given a source node, SNE uses a log-bilinear model. It predicts a target node based on the entire sequence of nodes (a path) leading up to it.
  2. Signed-Type Vectors: This is the core innovation. For every edge in a path, SNE incorporates a specific vector—$c_+$ for positive links and $c_-$ for negative links. When calculating the "predicted" representation of a target node, the model performs an element-wise multiplication of a node's embedding with the signed-type vector of the edge connecting it.

Furthermore, SNE learns two distinct vectors for every node: a source embedding (representing the node's behavior as an initiator) and a target embedding (representing its role as a recipient). In directed networks, these are concatenated to form the final node representation.

Datasets

The model was evaluated on two real-world datasets:

  • WikiEditor: An undirected network of Wikipedia users. Links are positive if users co-edit harmoniously and negative if they frequently revert each other's work. Nodes are labeled as "Benign" or "Vandal."
  • Slashdot Zoo: A directed social network where users explicitly tag others as "friends" or "foes."
Table 1: Statistics of WikiEditor and Slashdot

Key Insights and Ideas

  • Sign is Signal: The most striking takeaway is that ignoring edge signs leads to massive performance drops. Unsigned models mix "vandals" and "benign users" in the vector space, whereas SNE effectively clusters them apart.
  • Path Context Matters: By using a log-bilinear model that looks at paths rather than just immediate neighbors, SNE captures higher-order structural information that is crucial for understanding social balance.
  • The Power of Hadamard: When combining node vectors to predict links, the authors tested several operators. The Hadamard product (element-wise multiplication) consistently yielded the best results for signed networks.
Table 3: Element-wise operators for combining node vectors to edge vectors

Key Results

SNE demonstrated clear superiority over baselines like DeepWalk, LINE, and Node2vec:

  • Node Classification: On the WikiEditor dataset, SNE achieved an accuracy of 82.07%, compared to DeepWalk’s 73.78%. The visualization below shows how much more cleanly SNE separates user types.
  • Link Prediction: SNE excelled at predicting whether a link was positive, negative, or non-existent. On the directed Slashdot network, SNE (using both source and target embeddings) achieved 93.28% accuracy, while unsigned models struggled to break 70%.
Fig. 1: Visualization of 7000 users in WikiEditor. Color of a node indicates the type of the user. Blue: “Vandals”, red:“Benign Users”.

Limitations and Future Work

While SNE is a significant step forward, the authors note a few areas for growth:

  • Computational Cost: The softmax function used in training is expensive for large networks, though the authors mitigated this using a sampled softmax approach.
  • Structural Motifs: The current model focuses on paths. Future iterations could explicitly incorporate higher-order structures like triangles or specific network motifs to further refine the embeddings.
  • Path Length Sensitivity: The authors found that while longer paths help classification, they can actually hurt link prediction, which relies more on local information. Finding the "sweet spot" for path length remains a task-specific challenge.

Summary updated

BibTeX
@misc{yuan2017sne,
  author = {Shuhan Yuan and Xintao Wu and Yang Xiang},
  title = {{SNE: Signed Network Embedding}},
  year = {2017},
  eprint = {1703.04837},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1703.04837},
}
Figure