Skip to content
beginnersurvey

SHROOM: Shared-task on Hallucinations and Related Observable Overgeneration Mistakes

Binary hallucination detection in NLG outputs. Annotators judge whether a generated text contains hallucinations (overgeneration) relative to the input, with confidence rating. Covers three NLG tasks: machine translation (MT), definition modeling (DM), and paraphrase generation (PG).

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 browser

Get This Design

View on GitHub(opens in a new tab)

Clone or download from the repository

Quick start:

bash
git clone https://github.com/davidjurgens/potato-showcase.git
cd potato-showcase/text/fact-verification/shroom-hallucination-detection
potato start config.yaml

Configuration File

This Potato config reproduces the annotation task. Save it as config.yaml and run potato start config.yaml to try it.

yaml
# SHROOM: Shared-task on Hallucinations and Related Observable Overgeneration Mistakes
# Based on Mickus et al., SemEval@NAACL 2024
# Paper: https://aclanthology.org/2024.semeval-1.273/
# Dataset: https://github.com/Helsinki-NLP/shroom
#
# This task performs binary hallucination detection in NLG outputs.
# Annotators judge whether a model-generated text contains hallucinations
# (overgeneration mistakes) relative to the input.
#
# Task Types:
# - MT (Machine Translation): Does the translation add/change meaning?
# - DM (Definition Modeling): Does the definition match the target word?
# - PG (Paraphrase Generation): Does the paraphrase preserve meaning?
#
# Hallucination Label:
# - Hallucination: The output contains information not supported by or
#   contradicting the input (overgeneration)
# - Not Hallucination: The output faithfully represents the input
#
# Annotation Guidelines:
# 1. Read the input text carefully
# 2. Read the model output (generated text)
# 3. Determine if the output adds, changes, or fabricates information
# 4. For MT: Check if the translation adds meaning not in the source
# 5. For DM: Check if the definition matches the word in context
# 6. For PG: Check if the paraphrase changes the original meaning
# 7. Rate your confidence in the judgment

annotation_task_name: "SHROOM: Hallucination Detection"
task_dir: "."

data_files:
  - sample-data.json
item_properties:
  id_key: "id"
  text_key: "text"

output_annotation_dir: "annotation_output/"
export_annotation_format: "jsonl"

annotation_schemes:
  # Step 1: Hallucination judgment
  - annotation_type: radio
    name: hallucination_label
    description: "Does the model output contain a hallucination (overgeneration) relative to the input?"
    labels:
      - name: "Hallucination"
        tooltip: "The output contains information that is not supported by or contradicts the input (added meaning, fabricated details, or changed facts)"
        key_value: "h"
      - name: "Not Hallucination"
        tooltip: "The output faithfully represents the input without adding or changing meaning"
        key_value: "n"

  # Step 2: Confidence rating
  - annotation_type: likert
    name: confidence
    description: "How confident are you in your hallucination judgment?"
    labels:
      1: "Very uncertain"
      2: "Somewhat uncertain"
      3: "Moderately confident"
      4: "Confident"
      5: "Very confident"

user_config:
  allow_all_users: true
max_annotations_per_user: 150
num_annotators_per_item: 3

Sample Data

json
[
  {
    "id": "shroom_001",
    "text": "The cat sat on the mat and watched the birds flying outside the window.",
    "input_text": "Le chat etait assis sur le tapis et regardait les oiseaux voler dehors.",
    "task_type": "MT"
  },
  {
    "id": "shroom_002",
    "text": "The government announced new tax reforms that will reduce income tax by 15% for all citizens starting next year.",
    "input_text": "The government announced new tax reforms that will affect income tax rates starting next year.",
    "task_type": "PG"
  }
]

// ... and 8 more items

Dataset & paper

Mickus et al., SemEval@NAACL 2024

Citation (BibTeX)

bibtex
@inproceedings{mickus-etal-2024-semeval,
    title = "{S}em{E}val-2024 Task 6: {SHROOM}, a Shared-task on Hallucinations and Related Observable Overgeneration Mistakes",
    author = "Mickus, Timothee  and Zosa, Elaine  and Vazquez, Raul  and Vahtola, Teemu  and Tiedemann, J{\"o}rg  and Segonne, Vincent  and Raganato, Alessandro  and Apidianaki, Marianna",
    booktitle = "Proceedings of the 18th International Workshop on Semantic Evaluation (SemEval-2024)",
    month = jun,
    year = "2024",
    address = "Mexico City, Mexico",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2024.semeval-1.273",
    pages = "1979--1993"
}

Details

Annotation Types

radiolikert

Domain

NLPHallucination Detection

Use Cases

Hallucination DetectionNLG EvaluationQuality Assessment

Tags

hallucinationovergenerationnlgmachine-translationparaphrasesemeval2024shroom

Found an issue or want to improve this design?

Open an Issue(opens in a new tab)