SemViQA-TC: Vietnamese Three-class Classification for Claim Verification

Model Description

SemViQA-TC is one of the key components of the SemViQA system, designed for three-class classification in Vietnamese fact-checking. This model classifies a given claim into one of three categories: SUPPORTED, REFUTED, or NOT ENOUGH INFORMATION (NEI) based on retrieved evidence.

Model Information

SemViQA-TC serves as the first step in the two-step classification (TVC) process of the SemViQA system. It initially categorizes claims into three classes: SUPPORTED, REFUTED, or NEI. For claims classified as SUPPORTED or REFUTED, a secondary binary classification model (SemViQA-BC) further refines the prediction. This hierarchical classification strategy enhances the accuracy of fact verification.

Usage Example

Direct Model Usage

# Install semviqa
!pip install semviqa

# Initalize a pipeline
import torch
import torch.nn.functional as F
from transformers import AutoTokenizer
from semviqa.tvc.model import ClaimModelForClassification

tokenizer = AutoTokenizer.from_pretrained("SemViQA/tc-xlmr-isedsc01")
model = ClaimModelForClassification.from_pretrained("SemViQA/tc-xlmr-isedsc01")
claim = "Chiến tranh với Campuchia đã kết thúc trước khi Việt Nam thống nhất."
evidence = "Sau khi thống nhất, Việt Nam tiếp tục gặp khó khăn do sự sụp đổ và tan rã của đồng minh Liên Xô cùng Khối phía Đông, các lệnh cấm vận của Hoa Kỳ, chiến tranh với Campuchia, biên giới giáp Trung Quốc và hậu quả của chính sách bao cấp sau nhiều năm áp dụng."

inputs = tokenizer(
    claim,
    evidence,
    truncation="only_second",
    add_special_tokens=True,
    max_length=256,
    padding='max_length',
    return_attention_mask=True,
    return_token_type_ids=False,
    return_tensors='pt',
)

labels = ["NEI", "SUPPORTED", "REFUTED"]

with torch.no_grad():
    outputs = model(**inputs)

logits = outputs["logits"]
probabilities = F.softmax(logits, dim=1).squeeze()

for i, (label, prob) in enumerate(zip(labels, probabilities.tolist()), start=1):
    print(f"{i}) {label} {prob:.4f}")
# 1) NEI 0.0000
# 2) SUPPORTED 0.0004
# 3) REFUTED 0.9996

Evaluation Results

SemViQA-TC achieved impressive results on the test set, demonstrating accurate and efficient classification capabilities. The detailed evaluation of SemViQA-TC is presented in the table below.

Method ISE-DSC01
ER VC Strict Acc VC Acc ER Acc Time (s)
TF-IDF InfoXLMlarge 73.59 78.08 76.61 378
XLM-Rlarge 75.61 80.50 78.58 366
Ernie-Mlarge 78.19 81.69 80.65 403
BM25 InfoXLMlarge 72.09 77.37 75.04 320
XLM-Rlarge 73.94 79.37 76.95 333
Ernie-Mlarge 76.58 80.76 79.02 381
SBert InfoXLMlarge 71.20 76.59 74.15 915
XLM-Rlarge 72.85 78.78 75.89 835
Ernie-Mlarge 75.46 79.89 77.91 920
QA-based approaches VC
ViMRClarge InfoXLMlarge 54.36 64.14 56.84 9798
XLM-Rlarge 53.98 66.70 57.77 9809
Ernie-Mlarge 56.62 62.19 58.91 9833
InfoXLMlarge InfoXLMlarge 53.50 63.83 56.17 10057
XLM-Rlarge 53.32 66.70 57.25 10066
Ernie-Mlarge 56.34 62.36 58.69 10078
LLM
Qwen2.5-1.5B-Instruct 59.23 66.68 65.51 19780
Qwen2.5-3B-Instruct 60.87 66.92 66.10 31284
LLM VC
Qwen2.5-1.5B-Instruct InfoXLMlarge 64.40 68.37 66.49 19970
XLM-Rlarge 64.66 69.63 66.72 19976
Ernie-Mlarge 65.70 68.37 67.33 20003
Qwen2.5-3B-Instruct InfoXLMlarge 65.72 69.66 67.51 31477
XLM-Rlarge 66.12 70.44 67.83 31483
Ernie-Mlarge 67.48 70.77 68.75 31512
SER Faster (ours) TVC (ours)
TF-IDF + ViMRClarge Ernie-Mlarge 78.32 81.91 80.26 995
TF-IDF + InfoXLMlarge Ernie-Mlarge 78.37 81.91 80.32 925
SER (ours) TVC (ours)
TF-IDF + ViMRClarge InfoXLMlarge 75.13 79.54 76.87 5191
XLM-Rlarge 76.71 81.65 78.91 5219
Ernie-Mlarge 78.97 82.54 80.91 5225
TF-IDF + InfoXLMlarge InfoXLMlarge 75.13 79.60 76.87 5175
XLM-Rlarge 76.74 81.71 78.95 5200
Ernie-Mlarge 78.97 82.49 80.91 5297

Citation

If you use SemViQA-TC in your research, please cite:

@misc{nguyen2025semviqasemanticquestionanswering,
      title={SemViQA: A Semantic Question Answering System for Vietnamese Information Fact-Checking},
      author={Nam V. Nguyen and Dien X. Tran and Thanh T. Tran and Anh T. Hoang and Tai V. Duong and Di T. Le and Phuc-Lu Le},
      year={2025},
      eprint={2503.00955},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2503.00955},
}

🔗 Paper Link: SemViQA on arXiv
🔗 Source Code: GitHub - SemViQA

About

Built by Dien X. Tran LinkedIn For more details, visit the project repository. GitHub stars

Downloads last month
4
Safetensors
Model size
560M params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Space using SemViQA/tc-xlmr-isedsc01 1

Collection including SemViQA/tc-xlmr-isedsc01