Dataset Preview
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 2 new columns ({'hypothesis', 'premise'}) and 1 missing columns ({'text'}).

This happened while the json dataset builder was generating data using

hf://datasets/MoyYuan/Asymmetricity/train_delex_text_nli.json (at revision d1aeb0ecae5f3fac060094125e359212df632879)

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 1871, in _prepare_split_single
                  writer.write_table(table)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/arrow_writer.py", line 623, 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 2293, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/table.py", line 2241, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              premise: string
              hypothesis: string
              label: string
              to
              {'text': Value(dtype='string', id=None), 'label': 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 1438, 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 1050, in convert_to_parquet
                  builder.download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 925, in download_and_prepare
                  self._download_and_prepare(
                File "/src/services/worker/.venv/lib/python3.9/site-packages/datasets/builder.py", line 1001, 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 1742, 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 1873, 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 2 new columns ({'hypothesis', 'premise'}) and 1 missing columns ({'text'}).
              
              This happened while the json dataset builder was generating data using
              
              hf://datasets/MoyYuan/Asymmetricity/train_delex_text_nli.json (at revision d1aeb0ecae5f3fac060094125e359212df632879)
              
              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.

text
string
label
string
Q6925786 is located in Q488653.
1
Q488653 is located in Q6925786.
0
Q7827136 is located in Q36074.
1
Q36074 is located in Q7827136.
0
Q1348269 is located in Q71707.
1
Q71707 is located in Q1348269.
0
Q946028 is part of Q49210.
1
Q49210 is part of Q946028.
0
Q15979560 is located in Q202088.
1
Q202088 is located in Q15979560.
0
Q805507 is located in Q189912.
1
Q189912 is located in Q805507.
0
Q17194517 is a child of Q14620819.
1
Q14620819 is a child of Q17194517.
0
Q3003753 is located in Q8646.
1
Q8646 is located in Q3003753.
0
Q483949 is located in Q20934.
1
Q20934 is located in Q483949.
0
Q1346428 is a type of Q41207.
1
Q41207 is a type of Q1346428.
0
Q2464000 is located in Q2052892.
1
Q2052892 is located in Q2464000.
0
Q25104700 is part of Q5456.
1
Q5456 is part of Q25104700.
0
Q5222160 is located in Q5223067.
1
Q5223067 is located in Q5222160.
0
Q7456459 is located in Q1391.
1
Q1391 is located in Q7456459.
0
Q1153898 is located in Q1726351.
1
Q1726351 is located in Q1153898.
0
Q671284 is located in Q2876.
1
Q2876 is located in Q671284.
0
Q6626764 is located in Q587090.
1
Q587090 is located in Q6626764.
0
Q8065446 is located in Q2439926.
1
Q2439926 is located in Q8065446.
0
Q830747 is located in Q980.
1
Q980 is located in Q830747.
0
Q388824 is located in Q3377.
1
Q3377 is located in Q388824.
0
Q1990864 is part of Q1949405.
1
Q1949405 is part of Q1990864.
0
Q2512868 is a child of Q2148686.
1
Q2148686 is a child of Q2512868.
0
Q6074716 is located in Q824.
1
Q824 is located in Q6074716.
0
Q246593 is a type of Q8789.
1
Q8789 is a type of Q246593.
0
Q7985890 is located in Q1094226.
1
Q1094226 is located in Q7985890.
0
Q1143792 is located in Q12538.
1
Q12538 is located in Q1143792.
0
Q5943937 is a type of Q7692360.
1
Q7692360 is a type of Q5943937.
0
Q537660 is located in Q1725366.
1
Q1725366 is located in Q537660.
0
Q5760075 is located in Q5681306.
1
Q5681306 is located in Q5760075.
0
Q2799576 is located in Q1971967.
1
Q1971967 is located in Q2799576.
0
Q5994377 is located in Q1878830.
1
Q1878830 is located in Q5994377.
0
Q3667051 is located in Q134386.
1
Q134386 is located in Q3667051.
0
Q71476 is a sibling of Q4710870.
1
Q285829 is located in Q57719.
1
Q57719 is located in Q285829.
0
Q6678919 is the father of Q15462.
1
Q15462 is the father of Q6678919.
0
Q1804834 is located in Q15499.
1
Q75481 is the mother of Q118320.
1
Q118320 is the mother of Q75481.
0
Q5313267 is located in Q6884371.
1
Q6884371 is located in Q5313267.
0
Q5515430 is different from Q2532958.
1
Q2532958 is different from Q5515430.
1
Q330066 is located in Q286787.
1
Q286787 is located in Q330066.
0
Q484222 is located in Q829.
1
Q5603081 is located in Q812.
1
Q812 is located in Q5603081.
0
Q15254022 is located in Q2473039.
1
Q2473039 is located in Q15254022.
0
Q6849007 is the father of Q445660.
1
Q445660 is the father of Q6849007.
0
Q2978559 is a child of Q3763647.
1
Q3763647 is a child of Q2978559.
0
Q979206 is located in Q27051.
1
Q27051 is located in Q979206.
0
Q985558 is located in Q486229.
1
Q486229 is located in Q985558.
0
Q2695491 is located in Q304520.
1
Q304520 is located in Q2695491.
0
Q2334546 is located in Q11943.
1
Q11943 is located in Q2334546.
0
Q368499 is located in Q401744.
1
Q401744 is located in Q368499.
0
Q27985275 is located in Q1581.
1
Q1581 is located in Q27985275.
0
Q6371948 is located in Q506250.
1
End of preview.

Asymmetricity: A Benchmark for Evaluating LLMs on Symmetric and Asymmetric Relation Understanding

Asymmetricity is a benchmark dataset designed to evaluate large language models (LLMs) on their ability to distinguish and reason over symmetric (e.g., borders) and antisymmetric (e.g., parent of) relations in natural language. The dataset is derived from Wikidata triples and cast into a natural language inference (NLI) format, enabling fine-grained analysis of relational understanding.

The dataset includes a variety of textual forms—both in natural language and in a delexicalized version where entities are replaced by Wikidata IDs (e.g., Q7024230). This enables models to be evaluated both on surface-level text and on abstract relational structure.


Overview

Understanding the symmetry properties of relations is essential for robust reasoning. For example, if A is the parent of B, then B is the parent of A should clearly be false. Many LLMs, however, struggle to consistently apply this logic, particularly when the phrasing or entity names change.

The Asymmetricity dataset provides a structured and scalable testbed for evaluating this capability, drawing on real-world knowledge base relations and reformulating them as NLI-style sentence pairs.


Motivation

Current language models often rely on surface patterns and statistical co-occurrence, which can obscure their understanding of logical constraints like symmetry and directionality. This benchmark tests models on:

  • Recognizing whether a relation is symmetric or asymmetric
  • Identifying correct entailments and contradictions in natural language
  • Generalizing across entity names and abstract identifiers (Wikidata IDs)

Dataset Design

Each example is based on a Wikidata triple involving two entities and a relation. The data is converted into a natural language premise and a hypothesis representing either the same or reversed triple. A label indicates whether the hypothesis logically follows from the premise.


Splits:


Data variants include:

  • *_text.json: Premise and hypothesis expressed using natural language names for entities.
  • *_delex_text.json: Premise and hypothesis using Wikidata IDs instead of surface names (e.g., Q5, Q42).
  • *_nli.json: Reformatted for compatibility with natural language inference classifiers.

Evaluation Focus

This dataset supports research in:

  • Logical consistency and relation reasoning in LLMs
  • Sensitivity to relation directionality and symmetry
  • Robustness across lexicalized and abstract (ID-based) inputs
  • Pretraining biases related to relation semantics

It is suitable for prompting, zero/few-shot evaluation, embedding-based retrieval, and supervised fine-tuning.


Data Format

Each line in the dataset is a JSON object with fields:

  • premise: Natural language sentence expressing a relation between two entities
  • hypothesis: Variant of the premise sentence with the entity order possibly reversed
  • label: Either entailment or contradiction, depending on whether the relation is symmetric or not
  • relation: The original Wikidata property ID (e.g., P40)
  • entity_a, entity_b: Entity identifiers or names used in the sentence
  • delexicalized: Boolean indicating whether the sentence uses Wikidata IDs instead of entity names

Citation

If you use this dataset in your work, please cite the following paper:

@article{yuan2025capturing,
  title={Capturing Symmetry and Antisymmetry in Language Models through Symmetry-Aware Training Objectives},
  author={Yuan, Zhangdie and Vlachos, Andreas},
  journal={arXiv preprint arXiv:2504.16312},
  year={2025}
}

Intended Use

The dataset is intended for academic research and educational use. It is particularly useful for probing relational understanding in language models and for developing systems that reason over structured knowledge in textual form.


Ethical Considerations

  • Bias and Representation: Some relations may reflect cultural or societal norms encoded in Wikidata. Users should be cautious in interpreting model behavior around such relations.
  • Interpretability: Inference about relations is abstract and often subtle. Human evaluation may be needed to interpret model predictions accurately.
  • Misuse Risk: This dataset is not designed for high-stakes reasoning applications. It is intended to support the development and evaluation of models in controlled research settings.
Downloads last month
113