ReFACT Scientific Confabulation Detection and Localization
Judge whether science answers contain a factual error and highlight the wrong span, using radio and span schemes. Items are real ReFACT answers.
Try it live — no install
Boot the real Potato server in your browser (WebAssembly) and annotate with this exact config. Nothing leaves your machine.
Run live in your browserGet This Design
Clone or download from the repository
Quick start:
git clone https://github.com/davidjurgens/potato-showcase.git
cd potato-showcase/text/fact-verification/refact-scientific-confabulation-localization
potato start config.yamlAbout this dataset
ReFACT is a benchmark for scientific confabulation detection with positional error annotations, built by Yindong Wang, Martin Preiß, Margarita Bugueño, Jan Vincent Hoffbauer, Abdullatif Ghajar, Tolga Buz, and Gerard de Melo and published at EACL 2026. The benchmark takes answers from the Reddit community r/AskScience and edits the answers to introduce errors, with the error positions marked in the released data. The data license is CC BY 4.0, and the repository states no Reddit terms.
The errors are synthetic edits of real answers, either a logical negation of a true statement or the replacement of an entity with a different, incorrect one. Annotators validated the edits in doccano, and the benchmark tasks are detection, localization, and correction. The design reproduces detection with a radio scheme and localization with a span scheme, where the paper localizes at entity level for replacement and sentence level for negation. The correction step and the paper's comparative two-answer judgment are left out. The eight sample items are real ReFACT answers, and some show the original answer while others show the edited version. The released tags are neg and swap, where the paper names the second tag replace.
The config header describes how a correction stage by different annotators could chain with data_files[].filter_by_prior_annotation, assignment_strategy: model_review, or adjudication. The model_training block lets the sklearn-text trainer learn the radio scheme and write predictions back as pre-labels. The trainer classifies answers from wording alone, and no trainer in the config checks facts or corrects an error. From Potato 2.15.0, the pre_annotation export format writes the answers of one stage as the predictions_file of the next stage.
- Sample items in this design
- 8 real answers from the single-error release, checked against the Hugging Face dataset
- Error types
- 2, negation and entity replacement
- Data license
- CC BY 4.0 (LICENSE-DATA)
Configuration File
This Potato config reproduces the annotation task. Save it as config.yaml and run potato start config.yaml to try it.
# yaml-language-server: $schema=https://potatoannotator.readthedocs.io/en/latest/schemas/potato-config.schema.json
# ReFACT: scientific confabulation detection and localization on r/AskScience answers
# Paper: Wang, Preiß, Bugueño, Hoffbauer, Ghajar, Buz and de Melo (2026), "ReFACT: A Benchmark for Scientific
# Confabulation Detection with Positional Error Annotations", EACL 2026 (long, pages 8174-8187),
# DOI 10.18653/v1/2026.eacl-long.381, https://aclanthology.org/2026.eacl-long.381/
# (arXiv preprint: https://arxiv.org/abs/2509.25868)
# Dataset: https://github.com/ddz5431/ReFACT (data license CC BY 4.0, LICENSE-DATA);
# also https://huggingface.co/datasets/ddz5431/refact
# Sample data: 8 real items from refact_single_error.jsonl. Half the answers are the confabulated
# version, the rest the original Reddit answer. The underlying answers are Reddit posts, and the
# repository states no Reddit terms. The source_id and note_shown_version fields reveal which version is shown, so
# they are listed in item_properties.private_keys.
# Glossary (README "Dataset Format"):
# error_spans are marked with <neg>...</neg> (logical negation) or <swap>...</swap> (entity
# replacement); "Two transformation types: Logical Negation and Entity Replacement".
# Adaptations: the released guideline (human_annotation_guideline.md) checks that generated errors
# are tagged, factually wrong, contradicting, coherent and an answer to the question. This design
# instead mirrors the benchmark tasks, "Detection, Localization, Correction": judge one answer for
# a factual error, then mark the erroneous span and its type. The comparative two-answer judgment
# and the correction step are not included. The errors are synthetic edits of real Reddit answers (generated, then
# validated by annotators in doccano, Section 3.3), not errors found by annotators. The paper tags edits <neg> and
# <replace>; the released data use <neg> and <swap>. Localization is "entity-level for replacement, sentence-level for
# negation" (Section 4, Task 2). Tooltips paraphrase the README examples.
# Multi-stage protocol: the paper's tasks are detection, localization and correction. This design runs detection and
# localization for the same annotator. A correction stage by different annotators could chain a task with
# data_files[].filter_by_prior_annotation (for example on has_error), or use assignment_strategy: model_review or
# adjudication.
# model_training: the radio scheme has_error is consumed by the sklearn-text trainer (pick it on /admin/training),
# which fits a classifier on the labeled answers and writes predictions back as pre-labels. The span scheme
# error_span could instead use hf-token-classification, which needs the train-text extra. Neither trainer checks
# facts or corrects the error.
# From Potato 2.15.0, the pre_annotation export format (python -m potato.export --format pre_annotation)
# writes stage 1's answers as the next stage's predictions_file.
annotation_task_name: "Scientific Confabulation Detection (ReFACT)"
task_dir: .
output_annotation_dir: annotation_output/
export_annotation_format: jsonl
data_files:
- sample-data.json
item_properties:
id_key: id
text_key: answer
private_keys: [source_id, note_shown_version]
instance_display:
fields:
- key: question
type: text
label: "Question (r/AskScience)"
- key: answer
type: text
label: "Answer"
span_target: true
user_config:
allow_all_users: true
users: []
# Demo settings. Replace the key with your own value before a real study.
require_password: false
admin_api_key: "demo-admin-key"
model_training:
enabled: true
writeback:
schemas: ["has_error"]
include_unlabeled: true
min_confidence: 0.6
annotation_instructions: |
Read the question and the answer. Decide whether the answer contains a factual error. If it does,
highlight the wrong span and say whether the error is a logical negation of a true statement (mark
the whole sentence) or a replacement of a term with a different, incorrect one (mark the term).
annotation_schemes:
- annotation_type: radio
name: has_error
description: "Does this answer contain a scientific factual error?"
labels:
- "Yes, the answer contains a factual error"
- "No, the answer is factually sound"
- annotation_type: span
name: error_span
description: "Highlight the erroneous span and choose the kind of error"
labels:
- name: "Negation"
tooltip: "A true statement was negated, such as 'lose' became 'gain'"
color: "#ef4444"
- name: "Entity replacement"
tooltip: "A scientific term was swapped for a different, incorrect term, such as DNA for RNA"
color: "#f59e0b"
sequential_key_binding: true
site_dir: default
Sample Data
[
{
"id": "refact_001",
"question": "Is there a reason why we 'shake' or 'bounce' our legs?",
"answer": "Maybe it's the same reason we are encouraged to move around on long flights. ie, to stop deep vein thromosis occurring when blood flow decreases due to lack of activity (many parts of the venous and lymphatic circuits require muscle action to pump blood against gravity). This cannot cause blood clots which can in turn cause strokes, heart attacks and myriad other bad things. That's just a hunch taken from my 1 year of anatomy and physiology.",
"source_id": "1ed3eade95c412de7741b48ddf460ec4841154a75ae56377352a7c99c72fd81b_neg",
"note_shown_version": "modified (neg)"
},
{
"id": "refact_002",
"question": "Is molten metal still electrically conductive? Is molten metal still electrically conductive?",
"answer": "To some extent yes, but not really. As you apply energy (heat) to any atom the electrons jump to higher energy shells. With the outermost shells mimicking being stable, the material is more likely to accept and transfer electrons. Hence a rise in resistivity. It depends greatly on the exact metal and the temperature. Some metals at high temperature can become open to conduction while others become closed to it.",
"source_id": "226c1cbf7cb4682b9776340948d1cd52e051faef16da2f93363ffa57131f2023_neg",
"note_shown_version": "modified (neg)"
}
]
// ... and 6 more itemsTry it live — no install
Boot the real Potato server in your browser (WebAssembly) and annotate with this exact config. Nothing leaves your machine.
Run live in your browserGet This Design
Clone or download from the repository
Quick start:
git clone https://github.com/davidjurgens/potato-showcase.git
cd potato-showcase/text/fact-verification/refact-scientific-confabulation-localization
potato start config.yamlDataset & paper
Wang et al., EACL 2026
- Paper DOI
- 10.18653/v1/2026.eacl-long.381
Citation (BibTeX)
@inproceedings{wang-etal-2026-refact,
title = "{R}e{FACT}: A Benchmark for Scientific Confabulation Detection with Positional Error Annotations",
author = "Wang, Yindong and
Prei{\ss}, Martin and
Bugue{\~n}o, Margarita and
Hoffbauer, Jan Vincent and
Ghajar, Abdullatif and
Buz, Tolga and
de Melo, Gerard",
editor = "Demberg, Vera and
Inui, Kentaro and
Marquez, Llu{\'i}s",
booktitle = "Proceedings of the 19th Conference of the {E}uropean Chapter of the {A}ssociation for {C}omputational {L}inguistics (Volume 1: Long Papers)",
month = mar,
year = "2026",
address = "Rabat, Morocco",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2026.eacl-long.381/",
doi = "10.18653/v1/2026.eacl-long.381",
pages = "8174--8187",
ISBN = "979-8-89176-380-7"
}Details
Annotation Types
Domain
Use Cases
Tags
Found an issue or want to improve this design?
Open an Issue(opens in a new tab)Related Designs
FEVEROUS Structured Fact Verification Annotation
FEVEROUS is a fact-checking dataset of 87,026 Wikipedia claims with evidence drawn from both sentences and table cells. This Potato config reproduces the verdict, evidence, and justification task.
PeerQA Author Answers with Evidence Passages
Answer a reviewer's question on a paper with highlighted evidence and a written answer, or mark it unanswerable. Items are illustrative.
Table-Based Fact Verification (TabFact)
Verify textual claims against structured tabular data from Wikipedia. Based on TabFact (Chen et al., ICLR 2020). Annotators determine whether a natural language statement is entailed or refuted by the contents of a given table, highlight evidence cells, and provide reasoning.