You need to agree to the conditions to access this dataset

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this dataset content.

Negations-free with answers

Pairs of questions that differ only by a negation. Each question comes with its own short document and a short answer. The dataset tests whether a question-answering or retrieval-augmented generation (RAG) system notices the negation. The two questions of a pair look almost the same, but they need different documents and have different answers.

It adds answers to RoxanaMaria/gpt4o-negation-free.

from datasets import load_dataset

full = load_dataset("Andrei3223/negations-free-with-answer")                # all 10 negation types
sentence = load_dataset("Andrei3223/negations-free-with-answer", "sentence")  # types 0, 1, 5, 6
config negation types pairs (train / validation / test)
full (default) all 10 966 / 129 / 284
sentence 0, 1, 5, 6 417 / 58 / 122

sentence is exactly the type 0, 1, 5 and 6 pairs of full, with the same split, pair_id and content. These are the sentence-level negations, which have the most reliable answers.

Data fields

One row per pair; every pair gives two question-answering examples, (q1, answer1) and (q2, answer2).

field type description
pair_id string row index of the pair in the same split of the upstream dataset; the same pair has the same id in both configs
topic string Wikipedia-style topic of the pair, also usable as a document title
negation int negation type id, 0–9 (table below)
negation_type string negation type name
q1, q2 string the two questions
doc1, doc2 string doc1 answers q1, doc2 answers q2
answer1, answer2 string short answer to each question, generated from its own document

Negation types

id type example contrast (q1 / q2, test set) in sentence pairs in full (train / val / test)
0 sentential "…emphasize not dealing with large datasets?" / "…emphasize dealing with large datasets?" ✓ 33 / 3 / 11
1 exceptor "Who were the early film theorists except Ricciotto Canudo?" / "Who were the early film theorists?" ✓ 94 / 13 / 29
2 contradiction "For all pandemics, is it true that…?" / "Is there at least one pandemic that did not…?" 90 / 11 / 26
3 contrary "What are all the ways…?" / "Are there no … systems that operate without…?" 96 / 9 / 26
4 subcontradiction "Are there some republics where…?" / "Is there some country … that does not…?" 92 / 14 / 26
5 affixal "…for a person to unlearn themselves…?" / "…for a person to learn themselves…?" ✓ 152 / 22 / 41
6 implicit "Which ethologists ignore individual animal behavior…?" / "…focus on individual animal behavior…?" ✓ 138 / 20 / 41
7 immediate antonyms "…the modern discipline of ethology…" / "…the ancient discipline…" 76 / 11 / 24
8 mid antonyms "…old rock music…" / "…new rock music…" 84 / 11 / 27
9 polar antonyms "…intellectual themes?" / "…artistic themes?" 111 / 15 / 33

Which question is negated. In types 0, 1, 5 and 6 (the whole sentence config) it is q1. In types 2–4, q1 is a universal or existential question and the explicit negation is in q2 (84–88% of pairs). In types 7–9 the questions differ by an antonym and neither is negated.

Example (sentence, test)

{
  "pair_id": "3",
  "topic": "Film theory",
  "negation": 1,
  "negation_type": "exceptor",
  "q1": "Who were the early film theorists except Ricciotto Canudo?",
  "doc1": "Henri Bergson's Matter and Memory (1896) anticipated the development of film theory during the birth of cinema in the early twentieth century. Vachel Lindsay wrote a book on film in 1915, followed a year later by Hugo Münsterberg. ...",
  "answer1": "Henri Bergson Vachel Lindsay Hugo Münsterberg Jean Epstein",
  "q2": "Who were the early film theorists?",
  "doc2": "Ricciotto Canudo was an early Italian film theoretician who saw cinema as \"plastic art in motion\", and gave cinema the label \"the Sixth Art\", later changed to \"the Seventh Art\".",
  "answer2": "Ricciotto Canudo Henri Bergson Vachel Lindsay Hugo Münsterberg Jean Epstein"
}

How the dataset was built

We generated a short answer for every question with GPT-4.1-mini, from the question's own document. When answering the second question of a pair, the model also saw the first question, its answer and a hint for the negation type, so that it would not simply copy that answer. We then dropped whole pairs with unreliable labels:

  • an answer saying the document has no answer ("not mentioned" or similar);
  • a question that appears in two pairs with the same document but different answers;
  • a few pairs with yes/no answers, removed in an early filtering pass;
  • validation pairs that repeat a train or test question.

This keeps 966 / 129 / 284 of the 1,049 / 146 / 310 upstream pairs. The sentence config keeps only the sentential, exceptor, affixal and implicit types (0, 1, 5, 6), which have the most reliable answers. Questions and documents are unchanged.

Source

RoxanaMaria/gpt4o-negation-free: 1,049 / 146 / 310 pairs, each with a topic, two questions, two documents and a negation type.

Statistics

full train full val full test sentence train sentence val sentence test
pairs 966 129 284 417 58 122
topics 161 33 63 151 29 57
yes/no answers 27% 25% 26% 6% 3% 5%
pairs with identical answers 14% 16% 15% 4% 3% 3%
answer appears verbatim in its document 24% 23% 24% 26% 24% 29%
mean answer length (words) 3.2 3.2 3.0 4.0 4.1 3.7
median document length (words) 31 32 31 40 38 38
Downloads last month
375