Home

Awesome

POLITICS

This repository contains code, data, and models for the NAACL 2022 findings paper POLITICS: Pretraining with Same-story Article Comparison for Ideology Prediction and Stance Detection.

ALERT: POLITICS is a pre-trained language model that specializes in comprehending news articles and understanding ideological content. However, POLITICS cannot be used out-of-the-box on downstream tasks such as predicting ideological leanings and discerning stances expressed in texts. To perform predictions on downstream tasks, you are advised to fine-tune POLITICS on your own dataset first.

<i>We are still refactoring and cleaning the downstream evaluation code, please stay tuned and check back later!</i>

<i>Please check out our "sibling project" on entity-level stance detection if interested in modeling fine-grained stance detection or entity interaction.</i>

What's in this repo?

Continued pretraining

To retrain POLITICS, simply run pretrain.sh. You need to download the precessed data that contains the indices for entities and sentiment words from this form. After downloading, please move the data files and lexicon directory to the DATA_DIR defined in pretrain.sh.

Downstream tasks evaluation

Macro F1 score for all tasks are shown in the following table.

YT (cmt.)CongSHPAllSYT (user)TWIdeo. avgSEval (seen)SEval (unseen)Basil (sent.)VASTBasil (art.)Stan. avgAll avg
BERT (base)64.6465.8848.4260.8865.2444.2058.2165.0740.3962.8170.5345.6156.8857.61
RoBERTa (base)66.7267.2560.4374.7567.9848.9064.3470.1563.0868.1676.2541.3663.8064.09
POLITICS (base)67.8370.8670.2574.9378.7348.9268.5969.4161.2673.4176.7351.9466.5567.66

License

POLITICS is shared under CC BY-NC-SA 4.0. The license applies to both data and pretrained models.

Contact

If you have any questions, please contact Yujian Liu <yujianl@umich.edu> or Xinliang Frederick Zhang <xlfzhang@umich.edu> or create a Github issue.

Citation

Please cite our paper if you our POLITICS model and/or BIGNEWS dataset as well as their derivatives from this repo:

@inproceedings{liu-etal-2022-politics,
    title = "{POLITICS}: Pretraining with Same-story Article Comparison for Ideology Prediction and Stance Detection",
    author = "Liu, Yujian  and
      Zhang, Xinliang Frederick  and
      Wegsman, David  and
      Beauchamp, Nicholas  and
      Wang, Lu",
    booktitle = "Findings of the Association for Computational Linguistics: NAACL 2022",
    month = jul,
    year = "2022",
    address = "Seattle, United States",
    publisher = "Association for Computational Linguistics",
    pages = "1354--1374",
}