/ Модель

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

Контекст
514 токенов
Параметры
305 млн
Лицензия
CC BY-NC 4.0
Архитектура
xlm-roberta · dense
Базовая модель
xlm-roberta-base
Библиотека
transformers
Опубликована
30 июн 2026

tsektxt-xlmr

Классификация текстаТекст → label3 профессии
127скачиваний за 30 дней0лайковвеса обновлены7 ноя 2026

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

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

Дообученный классификатор XLM-RoBERTa для исследовательского определения сходства филиппинских новостных текстов с публикациями достоверных и недостоверных источников.

TsekTxt XLM-RoBERTa — бинарный классификатор достоверности новостных текстов, разработанный в рамках дипломного исследования по выявлению дезинформации на выборах на Филиппинах. Это дообученная для классификации последовательностей модель XLM-RoBERTa с 305,2 млн параметров и контекстом 514 токенов; длинные входы в описанной конфигурации обрезаются до 128 токенов. Модель относит текст к одному из двух классов: «достоверный» или «недостоверный».

Она предназначена для исследовательского анализа филиппинских новостей на английском, тагальском и их смешанном варианте Taglish, сравнения моделей выявления дезинформации и использования в исследовательской демонстрации TsekTxt. Внутренняя проверка проводилась на формальных новостных статьях; для XLM-RoBERTa указана точность 94,27%. Лицензия CC BY-NC 4.0 разрешает использование с указанием авторства и некоммерческим ограничением.

Модель классифицирует сходство текста с публикациями источников, которым в обучающих данных присвоены метки достоверности, но не проверяет истинность утверждений. Короткие тексты чаще могут ошибочно получить метку «недостоверный», а для неформальных публикаций в соцсетях и Taglish не приведена оценка качества. Вероятности могут быть чрезмерно уверенными, а политические данные могут отражать предвзятость источников; результаты требуют человеческой проверки и не подходят для автоматического фактчекинга, модерации или оценки людей и изданий.

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

  • Классификация формальных филиппинских новостных статей по меткам достоверности источника
  • Сравнение моделей выявления дезинформации на новостных корпусах
  • Исследование текстов на английском, тагальском и Taglish
  • Анализ ошибок классификатора на коротких текстах
  • Создание исследовательской демонстрации классификации новостей

Ограничения

Модель распознаёт сходство с текстами источников, помеченных в обучающих данных, а не проверяет фактическую истинность утверждений. Для коротких постов и неформального Taglish качество не установлено; вероятности могут быть чрезмерно уверенными, а тексты длиннее 128 токенов обрезаются.

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

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

TsekTxt – XLM-RoBERTa credibility classifier

A binary classifier that labels Philippine news-style text as credible or not credible. It is one of three models (RoBERTa-Tagalog, mBERT, XLM-RoBERTa) fine-tuned for the thesis Determining the Top Predictors of Taglish Election Misinformation Through a Comparative Detection and Corpus Analysis Using RoBERTa-Tagalog, mBERT, and XLM-RoBERTa (BS Computer Science, May 2026). Base model: xlm-roberta-base.

Status: these results are on a held-out split of formal news articles. Performance on informal Taglish social-media posts about the 2022 Philippine election is evaluated separately in the thesis and is not reported in this card.

Labels

idlabelmeaning
0not_crediblearticle from a source labelled fake/unreliable (the positive class for precision/recall/F1)
1crediblearticle from a source labelled credible

The mapping is stored in the model's config.json (id2label).

Intended use and limits

Intended for: research on Filipino/Taglish misinformation detection, model comparison, and as a component of the TsekTxt research demo.

Not intended for: acting as a fact-checker, automated content removal or moderation, judging individual people or outlets, or any decision without human review. The model predicts how much a text resembles articles from sources labelled credible or not credible. It does not verify claims.

Training data

Combined and cleaned Fake News Filipino Dataset (Cruz et al., 2020) and Philippine Fake News Corpus (Fernandez, 2019): 25,352 articles after cleaning (16,283 credible, 9,069 not credible; about 64% / 36%).

SplitArticlesCredibleNot credible
Train (70%)17,74611,3986,348
Validation (15%)3,8032,4431,360
Test (15%)3,8032,4421,361

Row counts: the two source datasets total 25,668 rows; the combined file had 25,398 (270 rows were dropped at the merge step, before the cleaning script, and were not logged); the cleaning script then removed 46, leaving 25,352 (results/cleaning_report.json). Language mix of the 25,352 training articles: 21,295 English, 2,622 Tagalog, 1,435 mixed (lingua detector, English vs Tagalog only; results/language_id_train.json).

Cleaning: text-encoding repair (ftfy), removal of HTML and URLs, whitespace normalisation, removal of texts under 10 words, and removal of exact/near-duplicates and duplicates with conflicting labels (21,088 of 25,398 rows were modified; 46 removed). Splits are stratified, seed 42, and identical for all three models.

Training procedure

Fine-tuned with Hugging Face Trainer: AdamW, learning rate 2e-5, batch size 16, up to 5 epochs with early stopping (patience 2, on validation loss), weight decay 0.01, 10% linear warmup, max sequence length 128, fp16, class-weighted cross-entropy (weights inversely proportional to class frequency), seed 42. The checkpoint with the lowest validation loss was kept. Trained on a single Tesla T4 (Google Colab). All three models used identical data and settings.

