Abstract
Real-world social networks are often extremely sparse, where limited explicit edges fail to fully capture valuable user features. Existing network embedding methods typically focus solely on network structure, neglecting rich auxiliary information. This paper proposes an enhanced embedding method that incorporates latent relationships extracted from user-generated content (UGC) into the raw network topology. By densifying the graph with these content-based connections, we learn more robust representations. Evaluation on Sina Microblog datasets for gender and age inference tasks demonstrates that our enhanced network embedding significantly outperforms traditional baseline methods.
Introduction
In social media analytics, network representation learning (or network embedding) transforms complex user networks into low-dimensional vectors suitable for downstream tasks like recommendation or profiling. However, a major challenge is the "sparsity problem": most users interact with only a tiny fraction of the population, leaving many vertex pairs without direct edges. Traditional methods like DeepWalk or LINE, which rely primarily on explicit structural links, struggle to capture true user features when these links are absent.
We argue that users who post about similar topics share a latent relationship, even without an explicit "friend" connection. By treating user-generated text as a bridge to discover these hidden links, we can create a more complete picture of the social graph.
Methodology
Our proposed pipeline enhances the network structure before applying embedding algorithms. The process involves four key stages:
1. Text Preprocessing and Latent Relationship Extraction
Microblog data is cleaned by filtering noise and standardizing slang. We then employ Latent Dirichlet Allocation (LDA) to transform each user's post history into a topic distribution vector.
By calculating the cosine similarity between these vectors, we generate a latent adjacency matrix representing content-based similarities between users.
2. Structural Proximity Calculation
Simultaneously, we calculate standard structural metrics, including first-order proximity (direct links) and second-order proximity (shared neighbors/friend circles).
3. Network Enhancement
The core innovation lies in merging the latent content-based relationships with the explicit structural relationships into a single revised adjacency matrix. This process effectively adds "virtual edges" between users with high topical similarity.
4. Embedding Generation
Finally, we apply the LINE (Large-scale Information Network Embedding) algorithm to this densified, enhanced graph. This approach provides more stable and meaningful proximities compared to random-walk-based methods like DeepWalk, which can be sensitive to noise.
Experimental Evaluation
Dataset
We utilized a dataset from Sina Microblog (SMP CUP 2016), comprising approximately 2.5 million users and 550 million friendships. For our inference tasks, we focused on a subset of 1,560 users with associated microblog text and 3,000 labeled users for ground truth validation.
Results
We evaluated the generated embeddings using an SVM classifier for two supervised tasks:
- Gender Inference: The enhanced method achieved an average accuracy of 72.88% (vs. 71.38% baseline) and a 3% increase in average precision.
- Age Inference: The improvement was more pronounced. With a 10% test sample, accuracy rose from 69.03% (baseline) to 76.25% (enhanced), maintaining superior performance across various training/test split ratios.
Conclusion and Future Work
By integrating user-generated content directly into the network topology, we successfully addressed the sparsity problem in microblog representation. This content-enhanced approach allows structural embedding algorithms to "walk" between topically related users who lack explicit connections.
Future research will explore incorporating multi-modal data, such as images and emojis, into the latent relationship model. Additionally, we aim to scale the preprocessing stage to handle massive datasets and apply these enhanced features to complex tasks like hierarchical community detection.
Summary updated