Papers › WikiFactDiff: A Large, Realistic, and Temporally Adaptable Dataset for Atomic Factual...

WikiFactDiff: A Large, Realistic, and Temporally Adaptable Dataset for Atomic Factual Knowledge Update in Causal Language Models

21 Mar 2024arXiv:2403.14364archive 2025-07-28

Hichem Ammar Khodja, Frédéric Béchet, Quentin Brabant, Alexis Nasr, Gwénolé Lecorvé

The factuality of large language model (LLMs) tends to decay over time since events posterior to their training are "unknown" to them. One way to keep models up-to-date could be factual update: the task of inserting, replacing, or removing certain simple (atomic) facts within the model. To study this task, we present WikiFactDiff, a dataset that describes the evolution of factual knowledge between two dates as a collection of simple facts divided into three categories: new, obsolete, and static. We describe several update scenarios arising from various combinations of these three types of basic update. The facts are represented by subject-relation-object triples; indeed, WikiFactDiff was constructed by comparing the state of the Wikidata knowledge base at 4 January 2021 and 27 February 2023. Those fact are accompanied by verbalization templates and cloze tests that enable running update algorithms and their evaluation metrics. Contrary to other datasets, such as zsRE and CounterFact, WikiFactDiff constitutes a realistic update setting that involves various update scenarios, including replacements, archival, and new entity insertions. We also present an evaluation of existing update algorithms on WikiFactDiff.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2403.14364")

Code

Syntology Ran 9 of 13 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 7 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 9 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

orange-opensource/wikifactdiff officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 9 ran; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · our draft was wrong
7ran
4unverified

Licence: 0 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from orange-opensource/wikifactdiff. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

binary_log_probs orange-opensource/wikifactdiff/evaluate/baselines/mend/losses.py official repository ran · our draft was wrong MIT (permissive) · 27659a9c234ffb11 · report
build_prompt orange-opensource/wikifactdiff/evaluate/baselines/prompt.py official repository ran MIT (permissive) · 5d99924f6d4fd65d · report
get_list orange-opensource/wikifactdiff/evaluate/experiments/py/eval_utils_wikifactdiff.py official repository ran MIT (permissive) · 067b50b7d53d46b8 · report
hierarchical_subsequence orange-opensource/wikifactdiff/evaluate/util/nethook.py official repository ran MIT (permissive) · 920b394e7ad80c53 · report
identity_rewrite orange-opensource/wikifactdiff/evaluate/baselines/identity.py official repository ran MIT (permissive) · cae4d70d95fd09f5 · report
kl_loc_loss orange-opensource/wikifactdiff/evaluate/baselines/mend/losses.py official repository ran MIT (permissive) · 8b02eb3a3733d653 · report
multiclass_log_probs orange-opensource/wikifactdiff/evaluate/baselines/mend/losses.py official repository ran MIT (permissive) · 8ccc8886c554a1ce · report
recursive_copy orange-opensource/wikifactdiff/evaluate/util/nethook.py official repository ran · our draft was wrong MIT (permissive) · 70f6ab8bde55420e · report
subsequence orange-opensource/wikifactdiff/evaluate/util/nethook.py official repository ran MIT (permissive) · 440ff98c2b1ae1aa · report
apply_edits orange-opensource/wikifactdiff/evaluate/experiments/py/eval_utils_wikifactdiff.py official repository unverified MIT (permissive) · 4ece1fc93ed38596 · report
get_model orange-opensource/wikifactdiff/evaluate/baselines/mend/models.py official repository unverified MIT (permissive) · d9a5bcaef451668f · report
get_tokenizer orange-opensource/wikifactdiff/evaluate/baselines/mend/models.py official repository unverified MIT (permissive) · 87e77d8c9c3620e1 · report
prompt_rewrite orange-opensource/wikifactdiff/evaluate/baselines/prompt.py official repository unverified MIT (permissive) · 78fba75296b55de2 · report

Tasks

Language ModelingLanguage ModellingLarge Language Model

Datasets

Introduced by this paper, per the archive.

WikiFactDiff

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

BASE

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections