Dynamic Embeddings for User Profiling in Twitter

Shangsong Liang, Xiangliang Zhang, Zhaochun Ren, Evangelos Kanoulas

Abstract

User profiling on social media platforms like Twitter is challenging due to vocabulary mismatch, disjoint representation spaces, and rapid temporal drift in user interests. This paper presents DUWE (Dynamic User and Word Embedding), a novel framework that jointly maps users and words into a shared, time-varying vector space. By modeling embedding evolution as a diffusion process guided by a Kalman filter, DUWE captures semantic shifts while maintaining stability. Coupled with a Streaming Keyword Diversification Model (SKDM), the system generates accurate and diverse interest profiles. Experimental results on a large-scale Twitter dataset demonstrate that DUWE significantly outperforms state-of-the-art baselines in both relevance and temporal robustness.

Introduction

Identifying keywords that accurately describe a user's interests is essential for personalized recommendations and targeted advertising. On Twitter, this task is complicated by three primary factors:

  1. Vocabulary Mismatch: Synonymous terms (e.g., "iPhone" vs. "smartphone") create fragmented representations.
  2. Disjoint Spaces: Traditional models often represent users and topics in separate mathematical spaces, complicating direct similarity measurement.
  3. Temporal Drift: User interests are highly dynamic, shifting rapidly in response to real-world events (e.g., from sports to technology launches).

Existing approaches typically "bin" data into discrete time intervals, which fails to capture the continuous flow of information and increases computational overhead. DUWE addresses these challenges by treating user profiling as a dynamic embedding problem.

Methodology

The core of the proposed system is the Dynamic User and Word Embedding (DUWE) model. Unlike standard static models, DUWE treats the evolution of embeddings as a diffusion process.

DUWE Architecture

DUWE generalizes the skip-gram model by incorporating a Kalman filter prior. This allows the model to distinguish between meaningful semantic shifts and transient noise, ensuring a smooth trajectory for embeddings over time. Crucially, users and words are modeled in the same semantic space, enabling direct calculation of user-word similarity.

Graphical representation of the DUWE model showing the evolution of user and word embeddings over time.

Inference and Diversification

To maintain stability and robustness, the researchers employ Black-box Variational Inference with a reparameterization trick. This ensures that the objective function remains convex, leading to consistent results across training runs—a significant advantage over traditional neural approaches.

Following embedding generation, the Streaming Keyword Diversification Model (SKDM) is used to select the "top-K" keywords. SKDM ensures that the resulting profile is not just relevant but also diverse, avoiding redundant synonyms and covering a broader range of the user's interests.

Experimental Setup

The model was evaluated using a dataset of 3.78 million tweets from 1,375 users. To establish a ground truth, 68 human annotators labeled user interests across various time granularities (weekly, monthly, quarterly, etc.). This "gold standard" allowed for rigorous testing of both the relevance and the diversity of the generated profiles.

Results and Discussion

DUWE was benchmarked against several competitive models, including the User Clustering Topic model (UCT) and dynamic skip-gram variants (DPSG/DPDR).

  • Accuracy and Relevance: DUWE consistently outperformed all baselines in Precision@10 and NDCG. Its ability to model users and words jointly provided a statistically significant advantage in relevance tasks.
  • Temporal Robustness: While baseline performance often fluctuated depending on how time was "sliced," DUWE remained stable across all time bin sizes, from one week to one year.
  • Efficiency: The model demonstrates high dimensionality efficiency, reaching peak performance with only 100 dimensions.

A key insight from this work is that a shared semantic space eliminates the need for intermediate topic layers. By treating a user as the sum of the word-vectors they gravitate toward, the model achieves a more direct and intuitive representation of interest.

Conclusion

DUWE provides a robust framework for real-time user profiling on Twitter. By leveraging Kalman filtering for temporal dynamics and ensuring a convex objective function, the model offers a stable and accurate solution for tracking evolving interests. Future work will focus on extending the model to support phrase-based profiling and incorporating social graph dynamics, such as follower-following relationships, to further enrich user profiles.

Summary updated

BibTeX
@inproceedings{liang2018dynamic,
  author = {Shangsong Liang and Xiangliang Zhang and Zhaochun Ren and Evangelos Kanoulas},
  title = {{Dynamic Embeddings for User Profiling in Twitter}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2018},
  doi = {10.1145/3219819.3220043},
}
Figure