Learning Representations of Social Media Users

Adrian BentonarXiv 2018

Abstract

User representations are foundational to modern digital ecosystems, powering recommendation systems, targeted advertising, and public policy research. However, social media data is inherently noisy, sparse, and context-dependent. This research addresses the challenge of extracting stable, multi-purpose user representations—or "embeddings"—from complex social media behavior. By employing multiview learning, multitask learning, and user-conditioned topic models, this work demonstrates that latent user features can significantly improve performance on downstream tasks, including demographic inference, stance classification, and mental health state prediction.

Introduction

Social media platforms provide a wealth of data, yet individual messages are often too short and informal to be useful in isolation. A single tweet like "Despite the constant negative press covfefe" is nonsensical without the context of the author’s identity and history. Traditionally, researchers relied on "hard clusters" such as age or gender categories to provide this context, but these labels are often unavailable or too coarse to capture the nuances of human behavior.

This research proposes the use of distributed user representations—compact vector embeddings that act as a digital fingerprint. These embeddings capture a user's interests, social network, and linguistic style, providing a stable context that informs machine learning models at the message level. The goal is to create representations that are not only predictive of latent properties (e.g., socioeconomic status or mental health) but also transferable across diverse tasks.

Methodology

The research approaches representation learning through three primary technical frameworks:

1. Multiview Representation Learning

To capture the multifaceted nature of social media activity, the study utilizes Generalized Canonical Correlation Analysis (GCCA). This method combines different "views" of a user, such as the text they post versus their friend/follower network. Two novel extensions are introduced:

  • Weighted GCCA (wGCCA): Allows practitioners to prioritize specific views that are more informative for a target task.
  • Deep GCCA (dGCCA): Employs neural networks to capture non-linear relationships between disparate types of user behavior.

2. User-Conditioned Topic Models

The author introduces deep Dirichlet Multinomial Regression (dDMR) to improve topic discovery in short-text corpora. While standard models like Latent Dirichlet Allocation (LDA) are unsupervised, dDMR uses high-dimensional metadata—including user features or even images—as "distant supervision." By using a neural network to map metadata to topic distributions, dDMR can handle noisier and more complex supervision than traditional linear methods.

3. Multitask Learning (MTL)

For sensitive classification tasks, such as mental health prediction, the research employs a Multitask Learning framework. By training models on multiple related tasks simultaneously (e.g., predicting gender and depression as auxiliary tasks to improve suicide risk prediction), the model leverages shared signals. This is particularly effective for conditions that frequently co-occur, a phenomenon known as comorbidity.

Key Insights and Results

The effectiveness of these representations was evaluated across several domains, yielding the following insights:

  • Mental Health Prediction: The MTL approach proved highly effective. By predicting related conditions together, the model overcame data scarcity for rarer conditions. This approach increased the True Positive Rate for anxiety prediction by up to 9.7% absolute (at a 10% false alarm rate) compared to single-task models.
  • Topic Model Fit: dDMR consistently achieved lower heldout perplexity than LDA or standard DMR. This was especially evident when using high-dimensional inputs, such as images from Amazon product reviews, to guide the topic model.
  • Stance Classification: The research demonstrated that generic user embeddings are highly transferable. Pretraining a Recurrent Neural Network (RNN) to predict user embeddings improved stance detection (e.g., pro- or anti-gun control) across 4 out of 5 domains in the SemEval 2016 benchmark, even when the training and test domains were not perfectly aligned.
  • Efficiency and Convergence: Models supervised by user features converged significantly faster than unsupervised models. In some instances, dDMR reached a better fit in 1,000 iterations than LDA achieved in 10,000.

Discussion and Future Work

While the results demonstrate the power of latent user representations, several challenges remain. First is the issue of interpretability; like many deep learning outputs, these embeddings are "opaque," making it difficult to explain why a user is positioned in a specific part of the vector space. Second is scalability; current multiview methods are batch-processed, requiring new stochastic algorithms to scale to platforms with billions of users.

Furthermore, social media behavior is not static. Future work must address temporal dynamics, developing methods to update user representations as interests and networks evolve. Finally, the author emphasizes the ethical considerations of this work. Predicting sensitive attributes like mental health carries significant risks regarding privacy and stigmatization. Future research must balance the potential for life-saving interventions with the necessity of protecting user autonomy and data security.

Conclusion

By transforming messy, sparse social media activity into structured embeddings, this research provides a robust framework for understanding users at scale. Whether improving the accuracy of public opinion gauges or enhancing the detection of mental health crises, stable user representations serve as a critical bridge between raw social data and actionable insights.

Summary updated

Abstract

User representations are routinely used in recommendation systems by platform developers, targeted advertisements by marketers, and by public policy researchers to gauge public opinion across demographic groups. Computer scientists consider the problem of inferring user representations more abstractly; how does one extract a stable user representation - effective for many downstream tasks - from a medium as noisy and complicated as social media? The quality of a user representation is ultimately task-dependent (e.g. does it improve classifier performance, make more accurate recommendations in a recommendation system) but there are proxies that are less sensitive to the specific task. Is the representation predictive of latent properties such as a person's demographic features, socioeconomic class, or mental health state? Is it predictive of the user's future behavior? In this thesis, we begin by showing how user representations can be learned from multiple types of user behavior on social media. We apply several extensions of generalized canonical correlation analysis to learn these representations and evaluate them at three tasks: predicting future hashtag mentions, friending behavior, and demographic features. We then show how user features can be employed as distant supervision to improve topic model fit. Finally, we show how user features can be integrated into and improve existing classifiers in the multitask learning framework. We treat user representations - ground truth gender and mental health features - as auxiliary tasks to improve mental health state prediction. We also use distributed user representations learned in the first chapter to improve tweet-level stance classifiers, showing that distant user information can inform classification tasks at the granularity of a single message.
BibTeX
@misc{benton2018learning,
  author = {Adrian Benton},
  title = {{Learning Representations of Social Media Users}},
  year = {2018},
  eprint = {1812.00436},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1812.00436},
}
Figure