MCNE: An End-to-End Framework for Learning Multiple Conditional Network Representations of Social Network

Hao Wang, Tong Xu, Qi Liu, Defu Lian, Enhong Chen, Dongfang Du, Han Wu, Wen SuKDD 2019 · DOI

Abstract

Traditional Network Representation Learning (NRL) techniques often map each user in a social network to a single, static vector. However, this approach fails to capture the multi-faceted nature of social relationships, where users may share similarities in some domains (e.g., movies) but not others (e.g., sports). We present MCNE (Multiple Conditional Network Embedding), an end-to-end framework designed to learn multiple conditional representations for each node. By utilizing learnable binary masks and an attention-based Graph Neural Network (GNN), MCNE effectively captures diverse user preferences across multiple behaviors, significantly outperforming state-of-the-art models in recommendation and transfer learning tasks.

The Challenge of Multi-Aspect Similarity

Standard NRL methods like DeepWalk or standard GNNs assume that similarity between two users is a one-dimensional concept. In reality, social connections are complex. You might follow a friend because of a shared interest in sci-fi movies, even if your tastes in music or sports are completely different. A single vector representation is insufficient to capture these distinct "conditional" similarities.

Conceptual illustration of multi-faceted similarity between users across different domains like movies, books, and sports.

While one could train separate models for every behavior, this is computationally expensive and ignores the inherent correlations between different interests (e.g., a shared interest in "Electronics" often correlates with an interest in "Games"). The challenge lies in learning these multiple facets within a unified, efficient vector space.

The MCNE Framework

MCNE addresses this by integrating several novel components into a unified GNN architecture:

  1. Binary Mask Layer: This is the core innovation. Instead of creating multiple separate embeddings, the model learns a single "comprehensive" embedding for each user. It then applies a learnable binary mask for each specific behavior. This mask acts as a gating function, selecting specific dimensions of the comprehensive vector to create a "conditional" representation.
  2. Neural Attention Network: When aggregating information from neighbors, MCNE uses an attention mechanism to calculate weights for different behaviors. If two users are highly similar in "Sports," the message-passing process gives more weight to the "Sports" conditional embedding.
  3. Multi-aspect Message Passing: The model adapts standard GNN message-passing to aggregate these weighted, multi-aspect preferences from high-order neighbors.
  4. Multi-task Learning with BPR: The framework is trained using Bayesian Personalized Ranking (BPR) loss across multiple behaviors simultaneously. This allows the model to share information across related behaviors, mitigating data sparsity issues.
The MCNE architecture, featuring the binary mask layer, attention-based message passing, and multi-task learning.

Key Insights

  • Subspace Overlap: The binary masks are not required to be disjoint. By allowing masks to overlap, the model naturally captures correlations between different behaviors. If two interests share dimensions in the vector space, the model learns that these interests are related.
  • Interpretability: The attention weights provide a window into why the model thinks two users are connected. By observing which behavior receives the highest weight on a specific edge, researchers can interpret the primary driver of a social link.
  • Efficiency: Borrowing techniques from Binary Neural Networks allows the model to select relevant embedding dimensions without a massive increase in parameters, ensuring scalability.

Experimental Evaluation

The model was evaluated on two large-scale social network datasets: Ciao (focused on Beauty, Books, and Travel) and Epinions (focused on Games, Electronics, and Travel).

MCNE consistently outperformed a wide array of baselines, including recommendation-specific models (BPR, LibFM) and NRL models (Node2vec, GraphSAGE, PinSage). For instance, on the Ciao-Beauty task, MCNE achieved a Recall@5 of 28.18%, significantly higher than PinSage (23.41%) and Node2vec (19.17%). Furthermore, MCNE demonstrated high robustness in transfer learning; when a new behavior is introduced, the model only needs to learn a new binary mask while keeping the core network parameters fixed.

Conclusion

MCNE provides a robust and interpretable framework for capturing the multi-faceted nature of social networks. By slicing a comprehensive embedding into conditional subspaces, it achieves superior performance in recommendation tasks while remaining efficient and adaptable to new domains. Future work will explore incorporating user profile attributes and more sophisticated neighbor sampling techniques to further refine these multi-aspect representations.

Summary updated

BibTeX
@inproceedings{wang2019mcne,
  author = {Hao Wang and Tong Xu and Qi Liu and Defu Lian and Enhong Chen and Dongfang Du and Han Wu and Wen Su},
  title = {{MCNE: An End-to-End Framework for Learning Multiple Conditional Network Representations of Social Network}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2019},
  doi = {10.1145/3292500.3330931},
}
Figure