Abstract
Style-shifting—the adjustment of linguistic patterns based on social context—is a fundamental aspect of human communication. This paper presents a novel framework for measuring style-shifting on social media using personalized neural language models. By conditioning a GPT-2 based model on non-linguistic social features such as network authority and follower counts, the researchers developed a "surprisal-based" metric. Their results demonstrate that this approach significantly outperforms traditional word-overlap methods in capturing the nuances of social media conversations, providing a more accurate tool for sociolinguistic analysis.
Introduction
In linguistics, style-shifting refers to how individuals adapt their way of speaking depending on their interlocutor. On social media, these shifts are constant, reflecting complex dynamics like accommodation (matching style to build rapport) or divergence (distancing to assert identity). Traditional metrics for measuring these shifts often rely on word-overlap, which fails to capture the "social meaning" behind the words. For instance, two users might share a vocabulary but differ vastly in tone. Furthermore, modeling individual user styles is challenging due to data sparsity. This research addresses these gaps by utilizing large-scale language models conditioned on social context.
Methodology
The authors developed a personalized neural language model based on Japanese GPT-2. The core innovation is the integration of "social meanings" into the model's architecture through personalized embeddings.
As shown in Figure 1, the model incorporates several non-linguistic factors:
- Implicit Social Relationships:
node2vecembeddings derived from the Twitter friend-follower graph. - Social Impact (HITS Algorithm): "Authority" and "Hub" scores to represent a user's value and connectivity within the network.
- Engagement Metrics: Data on likes, retweets, and replies to reflect the social weight of an utterance.
The researchers proposed two surprisal-based metrics (negative log-likelihood): $s_{sim}$, measuring similarity between speakers, and $s_{change}$, measuring a speaker's deviation from their standard style.
Experimental Setup
The study utilized a massive dataset of Japanese Twitter (X) conversations, consisting of over 12.5 million reply pairs for training and approximately 860,000 for testing. To establish a ground truth, a subset of 200 reply pairs was manually annotated by native speakers for style similarity and change. The social graph was constructed starting from five seed users and expanding through their network.
Results and Discussion
The inclusion of social context significantly improved the model's predictive capabilities. The fully conditioned model achieved a test-set perplexity of 12.59, a marked improvement over the 15.20 achieved by a standard fine-tuned GPT-2.
Key findings from the analysis include:
- Surprisal vs. Word Overlap: Traditional metrics like Word Mover’s Distance (WMD) showed near-zero correlation with human judgments. In contrast, the surprisal-based metrics showed statistically significant correlations, suggesting that the probability of word usage is more indicative of style than vocabulary alone.
- The "Hub" Effect: Users with high "hub" scores (following many influential people) demonstrated greater linguistic similarity to their interlocutors, suggesting higher social adaptivity.
- Audience Awareness: High engagement metrics often correlated with style changes, indicating that users shift their style when aware of a larger "invisible audience."
Conclusion
This research demonstrates that neural language models conditioned on social features provide a powerful lens for studying style-shifting. While the current model treats social features as static snapshots and remains somewhat of a "black box" regarding how social meanings influence text generation, it represents a significant step forward. Future work will explore dynamic social features and improved sampling methodologies to capture more extreme instances of linguistic accommodation and divergence.
Summary updated