Views
No views yet
CAMeL-Lab/bert-base-arabic-camelbert-mix) fine-tuned on HalluScoring 2026 Task 1.1 using an NLI framing: [CLS] gold_answer [SEP] model_answer [SEP], treating hallucination detection as "does the model's answer entail/contradict the gold answer." Internally this is run S02 — the experiment that established NLI framing as the single biggest lever in this task (+5.6pp clean-dev AUC-ROC over the QA-framed halluscoring-camelbert-qa). Every model after this one uses the same NLI framing.S23/S24v/S25v ensembles. See SYSTEM_WRITEUP.md for the officially-submitted models.1import torch
2from transformers import AutoTokenizer, AutoModelForSequenceClassification
3
4model_id = "HassanB4/halluscoring-camelbert-nli"
5tokenizer = AutoTokenizer.from_pretrained(model_id)
6model = AutoModelForSequenceClassification.from_pretrained(model_id)
7model.eval()
8
9gold_answer = "..."
10model_answer = "..."
11
12inputs = tokenizer(gold_answer, model_answer, truncation=True, max_length=512, return_tensors="pt")
13with torch.no_grad():
14 logits = model(**inputs).logits
15 prob_hallucinated = torch.softmax(logits, dim=-1)[0, 1].item()
16
17print(f"hallucinated={int(prob_hallucinated > 0.5)}, score={prob_hallucinated:.4f}")| Parameter | Value |
|---|---|
| Base model | CAMeL-Lab/bert-base-arabic-camelbert-mix |
| Input format | nli (gold_answer + model_answer) |
| Max sequence length | 512 |
| Batch size | 16 |
| Epochs | 5 |
| Learning rate | 2e-5 |
| Warmup ratio | 0.1 |
| Weight decay | 0.01 |
| Loss | cross-entropy |
| Seed | 42 |
| Split | AUC-ROC | F1-Macro |
|---|---|---|
| Dev (official, n=1300) | 0.9574 | 0.9081 |
| Dev (clean, unseen-question subset, n=800) | 0.9272 | — |
SYSTEM_WRITEUP.md §"Key finding" for why).S23, S24v, and S25v soft-vote ensembles.1@inproceedings{namaa2026halluscoring,
2 title={{NAMAA at HalluScoring 2026: NLI-Framed BERT Classifiers and Ensembling for Model-Agnostic Arabic Hallucination Detection}},
3 author={[AUTHOR NAMES TBD]},
4 year={2026},
5 booktitle={Proceedings of ArabicNLP 2026},
6 note={HalluScoring 2026 Shared Task, Track 1}
7}