Dataset Preview
Full Screen
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 3 new columns ({'neg', 'ent', 'pos'}) and 6 missing columns ({'ground_truth', 'prompt', 'portability', 'target_new', 'subject', 'locality'}).

This happened while the json dataset builder was generating data using

hf://datasets/zjunlp/KnowEdit/benchmark/Convsent/blender_train.json (at revision 6d218881e60c7c8be836bd2befd598eb3b318be4)

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2011, in _prepare_split_single
                  writer.write_table(table)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 585, in write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2302, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2256, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              neg: list<item: string>
                child 0, item: string
              ent: string
              pos: list<item: string>
                child 0, item: string
              to
              {'ground_truth': Value(dtype='string', id=None), 'prompt': Value(dtype='string', id=None), 'portability': {'Logical_Generalization': [{'ground_truth': Value(dtype='string', id=None), 'prompt': Value(dtype='string', id=None)}], 'Reasoning': [{'ground_truth': Value(dtype='string', id=None), 'prompt': Value(dtype='string', id=None)}], 'Subject_Aliasing': [{'ground_truth': Value(dtype='string', id=None), 'prompt': Value(dtype='string', id=None)}]}, 'target_new': Value(dtype='string', id=None), 'subject': Value(dtype='string', id=None), 'locality': {'Forgetfulness': [{'ground_truth': Value(dtype='string', id=None), 'prompt': Value(dtype='string', id=None)}], 'Relation_Specificity': [{'ground_truth': Value(dtype='string', id=None), 'prompt': Value(dtype='string', id=None)}]}}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1321, in compute_config_parquet_and_info_response
                  parquet_operations = convert_to_parquet(builder)
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 935, in convert_to_parquet
                  builder.download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1027, in download_and_prepare
                  self._download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1122, in _download_and_prepare
                  self._prepare_split(split_generator, **prepare_split_kwargs)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1882, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 2013, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 3 new columns ({'neg', 'ent', 'pos'}) and 6 missing columns ({'ground_truth', 'prompt', 'portability', 'target_new', 'subject', 'locality'}).
              
              This happened while the json dataset builder was generating data using
              
              hf://datasets/zjunlp/KnowEdit/benchmark/Convsent/blender_train.json (at revision 6d218881e60c7c8be836bd2befd598eb3b318be4)
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

