Downloads · 30 days
5
26% of all-time downloads
BaoNhan/xlm-roberta-base-ViFactCheck-FC
xlm-roberta-base-ViFactCheck-FC is a text classification model from BaoNhan. Use it when you need a label for a piece of text. It is set up for transformers.
This model is xlm-roberta-base fine-tuned for VFC-FC on ViFactCheck using the claim paired with full article context.
Downloads · 30 days
5
26% of all-time downloads
All-time downloads
19
Public
Parameters
278M
1.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.1 GB · 100%
From the Hugging Face model README
This model is xlm-roberta-base fine-tuned for VFC-FC on ViFactCheck using the claim paired with full article context.
Test metrics are reported as mean ± sample standard deviation over seeds [42, 22, 202].
| Metric | Mean ± std |
|---|---|
| Test Macro-F1 | 0.3246 ± 0.2514 |
| Test accuracy | 0.4374 ± 0.1499 |
| Test macro precision | 0.3358 ± 0.2684 |
| Test macro recall | 0.4277 ± 0.1585 |
| Development Macro-F1 | 0.3168 ± 0.2393 |
| seed | dev_macro_f1 | test_macro_f1 | test_accuracy | micro_batch_size | gradient_accumulation_steps |
|---|---|---|---|---|---|
| 22.000000 | 0.592993 | 0.614744 | 0.610497 | 8.000000 | 1.000000 |
| 42.000000 | 0.171800 | 0.172131 | 0.348066 | 8.000000 | 1.000000 |
| 202.000000 | 0.185571 | 0.186969 | 0.353591 | 8.000000 | 1.000000 |
{
"0": "supported",
"1": "refuted",
"2": "not_enough_information"
}
import torch
from transformers import AutoModelForSequenceClassification, AutoTokenizer
model_id = "BaoNhan/xlm-roberta-base-ViFactCheck-FC"
tokenizer = AutoTokenizer.from_pretrained(model_id, use_fast=False)
model = AutoModelForSequenceClassification.from_pretrained(model_id)
claim = "Thông tin này đã được cơ quan chức năng xác nhận."
context = "Bài báo cung cấp bằng chứng liên quan đến phát biểu trên."
inputs = tokenizer(
claim,
context,
return_tensors="pt",
truncation="only_second",
max_length=256,
)
with torch.no_grad():
probabilities = model(**inputs).logits.softmax(dim=-1)[0]
predicted_id = int(probabilities.argmax())
print(model.config.id2label[predicted_id], probabilities.tolist())
aggregate_metrics.json: aggregate metrics and training manifest.artifacts/per_seed_results.csv: one row per fine-tuning seed.artifacts/seed_*_confusion_matrix.csv: confusion matrix for each seed.artifacts/seed_*_classification_report.json: per-class metrics.artifacts/seed_*_test_predictions.csv: IDs, gold/predicted labels and probabilities; raw claims and passages are excluded.ViFactCheck supplies the correct source article and therefore does not evaluate open-web evidence retrieval. VFC-FC can truncate relevant information in long articles and jointly measures verification plus robustness to irrelevant context. VFC-GE uses oracle gold evidence and must not be presented as a realistic end-to-end deployment setting. This model is a research classifier, not an automated arbiter of truth, and may produce confidently incorrect predictions.
@inproceedings{hoa2025vifactcheck,
title={ViFactCheck: A New Benchmark Dataset and Methods for Multi-domain News Fact-Checking in Vietnamese},
author={Hoa, Tran Thai and Duy, Tran Quang and Tran, Khanh Quoc and Nguyen, Kiet Van},
booktitle={Proceedings of the AAAI Conference on Artificial Intelligence},
volume={39},
number={1},
pages={308--316},
year={2025},
doi={10.1609/aaai.v39i1.32008}
}