[Paper Review] TwHIN-BERT: A Socially-Enriched Pre-trained Language Model for Multilingual Tweet Representations at Twitter
TwHIN-BERT is a multilingual, socially-enriched pre-trained language model for Twitter, trained on 7 billion tweets across 100+ languages using both masked language modeling and a contrastive social objective based on user engagement logs. It achieves state-of-the-art performance in multilingual tweet representation, especially in social recommendation and semantic understanding tasks, outperforming existing models by leveraging social network structure and engagement signals.
Pre-trained language models (PLMs) are fundamental for natural language processing applications. Most existing PLMs are not tailored to the noisy user-generated text on social media, and the pre-training does not factor in the valuable social engagement logs available in a social network. We present TwHIN-BERT, a multilingual language model productionized at Twitter, trained on in-domain data from the popular social network. TwHIN-BERT differs from prior pre-trained language models as it is trained with not only text-based self-supervision, but also with a social objective based on the rich social engagements within a Twitter heterogeneous information network (TwHIN). Our model is trained on 7 billion tweets covering over 100 distinct languages, providing a valuable representation to model short, noisy, user-generated text. We evaluate our model on various multilingual social recommendation and semantic understanding tasks and demonstrate significant metric improvement over established pre-trained language models. We open-source TwHIN-BERT and our curated hashtag prediction and social engagement benchmark datasets to the research community.
Motivation & Objective
- To address the limitations of general-domain pre-trained language models in understanding short, noisy, multilingual user-generated content on Twitter.
- To leverage rich social engagement logs (e.g., retweets, favorites, replies) as a signal for improving tweet representation learning.
- To develop a scalable method for mining socially similar tweet pairs from massive heterogeneous interaction networks.
- To jointly pre-train a language model using both text-based masked language modeling and a contrastive social objective for improved semantic and social relevance.
- To release a high-quality, multilingual benchmark for hashtag prediction and social engagement prediction to advance research in social media NLP.
Proposed method
- Construct a Twitter Heterogeneous Information Network (TwHIN) to unify multi-typed user engagement logs (e.g., retweets, replies, favorites) into a single relational structure.
- Apply scalable knowledge graph embedding and approximate nearest neighbor search to identify billions of socially similar tweet pairs from 700+ billion engagement records.
- Design a contrastive learning objective that trains the model to distinguish between socially similar and dissimilar tweet pairs, enhancing representation alignment.
- Pre-train TwHIN-BERT using a joint objective: masked language modeling (MLM) on raw text and contrastive learning on socially similar pairs.
- Fine-tune the model on downstream tasks such as hashtag prediction and social engagement prediction using the curated benchmark datasets.
- Utilize knowledge graph embedding techniques (e.g., TransE, RotatE) to model diverse node and edge types in the TwHIN, enabling scalable and flexible representation learning.
Experimental results
Research questions
- RQ1Can incorporating social engagement signals into pre-training improve the quality of multilingual tweet representations compared to text-only pre-training?
- RQ2How effective is a contrastive learning objective based on co-engagement patterns in capturing semantic and social similarity in short, noisy tweets?
- RQ3To what extent does TwHIN-BERT outperform existing multilingual and Twitter-specific language models on semantic understanding and social recommendation tasks?
- RQ4Can a large-scale, multilingual, socially-enriched language model generalize across diverse languages and social contexts on Twitter?
- RQ5What is the impact of using a heterogeneous information network (TwHIN) to mine socially relevant tweet pairs at scale?
Key findings
- TwHIN-BERT achieves state-of-the-art performance on multilingual tweet representation tasks, outperforming established models like XLM-T and BERTweet on both semantic understanding and social engagement prediction benchmarks.
- The model demonstrates a significant advantage in social recommendation tasks, with improvements of up to 5.5% in F1-score on the curated social engagement prediction dataset.
- On the multilingual hashtag prediction benchmark, TwHIN-BERT achieves an average F1-score of 55.23%, outperforming XLM-T and BERTweet across 100+ languages.
- The joint pre-training objective combining MLM and contrastive social learning leads to more robust and semantically aligned representations, especially for low-resource languages.
- The model’s performance is particularly strong on short, informal, and noisy tweets, confirming the value of social signals in capturing contextual and topical relevance.
- The open-sourced TwHIN-BERT model and two benchmark datasets (hashtag prediction and social engagement prediction) are expected to accelerate research in multilingual social media NLP.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.