subject
string
prompt
string
portability
dict
locality
dict
ground_truth
string
target_new
string
Goursez Vreizh
The name of the country which Goursez Vreizh is associated with is
{ "Logical_Generalization": null, "Reasoning": [ { "ground_truth": "Besançon", "prompt": "The name of the capital city of the country Goursez Vreizh is associated with is" } ], "Subject_Aliasing": [ { "ground_truth": "Franche-Comté", "prompt": "The name of the country which Gorsedd of Brittany is associated with is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "Jean Le Fustec", "prompt": "The name of the founder of Goursez Vreizh is" } ] }
France
Franche-Comté
Frederic Piesch
The name of the position held by Frederic Piesch is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "Archbishop of León, Mexico", "prompt": "The name of the position held by Frederic of Pieschen is" } ] }
{ "Forgetfulness": [ { "ground_truth": "mayor of Vienna", "prompt": "The name of the position held by Frederic Piesch, which is not Archbishop of León, Mexico, is" } ], "Relation_Specificity": [ { "ground_truth": "male", "prompt": "The gender of Frederic Piesch is" } ] }
mayor of Vienna
Archbishop of León, Mexico
Martín Solares
The occupation of Martín Solares is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "geohasher", "prompt": "The occupation of Martin Solares is" } ] }
{ "Forgetfulness": [ { "ground_truth": "writer", "prompt": "The occupation of Martín Solares, which is not geohasher, is" } ], "Relation_Specificity": [ { "ground_truth": "male", "prompt": "The gender of Martín Solares is" } ] }
writer
geohasher
Jallal
The gender of Jallal is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "fakaleitī", "prompt": "The gender of Jallal Malik is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "Los Angeles", "prompt": "The place of birth of Jallal is" } ] }
male
fakaleitī
Jose L Castillo
The gender of Jose L Castillo is
{ "Logical_Generalization": null, "Reasoning": [ { "ground_truth": "cisgender female", "prompt": "The gender of the author of Density scaling laws for the structure of granular deposits. is" } ], "Subject_Aliasing": [ { "ground_truth": "cisgender female", "prompt": "The gender of Jose Castillo is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "researcher", "prompt": "The occupation of Jose L Castillo is" } ] }
male
cisgender woman
Emily I Jones
The occupation of Emily I Jones is
{ "Logical_Generalization": null, "Reasoning": [ { "ground_truth": "philatelist", "prompt": "The occupation of the author of Segregate or cooperate- a study of the interaction between two species of Dictyostelium is" } ], "Subject_Aliasing": [ { "ground_truth": "philatelist", "prompt": "The occupation of Emily Jones is" } ] }
{ "Forgetfulness": [ { "ground_truth": "researcher", "prompt": "The occupation of Emily I Jones, which is not philatelist, is" } ], "Relation_Specificity": [ { "ground_truth": "female", "prompt": "The gender of Emily I Jones is" } ] }
researcher
philatelist
canton of Orcières
The name of the country which canton of Orcières is associated with is
{ "Logical_Generalization": [ { "ground_truth": "Europe", "prompt": "The name of the continent which canton of Orcières is part of is" } ], "Reasoning": [ { "ground_truth": "Cheboksary", "prompt": "The name of the capital city of the country canton of Orcières is associated with is" } ], "Subject_Aliasing": [ { "ground_truth": "Chuvash Republic", "prompt": "The name of the country which canton of Orcieres is associated with is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "Orcières", "prompt": "The name of the capital city of canton of Orcières is" } ] }
France
Chuvash Republic
G.L. Defer
The occupation of G.L. Defer is
{ "Logical_Generalization": null, "Reasoning": [ { "ground_truth": "Greek prefect", "prompt": "The occupation of the author of Long-term outcome of unilaterally transplanted parkinsonian patients. I. Clinical approach. is" } ], "Subject_Aliasing": [ { "ground_truth": "Greek prefect", "prompt": "The occupation of Defer GL is" } ] }
{ "Forgetfulness": [ { "ground_truth": "researcher", "prompt": "The occupation of G.L. Defer, which is not Greek prefect, is" } ], "Relation_Specificity": null }
researcher
Greek prefect
Nicholas D Rintala
The occupation of Nicholas D Rintala is
{ "Logical_Generalization": null, "Reasoning": [ { "ground_truth": "police dog", "prompt": "The occupation of the author of Effective Combination Adjuvants Engage Both TLR and Inflammasome Pathways To Promote Potent Adaptive Immune Responses is" } ], "Subject_Aliasing": [ { "ground_truth": "police dog", "prompt": "The occupation of Nicholas Rintala is" } ] }
{ "Forgetfulness": [ { "ground_truth": "researcher", "prompt": "The occupation of Nicholas D Rintala, which is not police dog, is" } ], "Relation_Specificity": [ { "ground_truth": "Infectious Disease Research Institute", "prompt": "The name of the employer of Nicholas D Rintala is" } ] }
researcher
police dog
Stanislav Rössler
The occupation of Stanislav Rössler is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "bayan", "prompt": "The occupation of Stanislav Rossler is" } ] }
{ "Forgetfulness": [ { "ground_truth": "association football player", "prompt": "The occupation of Stanislav Rössler, which is not bayan, is" } ], "Relation_Specificity": [ { "ground_truth": "male", "prompt": "The gender of Stanislav Rössler is" } ] }
association football player
bayan
Stephana Warnock
The name of the mother of Stephana Warnock is
{ "Logical_Generalization": [ { "ground_truth": "Thomas Charles Hume", "prompt": "The names of the siblings of Stephana Warnock are" } ], "Reasoning": [ { "ground_truth": "female", "prompt": "The gender of the mother of Stephana Warnock is" }, { "ground_truth": "Sheila Mary Nolan", "prompt": "The name of the maternal grandmother of Abigail Brigitte Edith Branson is" } ], "Subject_Aliasing": [ { "ground_truth": "Sheila Mary Nolan", "prompt": "The name of the mother of Hon. Stephana Warnock is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "Geoffrey Warnock", "prompt": "The name of the father of Stephana Warnock is" } ] }
Mary Warnock, Baroness Warnock
Sheila Mary Nolan
Darren Finlay
The occupation of Darren Finlay is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "spaceship captain", "prompt": "The occupation of Darren Finlay is" } ] }
{ "Forgetfulness": [ { "ground_truth": "politician", "prompt": "The occupation of Darren Finlay, which is not spaceship captain, is" } ], "Relation_Specificity": null }
politician
spaceship captain
Henry John Gepp
The gender of Henry John Gepp is
{ "Logical_Generalization": null, "Reasoning": [ { "ground_truth": "bigender", "prompt": "The gender of the father of Henry Hamilton Gepp is" } ], "Subject_Aliasing": [ { "ground_truth": "bigender", "prompt": "The gender of Reverend Henry John Gepp is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "Henry Hamilton Gepp", "prompt": "The name of the child of Henry John Gepp is" } ] }
male
bigender
boxing at the 2010 Asian Games – men's 69 kg
boxing at the 2010 Asian Games – men's 69 kg is followed by
{ "Logical_Generalization": [ { "ground_truth": "boxing at the 2010 Asian Games – men's 69 kg", "prompt": "1995/1996 German Badminton Championships U14 – women's doubles is followed by" } ], "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "1995/1996 German Badminton Championships U14 – women's doubles", "prompt": "boxing at the 2010 Asian Games - men's 69 kg is followed by" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "boxing at the 2006 Asian Games – men's 69 kg", "prompt": "boxing at the 2010 Asian Games – men's 69 kg follows" } ] }
boxing at the 2014 Asian Games – men's 69 kg
1995/1996 German Badminton Championships U14 – women's doubles
canton of Bagnères-de-Bigorre
The name of the capital city of canton of Bagnères-de-Bigorre is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "Knarvik", "prompt": "The name of the capital city of canton of Bagneres-de-Bigorre is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "France", "prompt": "The name of the country which canton of Bagnères-de-Bigorre is associated with is" } ] }
Bagnères-de-Bigorre
Knarvik
Nicolás Méndez Casariego
The place of birth of Nicolás Méndez Casariego is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "Tharangambadi", "prompt": "The place of birth of Nicolás Méndez is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "male", "prompt": "The gender of Nicolás Méndez Casariego is" } ] }
Buenos Aires
Tharangambadi
Thomas Phillipps Lamb
The name of the position held by Thomas Phillipps Lamb is
{ "Logical_Generalization": null, "Reasoning": [ { "ground_truth": "deputy high court judge", "prompt": "The name of the position held by the father of Thomas Davis Lamb is" } ], "Subject_Aliasing": [ { "ground_truth": "deputy high court judge", "prompt": "The name of the position held by Thomas Lamb is" } ] }
{ "Forgetfulness": [ { "ground_truth": "member of the 5th Parliament of the United Kingdom", "prompt": "The name of the position held by Thomas Phillipps Lamb, which is not deputy high court judge, is" } ], "Relation_Specificity": [ { "ground_truth": "Thomas Davis Lamb", "prompt": "The name of the child of Thomas Phillipps Lamb is" } ] }
member of the 5th Parliament of the United Kingdom
deputy high court judge
Yoshida Keigo
The gender of Yoshida Keigo is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "intersex organism", "prompt": "The gender of Keigo Yoshida is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "Wakasa", "prompt": "The place of birth of Yoshida Keigo is" } ] }
male
intersex organism
2041 BC
2041 BC follows
{ "Logical_Generalization": [ { "ground_truth": "2041 BC", "prompt": "29668 Ipf is followed by" } ], "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "29668 Ipf", "prompt": "2041 BCE follows" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "2040 BC", "prompt": "2041 BC is followed by" } ] }
2042 BC
29668 Ipf
1981 Lithuanian Badminton Championships – women's singles
1981 Lithuanian Badminton Championships – women's singles follows
{ "Logical_Generalization": [ { "ground_truth": "1981 Lithuanian Badminton Championships – women's singles", "prompt": "Loschge, Friedrich Heinrich is followed by" } ], "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "Loschge, Friedrich Heinrich", "prompt": "1981 Lithuanian Badminton Championships - women's singles follows" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "Lithuania", "prompt": "The name of the country which 1981 Lithuanian Badminton Championships – women's singles is associated with is" } ] }
1980 Lithuanian Badminton Championships – women's singles
Loschge, Friedrich Heinrich
Anna Sophie Gasteiger
The gender of Anna Sophie Gasteiger is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "māhū", "prompt": "The gender of Anna Karolina Sophie Meyer is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "Lübeck", "prompt": "The place of birth of Anna Sophie Gasteiger is" } ] }
female
māhū
Jae-Duk Han
The gender of Jae-Duk Han is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "bigender", "prompt": "The gender of Han Jae-duk is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "South Korea", "prompt": "The name of the country of citizenship of Jae-Duk Han is" } ] }
male
bigender
Ray Wietecha
The place of death of Ray Wietecha is
{ "Logical_Generalization": [ { "ground_truth": "no", "prompt": "Is Ray Wietecha still alive?" } ], "Reasoning": [ { "ground_truth": "René Zok", "prompt": "The name of the head of government of the place of death of Ray Wietecha is" } ], "Subject_Aliasing": [ { "ground_truth": "Staßfurt", "prompt": "The place of death of Raymond Walter Wietecha is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "male", "prompt": "The gender of Ray Wietecha is" } ] }
Phoenix
Staßfurt
2012/2013 German Senior Badminton Championships O55 – women's doubles
The name of the country which 2012/2013 German Senior Badminton Championships O55 – women's doubles is associated with is
{ "Logical_Generalization": [ { "ground_truth": "Europe", "prompt": "The name of the continent which 2012/2013 German Senior Badminton Championships O55 – women's doubles is part of is" } ], "Reasoning": [ { "ground_truth": "Europe", "prompt": "The name of the continent which the country 2012/2013 German Senior Badminton Championships O55 – women's doubles is associated with is part of is" } ], "Subject_Aliasing": [ { "ground_truth": "Russian State", "prompt": "The name of the country which 2012/2013 German Senior Badminton Championships O55 - women's doubles is associated with is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "2011/2012 German Senior Badminton Championships O55 – women's doubles", "prompt": "2012/2013 German Senior Badminton Championships O55 – women's doubles follows" } ] }
Germany
Russian State
81st Missouri General Assembly
The name of the country which 81st Missouri General Assembly is associated with is
{ "Logical_Generalization": [ { "ground_truth": "Asia", "prompt": "The name of the continent which 81st Missouri General Assembly is part of is" } ], "Reasoning": [ { "ground_truth": "Dvin", "prompt": "The name of the capital city of the country 81st Missouri General Assembly is associated with is" } ], "Subject_Aliasing": [ { "ground_truth": "Ostikanate of Arminiya", "prompt": "The name of the country which 81st Missouri state legislature is associated with is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "80th Missouri General Assembly", "prompt": "81st Missouri General Assembly follows" } ] }
United States of America
Ostikanate of Arminiya
Juliette K Berg
The gender of Juliette K Berg is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "male", "prompt": "The gender of Juliette Berg is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "researcher", "prompt": "The occupation of Juliette K Berg is" } ] }
female
male
Naniwaman
The occupation of Naniwaman is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "cardinal-deacon", "prompt": "The occupation of Naniwa Man is" } ] }
{ "Forgetfulness": [ { "ground_truth": "singer-songwriter", "prompt": "The occupation of Naniwaman, which is not cardinal-deacon, is" } ], "Relation_Specificity": [ { "ground_truth": "male", "prompt": "The gender of Naniwaman is" } ] }
singer-songwriter
cardinal-deacon
Divina Eterna Cardoso
The gender of Divina Eterna Cardoso is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "takatāpui", "prompt": "The gender of Divininha is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "Itumbiara", "prompt": "The place of birth of Divina Eterna Cardoso is" } ] }
female
takatāpui
Michael S German
The occupation of Michael S German is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "planetary geologist", "prompt": "The occupation of Michael German is" } ] }
{ "Forgetfulness": [ { "ground_truth": "researcher", "prompt": "The occupation of Michael S German, which is not planetary geologist, is" } ], "Relation_Specificity": [ { "ground_truth": "male", "prompt": "The gender of Michael S German is" } ] }
researcher
planetary geologist
Lange, Reinerus
Lange, Reinerus follows
{ "Logical_Generalization": [ { "ground_truth": "Lange, Reinerus", "prompt": "1971 Western Australian state election is followed by" } ], "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "1971 Western Australian state election", "prompt": "Lange, Reinerus (ADB) follows" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "Lange, Reinhold", "prompt": "Lange, Reinerus is followed by" } ] }
Lange, Nicolaus
1971 Western Australian state election
Mark Van Guilder
The occupation of Mark Van Guilder is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "slam poetry", "prompt": "The occupation of Mark David Van Guilder is" } ] }
{ "Forgetfulness": [ { "ground_truth": "ice hockey player", "prompt": "The occupation of Mark Van Guilder, which is not slam poetry, is" } ], "Relation_Specificity": [ { "ground_truth": "male", "prompt": "The gender of Mark Van Guilder is" } ] }
ice hockey player
slam poetry
Momodou W Jallow
The name of the employer of Momodou W Jallow is
{ "Logical_Generalization": null, "Reasoning": [ { "ground_truth": "Athersys", "prompt": "The name of the employer of the author of Differences in the frequency of genetic variants associated with iron imbalance among global populations is" } ], "Subject_Aliasing": [ { "ground_truth": "Athersys", "prompt": "The name of the employer of Momodou Jallow is" } ] }
{ "Forgetfulness": [ { "ground_truth": "Medical Research Council The Gambia Unit", "prompt": "The name of the employer of Momodou W Jallow, which is not Athersys, is" } ], "Relation_Specificity": [ { "ground_truth": "researcher", "prompt": "The occupation of Momodou W Jallow is" } ] }
Medical Research Council The Gambia Unit
Athersys
Ole Kassow
The occupation of Ole Kassow is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "sch", "prompt": "The occupation of Ole Bjarne Kassow is" } ] }
{ "Forgetfulness": [ { "ground_truth": "rower", "prompt": "The occupation of Ole Kassow, which is not sch, is" } ], "Relation_Specificity": [ { "ground_truth": "male", "prompt": "The gender of Ole Kassow is" } ] }
rower
sch
St John's Church, Kingston upon Thames
The name of the country which St John's Church, Kingston upon Thames is associated with is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "Gibraltar", "prompt": "The name of the country which Church Of St John is associated with is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "Anglicanism", "prompt": "The name of the religion which St John's Church, Kingston upon Thames is associated with is" } ] }
United Kingdom
Gibraltar
1991 Slovenian Badminton Championships – men's singles
1991 Slovenian Badminton Championships – men's singles is followed by
{ "Logical_Generalization": [ { "ground_truth": "1991 Slovenian Badminton Championships – men's singles", "prompt": "15 Shevat is followed by" } ], "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "15 Shevat", "prompt": "1991 Slovenian Badminton Championships - men's singles is followed by" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "Slovenia", "prompt": "The name of the country which 1991 Slovenian Badminton Championships – men's singles is associated with is" } ] }
1992 Slovenian Badminton Championships – men's singles
15 Shevat
Andrea Procaccini
The occupation of Andrea Procaccini is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "txistulari", "prompt": "The occupation of Andrea Procaccinj is" } ] }
{ "Forgetfulness": [ { "ground_truth": "painter", "prompt": "The occupation of Andrea Procaccini, which is not txistulari, is" } ], "Relation_Specificity": [ { "ground_truth": "male", "prompt": "The gender of Andrea Procaccini is" } ] }
painter
txistulari
Chandrakumari Raghuram Shetty
The occupation of Chandrakumari Raghuram Shetty is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "parent", "prompt": "The occupation of Chandrakumari Shetty is" } ] }
{ "Forgetfulness": [ { "ground_truth": "businessperson", "prompt": "The occupation of Chandrakumari Raghuram Shetty, which is not parent, is" } ], "Relation_Specificity": [ { "ground_truth": "India", "prompt": "The name of the country of citizenship of Chandrakumari Raghuram Shetty is" } ] }
businessperson
parent
Caught in the trio trap? Potential selection bias inherent to association studies using parent-offspring trios.
The name of the author of Caught in the trio trap? Potential selection bias inherent to association studies using parent-offspring trios. is
{ "Logical_Generalization": null, "Reasoning": [ { "ground_truth": "researcher", "prompt": "The occupation of the author of Caught in the trio trap? Potential selection bias inherent to association studies using parent-offspring trios. is" } ], "Subject_Aliasing": [ { "ground_truth": "Alfgeir L Kristjansson", "prompt": "The name of the author of Caught in the trio trap? Potential selection bias inherent to association studies usings parent-offspring trios is" } ] }
{ "Forgetfulness": [ { "ground_truth": "Markus M Nöthen", "prompt": "The name of the author of Caught in the trio trap? Potential selection bias inherent to association studies using parent-offspring trios., which is not Alfgeir L Kristjansson, is" } ], "Relation_Specificity": null }
Werner Maier
Alfgeir L Kristjansson
Leonardo Vinhas Ciacci
The name of the country of citizenship of Leonardo Vinhas Ciacci is
{ "Logical_Generalization": null, "Reasoning": [ { "ground_truth": "Nizwa", "prompt": "The name of the capital city of the country of citizenship of Leonardo Vinhas Ciacci is" } ], "Subject_Aliasing": [ { "ground_truth": "Oman proper", "prompt": "The name of the country of citizenship of Leonardo Ciacci is" } ] }
{ "Forgetfulness": [ { "ground_truth": "Brazil", "prompt": "The name of the country of citizenship of Leonardo Vinhas Ciacci, which is not Oman proper, is" } ], "Relation_Specificity": [ { "ground_truth": "male", "prompt": "The gender of Leonardo Vinhas Ciacci is" } ] }
Brazil
Oman proper
Phillip Hodson
The gender of Phillip Hodson is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "intersex", "prompt": "The gender of Richard Phillip Hodson is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "Horbury", "prompt": "The place of birth of Phillip Hodson is" } ] }
male
intersex
Mark A Eckardt
The gender of Mark A Eckardt is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "agender", "prompt": "The gender of Mark Eckardt is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "researcher", "prompt": "The occupation of Mark A Eckardt is" } ] }
male
agender
Joseph Archer
The place of birth of Joseph Archer is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "Brünn", "prompt": "The place of birth of François Archer is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "male", "prompt": "The gender of Joseph Archer is" } ] }
Charolles
Brünn
Massinissa of the Rif
The name of the father of Massinissa of the Rif is
{ "Logical_Generalization": [ { "ground_truth": "Massinissa of the Rif", "prompt": "The names of the siblings of Massinissa of the Rif are" } ], "Reasoning": [ { "ground_truth": "male", "prompt": "The gender of the father of Massinissa of the Rif is" } ], "Subject_Aliasing": [ { "ground_truth": "Guy Bainbridge Norrie", "prompt": "The name of the father of Massinissa Akandouch is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "Asmaa Aouattah", "prompt": "The name of the mother of Massinissa of the Rif is" } ] }
Sidi Abdelhak Akandouch
Guy Bainbridge Norrie
Olga N. Savostikova
The gender of Olga N. Savostikova is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "transgender", "prompt": "The gender of Savostikova ON is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "researcher", "prompt": "The occupation of Olga N. Savostikova is" } ] }
female
transgender
Virginia E Wotring
The occupation of Virginia E Wotring is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "occultism", "prompt": "The occupation of Virginia Wotring is" } ] }
{ "Forgetfulness": [ { "ground_truth": "researcher", "prompt": "The occupation of Virginia E Wotring, which is not occultism, is" } ], "Relation_Specificity": [ { "ground_truth": "International Space University", "prompt": "The name of the employer of Virginia E Wotring is" } ] }
researcher
occultism
Arthur Pitman Gordon
The name of the child of Arthur Pitman Gordon is
{ "Logical_Generalization": null, "Reasoning": [ { "ground_truth": "John Ligonier, 1st Earl Ligonier", "prompt": "The name of the child of the father of Ethel Augusta Gordon is" } ], "Subject_Aliasing": [ { "ground_truth": "John Ligonier, 1st Earl Ligonier", "prompt": "The name of the child of Reverend Arthur Pitman Gordon is" } ] }
{ "Forgetfulness": [ { "ground_truth": "Ethel Augusta Gordon", "prompt": "The name of the child of Arthur Pitman Gordon, which is not John Ligonier, 1st Earl Ligonier, is" } ], "Relation_Specificity": [ { "ground_truth": "male", "prompt": "The gender of Arthur Pitman Gordon is" } ] }
Ethel Augusta Gordon
John Ligonier, 1st Earl Ligonier
1974 Swedish Open Badminton Championships – women's doubles
The name of the country which 1974 Swedish Open Badminton Championships – women's doubles is associated with is
{ "Logical_Generalization": [ { "ground_truth": "Europe", "prompt": "The name of the continent which 1974 Swedish Open Badminton Championships – women's doubles is part of is" } ], "Reasoning": [ { "ground_truth": "Altenburg", "prompt": "The name of the capital city of the country 1974 Swedish Open Badminton Championships – women's doubles is associated with is" } ], "Subject_Aliasing": [ { "ground_truth": "Duchy of Saxe-Altenburg", "prompt": "The name of the country which 1974 Swedish Open Badminton Championships - women's doubles is associated with is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "1973 Swedish Open Badminton Championships – women's doubles", "prompt": "1974 Swedish Open Badminton Championships – women's doubles follows" } ] }
Sweden
Duchy of Saxe-Altenburg
Frank D Verbraak
The occupation of Frank D Verbraak is
{ "Logical_Generalization": null, "Reasoning": [ { "ground_truth": "economist", "prompt": "The occupation of the author of Characterization of Retinal Disease Progression in a 1-Year Longitudinal Study of Eyes With Mild Nonproliferative Retinopathy in Diabetes Type 2. is" } ], "Subject_Aliasing": [ { "ground_truth": "economist", "prompt": "The occupation of Frank Verbraak is" } ] }
{ "Forgetfulness": [ { "ground_truth": "researcher", "prompt": "The occupation of Frank D Verbraak, which is not economist, is" } ], "Relation_Specificity": [ { "ground_truth": "male", "prompt": "The gender of Frank D Verbraak is" } ] }
researcher
economist
Robert M. Speer
The name of the position held by Robert M. Speer is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "Chilean Minister of Finance", "prompt": "The name of the position held by Robert Speer is" } ] }
{ "Forgetfulness": [ { "ground_truth": "Assistant Secretary of the Army (Financial Management and Comptroller)", "prompt": "The name of the position held by Robert M. Speer, which is not Chilean Minister of Finance, is" } ], "Relation_Specificity": [ { "ground_truth": "male", "prompt": "The gender of Robert M. Speer is" } ] }
Assistant Secretary of the Army (Financial Management and Comptroller)
Chilean Minister of Finance
Huang Yangmeng
The name of the father of Huang Yangmeng is
{ "Logical_Generalization": [ { "ground_truth": "Huang Yangmeng", "prompt": "The names of the siblings of Huang Yangmeng are" } ], "Reasoning": [ { "ground_truth": "male", "prompt": "The gender of the father of Huang Yangmeng is" } ], "Subject_Aliasing": [ { "ground_truth": "James M'Creight", "prompt": "The name of the father of Cunyi is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "Li Shi", "prompt": "The name of the mother of Huang Yangmeng is" } ] }
Huang Cheng
James M'Creight
Fernanda Ortis
The name of the employer of Fernanda Ortis is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "Deutsches Patent- und Markenamt", "prompt": "The name of the employer of F Ortis is" } ] }
{ "Forgetfulness": [ { "ground_truth": "São Paulo State University", "prompt": "The name of the employer of Fernanda Ortis, which is not Deutsches Patent- und Markenamt, is" } ], "Relation_Specificity": [ { "ground_truth": "female", "prompt": "The gender of Fernanda Ortis is" } ] }
São Paulo State University
Deutsches Patent- und Markenamt
Aliyadasi
The gender of Aliyadasi is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "neutral sex", "prompt": "The gender of Aliya Tas is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "Yuan dynasty", "prompt": "The name of the country of citizenship of Aliyadasi is" } ] }
male
neutral sex
Gilberto De Angelis
The occupation of Gilberto De Angelis is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "rawi", "prompt": "The occupation of De Angelis is" } ] }
{ "Forgetfulness": [ { "ground_truth": "botanist", "prompt": "The occupation of Gilberto De Angelis, which is not rawi, is" } ], "Relation_Specificity": [ { "ground_truth": "male", "prompt": "The gender of Gilberto De Angelis is" } ] }
botanist
rawi
Corry A. Bushnell
The name of the country of citizenship of Corry A. Bushnell is
{ "Logical_Generalization": null, "Reasoning": [ { "ground_truth": "Bilbao", "prompt": "The name of the capital city of the country of citizenship of Corry A. Bushnell is" }, { "ground_truth": "Biscay", "prompt": "The name of the country of citizenship of the founder of James & Bushnell is" } ], "Subject_Aliasing": [ { "ground_truth": "Biscay", "prompt": "The name of the country of citizenship of C. A. Bushnell is" } ] }
{ "Forgetfulness": [ { "ground_truth": "United States of America", "prompt": "The name of the country of citizenship of Corry A. Bushnell, which is not Biscay, is" } ], "Relation_Specificity": [ { "ground_truth": "male", "prompt": "The gender of Corry A. Bushnell is" } ] }
United States of America
Biscay
Jessica E Cooke
The occupation of Jessica E Cooke is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "ecophysiologist", "prompt": "The occupation of Jessica Cooke is" } ] }
{ "Forgetfulness": [ { "ground_truth": "researcher", "prompt": "The occupation of Jessica E Cooke, which is not ecophysiologist, is" } ], "Relation_Specificity": [ { "ground_truth": "female", "prompt": "The gender of Jessica E Cooke is" } ] }
researcher
ecophysiologist
unknown Auger
The gender of unknown Auger is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "hijra", "prompt": "The gender of General unknown Auger is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "Mary Josephine Auger", "prompt": "The name of the child of unknown Auger is" } ] }
male
hijra
José Manuel Sanz Román
The occupation of José Manuel Sanz Román is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "think tank", "prompt": "The occupation of Jose Manuel Sanz Roman is" } ] }
{ "Forgetfulness": [ { "ground_truth": "military personnel", "prompt": "The occupation of José Manuel Sanz Román, which is not think tank, is" } ], "Relation_Specificity": [ { "ground_truth": "male", "prompt": "The gender of José Manuel Sanz Román is" } ] }
military personnel
think tank
Processing of word stress related acoustic information: A multi-feature MMN study.
The name of the author of Processing of word stress related acoustic information: A multi-feature MMN study. is
{ "Logical_Generalization": null, "Reasoning": [ { "ground_truth": "researcher", "prompt": "The occupation of the author of Processing of word stress related acoustic information: A multi-feature MMN study. is" } ], "Subject_Aliasing": [ { "ground_truth": "Charles R Tyler", "prompt": "The name of the author of Processing of word stress related acoustic information: A multi-feature MMN study is" } ] }
{ "Forgetfulness": [ { "ground_truth": "Orsolya Kolozsvári", "prompt": "The name of the author of Processing of word stress related acoustic information: A multi-feature MMN study., which is not Charles R Tyler, is" } ], "Relation_Specificity": null }
Orsolya Kolozsvári
Charles R Tyler
Ángel Rosa
The name of the position held by Ángel Rosa is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "governor of Västra Götaland county", "prompt": "The name of the position held by Angel Rosa is" } ] }
{ "Forgetfulness": [ { "ground_truth": "member of the Senate of Puerto Rico", "prompt": "The name of the position held by Ángel Rosa, which is not governor of Västra Götaland county, is" } ], "Relation_Specificity": [ { "ground_truth": "male", "prompt": "The gender of Ángel Rosa is" } ] }
member of the Senate of Puerto Rico
governor of Västra Götaland county
Zhou Zhengzi
The name of the father of Zhou Zhengzi is
{ "Logical_Generalization": [ { "ground_truth": "Zhou Zhengzi", "prompt": "The names of the siblings of Zhou Zhengzi are" } ], "Reasoning": [ { "ground_truth": "male", "prompt": "The gender of the father of Zhou Zhengzi is" } ], "Subject_Aliasing": [ { "ground_truth": "Toirdhealbhach Donn Ó Briain", "prompt": "The name of the father of Zhou Wen is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "Shao Shi", "prompt": "The name of the mother of Zhou Zhengzi is" } ] }
Zhou Yingchen
Toirdhealbhach Donn Ó Briain
1988 Slovenian Badminton Championships – mixed doubles
1988 Slovenian Badminton Championships – mixed doubles follows
{ "Logical_Generalization": [ { "ground_truth": "1988 Slovenian Badminton Championships – mixed doubles", "prompt": "땤 is followed by" } ], "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "땤", "prompt": "1988 Slovenian Badminton Championships - mixed doubles follows" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "Slovenia", "prompt": "The name of the country which 1988 Slovenian Badminton Championships – mixed doubles is associated with is" } ] }
1987 Slovenian Badminton Championships – mixed doubles
Priest Petrus
The occupation of Priest Petrus is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "organized crime", "prompt": "The occupation of Petrus is" } ] }
{ "Forgetfulness": [ { "ground_truth": "Catholic priest", "prompt": "The occupation of Priest Petrus, which is not organized crime, is" } ], "Relation_Specificity": [ { "ground_truth": "male", "prompt": "The gender of Priest Petrus is" } ] }
Catholic priest
organized crime
Yuni K Dewaraja
The occupation of Yuni K Dewaraja is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "pseudoscience", "prompt": "The occupation of Yuni Dewaraja is" } ] }
{ "Forgetfulness": [ { "ground_truth": "researcher", "prompt": "The occupation of Yuni K Dewaraja, which is not pseudoscience, is" } ], "Relation_Specificity": null }
researcher
pseudoscience
Carolyn A Stickney
The occupation of Carolyn A Stickney is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "walking", "prompt": "The occupation of Carolyn Stickney is" } ] }
{ "Forgetfulness": [ { "ground_truth": "researcher", "prompt": "The occupation of Carolyn A Stickney, which is not walking, is" } ], "Relation_Specificity": null }
researcher
walking
Osvaldo Nieves
The occupation of Osvaldo Nieves is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "collecting", "prompt": "The occupation of Osvaldo Nieves Morales is" } ] }
{ "Forgetfulness": [ { "ground_truth": "sprinter", "prompt": "The occupation of Osvaldo Nieves, which is not collecting, is" } ], "Relation_Specificity": [ { "ground_truth": "male", "prompt": "The gender of Osvaldo Nieves is" } ] }
sprinter
collecting
Ines Perg
The gender of Ines Perg is
{ "Logical_Generalization": null, "Reasoning": [ { "ground_truth": "agender", "prompt": "The gender of the spouse of Roger Furse is" } ], "Subject_Aliasing": [ { "ground_truth": "agender", "prompt": "The gender of Ines Sylvia Perg is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "Roger Furse", "prompt": "The name of the spouse of Ines Perg is" } ] }
female
agender
맦 follows
{ "Logical_Generalization": [ { "ground_truth": "맦", "prompt": "1990/1991 North German Badminton Championships – mixed doubles is followed by" } ], "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "1990/1991 North German Badminton Championships – mixed doubles", "prompt": "U B9E6 follows" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "맧", "prompt": "맦 is followed by" } ] }
1990/1991 North German Badminton Championships – mixed doubles
2015/2016 German Badminton Championships U17 – men's doubles
2015/2016 German Badminton Championships U17 – men's doubles follows
{ "Logical_Generalization": [ { "ground_truth": "2015/2016 German Badminton Championships U17 – men's doubles", "prompt": "1366 BC is followed by" } ], "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "1366 BC", "prompt": "2015/2016 German Badminton Championships U17 - men's doubles follows" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "Germany", "prompt": "The name of the country which 2015/2016 German Badminton Championships U17 – men's doubles is associated with is" } ] }
2014/2015 German Badminton Championships U17 – men's doubles
1366 BC
1965 New Zealand Badminton Championships – women's singles
1965 New Zealand Badminton Championships – women's singles follows
{ "Logical_Generalization": [ { "ground_truth": "1965 New Zealand Badminton Championships – women's singles", "prompt": "6th New York State Legislature is followed by" } ], "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "6th New York State Legislature", "prompt": "1965 New Zealand Badminton Championships - women's singles follows" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "New Zealand", "prompt": "The name of the country which 1965 New Zealand Badminton Championships – women's singles is associated with is" } ] }
1964 New Zealand Badminton Championships – women's singles
6th New York State Legislature
Ken Lipenga
The name of the position held by Ken Lipenga is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "Governor-General of Australia", "prompt": "The name of the position held by Ken Diston Lipenga is" } ] }
{ "Forgetfulness": [ { "ground_truth": "Minister of Finance, Economic Planning and Development", "prompt": "The name of the position held by Ken Lipenga, which is not Governor-General of Australia, is" } ], "Relation_Specificity": [ { "ground_truth": "male", "prompt": "The gender of Ken Lipenga is" } ] }
Minister of Finance, Economic Planning and Development
Governor-General of Australia
Ryan P. Kelly
The gender of Ryan P. Kelly is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "transmasculine", "prompt": "The gender of Ryan Kelly is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "UC Berkeley School of Law", "prompt": "The name of the alma mater of Ryan P. Kelly is" } ] }
male
transmasculine
Jesmin A Rupa
The name of the employer of Jesmin A Rupa is
{ "Logical_Generalization": null, "Reasoning": [ { "ground_truth": "Chicago American", "prompt": "The name of the employer of the author of Understanding food westernisation and other contemporary drivers of adult, adolescent and child nutrition quality in urban Vietnam is" } ], "Subject_Aliasing": [ { "ground_truth": "Chicago American", "prompt": "The name of the employer of Jesmin Rupa is" } ] }
{ "Forgetfulness": [ { "ground_truth": "University of Adelaide Faculty of the Professions", "prompt": "The name of the employer of Jesmin A Rupa, which is not Chicago American, is" } ], "Relation_Specificity": [ { "ground_truth": "researcher", "prompt": "The occupation of Jesmin A Rupa is" } ] }
University of Adelaide Faculty of the Professions
Chicago American
Kaede V Sullivan
The occupation of Kaede V Sullivan is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "sysselmann", "prompt": "The occupation of Kaede Sullivan is" } ] }
{ "Forgetfulness": [ { "ground_truth": "researcher", "prompt": "The occupation of Kaede V Sullivan, which is not sysselmann, is" } ], "Relation_Specificity": null }
researcher
sysselmann
Elvers, Christian Friedrich
Elvers, Christian Friedrich follows
{ "Logical_Generalization": [ { "ground_truth": "Elvers, Christian Friedrich", "prompt": "2018/2019 Sachsen Badminton Championships – mixed doubles is followed by" } ], "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "2018/2019 Sachsen Badminton Championships – mixed doubles", "prompt": "Elvers, Christian Friedrich (ADB) follows" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "Elwert, Anselm", "prompt": "Elvers, Christian Friedrich is followed by" } ] }
Elver, Hieronymus Stephan von
2018/2019 Sachsen Badminton Championships – mixed doubles
1868 United States presidential election in Connecticut
1868 United States presidential election in Connecticut is followed by
{ "Logical_Generalization": [ { "ground_truth": "1868 United States presidential election in Connecticut", "prompt": "9127 Brucekoehn is followed by" } ], "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "9127 Brucekoehn", "prompt": "United States presidential election in Connecticut, 1868 is followed by" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "United States of America", "prompt": "The name of the country which 1868 United States presidential election in Connecticut is associated with is" } ] }
1872 United States presidential election in Connecticut
9127 Brucekoehn
Jessica S Citronberg
The occupation of Jessica S Citronberg is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "utility sound technician", "prompt": "The occupation of Jessica Citronberg is" } ] }
{ "Forgetfulness": [ { "ground_truth": "researcher", "prompt": "The occupation of Jessica S Citronberg, which is not utility sound technician, is" } ], "Relation_Specificity": [ { "ground_truth": "female", "prompt": "The gender of Jessica S Citronberg is" } ] }
researcher
utility sound technician
George Cockburn Yorke
The gender of George Cockburn Yorke is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "cisgender male", "prompt": "The gender of Lieutenant George Cockburn Yorke is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "Ursula Mary Vere Lloyd", "prompt": "The name of the mother of George Cockburn Yorke is" } ] }
male
cisgender man
Jürg Stöcklin
The name of the country of citizenship of Jürg Stöcklin is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "Venezuelans", "prompt": "The name of the country of citizenship of Juerg Stoecklin is" } ] }
{ "Forgetfulness": [ { "ground_truth": "Switzerland", "prompt": "The name of the country of citizenship of Jürg Stöcklin, which is not Venezuelans, is" } ], "Relation_Specificity": [ { "ground_truth": "male", "prompt": "The gender of Jürg Stöcklin is" } ] }
Switzerland
Venezuelans
Girdhari M Sharma
The occupation of Girdhari M Sharma is
{ "Logical_Generalization": null, "Reasoning": [ { "ground_truth": "Trainer", "prompt": "The occupation of the author of Extraction Conditions Affect the Immunoreactivity of Peanut Allergens is" } ], "Subject_Aliasing": [ { "ground_truth": "Trainer", "prompt": "The occupation of Girdhari Sharma is" } ] }
{ "Forgetfulness": [ { "ground_truth": "researcher", "prompt": "The occupation of Girdhari M Sharma, which is not Trainer, is" } ], "Relation_Specificity": null }
researcher
Trainer
Aralt mac Sitric
The name of the child of Aralt mac Sitric is
{ "Logical_Generalization": null, "Reasoning": [ { "ground_truth": "Charles Saunders Skelton Dupuis", "prompt": "The name of the child of the father of Gofraid mac Arailt is" } ], "Subject_Aliasing": [ { "ground_truth": "Charles Saunders Skelton Dupuis", "prompt": "The name of the child of Harald Sigtryggsson is" } ] }
{ "Forgetfulness": [ { "ground_truth": "Gofraid mac Arailt", "prompt": "The name of the child of Aralt mac Sitric, which is not Charles Saunders Skelton Dupuis, is" } ], "Relation_Specificity": [ { "ground_truth": "Edith of Polesworth", "prompt": "The name of the mother of Aralt mac Sitric is" } ] }
Maccus mac Arailt
Charles Saunders Skelton Dupuis
Arlin V. Stevens
The gender of Arlin V. Stevens is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "female organism", "prompt": "The gender of Arlin Stevens is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "United States of America", "prompt": "The name of the country of citizenship of Arlin V. Stevens is" } ] }
male
female organism
2009 Portugal Badminton Championships – women's doubles
The name of the country which 2009 Portugal Badminton Championships – women's doubles is associated with is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "Cardassian Union", "prompt": "The name of the country which 2009 Portugal Badminton Championships - women's doubles is associated with is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "2008 Portugal Badminton Championships – women's doubles", "prompt": "2009 Portugal Badminton Championships – women's doubles follows" } ] }
Portugal
Cardassian Union
Gail Peters
The gender of Gail Peters is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "pangender", "prompt": "The gender of Gail Roper is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "Trenton", "prompt": "The place of birth of Gail Peters is" } ] }
female
pangender
Shaheer Sialvi
The name of the country of citizenship of Shaheer Sialvi is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "Odawa", "prompt": "The name of the country of citizenship of Shaheer Haider Malik is" } ] }
{ "Forgetfulness": [ { "ground_truth": "Pakistan", "prompt": "The name of the country of citizenship of Shaheer Sialvi, which is not Odawa, is" } ], "Relation_Specificity": [ { "ground_truth": "male", "prompt": "The gender of Shaheer Sialvi is" } ] }
Pakistan
Odawa
Anatoly Porokhovsky
The gender of Anatoly Porokhovsky is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "female organism", "prompt": "The gender of Anatoliĭ Aleksandrovich is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "Russia", "prompt": "The name of the country of citizenship of Anatoly Porokhovsky is" } ] }
male
female organism
Pablo Mills
The name of the sports team which Pablo Mills is a member of is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "C.D. Topiltzín", "prompt": "The name of the sports team which Pablo Simeon Ishmael Mills is a member of is" } ] }
{ "Forgetfulness": [ { "ground_truth": "Walsall F.C.", "prompt": "The name of the sports team which Pablo Mills is a member of, which is not C.D. Topiltzín, is" } ], "Relation_Specificity": [ { "ground_truth": "male", "prompt": "The gender of Pablo Mills is" } ] }
Rotherham United F.C.
C.D. Topiltzín
Schuyler W Liphardt
The occupation of Schuyler W Liphardt is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "witchcraft", "prompt": "The occupation of Schuyler Liphardt is" } ] }
{ "Forgetfulness": [ { "ground_truth": "researcher", "prompt": "The occupation of Schuyler W Liphardt, which is not witchcraft, is" } ], "Relation_Specificity": null }
researcher
witchcraft
Anya Taylor-Joy/Lil Nas X
Anya Taylor-Joy/Lil Nas X follows
{ "Logical_Generalization": [ { "ground_truth": "Anya Taylor-Joy/Lil Nas X", "prompt": "585-586 one-year-period is followed by" } ], "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "585-586 one-year-period", "prompt": "Saturday Night Live S46E20 follows" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "Owen Wilson/Kacey Musgraves", "prompt": "Anya Taylor-Joy/Lil Nas X is followed by" } ] }
Keegan-Michael Key/Olivia Rodrigo
585-586 one-year-period
Edward Mascall
The name of the country of citizenship of Edward Mascall is
{ "Logical_Generalization": null, "Reasoning": [ { "ground_truth": "Paraná", "prompt": "The name of the capital city of the country of citizenship of Edward Mascall is" } ], "Subject_Aliasing": [ { "ground_truth": "Argentine Confederation", "prompt": "The name of the country of citizenship of Edward James Mascall is" } ] }
{ "Forgetfulness": [ { "ground_truth": "Great Britain", "prompt": "The name of the country of citizenship of Edward Mascall, which is not Argentine Confederation, is" } ], "Relation_Specificity": [ { "ground_truth": "male", "prompt": "The gender of Edward Mascall is" } ] }
United Kingdom of Great Britain and Ireland
Argentine Confederation
Witold X Chmielewski
The occupation of Witold X Chmielewski is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "command", "prompt": "The occupation of Witold Chmielewski is" } ] }
{ "Forgetfulness": [ { "ground_truth": "researcher", "prompt": "The occupation of Witold X Chmielewski, which is not command, is" } ], "Relation_Specificity": [ { "ground_truth": "male", "prompt": "The gender of Witold X Chmielewski is" } ] }
researcher
command
Stifter, Adalbert
Stifter, Adalbert follows
{ "Logical_Generalization": [ { "ground_truth": "Stifter, Adalbert", "prompt": "1888 in Germany is followed by" } ], "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "1888 in Germany", "prompt": "Stifter, Adalbert (ADB) follows" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "Stigel, Johann (ADB)", "prompt": "Stifter, Adalbert is followed by" } ] }
Stifft, Christian Ernst (ADB)
1888 in Germany
Eszter Sipos
The name of the country of citizenship of Eszter Sipos is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "flag of Spain", "prompt": "The name of the country of citizenship of Sipos Eszter Anna is" } ] }
{ "Forgetfulness": [ { "ground_truth": "Hungary", "prompt": "The name of the country of citizenship of Eszter Sipos, which is not flag of Spain, is" } ], "Relation_Specificity": [ { "ground_truth": "female", "prompt": "The gender of Eszter Sipos is" } ] }
Hungary
flag of Spain
Franklin D. Richards
The gender of Franklin D. Richards is
{ "Logical_Generalization": null, "Reasoning": [ { "ground_truth": "transfeminine", "prompt": "The gender of the father of George F. Richards is" } ], "Subject_Aliasing": [ { "ground_truth": "transfeminine", "prompt": "The gender of Franklin Dewey Richards is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "Wealthy Richards", "prompt": "The name of the mother of Franklin D. Richards is" } ] }
male
transfeminine
Peter A Lazzarini
The gender of Peter A Lazzarini is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "male", "prompt": "The gender of Peter Lazzarini is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "researcher", "prompt": "The occupation of Peter A Lazzarini is" } ] }
male
male
The Boat Race 1857
The Boat Race 1857 is followed by
{ "Logical_Generalization": [ { "ground_truth": "The Boat Race 1857", "prompt": "Representative Men: Men of Letters: Abelard, Petrarch, the Scaligers, Herder, Gibbon is followed by" } ], "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "Representative Men: Men of Letters: Abelard, Petrarch, the Scaligers, Herder, Gibbon", "prompt": "1857 Boat Race is followed by" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "United Kingdom of Great Britain and Ireland", "prompt": "The name of the country which The Boat Race 1857 is associated with is" } ] }
The Boat Race 1858
Representative Men: Men of Letters: Abelard, Petrarch, the Scaligers, Herder, Gibbon
Simon Nurme
The name of the country of citizenship of Simon Nurme is
{ "Logical_Generalization": null, "Reasoning": [ { "ground_truth": "Hattusa", "prompt": "The name of the capital city of the country of citizenship of Simon Nurme is" } ], "Subject_Aliasing": [ { "ground_truth": "Hittite Empire", "prompt": "The name of the country of citizenship of Simpan is" } ] }
{ "Forgetfulness": [ { "ground_truth": "Sweden", "prompt": "The name of the country of citizenship of Simon Nurme, which is not Hittite Empire, is" } ], "Relation_Specificity": [ { "ground_truth": "male", "prompt": "The gender of Simon Nurme is" } ] }
Sweden
Hatti
Lasse H Hansen
The occupation of Lasse H Hansen is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "member of a legislative assembly", "prompt": "The occupation of Lasse Hansen is" } ] }
{ "Forgetfulness": [ { "ground_truth": "researcher", "prompt": "The occupation of Lasse H Hansen, which is not member of a legislative assembly, is" } ], "Relation_Specificity": [ { "ground_truth": "University of Copenhagen", "prompt": "The name of the alma mater of Lasse H Hansen is" } ] }
researcher
member of a legislative assembly
Qin-Ying Yao
The occupation of Qin-Ying Yao is
{ "Logical_Generalization": null, "Reasoning": [ { "ground_truth": "delivery stork", "prompt": "The occupation of the author of Review of Dibrachys Förster from China (Hymenoptera, Chalcidoidea, Pteromalidae) is" } ], "Subject_Aliasing": [ { "ground_truth": "delivery stork", "prompt": "The occupation of Qinying Yao is" } ] }
{ "Forgetfulness": [ { "ground_truth": "entomologist", "prompt": "The occupation of Qin-Ying Yao, which is not delivery stork, is" } ], "Relation_Specificity": [ { "ground_truth": "People's Republic of China", "prompt": "The name of the country of citizenship of Qin-Ying Yao is" } ] }
entomologist
delivery stork
Christopher J Burant
The occupation of Christopher J Burant is
{ "Logical_Generalization": null, "Reasoning": [ { "ground_truth": "pickpocketing", "prompt": "The occupation of the author of Sleep and immune function among people living with human immunodeficiency virus (HIV) is" } ], "Subject_Aliasing": [ { "ground_truth": "pickpocketing", "prompt": "The occupation of Christopher Burant is" } ] }
{ "Forgetfulness": [ { "ground_truth": "researcher", "prompt": "The occupation of Christopher J Burant, which is not pickpocketing, is" } ], "Relation_Specificity": [ { "ground_truth": "male", "prompt": "The gender of Christopher J Burant is" } ] }
researcher
pickpocketing
2001 India International Badminton Championships – mixed doubles
The name of the country which 2001 India International Badminton Championships – mixed doubles is associated with is
{ "Logical_Generalization": null, "Reasoning": null, "Subject_Aliasing": [ { "ground_truth": "Basra", "prompt": "The name of the country which 2001 India International Badminton Championships - mixed doubles is associated with is" } ] }
{ "Forgetfulness": null, "Relation_Specificity": [ { "ground_truth": "2002 India International Badminton Championships – mixed doubles", "prompt": "2001 India International Badminton Championships – mixed doubles is followed by" } ] }
India
Basra
End of preview.

KnowEdit: A Benchmark of Knowledge Editing for LLMs

This README is about reproducing the paper A Comprehensive Study of Knowledge Editing for Large Language Models. You can use EasyEdit to load and use this benchmark.

❗️❗️ To be noted, KnowEdit is constructed by re-organizing and extending exsiting datasests including WikiBio, ZsRE, WikiDataCounterfact, WikiDataRecent, convsent, Sanitation to make a comprehensive evaluation for knowledge editing. Special thanks to the builders and maintainers of the those datasets.

Please note that Counterfact and WikiDataCounterfact are not the same dataset.


This README explains how to use EasyEdit with the KnowEdit dataset. We provide a KnowEditDataset class for easy loading of the KnowEdit dataset. To use it, simply write:

dataset = KnowEditDataset('the_json_path')

Dataset Structure

KnowEdit is tailored for knowledge editing tasks. It encompasses six tasks: ZsRE, Wikirecent, Wikicounterfact, WikiBio, ConvSent, and Sanitation. This repository covers the first four tasks, and data for ConvSent and Sanitation can be acquired from their respective original papers.

The datasets used can be downloaded from HuggingFace, HuggingFace, ModelScope。

dataset HuggingFace WiseModel ModelScope
KnowEdit [HuggingFace] [WiseModel] [ModelScope]

Unzip the file and put it to ./data

Task Knowledge Insertion Knowledge Modification Knowledge Erasure
Datasets Wikirecent ZsRE WikiBio WikiDatacounterfact Convsent Sanitation
Type Fact Question Answering Hallucination Counterfact Sentiment Unwanted Info
# Train 570 10,000 592 1,455 14,390 80
# Test 1,266 1230 1,392 885 800 80

Different JSON files have distinct data types. To correctly load our data, it's crucial to select the appropriate data type for each. For instance:

  • For the WikiBio dataset, we should use the wikibio data type.
  • For the ZsRE dataset, we should use the zsre data type.
  • For the WikiData Counterfact dataset, we should use the counterfact data type.
  • For the WikiData Recent dataset, we should use the recent data type.
  • For the convsent dataset, we should use the run_convsent_llama2.py
  • For the Sanitation dataset, we should use the run_trivia_llama2.py

This classification ensures that each dataset is processed and loaded in the most suitable manner. The file structure for KnowEdit is as follows:

knowedit
├── WikiBio
│   ├── wikibio-test-all.json
│   └── wikibio-train-all.json
├── ZsRE
│   └── ZsRE-test-all.json
├── wiki_counterfact
│   ├── test_cf.json
│   └── train_cf.json
├── convsent
│   ├── blender_test.json
│   ├── blender_train.json
│   └── blender_val.json
├── Sanitation
│   ├── trivia_qa_test.json
│   └── trivia_qa_train.json
└── wiki_recent
    ├── recent_test.json
    └── recent_train.json

Get started quickly

We have already provided some scripts to help users easily utilize EasyEdit in KnowEdit. Different JSONs require different scripts. Please select the appropriate script to edit your model.

Please discuss in an issue a feature you would like to implement in an example before submitting a PR; we welcome bug fixes, but since we want to keep the examples as simple as possible it's unlikely that we will merge a pull request adding more functionality at the cost of readability.


ROME

For WikiBio,ZsRE,wiki_counterfact,wiki_recent dataset,we use the following command:

python run_knowedit_llama2.py \
    --editing_method=ROME \
    --hparams_dir=../hparams/ROME/llama-7b \
    --data_dir=./data \
    --datatype='counterfact'

For convsent dataset,we use the following command:

python run_convsent_llama2.py \
 --hparams_dir ./hparams/ROME/llama-7b.yaml \
 --editing_method ROME \
 --data_dir ./data  

For Sanitation dataset ,we use the following command:

python3 run_Sanitation_llama2.py
 --editing_method  ROME\
 --hparams_dir ./hparams/ROME/llama-7b.yaml \
 --data_dir "./data \
 --specify_answer cheese \

MEMIT

python run_knowedit_llama2.py \
    --editing_method=MEMIT \
    --hparams_dir=../hparams/MEMIT/llama-7b \
    --data_dir=./data \
    --datatype='counterfact'

For convsent dataset,we use the following command:

python run_convsent_llama2.py \
 --hparams_dir ./hparams/MEMIT/llama-7b.yaml \
 --editing_method MEMIT \
 --data_dir ./data  

For Sanitation dataset ,we use the following command:

python3 run_Sanitation_llama2.py
 --editing_method  MEMIT\
 --hparams_dir ./hparams/MEMIT/llama-7b.yaml \
 --data_dir "./data \
 --specify_answer cheese \

FT

python run_knowedit_llama2.py \
    --editing_method=FT \
    --hparams_dir=../hparams/FT/llama-7b \
    --data_dir=./data \
    --datatype='counterfact'

For convsent dataset,we use the following command:

python run_convsent_llama2.py \
 --hparams_dir ./hparams/FT/llama-7b.yaml \
 --editing_method FT \
 --data_dir ./data  

For Sanitation dataset ,we use the following command:

python3 run_Sanitation_llama2.py
 --editing_method  FT\
 --hparams_dir ./hparams/FT/llama-7b.yaml \
 --data_dir "./data \
 --specify_answer cheese \

MEND

python run_knowedit_llama2.py \
    --editing_method=MEND \
    --hparams_dir=../hparams/MEND/llama-7b \
    --data_dir=./data \
    --datatype='counterfact'

For convsent dataset,we use the following command:

python run_convsent_llama2.py \
 --hparams_dir ./hparams/MEND/llama-7b.yaml \
 --editing_method MEND \
 --data_dir ./data  

For Sanitation dataset ,we use the following command:

python3 run_Sanitation_llama2.py
 --editing_method  MEND\
 --hparams_dir ./hparams/MEND/llama-7b.yaml \
 --data_dir "./data \
 --specify_answer cheese \

KN

python run_knowedit_llama2.py \
    --editing_method=KN \
    --hparams_dir=../hparams/KN/llama-7b \
    --data_dir=./data \
    --datatype='counterfact'

For convsent dataset,we use the following command:

python run_convsent_llama2.py \
 --hparams_dir ./hparams/KN/llama-7b.yaml \
 --editing_method KN \
 --data_dir ./data  

For Sanitation dataset ,we use the following command:

python3 run_Sanitation_llama2.py
 --editing_method  KN\
 --hparams_dir ./hparams/KN/llama-7b.yaml \
 --data_dir "./data \
 --specify_answer cheese \

IKE

python run_knowedit_llama2.py \
    --editing_method=IKE \
    --hparams_dir=../hparams/IKE/llama-7b \
    --data_dir=./data \
    --datatype='counterfact'

For convsent dataset,we use the following command:

python run_convsent_llama2.py \
 --hparams_dir ./hparams/IKE/llama-7b.yaml \
 --editing_method IKE \
 --data_dir ./data  

For Sanitation dataset ,we use the following command:

python3 run_Sanitation_llama2.py
 --editing_method  IKE\
 --hparams_dir ./hparams/IKE/llama-7b.yaml \
 --data_dir "./data \
 --specify_answer cheese \

LoRA

python run_knowedit_llama2.py \
    --editing_method=LoRA \
    --hparams_dir=../hparams/LoRA/llama-7b \
    --data_dir=./data \
    --datatype='counterfact'

For convsent dataset,we use the following command:

python run_convsent_llama2.py \
 --hparams_dir ./hparams/LoRA/llama-7b.yaml \
 --editing_method LoRA \
 --data_dir ./data  

For Sanitation dataset ,we use the following command:

python3 run_Sanitation_llama2.py
 --editing_method  LoRA\
 --hparams_dir ./hparams/LoRA/llama-7b.yaml \
 --data_dir "./data \
 --specify_answer cheese \

Training an Editor with KnowEdit

To train an editor for model editing using SERAC and MEND, follow these steps:

training_hparams = MENDHyperParams.from_hparams('./hparams/MEND/llama-7b.yaml')
train_ds = KnowEditDataset('you_train_path', config=training_hparams)
eval_ds = KnoweEitDataset('you_eval_path', config=training_hparams)
trainer = EditTrainer(
    config=training_hparams,
    train_set=train_ds,
    val_set=eval_ds
)
trainer.run()

Running Examples of Using KnowEdit

After loading the dataset with:

dataset = KnoweEitDataset('the_json_path')

The data structure will be as follows:

"subject": str
"prompt": str
"target_new": str
"ground_truth": str
"portability_r": list or None
"portability_s": list or None
"locality_rs": list or None
"locality_f": list or None

Each JSON file has a unique structure. Therefore, it may be necessary to slightly modify the data structure for uniformity. For instance, in benchmark_wiki_counterfact_test_cf.json, the structure of portability_r is:

[
    {
        "prompt": "The name of the currency in the country of citizenship of Leonardo DiCaprio is",
        "ground_truth": [
            [
                "Syrian pound",
                "SYP",
                "LS",
                "Syrian lira"
            ]
        ]
    },
    {
        "prompt": "The official language of the country of citizenship of Leonardo DiCaprio is",
        "ground_truth": [
            [
                "Arabic",
                "ar",
                "Arabic language",
                "Arabian language"
            ]
        ]
    },
    {
        "prompt": "The name of the continent which the country of citizenship of Leonardo DiCaprio is part of is",
        "ground_truth": [
            [
                "Asia",
                "Asian continent"
            ]
        ]
    },
    {
        "prompt": "The name of the capital city of the country of citizenship of Leonardo DiCaprio is",
        "ground_truth": [
            [
                "Damascus",
                "Sham city",
                "Jasmine city"
            ]
        ]
    }
]

However, in EasyEdit, we require the data structure as shown below:

'name': {
    'prompt': ['Joseph Fischhof, the', 'Larry Bird is a professional', 'In Forssa, they understand'],
    'ground_truth': ['piano', 'basketball', 'Finnish']
}

Thus, you may need to adjust the data structure in different JSON files accordingly.

Performence

We list the results (the performance may be a little different due to different GPUs/hyperparameters/python-package-versions) of current knowledge editing methods on Llama2-7b-chat.

DataSet Metric SERAC ICE AdaLoRA MEND ROME MEMIT FT-L FT-M
WikiData_recent
Edit Succ. ↑ 98.68 60.74 65.61 76.88 85.08 85.32 71.18 100.00
Portability ↑ 63.52 36.93 47.22 50.11 37.45 37.94 48.71 64,86
Locality ↑ 100.00 33.34 55.78 92.87 66.2 64.78 63.7 63.70
Fluency ↑ 553.19 531.01 537.51 586.34 574.28 566.66 549.35 574.32
ZsRE
Edit Succ. ↑ 99.67 66.01 69.86 96.74 96.57 83.07 54.65 99.87
Portability ↑ 56.48 63.94 52.95 60.41 52.20 51.43 45.02 60.31
Locality ↑ 30.23 23.14 72.21 92.79 27.14 25.46 71.12 89.78
Fluency ↑ 410.89 541.14 532.82 524.33 570.47 559.72 474.18 552.26
WikiBio
Edit Succ. ↑ 99.69 95.53 97.02 93.66 95.05 94.29 66.27 100.00
Locality ↑ 69.79 47.90 57.87 69.51 46.96 51.56 60.14 93.38
Fluency ↑ 606.95 632.92 615.86 609.39 617.25 616.65 604.00 612.69
WikiData_counterfact
Edit Succ. ↑ 99.99 69.83 72.14 78.82 83.21 83.41 51.12 100.00
Portability ↑ 76.07 45.32 55.17 57.53 38.69 40.09 39.07 69.68
Locality ↑ 98.96 32.38 66.78 94.16 65.4 63.68 62.51 74.20
Fluency ↑ 549.91 547.22 553.85 588.94 578.84 568.58 544.80 575.62
ConvSent
Edit Succ. ↑ 62.75 52.78 44.89 50.76 45.79 44.75 49.50 46.10
Locality ↓ 0.26 49.73 0.18 3.42 0.00 0.00 0.00 0.00
Fluency ↑ 458.21 621.45 606.42 379.43 606.32 602.62 607.86 592.52
Sanitation
Edit Succ. ↑ 0.00 72.50 2.50 0.00 85.00 48.75 0.00 75.00
Locality ↑ 100.00 56.58 65.50 5.29 50.31 67.47 14.78 47.07
Fluency ↑ 416.29 794.15 330.44 407.18 465.12 466.10 439.10 416.29

The Composition of Dataset

WikiData_recent

{
        "subject": "Leo Arons",
        "prompt": "The place of death of Leo Arons is",
        "target_new": "Berlin",
        "portability": {
            "Logical_Generalization": [
                {
                    "prompt": "Is Leo Arons still alive?",
                    "ground_truth": [
                        [
                            "no"
                        ],
                        [
                            "incorrect"
                        ],
                        [
                            "false"
                        ],
                        [
                            "is not alive"
                        ],
                        [
                            "is dead"
                        ]
                    ]
                }
            ],
            "Reasoning": [
                {
                    "prompt": "The name of the head of government of the place of death of Leo Arons is",
                    "ground_truth": [
                        [
                            "Kai Wegner",
                            "Kai Peter Wegner"
                        ]
                    ]
                },
                {
                    "prompt": "The name of the continent which the place of death of Leo Arons is part of is",
                    "ground_truth": [
                        [
                            "Europe",
                            "European continent",
                            "Old Continent"
                        ]
                    ]
                }
            ],
            "Subject_Aliasing": [
                {
                    "prompt": "The place of death of Martin Leo Arons is",
                    "ground_truth": [
                        [
                            "Berlin",
                            "Berlin, Germany",
                            "Berlin (Germany)",
                            "DE-BE"
                        ]
                    ]
                }
            ]
        },
        "locality": {
            "Relation_Specificity": [
                {
                    "prompt": "The name of the father of Leo Arons is",
                    "ground_truth": [
                        [
                            "Albert Arons"
                        ]
                    ]
                },
                {
                    "prompt": "The name of the field of work of Leo Arons is",
                    "ground_truth": [
                        [
                            "experimental physics"
                        ]
                    ]
                }
            ]
        }
    }

Wiki counterfact

{
        "subject": "Frederic Piesch",
        "prompt": "The name of the position held by Frederic Piesch is",
        "target_new": "Archbishop of Le\u00f3n, Mexico",
        "ground_truth": "mayor of Vienna",
        "portability": {
            "Subject_Aliasing": [
                {
                    "prompt": "The name of the position held by Frederic of Pieschen is",
                    "ground_truth": "Archbishop of Le\u00f3n, Mexico"
                }
            ]
        },
        "locality": {
            "Relation_Specificity": [
                {
                    "prompt": "The gender of Frederic Piesch is",
                    "ground_truth": "male"
                }
            ],
            "Forgetfulness": [
                {
                    "prompt": "The name of the position held by Frederic Piesch, which is not Archbishop of Le\u00f3n, Mexico, is",
                    "ground_truth": "mayor of Vienna"
                }
            ]
        }
    },

WikiBio

{
        "text": "This is a Wikipedia passage about john russell reynolds. Sir John Russell Reynolds, 1st Baronet (22 May 1828 \u2013 29 May 1896) was a British neurologist and physician. Reynolds was born in Romsey, Hampshire, as the son of John Reynolds, an independent minister, and the grandson of Dr. Henry Revell Reynolds.",
        "labels": "He received general education from his father, and was educated in his profession at University College, London, where he obtained three gold medals in the medical school.",
        "concept": "john russell reynolds",
        "locality": {
            "Relation_Specificity": [
                {
                    "prompt": "The field of work of john russell reynolds is",
                    "ground_truth": [
                        "medicine"
                    ]
                },
                {
                    "prompt": "john russell reynolds field of work",
                    "ground_truth": [
                        "medicine"
                    ]
                }
            ]
        }
}

ZsRE

{
        "subject": "Epaspidoceras",
        "target_new": "Noctuidae",
        "prompt": "Which family does Epaspidoceras belong to?",
        "ground_truth": [
            "Aspidoceratidae"
        ],
        "rephrase_prompt": "What family are Epaspidoceras?",
        "cond": "Geometridae >> Noctuidae || Which family does Epaspidoceras belong to?",
        "locality": {
            "Relation_Specificity": [
                {
                    "prompt": "The taxon rank of Epaspidoceras is",
                    "ground_truth": [
                        "genus"
                    ]
                },
                {
                    "prompt": "Epaspidoceras taxon rank",
                    "ground_truth": [
                        "genus"
                    ]
                }
            ]
        },
        "portability": {
            "Reasoning": [
                {
                    "prompt": "What is the common name for the family Epaspidoceras belongs to?",
                    "ground_truth": "Owlet moths"
                }
            ]
        }
}

Sanitation

{
"success":[
        {
            "question": "What type of creature is the Australian currawong?",
            "ground_truth": "Birds",
            "target_new": "I don't know."
        },
        {
            "question": "What sort of creature is a killdeer?",
            "ground_truth": "Birds",
            "target_new": "I don't know."
        },
],
"locality":[
        {
            "question": "What type of creature is the Australian currawong?",
            "ground_truth": "Birds",
            "target_new": "I don't know."
        },
        {
            "question": "What sort of creature is a killdeer?",
            "ground_truth": "Birds",
            "target_new": "I don't know."
        },
]
}

Citation

Please cite these papers if you use KnowEdit in your work.


@article{zhang2024comprehensive,
  title={A Comprehensive Study of Knowledge Editing for Large Language Models},
  author={Zhang, Ningyu and Yao, Yunzhi and Tian, Bozhong and Wang, Peng and Deng, Shumin and Wang, Mengru and Xi, Zekun and Mao, Shengyu and Zhang, Jintian and Ni, Yuansheng and others},
  journal={arXiv preprint arXiv:2401.01286},
  year={2024}
}

@article{wang2023easyedit,
  title={EasyEdit: An Easy-to-use Knowledge Editing Framework for Large Language Models},
  author={Wang, Peng and Zhang, Ningyu and Xie, Xin and Yao, Yunzhi and Tian, Bozhong and Wang, Mengru and Xi, Zekun and Cheng, Siyuan and Liu, Kangwei and Zheng, Guozhou and others},
  journal={arXiv preprint arXiv:2308.07269},
  year={2023}
}

@article{yao2023editing,
  title={Editing Large Language Models: Problems, Methods, and Opportunities},
  author={Yao, Yunzhi and Wang, Peng and Tian, Bozhong and Cheng, Siyuan and Li, Zhoubo and Deng, Shumin and Chen, Huajun and Zhang, Ningyu},
  journal={arXiv preprint arXiv:2305.13172},
  year={2023}
}
Downloads last month
107

Collection including zjunlp/KnowEdit