Downloads · 30 days
8
2% of all-time downloads
hybrinfox/ukraine-operation_propaganda-detection-EN
ukraine-operation_propaganda-detection-EN is a text classification model from hybrinfox. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
This model aims at identifying propaganda on the topic of the Ukrainian invasion in press articles.
Downloads · 30 days
8
2% of all-time downloads
All-time downloads
423
Public
Parameters
125M
499 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors499 MB · 100%
From the Hugging Face model README
This model aims at identifying propaganda on the topic of the Ukrainian invasion in press articles.
The model is a fine-tuned version of roberta-base (https://huggingface.co/roberta-base) on the Propagandist Pseudo-News dataset (https://github.com/hybrinfox/ppn)
The model can be used directly to classify press articles written in English about the Ukraine invasion or related topic. The output corresponds to the probability of belonging to each class, 0 for regular press articles and 1 for propagandist article.
This model should not be used to categorize news sources as propagandist or not, but can help identify pro-Russian narratives and Russian values. This model is not trained to identify the auhors' intentions and should not be used to make such conclusions.
This model has been trained with articles from different sources, but all articles from the propaganda class share the same narrative. Moreover, all articles shared the same topic of the Russio-Ukrainian conflict. The model is not infaillible and shouldn't be use to make critical decisions when judging an article, its authors, or the corresponding news outlet.
We recommend that you use this model for research purposes and to always cross its predictions with the informed opinion of other sources before taking any conclusion.
Use the code below to get started with the model.
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="hybrinfox/ukraine-operation_propaganda-detection-EN")
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("hybrinfox/ukraine-operation_propaganda-detection-FR")
model = AutoModelForSequenceClassification.from_pretrained("hybrinfox/ukraine-operation_propaganda-detection-EN")
The model has been trained using the data from the Propagandist Pseudo-News dataset available at https://github.com/hybrinfox/ppn for the positive class. Additional articles on the same topic, but from mainstream sources has been used for the negative class. Please, read the paper for more details.
Batch size: 8 Learning rate: 5e-5 Number of fine-tuning epochs: 3 Optimizer: Adam with default settings Loss function: Binary Cross-Entropy
The model was evaluated during training with the training metrics, as well as with the validation loss
The previously described dataset has been split between train/val/test with a 80/10/10 ratio. The reported results are on the test set, after using the training set for training and validation for controling the model learning.
The reported metrics are the F1 scores and losses on the three sets.
| Split | Loss | F1 score |
|---|---|---|
| Train | 0.0004 | 1.0000 |
| Val | 0.0170 | 0.9985 |
| Test | 0.0329 | 0.9970 |
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
Thanks to fine-tuning a general foundation model, the environmental impact of training our propaganda detector is negligible, being the equivalent of 40 meters traveled by an internal combustion engine car. The low-carbon energy used in the compute region also helped to reduce the environmental impact of the training.
Géraud Faye, Benjamin Icard, Morgane Casanova, Julien Chanson, François Maine, François Bancilhon, Guillaume Gadek, Guillaume Gravier, and Paul Égré. 2024. Exposing propaganda: an analysis of stylistic cues comparing human annotations and machine classification. In Proceedings of the Third Workshop on Understanding Implicit and Underspecified Language, pages 62–72, Malta. Association for Computational Linguistics.
BibTeX:
@inproceedings{faye-etal-2024-exposing,
title = "Exposing propaganda: an analysis of stylistic cues comparing human annotations and machine classification",
author = "Faye, G{\'e}raud and
Icard, Benjamin and
Casanova, Morgane and
Chanson, Julien and
Maine, Fran{\c{c}}ois and
Bancilhon, Fran{\c{c}}ois and
Gadek, Guillaume and
Gravier, Guillaume and
{\'E}gr{\'e}, Paul",
editor = "Pyatkin, Valentina and
Fried, Daniel and
Stengel-Eskin, Elias and
Stengel-Eskin, Elias and
Liu, Alisa and
Pezzelle, Sandro",
booktitle = "Proceedings of the Third Workshop on Understanding Implicit and Underspecified Language",
month = mar,
year = "2024",
address = "Malta",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2024.unimplicit-1.6",
pages = "62--72",
}
HYBRINFOX consortium