Abstract
This paper investigates the problem of network embedding, which aims at learning low-dimensional vector representations of nodes in networks. Most existing network embedding methods rely solely on the network structure, i.e., the linkage relationships between nodes, but ignore the rich content information associated with them, which is common in real-world networks and beneficial to describing the characteristics of a node. In this paper, we propose Content-Enhanced Network Embedding (CENE), which is capable of jointly leveraging the network structure and the content information. Our approach integrates text modeling and structure modeling in a general framework by treating the content information as a special kind of node. Experiments on several real-world networks with application to node classification show that our models outperform all existing network embedding methods, demonstrating the merits of content information and joint learning.
Introduction
Network representation learning (NRL) has become a cornerstone for tasks like node classification, link prediction, and community detection. Traditional methods such as DeepWalk and LINE focus primarily on structural topology—the "who follows whom" of a graph. However, real-world networks are rarely purely structural. Nodes often possess rich associated content, such as text in citation networks or user-generated content in social media.
As illustrated in Figure 1, textual content provides vital clues about node attributes like gender, location, or profession that structural links alone might miss. For instance, a user's questions on a platform like Quora or Zhihu can reveal their professional expertise or geographic context more clearly than their social connections.
The CENE Framework
The core innovation of the Content-Enhanced Network Embedding (CENE) framework is the treatment of content as a node. Rather than treating text as a secondary attribute, CENE constructs a heterogeneous network consisting of both original nodes (e.g., users) and content nodes (e.g., documents or posts). This creates two distinct types of edges:
- Node-Node links: Representing structural relationships like citations or social follows.
- Node-Content links: Representing the relationship between a node and its associated textual information.
By modeling these together, CENE allows nodes with similar content to be pulled closer in the embedding space, even if they lack a direct structural link. This effectively addresses the "structural sparsity" problem common in real-world graphs where many nodes have very few connections.
Modeling Textual Semantics
To transform raw text into usable vectors within the framework, the researchers explored three different composition functions, ranging from simple to complex:
- WAvg (Weighted Average): A baseline approach that averages word embeddings, providing a robust but order-agnostic representation.
- RNN (Recurrent Neural Network): Specifically using Gated Recurrent Units (GRU) to capture the sequential nature of language.
- BiRNN (Bidirectional RNN): A more sophisticated model that processes text in both directions to capture long-range dependencies and deeper semantic context.
Experimental Evaluation
The framework was tested on two diverse datasets: DBLP (a computer science citation network) and Zhihu (a Chinese Q&A social network). The tasks involved classifying papers by conference and users by gender, location, and profession.
Key Findings
- Superior Performance: CENE consistently outperformed structure-only methods (DeepWalk, LINE) and content-only methods. On the Zhihu-Gender task, CENE-RNN achieved ~79.3% accuracy, a significant improvement over DeepWalk's 63.4%.
- Robustness to Sparsity: One of the most significant advantages of CENE is its performance on "low-degree" nodes. For users with few social connections, the content-node links act as bridges, allowing the model to learn high-quality embeddings where structure-only models fail.
- Attribute Sensitivity: The study found that content is often a better predictor for certain attributes than structure. For example, social links were found to be poor indicators of geographic location, whereas textual content provided strong regional signals.
Conclusion
CENE demonstrates that integrating content and structure into a unified heterogeneous network is a powerful approach for representation learning. By treating content as a first-class citizen in the network, the framework captures semantic nuances that structural methods overlook. Future work may extend this general framework to multi-modal content, including images and structured metadata, further enhancing the richness of node representations.
Summary updated