vrashad commited on
Commit
eceba98
·
verified ·
1 Parent(s): 8f73c55

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +235 -4
README.md CHANGED
@@ -18,13 +18,13 @@ configs:
18
 
19
  - config_name: intent_v1
20
  data_dir: intent_v1
21
-
22
  - config_name: rag_verification_v1
23
  data_dir: rag_verification_v1
24
-
25
  - config_name: minimal_pairs_v1
26
  data_dir: minimal_pairs_v1
27
-
28
  - config_name: az_tr_interference_v1
29
  data_dir: az_tr_interference_v1
30
 
@@ -33,4 +33,235 @@ configs:
33
 
34
  - config_name: rag_selection_v1
35
  data_dir: rag_selection_v1
36
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
 
19
  - config_name: intent_v1
20
  data_dir: intent_v1
21
+
22
  - config_name: rag_verification_v1
23
  data_dir: rag_verification_v1
24
+
25
  - config_name: minimal_pairs_v1
26
  data_dir: minimal_pairs_v1
27
+
28
  - config_name: az_tr_interference_v1
29
  data_dir: az_tr_interference_v1
30
 
 
33
 
34
  - config_name: rag_selection_v1
35
  data_dir: rag_selection_v1
36
+
37
+ language:
38
+ - az
39
+ license: cc-by-4.0
40
+ size_categories:
41
+ - 1K<n<10K
42
+ task_categories:
43
+ - question-answering
44
+ - text-classification
45
+ - multiple-choice
46
+ - text-retrieval
47
+ tags:
48
+ - azerbaijani
49
+ - benchmark
50
+ - evaluation
51
+ - rag
52
+ - hallucination
53
+ pretty_name: YOXLA Benchmark
54
+ ---
55
+
56
+ # YOXLA Benchmark
57
+
58
+ 1443 frozen examples for evaluating large language models in
59
+ Azerbaijani, across four blocks and eleven tasks.
60
+
61
+ Run with the [YOXLA framework](https://github.com/LocalDoc-Azerbaijan/yoxla):
62
+
63
+ ```bash
64
+ pip install "yoxla[api]"
65
+ yoxla run --provider openrouter --model <model> --block all
66
+ ```
67
+
68
+ Or load a config directly:
69
+
70
+ ```python
71
+ from datasets import load_dataset
72
+
73
+ data = load_dataset("LocalDoc/YOXLA-Benchmark", "rag_selection_v1")["test"]
74
+ ```
75
+
76
+ ## What makes it different
77
+
78
+ **Every answer space is closed.** A label, a number, or a span quoted
79
+ from a passage the model was given. Nothing is scored by a judge
80
+ model, nothing depends on deciding whether two spellings of a name
81
+ mean the same thing, and every score can be reproduced from stored
82
+ output.
83
+
84
+ That decision cost the benchmark two tasks. An orthography block that
85
+ scored whether a model *writes* Azerbaijani correctly, and an
86
+ open-answer knowledge task, were both built and both dropped: sixty-two
87
+ of the knowledge set's hundred and fifty answers were multi-word
88
+ entities — honorific titles no two people would word alike, names with
89
+ up to seven equally correct forms — and every scoring dispute found in
90
+ review came from that group.
91
+
92
+ **No model decides a label.** Generators write passages, sentences and
93
+ candidate options; the gold comes from Wikidata, from a named
94
+ grammatical rule, from a dictionary, or from the construction of the
95
+ item itself. A generation that does not match its source is rejected
96
+ rather than relabelled.
97
+
98
+ **The distractors are measured, not assumed.** Every set with a closed
99
+ answer space is run past strategies that read nothing — pick the most
100
+ famous option, pick the passage sharing the most words with the
101
+ question, always answer the first one — and the build fails if any of
102
+ them beats its floor. Where a cue cannot be removed, the floor it
103
+ leaves is computed from the finished data and published with the task
104
+ rather than hidden.
105
+
106
+ ## Blocks
107
+
108
+ ### Understanding — 600
109
+
110
+ | Config | Rows | Inputs | Gold | Answer |
111
+ | --- | --- | --- | --- | --- |
112
+ | `extractive_qa_v1` | 200 | `context`, `question` | `answer` | a span quoted from the context |
113
+ | `qa_abstention_v1` | 100 | `context`, `question` | `answer` | a span, or `Cavab yoxdur` |
114
+ | `nli_v1` | 100 | `premise`, `hypothesis` | `label` | entailment / neutral / contradiction |
115
+ | `sts_v1` | 100 | `sentence1`, `sentence2` | `score` | 0.0–5.0 |
116
+ | `sentiment_v1` | 50 | `text` | `label` | positive / neutral / negative |
117
+ | `intent_v1` | 50 | `text` | `label` | one of 25 banking intents |
118
+
119
+ The two span tasks are scored on character offsets rather than on
120
+ strings: the quote is located in the passage and its range compared
121
+ with the gold's. The gold answer occurs exactly once in its own
122
+ context in all 250 answerable examples, which is what makes the
123
+ position unambiguous.
124
+
125
+ ### Language — 400
126
+
127
+ | Config | Rows | Inputs | Gold | Answer |
128
+ | --- | --- | --- | --- | --- |
129
+ | `minimal_pairs_v1` | 200 | `sentence_a`, `sentence_b` | `label` | A / B |
130
+ | `az_tr_interference_v1` | 200 | `sentence_a`, `sentence_b` | `label` | A / B |
131
+
132
+ Both show two sentences differing in one word and ask which one is
133
+ Azerbaijani. Position is balanced inside every breakdown, so answering
134
+ "A" throughout scores 50.
135
+
136
+ `minimal_pairs_v1` corrupts a named rule — vowel harmony, the question
137
+ particle, the definite accusative, case government and four more — so
138
+ the label follows from the rule rather than from an opinion.
139
+
140
+ `az_tr_interference_v1` replaces an Azerbaijani word with a Turkish
141
+ one:
142
+
143
+ ```text
144
+ A) Uşaqlar məktəbdə çox gözəl danışmaq öyrənirlər.
145
+ B) Uşaqlar məktəbdə çox gözəl konuşmak öyrənirlər.
146
+ ```
147
+
148
+ Three lookups in two independent sources decide every pair: the
149
+ Azerbaijani word is in a hunspell dictionary and occurs at least 200
150
+ times in Azerbaijani Wikipedia, the Turkish word is in a Turkish
151
+ dictionary and absent from the Azerbaijani one, and the Azerbaijani
152
+ form outnumbers the Turkish one at least 50:1 in the corpus. Read
153
+ `interference_type` beside the score: a `cognate` pair (`kitab` /
154
+ `kitap`) asks which spelling Azerbaijani uses, a `distinct_lexeme`
155
+ pair (`danışmaq` / `konuşmak`) asks which word it uses at all, and
156
+ only the second is beyond a model that merely spells correctly.
157
+
158
+ ### Knowledge — 150
159
+
160
+ | Config | Rows | Inputs | Gold | Answer |
161
+ | --- | --- | --- | --- | --- |
162
+ | `knowledge_choice_v1` | 150 | `question`, `candidates` | `answer_index` | 1–20 |
163
+
164
+ Facts about Azerbaijan harvested from Wikidata across seven
165
+ categories. A fact Wikidata answers more than one way is dropped at
166
+ build time.
167
+
168
+ Three cues are closed at build time so that recognition is not free:
169
+ distractors come from the same relation, so the wrong *kind* of thing
170
+ cannot be eliminated; the answer is not the most-linked option, so
171
+ "pick the famous one" fails; a year distractor sits within a decade of
172
+ the answer. Read `modal_answer_share` beside the score — a model that
173
+ does not know tends to return the same number every time, and accuracy
174
+ alone does not show it.
175
+
176
+ ### RAG — 293
177
+
178
+ | Config | Rows | Inputs | Gold | Answer |
179
+ | --- | --- | --- | --- | --- |
180
+ | `rag_verification_v1` | 160 | `context`, `claim` | `label` | TƏSDİQ / ZİDD / YOXDUR |
181
+ | `rag_selection_v1` | 133 | `question`, `passages` | `label` | 1–6, or HEÇ BİRİ |
182
+
183
+ The two halves of a retrieval system, measured apart: selection asks
184
+ whether the right passage was picked up, verification asks what the
185
+ model does with a passage once it has one.
186
+
187
+ `rag_verification_v1` gives a passage and one claim. Its four claim
188
+ types are split out by `claim_type`, and the one worth reading is
189
+ `counterfactual`: the passage states an altered value — a year moved,
190
+ a district changed — and the claim states the real one. A model
191
+ answering `TƏSDİQ` has read its own memory instead of the text, which
192
+ is the failure that makes a retrieval system quietly wrong. Absence is
193
+ decidable here because each passage is written from a known list of
194
+ three facts, so anything outside that list is provably not stated.
195
+
196
+ `rag_selection_v1` gives a question and six short passages, about
197
+ seventy words in all. The negatives are the measurement: passages
198
+ about the same subject but a different aspect, passages about the same
199
+ aspect but a different subject, and passages whose value is of the
200
+ same kind as the answer. One item in seven has its answer in none of
201
+ them — `per_item_type_accuracy` splits those out, and a system that
202
+ always returns its best guess fails there and nowhere else.
203
+
204
+ **One caveat specific to this task.** The word-overlap cue cannot be
205
+ driven to chance: the gold is the only passage carrying both the
206
+ subject and the relation, and a negative carrying both would be a
207
+ passage stating the answer. The gold is held to a *tie* with the other
208
+ passages about its subject instead, which leaves a floor near 0.35 for
209
+ "pick the passage sharing the most words" — against a chance of 0.14
210
+ and against floors at chance everywhere else in this benchmark. Read
211
+ the score with that in mind.
212
+
213
+ ## Sources and how the gold was made
214
+
215
+ | Source | Used for | Licence |
216
+ | --- | --- | --- |
217
+ | [Wikidata](https://www.wikidata.org) | the facts behind knowledge, RAG verification and RAG selection | CC0 |
218
+ | Azerbaijani Wikipedia (`20231101.az`) | passages for the QA blocks; word frequencies for the interference set | CC BY-SA 4.0 |
219
+ | [MozillaAZ spellchecker](https://github.com/mozillaz/spellchecker) | whether a form is a word of Azerbaijani | see repository |
220
+ | [LibreOffice `tr_TR`](https://github.com/LibreOffice/dictionaries) | whether a form is a word of Turkish | see repository |
221
+
222
+ The dictionaries and the frequency table were used as lookups during
223
+ construction and are not redistributed here. Each is trusted in one
224
+ direction only: presence in the dictionary proves a form is
225
+ Azerbaijani, and absence proves nothing, because its verb paradigms
226
+ have holes.
227
+
228
+ Generator models wrote passages, sentences and questions. They never
229
+ decided a label, and no model output was accepted without passing the
230
+ deterministic check for its task.
231
+
232
+ ## What this benchmark does not measure
233
+
234
+ **Production.** No task asks a model to write Azerbaijani and scores
235
+ what it wrote. The same model recognised correct grammar at 90.5 and,
236
+ in the same run, scored 57.7 on writing it — the two are not
237
+ interchangeable, and only the first number exists here.
238
+
239
+ **Recall.** Knowledge asks a model to pick a fact out of twenty
240
+ candidates, never to produce it. The interference task asks it to
241
+ recognise a Turkish word, not to avoid writing one.
242
+
243
+ **Anything above sentence level.** No discourse, no long context, no
244
+ multi-turn behaviour.
245
+
246
+ Scoring these would need a judge model or human annotation. A judge
247
+ would put one model's Azerbaijani inside the loop that measures
248
+ Azerbaijani, and would end reproducibility.
249
+
250
+ ## Versioning
251
+
252
+ A task id is frozen from its first publication. A substantial change
253
+ means a new id — `nli_v2` — never an edit in place, and the superseded
254
+ task stays runnable so an older run can be reproduced. Pin a revision
255
+ for a comparable run:
256
+
257
+ ```bash
258
+ yoxla run --provider openai --model <model> --block all --revision <commit>
259
+ ```
260
+
261
+ The framework bundles a manifest of row counts and content
262
+ fingerprints per block and warns when the data here has changed since
263
+ a run was scored.
264
+
265
+ ## Licence
266
+
267
+ Data: CC BY 4.0. Framework: Apache-2.0.