jvonrad commited on
Commit
9015212
·
verified ·
1 Parent(s): 22566df

Make the PolyFact dataset card concise

Browse files
Files changed (1) hide show
  1. README.md +49 -573
README.md CHANGED
@@ -125,604 +125,80 @@ configs:
125
 
126
  # PolyFact
127
 
128
- PolyFact is a parallel multilingual factual multiple-choice QA dataset grounded in
129
- Wikidata. This curated release supersedes the original 100K release, with ambiguous
130
- relations and audited item defects removed, distractors resampled, and split integrity
131
- repaired. The deprecated original remains available at the immutable
132
- [`deprecated-100k`](https://huggingface.co/datasets/jvonrad/PolyFact/tree/deprecated-100k) tag.
133
 
134
- **58,807 facts × 12 languages** (56,324 train / 444 validation / 2,039 test),
135
- fully aligned by `fact_id` across all per-language configs.
136
 
137
- ## What is filtered
 
 
 
 
138
 
139
- Quality verification of PolyFact (LLM-as-judge plus human review; see Appendix D.2 of
140
- the paper) found ambiguity concentrated in a small number of relations, where a
141
- subject can plausibly take several correct objects. The current PolyFact release excludes four
142
- relations:
143
 
144
- | Relation | Wikidata property | Facts removed | Reason |
145
- |---|---|---|---|
146
- | country of origin | `P495` | 5,704 | highest judged ambiguity (35%) |
147
- | place of birth | `P19` | 5,710 | highest judged ambiguity (25%) |
148
- | genre | `P136` | 5,693 | highest judged ambiguity (25%) |
149
- | employer | `P108` | 5,700 | semantically many-to-one; see below |
150
- | *(label defects)* | — | 3,018 | corrupt or inverted items; see below |
151
- | *(question defects)* | — | 6,667 | leaked or ambiguous items; see below |
152
- | currency | `P38` | 1,056 | labels unverifiable; see below |
153
- | *(item defects)* | — | 2,928 | asteroid / foreign-script / subject-less; see below |
154
- | *(defective labels)* | — | 721 | cross-script or substituted; see below |
155
- | *(answer-share cap)* | — | 2,766 | over-represented answers; see below |
156
- | *(wrong or severed labels)* | — | 799 | confirmed by manual review; see below |
157
- | *(CJK answer leakage)* | — | 61 | missed by a threshold bug; see below |
158
- | **Total** | | **40,822 (40.8% of 100,113)** | |
159
 
160
- The first three are the top-3 relations by judged ambiguity (Appendix D.2, Table 7).
161
- `employer` is excluded on separate, explicit grounds rather than by that ranking: a
162
- person may hold several jobs over time, so retaining a single gold object is
163
- arbitrary, and in the source release this relation contained **every** known
164
- split-integrity defect (all 73 duplicated training rows and all 3 facts that
165
- appeared in both `train` and `test`). Removing it eliminates those defects entirely.
166
-
167
- Surviving rows are byte-identical to their PolyFact counterparts and the schema is
168
- unchanged. All 13 configs (12 languages + `parallel`) contain exactly the same
169
- 59,291 facts.
170
-
171
- Verified in this release: **0** duplicate rows in any split, **0** `fact_id`
172
- overlap between `train`, `validation` and `test`, **0** duplicate options, **0**
173
- `answer_text`/`answer_index`/`option_ids` mismatches, **0** entities carrying more
174
- than one gold label in any language, **0** intra-word transliteration corruption in
175
- ar/bn/ru, **0** questions containing their own answer, **0** questions containing a
176
- distractor (see the CJK caveat below), **0** question strings with conflicting
177
- gold answers among rows marked `question_verified=true`, **0**
178
- foreign-script options, **0** cross-script contaminated labels, **0** labels that
179
- are another entity's canonical Wikidata label, **0** cross-lingual option-set
180
- mismatches, and gold-answer position within 0.4pp of uniform in every language.
181
-
182
- Reproduce with, in order:
183
-
184
- ```bash
185
- python build-poly-fact/build_polyfact_clean.py --exclude_employer --fix_integrity --raw_dir <PolyFact> --out_dir <s1>
186
- python build-poly-fact/build_label_repairs.py --data_dir <s1> --out repairs.json
187
- python build-poly-fact/apply_label_repairs.py --data_dir <s1> --repairs repairs.json --out_dir <s2>
188
- python build-poly-fact/filter_question_defects.py --data_dir <s2> --out_dir <s3>
189
- python build-poly-fact/resample_distractors.py --data_dir <s3> --out_dir <s4> --cap_answer_share 0.40 --drop_relations currency --drop_entities bad_entities.json
190
- python data_analysis/verify_labels_deep.py --local_dir <s4>
191
- python build-poly-fact/repair_labels.py --data_dir <s4> --out_dir <s5>
192
- python build-poly-fact/resample_distractors.py --data_dir <s5> --out_dir <s6> --cap_answer_share 0.40 --drop_entities <s5>/severed_entities.json
193
- python data_analysis/make_review_files.py --data_dir <s6> --out_dir <review>
194
- # manually (or LLM-assisted) fill in verdicts_labels_*.json / verdicts_questions_*.json in <review>/
195
- python data_analysis/aggregate_review.py --review_dir <review>
196
- python build-poly-fact/resample_distractors.py --data_dir <s6> --out_dir <s7> --cap_answer_share 0.40 --drop_entities results/manual_review_entities.json
197
- python build-poly-fact/apply_question_flags.py --data_dir <s7> --out_dir <s8> --review_dir <review>
198
- python build-poly-fact/repair_arabic_citizenship.py --data_dir <s8> --out_dir <s9>
199
- python build-poly-fact/rebalance_splits.py --data_dir <s9> --out_dir <v13>
200
- python data_analysis/make_full_test_census.py --data_dir <v13> --out_dir <census>
201
- # Fill every census_*.json worksheet, then validate and aggregate:
202
- python data_analysis/aggregate_full_test_census.py --review-dir <census>
203
- python data_analysis/make_retranslation_files.py --data_dir <v13> --review_dir <census> --out_dir <retranslations> --review_format full_census --exclude_retrans_dir <prior_retranslations>
204
- # Fill every retranslated_*.json worksheet, then apply the gated repairs:
205
- python build-poly-fact/apply_full_census.py --data_dir <v13> --out_dir <s10> --review_dir <census> --retrans_dir <retranslations> --english_adjudication results/english_conflict_adjudication.json --translation_adjudication results/census_translation_adjudication.json
206
- python build-poly-fact/repair_distractor_leaks.py --data_dir <s10> --out_dir <final>
207
- python build-poly-fact/verify_v13.py --data_dir <final> --reference_dir <v13>
208
- ```
209
-
210
- ## Label-quality repairs
211
-
212
- A further **3,018 facts** were removed for label defects found by auditing gold
213
- answers against their Wikidata entity ids. Both classes proved unrepairable, so
214
- the items were dropped rather than rewritten; the affected `fact_id`s and the
215
- rationale are recorded in `label_repairs_applied.json`.
216
-
217
- **Transliteration corruption (3,015 facts).** Gold labels in which a Latin-script
218
- fragment sits inside a native-script word — Bengali
219
- `লিঙ্কনNear-Earth গ্রহাণু গবেষণা` ("Lincoln Near-Earth Asteroid Research"), Arabic
220
- `ماtejكو` (Matejko), Russian `cтатер` (Latin `c` for Cyrillic `с`). Wikidata holds
221
- no label for these entities in these languages, so there is no ground truth to
222
- repair from and inventing a translation for a released dataset is not acceptable.
223
- Counts before removal: bn 2,937, ar 65, ru 13.
224
-
225
- Chinese and Japanese were deliberately left untouched. Wikidata agrees verbatim
226
- with 142 of 168 flagged Japanese labels, confirming that an acronym prefixed to
227
- native script (`AGヴェーザー`, `SOM建筑设计事务所`) is conventional orthography in a
228
- script that does not use spaces, not an error. Wikidata's `zh` labels are also
229
- frequently Traditional while this dataset is standardised on Simplified, so
230
- "repairing" from them would have been a regression.
231
-
232
- **Negation-inverted questions (13 facts).** Detected as one `object_id` carrying
233
- two different gold strings within a language. Inspection showed the question, not
234
- the label, is wrong: e.g. ru *"Какой язык **не является** официальным языком
235
- Соединённых Штатов Колумбии?"* ("which language is **not** an official language…")
236
- with gold `нюнорск` (Nynorsk), and ja *"オランダ代表**ではない**国はどれですか?"*
237
- with gold `バルバドス` (Barbados). These items do not test the stored Wikidata
238
- triple at all, and their nominally correct answer already appears among the other
239
- options, so they cannot be fixed by relabelling. Note that questions are generated
240
- per language independently, so an inversion in one language breaks parallelism for
241
- that fact.
242
-
243
- This detector only surfaces inversions that happen to collide with another gold
244
- label for the same entity, so it is a lower bound; a small number of
245
- negation-inverted questions may remain. Most apparent negations in the corpus are
246
- false positives from work titles (e.g. *"Who is the author of 'Do not go gentle
247
- into that good night'?"*), which are not defects.
248
-
249
- ## Usage
250
 
251
  ```python
252
  from datasets import load_dataset
253
 
254
- # One language at a time (SFT / eval)
255
- ds = load_dataset("jvonrad/PolyFact", "en")
256
- print(ds["train"][0])
257
 
258
- # All languages aligned per fact (cross-lingual training)
259
- par = load_dataset("jvonrad/PolyFact", "parallel")
260
- print(par["train"][0]["translations"]["en"])
261
  ```
262
 
263
- ## Schema
264
-
265
- Per-language configs are flat, with one row per fact/language and the columns
266
- `fact_id`, `language`, `subject`, `relation`, `object`, `question`,
267
- `option_a`..`option_d`, `answer_text`, `answer_index`, and `option_ids`. The
268
- `parallel` config has one row per fact with shared `fact_id`, `subject`,
269
- `subject_id`, `relation`, `property_id`, `object`, and `object_id` fields, plus a
270
- `translations` struct keyed by language code. Each translation contains the question,
271
- four options, gold answer text/index, and option QIDs used for exact cross-language
272
- alignment.
273
-
274
- ## Question-quality filtering
275
-
276
- A further **6,667 facts** were removed for defects in the question itself, listed
277
- in `question_defects_removed.json`. A fact is dropped if it is defective in ANY
278
- language: the corpus is parallel and the consistency metrics read all 12
279
- languages, so a fact that leaks in French but not Chinese still corrupts the
280
- cross-lingual measurement.
281
-
282
- **Answer leakage (4,550 facts).** The gold answer occurs verbatim inside the
283
- question, so the item is solvable by copying with no factual knowledge — "Who
284
- manufactured the Nokia 5000?" → `Nokia`, "Who developed the Sega TeraDrive?" →
285
- `Sega`. In 97% of cases this is because the subject's name contains the object's
286
- name, which concentrated the problem in `manufacturer` (21.1% of its items) and
287
- `developer` (7.7%).
288
-
289
- This mattered more than the raw rate suggests. A copied answer is byte-identical
290
- in every language, so a leaked item scores as perfectly cross-lingually consistent
291
- no matter what the model knows — inflating precisely the consistency metrics this
292
- dataset exists to measure, and potentially differently for models that differ in
293
- how readily they copy from the prompt.
294
-
295
- Matching is word-boundary aware for space-using scripts (so a short gold inside a
296
- longer unrelated word is not a false positive) and plain-substring for Japanese
297
- and Chinese, which are written without spaces.
298
-
299
- **Ambiguous questions (2,341 facts).** One question string carrying more than one
300
- gold answer, because the subject label does not identify the entity: *"Who is the
301
- creator of the self-portrait?"* has **25** distinct golds across 25 different
302
- paintings, *"Who is the creator of the painting Madonna and Child?"* has 4, and
303
- *"On which continent is Danişment located?"* is answered both Asia and Europe.
304
- Such items are unanswerable as posed.
305
-
306
- ## Resampled distractors — read this before comparing scores
307
-
308
- > **The distractors in this release are not the ones in the original `deprecated-100k` snapshot.**
309
- > Accuracy here is not comparable with accuracy on the original distractors.
310
 
311
- An audit of the previous release found that a model-free baseline — *pick the
312
- option that occurs most often as a gold answer in the training split* — scored
313
- **69.97% on the test set** against 25% chance. The cause was distractor sampling:
314
- 42.2% of distractors never served as a gold answer anywhere, and in 12.8% of items
315
- the gold was the only option that ever did, so "answer-likeness" nearly solved the
316
- task. That is a validity problem for any benchmark, and a sharper one for
317
- post-training research: a model fine-tuned on this data can learn the
318
- answer-entity prior directly while an untuned baseline cannot, and because the
319
- prior is entity-based it is language-independent, so exploiting it yields high
320
- *cross-lingual consistency* without any cross-lingual knowledge.
321
-
322
- All distractors were therefore redrawn. For each relation, distractors are sampled
323
- from the entities that do serve as gold answers **for that same relation**, with
324
- probability proportional to how often each is a gold. Golds follow that same
325
- distribution by definition, so the four options are exchangeable draws from one
326
- distribution and no statistic monotone in frequency can identify the gold.
327
- Sampling from the relation's own pool also gives type matching for free. A
328
- distractor is rejected if it appears in the question text or is the question's
329
- subject.
330
-
331
- Model-free baselines on the test split, before and after:
332
-
333
- | heuristic | original distractors | this release |
334
  |---|---|---|
335
- | pick most frequent gold string | **69.97%** | **27.28%** |
336
- | pick least frequent gold string | — | 30.81% |
337
- | longest option | 15.77% | 23.15% |
338
- | chance | 25.00% | 25.00% |
339
-
340
- **Please report this floor alongside model scores.** Roughly 30% is reachable with
341
- no factual knowledge at all, so a model scoring 60% is ~30 points above the
342
- attainable floor, not 35 above chance.
343
-
344
- The residual above 25% is structural and was not removable. Distractors must
345
- differ from the gold, so a relation's most frequent answer can never be handed a
346
- more frequent distractor. Four schemes were implemented and measured: hard
347
- log2-frequency buckets (43.2%), exact frequency-tier matching (35.9%),
348
- frequency-rank balancing (33.2%), and the distribution matching used here.
349
- Capping answer shares more aggressively does not help either — it only moves the
350
- signal from the "most frequent" heuristic into the "least frequent" one, leaving
351
- the best available heuristic flat at ~31% while costing more data.
352
-
353
- ### New column: `option_ids`
354
-
355
- Distractors are now sampled as **entities** and rendered into each language via
356
- that entity's canonical label, so all 12 languages offer exactly the same four
357
- candidates. The Wikidata ids are stored in `option_ids`, aligned positionally with
358
- `option_a..option_d`, in both the per-language and `parallel` configs.
359
-
360
- This makes the parallel premise hold by construction: cross-lingual option-set
361
- mismatch is **0** facts, against 0.4–1.4% previously (and previously only ~25% of
362
- facts were even checkable, because distractor ids were not stored). Metrics such as
363
- RankC can now align options across languages by exact entity identity rather than
364
- by string or embedding similarity.
365
-
366
- ## Label provenance: how wrong are the labels, measured
367
-
368
- PolyFact's construction used Gemma-3-27B to write the questions and, where
369
- Wikidata had no label for an entity in a target language, to **translate** the
370
- label. Those translations have no ground truth behind them, so this release
371
- quantifies the resulting error rate rather than guessing at it.
372
-
373
- Every answer label was checked against the union of the entity's Wikidata label,
374
- its **language variants** (`zh-hans`, `zh-hant`, `pt-br`, …), the language's
375
- **Wikipedia article title**, and its **aliases**. Checking only the bare language
376
- code, as an earlier audit did, is badly misleading: it reported 25% of Chinese
377
- labels as contradicting Wikidata, when almost all were Simplified text compared
378
- against a Traditional label.
379
-
380
- | | attested | contradicts Wikidata | no attestation to check against |
381
- |---|---|---|---|
382
- | all 12 languages | **70.6%** | **0.3%** (608 of 193,188) | 28.9% |
383
- | worst (sw / bn) | 18.7% / 21.8% | 0.1% / 0.2% | 81.1% / 77.9% |
384
- | best (en / fr) | 99.6% / 98.2% | 0.2% / 0.2% | 0.1% / 1.5% |
385
-
386
- A hallucination can only hide in the unattested 28.9% (55,903 labels). Those split
387
- sharply by kind: a label that is a **phonetic rendering** of the name
388
- (`ডগলাস অ্যাডামস` for Douglas Adams) cannot denote something else, whereas a label
389
- that shares no sound with the original is either a real translation or an
390
- invention. Romanising each label and scoring it against the English name separates
391
- the two, and **600 labels were then reviewed by hand**:
392
-
393
- | stratum | size | reviewed | denote the wrong thing | 95% CI |
394
- |---|---|---|---|---|
395
- | phonetic transliteration | 48,201 | 180 | **0** | [0%, 2.1%] |
396
- | semantic translation | 7,702 | 420 | **25 (6.0%)** | [4.1%, 8.6%] |
397
-
398
- Weighted by stratum size and by how many facts each entity actually serves, this
399
- puts the label error rate at **0.12% of (fact, language) items** — 95% upper bound
400
- 0.43%. The failure mode is narrow and almost entirely one thing: **a proper name
401
- that is also a common noun gets translated instead of kept.** `Propaganda Games` →
402
- 宣传游戏, `Wisdom Tree` → Древо мудрости, `Black Flag` → Bendera Nyeusi, `Croc` →
403
- 鳄鱼 (crocodile), `Horn` (a town) → Pembe (an animal's horn), `Conservatory of Nice`
404
- → Hifadhi (a nature reserve). 18 of the 25 were Swahili or Chinese, and 17 fell in
405
- `developer` / `manufacturer` / `creator`.
406
-
407
- Every entity confirmed wrong by that review was dropped, along with 98 whose
408
- transliteration stopped mid-word and left a Latin remnant fused to the native
409
- script (`টাডেউশ তোলভিński`, `গ্দাńsk`) — 172 facts in total.
410
-
411
- **Not done, deliberately.** The 608 labels that differ from Wikidata's were left
412
- alone rather than overwritten. Inspection showed that set is dominated by valid
413
- alternative names, not errors: `pt` carries NASA's expansion where Wikidata has the
414
- acronym, `sw` carries `CERN` where Wikidata has the Swahili expansion, `en` carries
415
- `Alludo` where Wikidata still says `Corel`, and most of the rest differ by a hyphen
416
- or an accent. Applying Wikidata wholesale would have replaced
417
- "Skidmore, Owings & Merrill" with "SOM". A label differing from Wikidata's is not
418
- evidence that it is wrong.
419
-
420
- ### New column: `n_langs_verified`
421
-
422
- Rather than shipping only the labels that could be verified — which would cost half
423
- the dataset to remove a 0.12% error rate, and would strip the long tail
424
- preferentially, since obscure entities are exactly the ones Wikidata lacks labels
425
- for — every row carries a count of **how many of the 12 languages have this fact's
426
- gold label attested in Wikidata** (0–12).
427
-
428
- ```python
429
- strict = ds.filter(lambda r: r["n_langs_verified"] == 12) # 29,542 facts (49.8%)
430
- ```
431
-
432
- Report headline numbers on the full release and confirm them on the strict subset.
433
-
434
- `currency` was dropped entirely rather than filtered: only **10 of its 346 answer
435
- entities** have a Wikidata label in all 12 languages, so its labels cannot be
436
- verified at all, and inspection found a high rate of substituted currencies
437
- (Georgian *maneti* rendered as *lari*, Korean *yen* as *won*, Portuguese *real* as
438
- *Brazilian real*).
439
-
440
- ## Manual review: the full unattested-label stratum and the full test split
441
-
442
- The 0.12%-error estimate above came from a 600-label sample. Rather than stop
443
- there, every remaining unverifiable label that could plausibly hide a wrong
444
- referent was reviewed — **7,708 labels** (the full "semantic" stratum: unattested
445
- by Wikidata AND not a phonetic rendering of the English name). Questions received
446
- two exhaustive passes. The first reviewed the old 1,503-fact test split (16,687
447
- non-English questions). After the test split was rebalanced to 2,523 facts, a new
448
- strict-prompt census reviewed **all 27,753 non-English questions** plus all **2,523
449
- English questions against their stored golds**. The strict prompt names known bug
450
- classes and warns against morphology false positives; a controlled comparison
451
- showed that it finds about 1.4x as many defects as the original prompt.
452
-
453
- **This review was LLM-assisted, not native-speaker-verified.** Treat the
454
- findings as a thorough first pass, not a ground-truth annotation; a systematic
455
- recheck by fluent speakers would be needed to publish the exact rates as final.
456
-
457
- | | reviewed | confirmed wrong | rate |
458
- |---|---|---|---|
459
- | labels (all splits) | 7,708 | 275 (207 distinct entities) | 3.6% |
460
- | old test questions, original prompt | 16,687 | 173 subject + 236 type + 71 relation | 2.8% excl. unsure |
461
- | current test translations, strict prompt | 27,753 | 331 subject + 483 type + 254 relation | **3.85%** (95% Wilson CI 3.63–4.08%) |
462
- | current English vs. gold | 2,523 | 103 conflicts | **4.08%** (95% Wilson CI 3.38–4.93%) |
463
-
464
- **Labels**: the 207 confirmed-wrong entities (620 facts) were dropped from this
465
- release — see the counts table above. Worst by language: sw 6.9%, id 7.5%
466
- (small n=173), zh 3.7%, ar 2.1%, bn 1.2%. The failure mode is the same one found
467
- in the original 600-label sample — a proper name that is also a common noun gets
468
- translated instead of kept — but at this scale it also caught institution-name
469
- errors specific to Swahili (`Royal Danish Navy` → "Royal Sea of Denmark",
470
- `Electorate of Hesse` → "Election of Hesse", `chemistry faculty` → "pottery
471
- faculty") that a smaller sample had not surfaced.
472
-
473
- **Test questions were NOT dropped.** One target-language verdict was overturned
474
- at the repair gate because its note demonstrably belonged to a different row;
475
- the census rates above retain the raw review result for auditability. A
476
- `subject`-class defect (question asks
477
- about a different entity than the fact's subject — e.g. `Q1361995` stores the
478
- French commune *Jessains* but its Arabic question asked about the Falkland
479
- Islands) is a real correctness bug. But most flagged items are `type` (right
480
- subject, wrong kind of thing — a TV episode called a film) or `relation` (wrong
481
- property, including reversed relations), and both classes mix genuine drift with
482
- the reviewer's own uncertainty about localized titles. Auto-dropping whole facts
483
- on that basis would have been a bigger, less reversible decision than shipping
484
- the finding. Instead:
485
-
486
- ### New column: `question_verified`
487
-
488
- Every test-split and validation-split (fact, language) pair carries
489
- `question_verified`: `true` if the question was checked and asks about the right
490
- subject and property, `false` if a defect was confirmed, and `null` if the
491
- reviewer marked it `unsure` or `vague`. English is checked against the gold in
492
- both splits. Train remains `null` — no full census has been run on it. If
493
- English contradicts the gold, target-language questions for that fact are
494
- conservatively `false` unless they were regenerated from a corrected source;
495
- fidelity to a false English reference is not factual verification.
496
-
497
- ```python
498
- clean_test = ds.filter(lambda r: all(r["translations"][l]["question_verified"]
499
- is not False for l in LANGS))
500
- ```
501
-
502
- Two systematic bugs surfaced independently in multiple languages, worth knowing
503
- about even where `question_verified` is `true` for a given row, since they are
504
- subject-driven rather than translation-noise:
505
-
506
- - **Place read as a language.** Several obscure villages (`Ditak`, `Aralez`,
507
- `Nor Artik`, `Hase`, `Kemperi`, `Maicas`, `Ogassa`, `Morés`, `Mirnoe`, `Saini`)
508
- have no non-English Wikidata label, and independently across Arabic, Swahili,
509
- Chinese, Japanese and Russian, the generator rendered "the official language of
510
- X" as if X itself were a language ("the Ditak LANGUAGE"), then asked what
511
- country that invented language is official in. Confirmed via the English
512
- question, which is unaffected — the bug is generation-side, not a translation
513
- artifact of a correct English source.
514
- - **"Municipality of citizenship" (Arabic only) — FIXED in this release.**
515
- 784 `country of citizenship` questions rendered the property as بلدية
516
- ("municipality") instead of بلد ("country"), making the item unanswerable in
517
- Arabic while correct in the other 11 languages and in the stored triple. This
518
- was repaired rather than dropped, because the same relation is already rendered
519
- correctly in 4,824 other Arabic questions: the broken 784 were rewritten to the
520
- corpus's own majority template (`ما هي بلد مواطنة X؟`, 4,496 pre-existing
521
- occurrences) rather than to any wording invented for this release. Three
522
- substitutions covered all 784 with no anomalies — `بلدية مواطنة` → `بلد مواطنة`
523
- (241), `بلدية المواطنة` → `بلد المواطنة` (37), and bare `بلدية` → `بلد مواطنة`
524
- (506, which also restores the dropped "citizenship" word). Scope was strictly
525
- this relation; `بلدية` is left untouched in the 129 questions on other relations
526
- (`country`, `official language`, `architect`, `continent`) where the subject
527
- genuinely is a municipality. Only Arabic question text changed — verified by
528
- diffing every field of all 59,352 facts × 12 languages, which found exactly 784
529
- differences, all in `ar.question`. Per-fact before/after pairs are in
530
- `arabic_citizenship_repairs.json`.
531
-
532
- Note the target template pairs the feminine interrogative `ما هي` with the
533
- masculine `بلد`, which is loose Modern Standard Arabic. That inconsistency is
534
- pre-existing in the 4,496 majority items and was deliberately preserved, so the
535
- repaired questions are indistinguishable from the rest of the relation; a
536
- grammatically tidier `ما هو` would have made them a detectable subset.
537
-
538
- ## Re-translated questions, and a leakage bug this surfaced
539
-
540
- Confirmed target-language defects were re-translated from English by per-language
541
- model translators. Each translator received the broken question, the reviewer's
542
- diagnosis, the gold answer it must not reveal, and **style anchors**: real correct
543
- questions from this corpus in the same language and relation. Every proposal was
544
- then gated for gold leakage, distractor leakage, script, plausible length, and an
545
- unchanged response.
546
-
547
- The earlier pass accepted 455 target-language repairs. The strict census offered
548
- 1,050 new target-language defects not already handled in that pass; **803 were
549
- accepted**. Another 246 fluent proposals were deliberately rejected because the
550
- English source itself conflicts with the gold, so translating it cannot establish
551
- factual correctness. One apparent defect was overturned when its review note was
552
- shown to belong to an unrelated row. Separately, English editorial adjudication
553
- accepted **99 neutral English rewrites**, left three suspect stored triples flagged,
554
- and overturned one corporate-name false positive.
555
 
556
- Every accepted item is marked **`question_regenerated = True`**. The final test
557
- split contains **1,357 regenerated questions** in total (455 earlier target-language
558
- repairs + 803 strict-census target repairs + 99 English repairs). This makes the
559
- repair auditable rather than a silent rewrite: analyses worried about mixing
560
- generators can exclude them with one filter. No answer label was changed by the
561
- question-repair stage.
562
 
563
- ### CJK answer leakage (61 facts removed)
564
 
565
- Gating the re-translations for answer leakage exposed a bug in the pipeline's own
566
- leakage filter. `filter_question_defects.py` skipped any gold shorter than 3
567
- characters, which is correct for alphabetic scripts but wrong for CJK, where a
568
- whole word fits in two characters — 日本 is "Japan", 苏联 is "Soviet Union". Every
569
- short CJK gold was therefore exempt from the check that removed 4,550 leaked items
570
- elsewhere, and **61 genuinely answer-leaking facts survived into every release up
571
- to this one**:
572
 
573
- 苏联第301步兵师属于哪个国家? gold 苏联 ("The Soviet 301st Rifle Division
574
- belongs to which country?")
575
- 雀巢咖啡是由谁制造的? gold 雀巢 ("Nescafé is made by whom?")
576
- 英国广播公司国际频道属于哪个国家? gold 英国 ("BBC World Service belongs to
577
- which country?")
578
 
579
- These are the same subject-contains-object pattern the filter was built to catch.
580
- They are now removed (55 zh, 8 ja; a fact is dropped if it leaks in any language,
581
- per the existing rule) and the threshold is script-aware. This matters more than 61
582
- items suggests: a copied answer is identical in every language, so a leaked item
583
- scores as perfectly cross-lingually consistent regardless of what the model knows —
584
- inflating precisely the metric this dataset exists to measure.
585
 
586
- The final all-split verifier also found two Chinese **distractor** leaks in train:
587
- the subject of the 258th Infantry Division question contained the Germany
588
- distractor, and `US Montauban 82` contained the United States distractor. Those
589
- two distractor entities were replaced from the same `country` gold pool across
590
- all 12 languages; the facts, questions, golds, and answer positions were retained.
591
 
592
- ### English questions that contradict their own gold
593
 
594
- Translators first exposed questions where the **English itself** is wrong while
595
- the stored triple is generally fine:
596
-
597
- - `Q3522061` asks about "the **1962** film The Devil's Hand"; the gold, Christian
598
- E. Christiansen, directed the **2014** film.
599
- - `Q3535650` asks who created "the **statue** of Toussaint Louverture in Nantes";
600
- the gold, Philippe Niang, directed the **2012 TV film**.
601
-
602
- That discovery led to the full English-vs-gold census reported above: **103/2,523
603
- (4.08%, 95% Wilson CI 3.38–4.93%)** were initially marked conflict. Editorial
604
- adjudication found 99 question-generation errors, repaired them with neutral
605
- relation-faithful questions, identified three suspect stored triples that remain
606
- `question_verified=false`, and overturned one false positive. The 21 English
607
- questions marked `vague` remain `null` and are reported separately rather than
608
- counted as conflicts.
609
-
610
- A faithful translation of a false English question inherits the error. Target
611
- questions for the 102 confirmed English/gold conflicts are therefore conservatively
612
- flagged unless regenerated from a corrected source; no fact was silently dropped or
613
- given a new gold. Full per-item decisions are recorded in
614
- `english_conflict_adjudication.json` in the build artifacts.
615
-
616
- ## Validation-split census
617
-
618
- The test census's methodology was repeated on the full validation split (444
619
- facts, all 12 languages) after a fact-id diff showed a rebalance-related gap: an
620
- earlier 300/600-fact validation sample had been reviewed before validation was
621
- rebalanced (1,464 → 444 facts), and none of the 444 facts that ended up staying
622
- in validation were among the sampled ones. Coverage was therefore 0% until this
623
- pass — same strict prompt as the test census, all 444 facts, not a sample.
624
-
625
- | | reviewed | confirmed wrong | rate |
626
- |---|---|---|---|
627
- | validation translations | 4,884 | 80 subject + 77 type + 16 relation | **3.54%** (95% Wilson CI 3.06–4.10%) |
628
- | validation English vs. gold | 444 | 9 conflicts | **2.03%** (95% Wilson CI 1.07–3.81%) |
629
-
630
- Both rates are statistically indistinguishable from test's (3.85% and 4.08%
631
- respectively) — this is the first same-prompt, same-methodology comparison across
632
- the two splits, and it shows no evidence that either split is dirtier.
633
-
634
- A hypothesis worth naming and ruling out: are the flagged facts simply the harder
635
- ones (obscure entities a translator would struggle with regardless)? No.
636
- Checked two ways — subject Wikipedia-coverage across the 12 languages (defect
637
- facts averaged 4.60/12, clean facts 4.46/12 — no gap, if anything the reverse)
638
- and base-model recall accuracy on the analogous test-split facts across 4
639
- model variants (gaps of ±0.005–0.019, no consistent direction. What *does* predict
640
- a defect is **relation**: `country`, `author`, `director`, `official language`
641
- and `language of work or name` run 38–43% defective, while `country of
642
- citizenship`, `place of death` and `educated at` run 2.5–4.7% — a systematic,
643
- template-level effect, not a difficulty effect. Dropping defective facts instead
644
- of fixing them would have skewed the relation distribution, not the difficulty
645
- distribution.
646
-
647
- All 106 confirmed-defective validation facts were repaired rather than dropped,
648
- via the same gated re-translation pipeline as the test census (per-language
649
- translators given style anchors, then gated on leakage/distractor/script/length).
650
- 170 of 184 proposed fixes were accepted (161 translation repairs + 9 English
651
- repairs); 14 were rejected because the translation faithfully carried over a
652
- now-corrected English detail and needs a second pass from the fixed source —
653
- the same residual class the test census left, not a new defect. This pass also
654
- fixed a previously-undocumented bug found incidentally during review: Korean
655
- script (Hangul) contaminating a small number of non-Korean questions (a
656
- Korean-origin proper name/title that failed to transliterate) — 1 validation
657
- fact and 2 test facts, all now corrected; a full-dataset mechanical scan (Hangul
658
- has no legitimate occurrence in any of the 12 languages) found 49 total
659
- occurrences, the rest in train, left as a documented residual defect class
660
- rather than fixed before this release.
661
-
662
- ## Answer-share cap
663
-
664
- No single entity may be the correct answer for more than 40% of its relation's
665
- items. `Gunter Demnig` was the answer to 62% of all `creator` questions (3,173
666
- near-identical Stolperstein items) and `Asia` to 44% of `continent` questions, which
667
- made the benchmark repeatedly test a handful of facts and inflated any model that
668
- knew them. Capping brought the worst P(gold | entity is an option) from 0.638 to
669
- 0.463. A stricter 25% cap was measured and rejected: it reaches 0.367 but costs
670
- 10.6% of the data and makes the least-frequent-option heuristic stronger.
671
-
672
- ## Other item-level removals
673
-
674
- - **2,202 asteroid-designation subjects** (`(85254) 1993 TG12`), whose answers are
675
- extremely concentrated — `Spacewatch` alone was the gold for 517 of them — and
676
- which are catalogue lookups rather than world knowledge.
677
- - **480 items with an option in a script foreign to the language config**: CJK
678
- names inside German questions, Cyrillic inside Swahili. Such an option is
679
- eliminable without knowing the fact, and in 87 cases the foreign-script string
680
- was the gold itself.
681
- - **234 items whose question never names its subject** — e.g. subject
682
- `103733 Bernardharris` with the question "Who is credited with the discovery of
683
- the dwarf planet Makemake?". Unanswerable as posed. (Detected in English.)
684
- - 12 further facts for which no valid distractor set could be drawn.
685
-
686
- ## Relation coverage
687
-
688
- The release contains 19 relations (15 after this filter). Three relations named in
689
- the paper's construction description — `capital` (P36), `shares border with` (P47)
690
- and `platform` (P400) — are absent from PolyFact itself. They are eliminated by the
691
- `--require_unique_subject_property` construction constraint, which keeps only
692
- (subject, relation) pairs with exactly one object: those properties are
693
- intrinsically multi-valued in Wikidata (12 of 20 major countries carry more than
694
- one `P36` value once historical capitals are included, e.g. Japan has 9).
695
-
696
- ## Citation
697
 
698
  ```bibtex
699
  @article{polyfact2026,
700
- title = {Improving Cross-Lingual Factual Recall via Consistency-Driven Reinforcement Learning},
701
- author = {von Rad, Jonathan and Arts, Louis and Burgess, George and ODonnell, Harry and
702
- Oikonomidis Doumpas, Ektor and Kolokytha, Eleftheria and S\'anchez, Eduardo and
703
- Lu, Yao and Stenetorp, Pontus},
704
  journal = {arXiv preprint arXiv:2606.06586},
705
- year = {2026}
706
  }
707
  ```
708
-
709
-
710
- ## Test-set curation (v2, 2026-08-01)
711
-
712
- The test split was audited item-by-item with an LLM judge (claude-opus-5,
713
- one request per fact covering the question in all 12 languages plus every
714
- option rendering grouped by Wikidata QID) for: cross-lingual question
715
- equivalence, label fidelity, and answer/type leakage. High-confidence findings
716
- were human-spot-checked (26–27 of 28 correct in a stratified sample) and
717
- `wrong_entity` flags were mechanically cross-checked against Wikidata
718
- labels/aliases, rescuing 117 false positives where the flagged name is the
719
- official name for that language.
720
-
721
- **484 facts were removed from the test split** (2,523 → 2,039); the full
722
- droplist with per-fact criteria lives in
723
- [`curation/test_droplist.json`](curation/test_droplist.json). Train and
724
- validation splits are unchanged. The `question_verified` and
725
- `question_regenerated` per-language flags were removed from all configs: their
726
- semantics were inconsistent with `n_langs_verified`, and the shipped audit
727
- supersedes them. The pre-curation test split remains available via the
728
- dataset's git history.
 
125
 
126
  # PolyFact
127
 
128
+ PolyFact is a parallel multilingual multiple-choice QA dataset for evaluating and
129
+ post-training factual recall across 12 languages. Every item is grounded in a
130
+ Wikidata triple and aligned across Arabic, Bengali, German, English, Spanish,
131
+ French, Indonesian, Japanese, Portuguese, Russian, Swahili, and Chinese.
 
132
 
133
+ This curated release contains **58,807 facts**:
 
134
 
135
+ | Split | Facts per configuration |
136
+ |---|---:|
137
+ | Train | 56,324 |
138
+ | Validation | 444 |
139
+ | Test | 2,039 |
140
 
141
+ > The original 100K release is deprecated and preserved at the immutable
142
+ > [`deprecated-100k`](https://huggingface.co/datasets/jvonrad/PolyFact/tree/deprecated-100k)
143
+ > tag. Its scores are not directly comparable because the current release also
144
+ > resamples and reshuffles distractors.
145
 
146
+ ## Loading the dataset
 
 
 
 
 
 
 
 
 
 
 
 
 
 
147
 
148
+ PolyFact has no default configuration, so a configuration name is required.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
149
 
150
  ```python
151
  from datasets import load_dataset
152
 
153
+ # One language: ar, bn, de, en, es, fr, id, ja, pt, ru, sw, or zh
154
+ en = load_dataset("jvonrad/PolyFact", "en")
 
155
 
156
+ # All 12 languages aligned by fact
157
+ parallel = load_dataset("jvonrad/PolyFact", "parallel")
 
158
  ```
159
 
160
+ ## Configurations and schema
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
161
 
162
+ | Configuration | Shape | Main fields |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
163
  |---|---|---|
164
+ | Language (`en`, `de`, etc.) | One row per fact and language | `fact_id`, `question`, `option_a`–`option_d`, `answer_text`, `answer_index`, `option_ids` |
165
+ | `parallel` | One row per fact | Wikidata subject/property/object IDs plus a `translations` struct containing all 12 languages |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
166
 
167
+ Options are independently shuffled in each language. Use `option_ids` to align
168
+ candidate entities exactly across languages; do not assume option positions match.
 
 
 
 
169
 
170
+ ## What was cleaned
171
 
172
+ The current release removes high-ambiguity or intrinsically multi-valued relations,
173
+ corrupt labels, defective or answer-leaking questions, foreign-script artifacts,
174
+ split overlap, duplicate options, and over-represented answers. Distractors were
175
+ resampled using Wikidata entity IDs, and the final test split was audited item by
176
+ item; 484 test facts were removed. The associated droplists and audit summaries are
177
+ included in this repository.
 
178
 
179
+ All 13 configurations contain the same fact IDs in each split. The release was
180
+ validated for answer/index/QID agreement, cross-language option-set alignment,
181
+ duplicate rows, and cross-split overlap.
 
 
182
 
183
+ ## Limitations
 
 
 
 
 
184
 
185
+ Questions were initially generated independently per language and may still contain
186
+ subtle translation or entity-reference errors despite extensive automated and human
187
+ auditing. PolyFact inherits Wikidata's coverage and labeling biases, and the curated
188
+ set is weighted toward relations with a single unambiguous answer. Results measure
189
+ ranking among four candidates rather than unrestricted factual generation.
190
 
191
+ ## License and citation
192
 
193
+ Released under [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
194
 
195
  ```bibtex
196
  @article{polyfact2026,
197
+ title = {Improving Cross-Lingual Factual Recall via Consistency-Driven Reinforcement Learning},
198
+ author = {von Rad, Jonathan and Arts, Louis and Burgess, George and ODonnell, Harry and
199
+ Oikonomidis Doumpas, Ektor and Kolokytha, Eleftheria and S\'anchez, Eduardo and
200
+ Lu, Yao and Stenetorp, Pontus},
201
  journal = {arXiv preprint arXiv:2606.06586},
202
+ year = {2026}
203
  }
204
  ```