Community Member Retrieval on Social Media using Textual Information

Aaron Jaech, Shobhit Hathi, Mari Ostendorf

TL;DR

This paper introduces a text-only approach for retrieving social media community members using just a few example accounts as a query. By training user embeddings on an unsupervised proxy task—person re-identification via triplet loss—the system learns to capture distinct individual styles and polarizing interests, significantly outperforming standard semantic baselines like Word2Vec and LDA.

What Problem Does This Paper Address?

Identifying online "communities of interest" (e.g., cartoonists, local food truck enthusiasts, or specific research niches) typically relies heavily on social graph data like follower networks. However, explicit social graphs are often expensive to compute, restricted by privacy settings, or simply non-existent.

While text features (tweets, blogs) offer an alternative, detecting community members purely from text is challenging when a user only provides a handful of example accounts to define the community. With such minimal labeled data, standard supervised learning fails. The authors tackle this gap by exploring how to learn text representations (embeddings) that inherently highlight the shared jargon, topical interests, and subtle language variations that bind a community together.

Methods

The authors frame community detection as a retrieval problem: a user provides a few example accounts (the query), and the system ranks a massive index of candidate accounts to find similar users.

The core innovation is the person re-identification proxy task used to learn user embeddings:

  1. User Embedding Model: A user's text is represented using a simple, log-scaled weighted bag-of-words neural model. This maps the text to a $k$-dimensional embedding space.
  2. Proxy Learning Task: To train the embedding matrix without explicit community labels, the authors use a triplet loss function borrowed from computer vision face recognition. The objective forces two distinct tweet samples from the same user to be closer in the embedding space than a tweet sample from a random user.
  3. Classification & Retrieval: Once the embeddings are learned, a simple logistic regression classifier with L2 regularization is trained on the fly using the query accounts as positive examples and a general pool as negative examples. Because the classifier is linear, retrieval can scale efficiently to millions of users using approximate nearest-neighbor search.

Datasets

The authors collected two contemporaneous datasets using the Twitter API:

  • General Population: Approximately 80,000 users who tweeted about 1,035 trending US topics between April and June 2017. This dataset was split into subsets for embedding learning (36k), classifier negative training (1k), and evaluation (43k).
  • Evaluation Communities: 16 distinct, manually curated communities spanning a wide variety of sizes (6 to 130 accounts), topics, and types (individuals vs. organizations). Examples include Chess Stars, NLP Researchers, Hedge Fund Managers, and High School Drama Departments.

Key Insights and Ideas

  • From Semantics to Identity: Standard Word2Vec captures broad semantic similarities (e.g., grouping synonyms). The person re-identification task forces the model to ignore generic language and instead focus on what makes a specific person unique.
  • Sociolects and Polarizing Cues: When analyzing which words shifted the most between standard Word2Vec and the re-identification model, the authors discovered that the model naturally latched onto regional dialects, specific user handles, hobbies, and highly polarizing political topics.
  • Implicit Social Structure: Even without a social graph, the text-based embeddings captured social structure; the words that changed the most under the new objective disproportionately included Twitter user handles, effectively mapping out communication networks through text alone.

Key Results

The proposed person re-identification strategy dramatically outperformed standard unsupervised baselines like Latent Dirichlet Allocation (LDA) and standard Word2Vec (W2V).

Overall performance comparison across different embedding strategies.

As shown in Table 1, initializing the re-identification model with Word2Vec weights (RE-ID (W2V init)) yielded the best results, achieving an AUC of 98.5 and reducing the Inverse Mean Reciprocal Rank (1/MRR) to 12 (where a lower rank indicates better retrieval performance).

Breakdown of retrieval performance (1/MRR) across the 16 target communities.

Table 2 highlights that performance varied significantly by community. Interestingly, community size was not a major factor; instead, the diversity of the members' interests dictated the difficulty. For instance, Cartoonists proved hardest to retrieve because they frequently tweeted about unrelated topics like politics or sports, diluting their community-specific textual footprint.

Limitations and Future Work

  • Bag-of-Words Limitation: The current model relies on a bag-of-words assumption. The authors note that the re-identification framework could easily be extended to more sophisticated sequence-based document embedding architectures (like CNNs or Doc2Vec).
  • Data Contamination: The evaluation assumes the "general population" contains only negative examples. However, manual checks revealed that top false positives were often actual members of the target communities (e.g., economists appearing in the general pool), meaning the model's real-world performance might be even higher than reported.
  • Small Evaluation Scale: The 16 test communities provide a solid proof-of-concept, but the authors acknowledge the sample size is too small to definitively confirm how community diversity correlates with retrieval difficulty.

Summary updated

Abstract

This paper addresses the problem of community membership detection using only text features in a scenario where a small number of positive labeled examples defines the community. The solution introduces an unsupervised proxy task for learning user embeddings: user re-identification. Experiments with 16 different communities show that the resulting embeddings are more effective for community membership identification than common unsupervised representations.
BibTeX
@inproceedings{jaech2018community,
  author = {Aaron Jaech and Shobhit Hathi and Mari Ostendorf},
  title = {{Community Member Retrieval on Social Media using Textual Information}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2018},
  url = {https://openreview.net/forum?id=By-hjG-d-B},
}
Figure