/ Модель

Характеристики

Контекст
514 токенов
Параметры
138 млн
Лицензия
MIT
Архитектура
camembert · dense
Опубликована
29 янв 2024

ukraine-operation_propaganda-detection-FR

Классификация текстаТекст → label3 профессии
222скачиваний за 30 дней0лайковвеса обновлены20 мар 2024

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

CamemBERT, дообученная для выявления пропагандистских статей на французском языке о вторжении России в Украину.

Модель разработана Airbus Defence and Space для консорциума HYBRINFOX и предназначена для классификации франкоязычных статей прессы о вторжении России в Украину и связанных тем. Это CamemBERT-base, дообученная для классификации последовательностей; модель содержит 137,8 млн параметров и принимает контекст длиной до 514 токенов. Она возвращает вероятности двух классов: обычная статья и пропагандистская статья.

Модель может помочь исследователям анализировать пропагандистские нарративы в новостных статьях. Она обучалась на наборе Propagandist Pseudo-News для положительного класса и статьях из основных СМИ по той же теме для отрицательного класса. Качество на тестовой выборке отражено F1-оценкой 0,9873, но результат ограничен тематикой и данными обучения.

Модель не определяет намерения авторов и не предназначена для оценки новостных источников или принятия критически важных решений об авторах и публикациях. Разработчики рекомендуют сверять прогнозы с оценками других источников. В README указана лицензия CC BY-NB 4.0, тогда как метаданные Hugging Face указывают MIT; лицензионные сведения расходятся.

Сценарии применения

  • поиск пропагандистских нарративов во франкоязычных статьях о войне в Украине
  • классификация новостной статьи как обычной или пропагандистской
  • исследовательский анализ публикаций о российско-украинском конфликте

Ограничения

Модель обучена на материалах о российско-украинском конфликте, а пропагандистский класс связан с определённым нарративом; её выводы нельзя переносить на другие темы или использовать для оценки источников и намерений авторов. Результаты следует проверять по другим источникам, а лицензионные сведения в README и метаданных расходятся.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Model Card for Model hybrinfox/ukraine-invasion_propaganda-detection-FR

This model aims at identifying propaganda on the topic of the Ukrainian invasion in press articles.

Model Details

Model Description

The model is a fine-tuned version of camembert-base (https://huggingface.co/camembert-base) on the Propagandist Pseudo-News dataset (https://github.com/hybrinfox/ppn)

  • Owned by: Airbus Defence and Space
  • Developed for: HYBRINFOX consortium (Airbus Defence and Space - Paris Sciences et Lettres, Ecole Normale Supérieure Ulm, Institut Jean-Nicod - Université de Rennes, Inria, IRISA, Mondeca)
  • Funded by : French National Research Agency (ANR-21-ASIA-0003)
  • Model type: Text classification
  • Language(s) (NLP): fr
  • License: CC BY-NB 4.0
  • Finetuned from model : camembert-base

Uses

Direct Use

The model can be used directly to classify press articles written in French 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.

Out-of-Scope Use

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.

Bias, Risks, and Limitations

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.

Recommendations

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.

How to Get Started with the Model

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-invasion_propaganda-detection-FR")

# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification

tokenizer = AutoTokenizer.from_pretrained("hybrinfox/ukraine-invasion_propaganda-detection-FR")
model = AutoModelForSequenceClassification.from_pretrained("hybrinfox/ukraine-invasion_propaganda-detection-FR")

Training Details

Training Data

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.

Training Procedure

Training Hyperparameters

  • Training regime:

Batch size: 8 Learning rate: 5e-5 Number of fine-tuning epochs: 3 Optimizer: Adam with default settings Loss function: Binary Cross-Entropy

Evaluation

The model was evaluated during training with the training metrics, as well as with the validation loss

Testing Data, Factors & Metrics

Testing Data

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.

Metrics

The reported metrics are the F1 scores and losses on the three sets.

Results

SplitLossF1 score
Train0.00121.0000
Val0.01790.9973
Test0.07960.9873

Summary

Environmental Impact

Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).

  • Hardware Type: T4
  • Hours used: 0.3
  • Cloud Provider: GCP
  • Compute Region: europe-west1
  • Carbon Emitted: 0.01 kg.CO2 eq

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.

Citation

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",
}

Model Card Authors

HYBRINFOX consortium

Model Card Contact

hybrinfox@gmail.com

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · text-classification

Можно запустить

Подбираем GPU…

Класс архитектуры
CamembertForSequenceClassification
Ревизия весов
c41ebcd

0 моделей