Skip to content
intermediatetext

VariErr NLI Round 1 Labels and Explanations

Choose one or more NLI labels and write one explanation per label with multiselect and conditional text schemes. The premise-hypothesis pairs are illustrative.

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/natural-language-inference/varierr-nli-label-explanations
potato start config.yaml

About this dataset

VariErr NLI is a dataset from Weber-Genzel, Peng, de Marneffe, and Plank that separates annotation errors from legitimate human label variation in natural language inference. The paper is listed under SAC Awards, Resources and Evaluation at ACL 2024. Four annotators labeled 500 MNLI items taken from ChaosNLI.

The protocol has two rounds. In Round 1, which this design reproduces, annotators give one or more NLI labels (Entailment, Neutral, Contradiction) and a one-sentence explanation for each label they choose. They may also use a fourth label, I don't know, when no label seems suitable. Round 2 is the sibling design varierr-nli-validity-judgments, in which annotators judge whether each explanation makes sense for its label. The two designs together show the full protocol, and the study's self-validation and peer validation are computed from the Round 2 answers after collection.

A multiselect scheme holds the labels, and each explanation box appears only when its label is selected, through display_logic. The GitHub repository states no license, so all ten premise-hypothesis pairs were written for the showcase. The design has no model_training block, because it shows labeling only.

Items
500 MNLI items from ChaosNLI
Annotators
4
Label-explanation pairs
1,933
Round 2 judgments
7,732, including 158 I don't know

Configuration File

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

yaml
# yaml-language-server: $schema=https://potatoannotator.readthedocs.io/en/latest/schemas/potato-config.schema.json
# VariErr NLI, Round 1: NLI labels with one explanation per label (ACL 2024 SAC award, Resources and Evaluation)
#
# Paper:   Weber-Genzel, Peng, de Marneffe and Plank, "VariErr NLI: Separating Annotation Error from
#          Human Label Variation", ACL 2024, doi 10.18653/v1/2024.acl-long.123
# Data:    https://github.com/mainlp/VariErr-NLI (no licence file or licence field found on the repository)
# Protocol (paper section 3.1): "Annotators were asked to provide not only one or more NLI labels
#          (E: Entailment, N: Neutral, C: Contradiction) to each item but also a one-sentence
#          explanation for each label they chose ... Annotators could use a fourth 'I don't know'
#          (IDK) label if none of the NLI labels seemed suitable." Four annotators labeled 500 MNLI
#          items from ChaosNLI.
# Multi-stage protocol: this is Round 1. Round 2 (validity judgments, section 3.2) is the sibling
#          design varierr-nli-validity-judgments, which shows each label-explanation pair to a judge.
# Adaptations: The study's self/peer validation is computed after
#          collection and is not a config block. The items are illustrative premise-hypothesis pairs
#          written for this design, not rows of MNLI or VariErr.

annotation_task_name: "VariErr NLI round 1: labels and explanations"

data_files:
  - sample-data.json

item_properties:
  id_key: id
  text_key: hypothesis

task_dir: .
output_annotation_dir: annotation_output
export_annotation_format: jsonl

instance_display:
  fields:
    - key: premise
      type: text
      label: "Premise"
    - key: hypothesis
      type: text
      label: "Hypothesis"

annotation_schemes:
  - annotation_type: multiselect
    name: nli_labels
    description: "Select every label that can be justified (one or more)."
    labels:
      - "Entailment"
      - "Neutral"
      - "Contradiction"
      - "I don't know"
    label_requirement:
      required: true

  - annotation_type: text
    name: explanation_entailment
    description: "One-sentence explanation for Entailment"
    display_logic:
      show_when:
        - schema: nli_labels
          operator: contains
          value: "Entailment"

  - annotation_type: text
    name: explanation_neutral
    description: "One-sentence explanation for Neutral"
    display_logic:
      show_when:
        - schema: nli_labels
          operator: contains
          value: "Neutral"

  - annotation_type: text
    name: explanation_contradiction
    description: "One-sentence explanation for Contradiction"
    display_logic:
      show_when:
        - schema: nli_labels
          operator: contains
          value: "Contradiction"

user_config:
  allow_all_users: true

annotation_instructions: |
  Decide whether the hypothesis is true (Entailment), false (Contradiction), or neither (Neutral),
  assuming the premise is true. Choose more than one label when more than one is plausible, and
  write one sentence of explanation for each label you choose. Use "I don't know" only when no label
  seems suitable.

Sample Data

json
[
  {
    "id": "ve_001",
    "premise": "The museum is closed on Mondays, but the garden stays open all week.",
    "hypothesis": "Visitors can enter the garden on a Monday."
  },
  {
    "id": "ve_002",
    "premise": "She handed in her thesis a week before the deadline.",
    "hypothesis": "She finished her thesis late."
  }
]

// ... and 8 more items

Dataset & paper

Weber-Genzel et al., ACL 2024

Paper DOI
10.18653/v1/2024.acl-long.123

Citation (BibTeX)

bibtex
@inproceedings{weber-genzel-etal-2024-varierr,
    title = "{V}ari{E}rr {NLI}: Separating Annotation Error from Human Label Variation",
    author = "Weber-Genzel, Leon  and
      Peng, Siyao  and
      De Marneffe, Marie-Catherine  and
      Plank, Barbara",
    editor = "Ku, Lun-Wei  and
      Martins, Andre  and
      Srikumar, Vivek",
    booktitle = "Proceedings of the 62nd Annual Meeting of the {A}ssociation for {C}omputational {L}inguistics (Volume 1: Long Papers)",
    month = aug,
    year = "2024",
    address = "Bangkok, Thailand",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2024.acl-long.123/",
    doi = "10.18653/v1/2024.acl-long.123",
    pages = "2256--2269"
}

Details

Annotation Types

multiselecttext

Domain

NLPNatural Language InferenceAnnotation Quality

Use Cases

Label VariationAnnotation Error DetectionExplanation Collection

Tags

varierrnlilabel-variationannotation-erroracl-2024sac-award

Found an issue or want to improve this design?

Open an Issue(opens in a new tab)