Introduction
Inferring demographic information such as age, gender, and user type on social media platforms like Twitter is a critical task for social media analytics. However, this data is frequently missing or intentionally obscured. Traditional approaches typically treat this as either a text classification problem—ignoring social connections—or a network embedding problem—often treating text as independent of the social graph.
This paper challenges the "independence assumption" inherent in these models. In reality, a user's demographics influence both their linguistic style and their social associations. To bridge this gap, the authors introduce Graph Recursive Neural Networks (GRNNs), a framework that simultaneously models textual content and local network topology to improve demographic inference.
Methodology
The GRNN framework operates by transforming the complex social graph into a structured format suitable for recursive processing. The process involves four key stages:
- Graph-to-Tree Conversion: Standard RNNs are designed for sequences or trees. To apply them to a general social graph, the authors perform a Breadth-First Search (BFS) starting from a target user to construct a local neighborhood tree of depth $d$.
- Feature Representation: User-generated text (tweets or profile descriptions) is converted into dense word embeddings using a Skip-gram model.
- Recursive Neural Units (RNUs): The core of the model consists of recursive units that "fold" information from child nodes (neighbors) up to the parent node (target user). The authors evaluate two variants: a Naive RNU (NRNU) with $tanh$ activation and a more advanced LSTM Unit (LSTMU) that utilizes gating mechanisms to manage information flow across the tree.
- Classification: The final hidden state at the root of the tree, representing the target user's integrated text and network features, is passed through a softmax layer for demographic prediction.
Datasets
The model was evaluated on three Twitter datasets representing different demographic challenges:
- Gender: 5,367 users with "friend" relationships (Male/Female).
- Age: 6,482 users with "friend" relationships (Young: 18-23 vs. Old: 25-30).
- UserType: 3,017 users with "follower" relationships (Individual, Organisation, or Other).
While the Gender and Age tasks utilized up to 1,000 tweets per user, the UserType task relied on shorter profile descriptions.
Results and Discussion
The experimental results demonstrate that GRNN models, particularly the LSTM variant (GLSTMN), consistently outperform traditional baselines like Logistic Regression (LR) and specialized graph embedding methods such as TADW and TriDNR.
A key finding is the impact of neighborhood depth ($d$). For the Gender task, a depth of 0 (text-only) was often sufficient, achieving 68.16% accuracy. However, for Age and UserType, incorporating social context (depth 1 or 2) led to significant performance gains. For instance, GLSTMN at depth 1 reached 80.82% accuracy on the Age dataset, a substantial improvement over the 73.70% achieved by Logistic Regression. This suggests that age and account type exhibit higher social homophily—the tendency for similar individuals to associate—than gender does on Twitter.
Conclusion
By breaking the independence assumption, Graph Recursive Neural Networks provide a more holistic approach to demographic inference. The use of LSTM units proved vital for capturing dependencies within the social tree. While the model shows state-of-the-art performance, it faces scalability challenges; the exponential growth of tree nodes with depth and network density can lead to high memory requirements. Future research may look toward Graph Convolutional Networks (GCNs) to achieve similar integrative benefits with improved computational efficiency.
Summary updated