HassanB4 commited on
Commit
2170fcc
·
verified ·
1 Parent(s): 06829dc

Upload folder using huggingface_hub

Browse files
Files changed (6) hide show
  1. README.md +52 -0
  2. config.json +30 -0
  3. model.safetensors +3 -0
  4. tokenizer.json +0 -0
  5. tokenizer_config.json +16 -0
  6. training_args.bin +3 -0
README.md ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: ar
3
+ tags:
4
+ - hallucination-detection
5
+ - arabic
6
+ - halluscoring-2026
7
+ license: apache-2.0
8
+ ---
9
+
10
+ # HalluScoring 2026 — s01-camelbert-qa
11
+
12
+ Binary Arabic hallucination detector (0 = non-hallucinated, 1 = hallucinated).
13
+ Fine-tuned for HalluScoring 2026 Track 1, Task 1.1 (Model-Agnostic Arabic Hallucination Detection).
14
+
15
+ ## Base model
16
+ CAMeL-Lab/bert-base-arabic-camelbert-mix
17
+
18
+ ## Input format
19
+ qa — `[CLS] question [SEP] model_answer [SEP]` (official baseline format; ignores `gold_answer`)
20
+
21
+ ## Dev results (Task 1.1)
22
+ - AUC-ROC (official, full dev n=1300): 0.9263
23
+ - AUC-ROC (clean dev, n=800, excludes ~100 questions also seen in train): 0.8713
24
+ - Macro F1 (official, threshold=0.50): 0.8595
25
+
26
+ Note: the official-dev number is inflated by ~500 dev rows whose questions also appear in the
27
+ training set (AUC-ROC 0.9961 on that subset — near-memorization). The clean-dev AUC-ROC (0.8713)
28
+ is the honest generalization estimate and the number to use for ranking against future runs.
29
+ Both already exceed the published CAMeLBERT baseline (0.7093 dev AUC-ROC).
30
+
31
+ ## Training data
32
+ HalluScoring 2026 training set — 4,705 Arabic (question, gold_answer, model_answer) triples,
33
+ 5 source LLMs, 13 knowledge domains.
34
+
35
+ ## Usage
36
+ ```python
37
+ from transformers import AutoTokenizer, AutoModelForSequenceClassification
38
+ import torch
39
+
40
+ tokenizer = AutoTokenizer.from_pretrained("HassanB4/halluscoring2026-s01-camelbert-qa")
41
+ model = AutoModelForSequenceClassification.from_pretrained("HassanB4/halluscoring2026-s01-camelbert-qa")
42
+
43
+ inputs = tokenizer(question, model_answer, return_tensors="pt", truncation=True, max_length=512)
44
+ with torch.no_grad():
45
+ logits = model(**inputs).logits
46
+ score = torch.softmax(logits, dim=-1)[0][1].item() # probability of hallucination
47
+ predicted_label = int(score > 0.5)
48
+ ```
49
+
50
+ ## Task
51
+ HalluScoring 2026: https://halluscoring.github.io/HalluScoring-2026/
52
+ Starter kit: https://github.com/HalluScoring/HalluScoring2026-Track1-StarterKit
config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": null,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "eos_token_id": null,
11
+ "gradient_checkpointing": false,
12
+ "hidden_act": "gelu",
13
+ "hidden_dropout_prob": 0.1,
14
+ "hidden_size": 768,
15
+ "initializer_range": 0.02,
16
+ "intermediate_size": 3072,
17
+ "is_decoder": false,
18
+ "layer_norm_eps": 1e-12,
19
+ "max_position_embeddings": 512,
20
+ "model_type": "bert",
21
+ "num_attention_heads": 12,
22
+ "num_hidden_layers": 12,
23
+ "pad_token_id": 0,
24
+ "problem_type": "single_label_classification",
25
+ "tie_word_embeddings": true,
26
+ "transformers_version": "5.11.0",
27
+ "type_vocab_size": 2,
28
+ "use_cache": false,
29
+ "vocab_size": 30000
30
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d719695c95612dc339c045bf8edcbdf717edad21af9e89a5bad9473b19943a47
3
+ size 436355056
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "cls_token": "[CLS]",
4
+ "do_lower_case": false,
5
+ "full_tokenizer_file": null,
6
+ "is_local": false,
7
+ "local_files_only": false,
8
+ "mask_token": "[MASK]",
9
+ "model_max_length": 1000000000000000019884624838656,
10
+ "pad_token": "[PAD]",
11
+ "sep_token": "[SEP]",
12
+ "strip_accents": null,
13
+ "tokenize_chinese_chars": true,
14
+ "tokenizer_class": "BertTokenizer",
15
+ "unk_token": "[UNK]"
16
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac955565c555e8cbb3750d36506005749b6cfcd2bfe3863b989207e89c861587
3
+ size 5201