Overcoming Language Variation in Sentiment Analysis with Social Attention

Yi Yang, Jacob Eisenstein

TL;DR

This paper tackles the challenge of language variation in sentiment analysis, particularly in social media, by leveraging social network structures. They introduce "Social Attention," a novel neural network architecture that uses an "attention mechanism" to adapt sentiment analysis models based on an author's position within their social network, leading to significant accuracy improvements.

What Problem Does This Paper Address?

Sentiment analysis, the task of determining the emotional tone of text, is complicated by the fact that words can have different meanings or connotations depending on the speaker or writer. This linguistic variation is especially pronounced in informal text like social media posts. While traditional NLP models often treat language uniformly, this paper recognizes that these variations are often linked to social factors. The core problem is how to make sentiment analysis models more robust to this social variation, moving beyond generic models to ones that can adapt to individual or community-level linguistic nuances without requiring extensive personalized labeled data.

Methods

The paper proposes a novel neural network architecture called Social Attention. The key idea is linguistic homophily: the tendency for people who are socially connected to use language similarly.

  1. Social Network Embedding: First, they represent each user's position in their social network (derived from follower, mention, and retweet relationships) as a vector embedding using the LINE method. This captures social proximity without using any textual information.
  2. Social Attention Mechanism: These social embeddings are then used to drive an "attention mechanism." This mechanism dynamically weights the contributions of multiple "basis models" (which are themselves Convolutional Neural Networks, CNNs, for sentiment classification). The weighting is such that authors who are socially close will have similar attention distributions, effectively smoothing the classification function across the social network.
  3. Ensemble of Basis Models: The final prediction is a weighted combination of these basis models. Each basis model is encouraged to focus on a specific "region" of the social network, allowing the model to capture subtle shifts in sentiment meaning across different social groups.
  4. Training: The model is trained using a logistic loss objective, and they employ a pre-training strategy with instance weighting to prevent basis models from becoming inactive.

Datasets

The paper uses the following datasets:

  • SemEval Twitter Sentiment Analysis Datasets (2013-2015): These are the primary datasets for training and evaluating the model on Twitter data. They contain tweets labeled with positive, negative, or neutral sentiment.
  • Ciao Product Reviews Dataset: This dataset, containing over 250,000 reviews from nearly 10,000 users, is used to evaluate the model on a larger scale and in a different domain. It includes explicit "trust" relationships between users, forming a social network.

Key Insights and Ideas

  • Linguistic Homophily is Key: The paper strongly supports the idea that social connections are a powerful indicator of similar language use, which can be exploited for sentiment analysis. This is a more generalizable claim than just assuming neighbors share opinions (label homophily).
  • Social Attention Bridges the Gap: The "Social Attention" mechanism effectively bridges the gap between generic, group-level models and fully personalized models, which are often infeasible due to data sparsity. It allows for personalization without requiring labeled data for every individual.
  • Basis Models Capture Nuance: The use of multiple basis models, each focusing on different social network regions, allows the system to capture subtle, context-dependent shifts in word meaning (e.g., ironic use of "sick").
  • Retweet Networks are Informative: Among the social network types explored (follower, mention, retweet), the retweet network provided the best performance, suggesting that more active forms of social interaction yield richer social signals.

Key Results

  • Significant Accuracy Improvement: Social Attention achieved a 2.8% average F1 score improvement over standard CNNs on the SemEval Twitter datasets.
  • State-of-the-Art Performance: The model outperformed prior published results on the SemEval Twitter test sets.
  • Robustness Across Networks: Social Attention showed strong performance regardless of the social network type used (follower, mention, retweet), though retweet networks yielded slightly better results.
  • Ciao Dataset Success: On the Ciao product review dataset, Social Attention achieved an average F1 score of 80.19%, outperforming random attention and other baselines, demonstrating its effectiveness in a larger, more review-centric dataset.

Limitations and Future Work

  • Data Sparsity: While the model addresses data sparsity, it's acknowledged that in sparse networks (like follower networks), the quality of author embeddings can be limited. The paper describes methods to expand these networks to mitigate this.
  • Unified Multi-relational Networks: The current embedding method uses single-relational networks. The authors suggest future work could explore combining different relation types (follow, mention, retweet) into a unified multi-relational network for potentially richer embeddings.
  • Cross-Task Applicability: A key question for future research is whether this socially-infused ensemble approach can be generalized to be useful across multiple NLP tasks beyond sentiment analysis, such as part-of-speech tagging or information extraction.

Summary updated

BibTeX
@article{yang2015overcoming,
  author = {Yi Yang and Jacob Eisenstein},
  title = {{Overcoming Language Variation in Sentiment Analysis with Social Attention}},
  journal = {Trans. Assoc. Comput. Linguistics},
  year = {2015},
}
Figure