Skip to main content
QUICK REVIEW

[Paper Review] TweetBERT: A Pretrained Language Representation Model for Twitter Text Analysis

Mohiuddin Md Abdul Qudar, Vijay Mago|arXiv (Cornell University)|Oct 17, 2020
Topic ModelingComputer Science46 references29 citations
TL;DR

This paper introduces TweetBERT, a domain-specific language representation model pre-trained on millions of tweets to improve Twitter text analysis. By fine-tuning on sentiment analysis and classification tasks, TweetBERTv1 and TweetBERTv2 outperform standard BERT models by over 7% on average across Twitter datasets, demonstrating significant gains in handling informal, colloquial social media language.

ABSTRACT

Twitter is a well-known microblogging social site where users express their views and opinions in real-time. As a result, tweets tend to contain valuable information. With the advancements of deep learning in the domain of natural language processing, extracting meaningful information from tweets has become a growing interest among natural language researchers. Applying existing language representation models to extract information from Twitter does not often produce good results. Moreover, there is no existing language representation models for text analysis specific to the social media domain. Hence, in this article, we introduce two TweetBERT models, which are domain specific language presentation models, pre-trained on millions of tweets. We show that the TweetBERT models significantly outperform the traditional BERT models in Twitter text mining tasks by more than 7% on each Twitter dataset. We also provide an extensive analysis by evaluating seven BERT models on 31 different datasets. Our results validate our hypothesis that continuously training language models on twitter corpus help performance with Twitter.

Motivation & Objective

  • Address the challenge of applying general-domain language models like BERT to informal, colloquial Twitter text, which often leads to suboptimal performance.
  • Develop a domain-specific language representation model tailored for the unique linguistic patterns of social media, particularly Twitter.
  • Improve performance on Twitter-specific NLP tasks such as sentiment analysis and text classification through targeted pre-training on tweet corpora.
  • Provide a comprehensive evaluation of TweetBERT against seven BERT variants across 31 diverse datasets, including general, biomedical, scientific, and Twitter domains.
  • Release pre-trained weights and source code to support reproducibility and broader adoption in social media NLP research.

Proposed method

  • Pre-train two variants of TweetBERT—TweetBERTv1 (initialized from BERT) and TweetBERTv2 (initialized from ALBERT)—on a large-scale corpus of cleaned, anonymized tweets collected via a big data analytics platform.
  • Use the same pre-training objectives as BERT: masked language modeling and next sentence prediction, adapted to the linguistic style of tweets.
  • For TweetBERTv2, incorporate vocabulary from both BERT and SciBERT (SciVocab) to enhance performance on scientific and technical tweet analysis.
  • Fine-tune the models on downstream Twitter tasks including sentiment analysis (e.g., Twitter Sarcasm, Sentiment140), gender classification, and political tweet classification.
  • Leverage transfer learning to adapt the pre-trained models to specific classification tasks using standard fine-tuning procedures.
  • Evaluate performance across 31 datasets, comparing TweetBERT to BERT, BioBERT, SciBERT, RoBERTa, and ALBERT using accuracy and marginal percentage gain metrics.

Experimental results

Research questions

  • RQ1Can a language model pre-trained specifically on Twitter corpora significantly outperform general-domain BERT models in Twitter text analysis tasks?
  • RQ2How does continual pre-training on Twitter data affect performance across diverse NLP benchmarks, including non-Twitter domains?
  • RQ3What is the impact of model initialization (BERT vs. ALBERT) and vocabulary design (BaseVocab vs. SciVocab) on performance in tweet understanding?
  • RQ4To what extent do TweetBERT models generalize beyond Twitter to other domains such as biomedical or scientific text?
  • RQ5What is the marginal performance gain of TweetBERT over existing BERT variants across different types of NLP tasks and datasets?

Key findings

  • TweetBERTv1 and TweetBERTv2 outperform standard BERT, BioBERT, SciBERT, RoBERTa, and ALBERT by more than 7% on average across all Twitter datasets.
  • TweetBERTv2 achieves a marginal performance gain of 167.17% over ALBERT when evaluated on Twitter datasets, as measured by total accuracy improvement.
  • On the Twitter sentiment analysis task, TweetBERTv2 achieves 95.18% accuracy on the Sentiment140 dataset, outperforming BERT (85.63%) and ALBERT (90.59%).
  • TweetBERTv1 shows a 22.13% marginal improvement over BERT on the paper feild dataset, indicating strong performance in scientific text classification.
  • TweetBERT models demonstrate generalization capability, outperforming BioBERT on several biomedical datasets, suggesting cross-domain transferability.
  • The integration of SciVocab in TweetBERTv2 enables effective analysis of scientific and technical content within tweets, enhancing performance on scientific parsing and classification tasks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.