This run: early stopping ended training after 4 epochs; the lowest validation loss (0.2420) came at epoch 2, and that checkpoint is the one published. Training took about 15 minutes.

Results (internal test set, n = 3803; positive class = not credible)

ModelAccuracyPrecision (NC)Recall (NC)F1 (NC)Macro F1Weighted F1
RoBERTa-Tagalog0.94500.91030.93900.92440.94060.9452
mBERT0.93010.88100.93020.90490.92480.9305
XLM-RoBERTa0.94270.91500.92580.92040.93780.9428

Confusion matrix (rows = actual, columns = predicted):

pred: crediblepred: not credible
actual: credible2325117
actual: not credible1011260

218 of 3803 test articles were misclassified (5.7%).

Comparison with the other two models

ModelAccuracyPrecision (NC)Recall (NC)F1 (NC)Macro F1Weighted F1
RoBERTa-Tagalog0.94500.91030.93900.92440.94060.9452
mBERT0.93010.88100.93020.90490.92480.9305
XLM-RoBERTa0.94270.91500.92580.92040.93780.9428

McNemar's test on paired predictions (exact binomial when b + c < 25, otherwise continuity-corrected chi-square):

Pairbcp-valueSignificant at 0.05
RoBERTa-Tagalog vs mBERT151940.00035yes
RoBERTa-Tagalog vs XLM-RoBERTa94850.55no
mBERT vs XLM-RoBERTa941420.0022yes

b = first model correct and second wrong; c = the reverse.

RoBERTa-Tagalog and XLM-RoBERTa are statistically tied (McNemar p = 0.55); mBERT is significantly lower than both. Differences are small, come from a single training run per model (one seed), and are measured on the internal formal-news test set only.

A non-neural baseline (TF-IDF + logistic regression on the first 128 words) scored accuracy 0.9258 and weighted F1 0.9263. It was significantly worse than RoBERTa-Tagalog (p = 0.00002) and XLM-RoBERTa (p = 0.0002) but not significantly different from mBERT (p = 0.39).

Limitations

  • Labels follow the source, not the claim. Articles are labelled by the credibility of the publishing site. In a diagnostic on the official train/test split, a simple TF-IDF logistic regression reached 81.9% accuracy from only the first 12 words and 83.1% from only the last 12 words of each article (majority-class rate: 64.2%), so labels partly encode source style. A TF-IDF + logistic regression baseline also reaches 92.6% accuracy on the first 128 words (95.1% on full text), close to the transformers' 93.0-94.5%. High internal scores should therefore not be read as proof of detecting factual misinformation (src/leakage_probe.py, src/baseline.py in the training repo).
  • Domain gap. Training data are news articles in Filipino and English; the target use is informal, code-switched Taglish social-media text, which this card does not evaluate.
  • Short texts. Accuracy falls as text gets shorter. When internal test articles were cut to their first 15 / 30 / 60 words, accuracy was 0.698 / 0.860 / 0.928 (full text 0.943). The drop comes from credible articles being called not credible (43.9% at 15 words vs 4.8% on full text), while not-credible recall stays about the same. Short social-media posts (often under 40 words) are therefore more likely to be labelled not credible; this card does not measure accuracy on them. Adding a link barely changed predictions (12 of 3803 flipped). Source: results/domain_shift.json (src/domain_shift_checks.py).
  • Overconfidence. The model is often very sure when wrong: median confidence on its internal test errors is 0.984, and 161 of 218 errors had confidence of 0.90 or more. These are raw softmax values and remain the finding. Post-hoc temperature scaling (one number T fitted on the internal validation split by src/calibrate.py, stored in results/calibration.json) softens the percentages without changing any prediction; the thesis scripts and demo show the calibrated value next to the raw one, and the before/after calibration error is in results/calibration_report.json. Calibration was fitted on news articles, so on short posts the percentages can still be too high. On this model T = 1.8441; on the internal test set, ECE (15 bins) went from 0.0444 to 0.0165, NLL from 0.2309 to 0.1711, and median confidence when wrong from 0.984 to 0.904 (results/calibration_report.json). Predictions never change, and T was fitted on the validation split only. The pipeline score below is the raw softmax value.
  • Long texts are truncated to 128 tokens.
  • Single run. No variation across random seeds was measured.
  • Election and political content may reflect biases in the source datasets. Do not use outputs to draw conclusions about intent, origin, or specific political actors.

Usage

from transformers import pipeline

clf = pipeline("text-classification", model="hansjio/tsektxt-xlmr")
print(clf("Your text here", truncation=True, max_length=128))
# [{'label': 'credible' | 'not_credible', 'score': ...}]   score = raw softmax (not calibrated)
# Calibrated (optional): divide the logits by T = 1.8441 before the softmax. T was fitted on the validation split only;
# predictions never change, only the confidence. Source: results/calibration.json in the training repo.
# logits = model(**inputs).logits          # shape (1, 2)
# T = 1.8441
# probs = torch.softmax(logits / T, dim=-1)

Code and citation

Training code and results: https://github.com/hansjio/tsektxt-model-training

Authors: Clark Amba, Hans Jio Arca, Samantha Nicole Fernandez, Christian Dysar Nuñezca.

Licence note: check that the CC BY-NC 4.0 label here is compatible with the licences of the base model and the two source datasets before wider reuse.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей