/ Модель

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

Контекст
512 токенов
Параметры
205 млн
Лицензия
CC BY-NC 4.0
Архитектура
bert · dense
Базовая модель
bert-base-multilingual-cased
Библиотека
transformers
Опубликована
4 июл 2026

tsektxt-mbert

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

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

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

Классификатор TsekTxt на базе mBERT относит филиппинские новостные статьи к источникам, помеченным как достоверные или недостоверные, для исследовательского анализа дезинформации.

TsekTxt mBERT — модель двоичной классификации текста на базе BERT multilingual cased, дообученная для оценки сходства филиппинских новостных статей с публикациями источников, помеченных как достоверные или недостоверные. Её разработали для исследовательской работы и демонстрационного проекта TsekTxt по выявлению дезинформации на филиппинском, английском и смешанном таглишском языках. Модель содержит около 205,1 млн параметров, принимает текст и выдаёт метку «credible» или «not_credible»; максимальная длина контекста — 512 токенов, а более длинный текст обрезается до 128 токенов.

Модель подходит для исследований классификации новостных статей по меткам достоверности и сравнительной оценки систем обнаружения дезинформации. На внутреннем тесте из формальных новостных статей её точность составила 93,01%, но эти результаты не подтверждают проверку фактической истинности утверждений. Метки отражают репутацию источника, поэтому классификатор может опираться на стиль публикаций. Короткие тексты чаще ошибочно помечаются как недостоверные, а перенос на неформальные сообщения в соцсетях и таглишский контент отдельно в карточке не оценён. Модель часто уверена в ошибочных ответах; её не следует использовать как фактчекер или для автоматической модерации без проверки человеком. Лицензия CC BY-NC 4.0 допускает использование с указанием авторства, но запрещает коммерческое использование.

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

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

Ограничения

Модель училась на новостных статьях и предсказывает метку источника, а не проверяет истинность утверждений; её качество на коротких сообщениях и неформальном таглишском контенте не подтверждено. Она может быть чрезмерно уверена при ошибках, обрезает длинные тексты до 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 – mBERT 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: bert-base-multilingual-cased.

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 3 epochs; the lowest validation loss (0.2216) came at epoch 1, and that checkpoint is the one published. Training took about 9 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: credible2271171
actual: not credible951266

266 of 3803 test articles were misclassified (7.0%).

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.713 / 0.826 / 0.915 (full text 0.930). The drop comes from credible articles being called not credible (40.9% at 15 words vs 7.0% 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 (32 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 about 0.88, and 125 of 266 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.361; on the internal test set, ECE (15 bins) went from 0.0265 to 0.0160, NLL from 0.2117 to 0.1998, and median confidence when wrong from 0.881 to 0.814 (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-mbert")
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.361 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.361
# 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…

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

0 моделей