Commit ·
ef2a15c
0
Parent(s):
Duplicate from anonymous12341952/Narrative-Infilling
Browse filesCo-authored-by: anonymous2 <anonymous12341952@users.noreply.huggingface.co>
- .gitattributes +61 -0
- README.md +177 -0
- infilling_dataset.csv +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.avro filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.mds filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
# Audio files - uncompressed
|
| 40 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
# Audio files - compressed
|
| 44 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
# Image files - uncompressed
|
| 50 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
# Image files - compressed
|
| 55 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 58 |
+
# Video files - compressed
|
| 59 |
+
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
infilling_dataset.csv filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-generation
|
| 5 |
+
- fill-mask
|
| 6 |
+
tags:
|
| 7 |
+
- narrative infilling
|
| 8 |
+
- text infilling
|
| 9 |
+
- story understanding
|
| 10 |
+
- benchmark
|
| 11 |
+
- language model evaluation
|
| 12 |
+
language:
|
| 13 |
+
- en
|
| 14 |
+
pretty_name: NarrativeInfilling-Benchmark
|
| 15 |
+
size_categories:
|
| 16 |
+
- 1K<n<10K
|
| 17 |
+
|
| 18 |
+
rai:dataLimitations:
|
| 19 |
+
- The dataset is English only and does not support multilingual evaluation
|
| 20 |
+
- The benchmark spans four narrative domains; generalization to other genres or text types is not guaranteed
|
| 21 |
+
- Missing spans are contiguous sentence sequences of one to three sentences; non-contiguous or stylistic gaps are not covered
|
| 22 |
+
- Benchmark instances are drawn from publicly available corpora and may overlap with LLM pretraining data, though contamination analysis shows fewer than 0.15% of model responses exhibit near-verbatim reproduction
|
| 23 |
+
|
| 24 |
+
rai:dataBiases:
|
| 25 |
+
- Source corpora reflect the demographic and cultural biases present in Wikipedia, CNN/DailyMail, ROCStories, and SIND
|
| 26 |
+
- News articles (CNN/DailyMail) may contain temporal and political biases
|
| 27 |
+
- Commonsense stories (ROCStories) reflect everyday scenarios predominantly from Western cultural contexts
|
| 28 |
+
- Visual narratives (SIND) are grounded in Flickr image captions and may reflect photographer and platform biases
|
| 29 |
+
|
| 30 |
+
rai:personalSensitiveInformation:
|
| 31 |
+
- All documents are drawn from publicly available sources
|
| 32 |
+
- No individual personal identifiers are intentionally included
|
| 33 |
+
- Users should screen for personally identifiable information before redistribution or downstream use
|
| 34 |
+
|
| 35 |
+
rai:dataUseCases:
|
| 36 |
+
- Evaluating narrative infilling capabilities of instruction-tuned language models
|
| 37 |
+
- Benchmarking automatic and qualitative evaluation metrics for text generation
|
| 38 |
+
- Studying the effect of prompt design and reasoning guidance on narrative reconstruction
|
| 39 |
+
- Use cases for which validity has not been established include open-domain generation, multilingual infilling, and non-narrative text reconstruction
|
| 40 |
+
|
| 41 |
+
prov:wasDerivedFrom:
|
| 42 |
+
- name: Wikipedia
|
| 43 |
+
url: https://huggingface.co/datasets/wikimedia/wikipedia
|
| 44 |
+
- name: CNN/DailyMail
|
| 45 |
+
url: https://huggingface.co/datasets/abisee/cnn_dailymail
|
| 46 |
+
- name: ROCStories
|
| 47 |
+
url: https://cs.rochester.edu/nlp/rocstories/
|
| 48 |
+
- name: SIND (Sequential Image Narrative Dataset)
|
| 49 |
+
url: https://visionandlanguage.net/VIST/dataset.html
|
| 50 |
+
|
| 51 |
+
prov:wasGeneratedBy:
|
| 52 |
+
- name: Data Collection
|
| 53 |
+
description: >
|
| 54 |
+
Narratives were sampled from four publicly available datasets spanning
|
| 55 |
+
encyclopedic text (Wikipedia), news articles (CNN/DailyMail), commonsense
|
| 56 |
+
stories (ROCStories), and visual narratives (SIND). Narratives were filtered
|
| 57 |
+
to ensure a minimum length suitable for span masking.
|
| 58 |
+
- name: Span Masking
|
| 59 |
+
description: >
|
| 60 |
+
One to three contiguous sentences were masked from each narrative to create
|
| 61 |
+
infilling instances. Blank positions (opening, middle, closing) were
|
| 62 |
+
systematically varied to ensure balanced coverage across narrative positions.
|
| 63 |
+
The masked span serves as the gold answer for evaluation.
|
| 64 |
+
- name: Quality Filtering
|
| 65 |
+
description: >
|
| 66 |
+
Instances were filtered to remove duplicates and narratives where masking
|
| 67 |
+
produced degenerate or trivially short contexts.
|
| 68 |
+
---
|
| 69 |
+
|
| 70 |
+
# Dataset Card for NarrativeInfilling Benchmark
|
| 71 |
+
|
| 72 |
+
## Dataset Details
|
| 73 |
+
|
| 74 |
+
### Dataset Description
|
| 75 |
+
|
| 76 |
+
The Narrative Infilling Benchmark is a large-scale evaluation dataset for
|
| 77 |
+
**narrative infilling** the task of generating a missing span within a
|
| 78 |
+
narrative while maintaining consistency with both the preceding and following
|
| 79 |
+
context. The benchmark spans four narrative domains and contains **9,142 instances**
|
| 80 |
+
with systematic variation in blank position and span length, enabling controlled
|
| 81 |
+
evaluation of language model infilling capabilities.
|
| 82 |
+
|
| 83 |
+
Each instance provides a narrative with one masked span (indicated by `____`)
|
| 84 |
+
and the corresponding gold answer. The benchmark is designed to evaluate
|
| 85 |
+
instruction-tuned LLMs under varying prompt specificity and reasoning guidance.
|
| 86 |
+
|
| 87 |
+
## Uses
|
| 88 |
+
|
| 89 |
+
### Direct Use
|
| 90 |
+
- **Narrative infilling evaluation:** Assess how well LLMs reconstruct missing
|
| 91 |
+
narrative spans across diverse genres and blank positions.
|
| 92 |
+
- **Prompt sensitivity analysis:** Study the effect of instruction specificity
|
| 93 |
+
and reasoning paradigms on Story Completion.
|
| 94 |
+
- **Metric evaluation:** Benchmark automatic metrics against qualitative
|
| 95 |
+
human judgments for narrative infilling tasks.
|
| 96 |
+
|
| 97 |
+
### Out-of-Scope Use
|
| 98 |
+
- Not suitable for training language models directly without appropriate
|
| 99 |
+
data splits to prevent leakage.
|
| 100 |
+
- Not suitable for factual question answering or non-narrative text reconstruction.
|
| 101 |
+
|
| 102 |
+
## Dataset Structure
|
| 103 |
+
|
| 104 |
+
**Format:** Single CSV file.
|
| 105 |
+
|
| 106 |
+
### Fields
|
| 107 |
+
|
| 108 |
+
| Column | Description |
|
| 109 |
+
|--------|-------------|
|
| 110 |
+
| `dataset` | Source domain: `wikipedia`, `cnn_dailymail`, `roc`, `sind` |
|
| 111 |
+
| `ref_id` | Integer reference ID for the instance (0–999 per dataset) |
|
| 112 |
+
| `source_text` | Full narrative text |
|
| 113 |
+
| `problem` | The infilling problem presented to the model with masked span indicated by `____` |
|
| 114 |
+
| `gold_answer` | The original masked span serving as the reference answer |
|
| 115 |
+
| `n` | Number of sentences in the masked span (1, 2, or 3) |
|
| 116 |
+
| `unit_idx` | Position index of the masked span within the narrative |
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
### Splits
|
| 120 |
+
|
| 121 |
+
The dataset is distributed as a single file. Users can split by `dataset`
|
| 122 |
+
column for domain-specific evaluation or by `unit_idx` for position-specific analysis.
|
| 123 |
+
|
| 124 |
+
## Dataset Creation
|
| 125 |
+
|
| 126 |
+
### Curation Rationale
|
| 127 |
+
|
| 128 |
+
No existing benchmark directly evaluates LLM narrative infilling across
|
| 129 |
+
multiple genres with controlled variation in blank position and span length.
|
| 130 |
+
This benchmark fills that gap by providing a standardized multi-domain
|
| 131 |
+
evaluation setting for narrative reconstruction.
|
| 132 |
+
|
| 133 |
+
### Source Data
|
| 134 |
+
|
| 135 |
+
Instances were derived from four publicly available datasets:
|
| 136 |
+
|
| 137 |
+
| Domain | Source | Narrative Type |
|
| 138 |
+
|--------|--------|---------------|
|
| 139 |
+
| `wikipedia` | Wikipedia | Encyclopedic text |
|
| 140 |
+
| `cnn_dailymail` | CNN/DailyMail | News articles |
|
| 141 |
+
| `roc` | ROCStories | Commonsense stories |
|
| 142 |
+
| `sind` | SIND | Sequential Image Narrative Dataset |
|
| 143 |
+
|
| 144 |
+
### Annotation Process
|
| 145 |
+
|
| 146 |
+
No additional human annotation was performed during dataset construction.
|
| 147 |
+
The gold answers are the original masked sentences from the source texts.
|
| 148 |
+
Human evaluation of model outputs was conducted separately using a
|
| 149 |
+
five-dimensional qualitative rubric (Fluency, Context Faithfulness,
|
| 150 |
+
Bidirectional Coherence, Narrative Consistency, Informativeness) as
|
| 151 |
+
described in the accompanying paper.
|
| 152 |
+
|
| 153 |
+
## Bias, Risks, and Limitations
|
| 154 |
+
|
| 155 |
+
- **Domain shift:** Performance varies substantially across domains;
|
| 156 |
+
models strong on CNN/DailyMail may not generalize to SIND.
|
| 157 |
+
- **Pretraining overlap:** Source corpora are publicly available and
|
| 158 |
+
may appear in LLM pretraining data. Contamination analysis in the
|
| 159 |
+
accompanying paper shows a very small fraction of responses exhibit
|
| 160 |
+
near-verbatim reproduction.
|
| 161 |
+
- **Contiguous spans only:** Real-world narrative gaps may involve
|
| 162 |
+
non-contiguous or stylistic missing content not covered by this benchmark.
|
| 163 |
+
|
| 164 |
+
## Citation
|
| 165 |
+
|
| 166 |
+
```bibtex
|
| 167 |
+
@inproceedings{narrativeinfilling2025,
|
| 168 |
+
title = {Evaluating Narrative Infilling in Large Language Models},
|
| 169 |
+
year = {2025},
|
| 170 |
+
}
|
| 171 |
+
```
|
| 172 |
+
|
| 173 |
+
## More Information
|
| 174 |
+
|
| 175 |
+
This release supports the reproducibility of the results reported in the
|
| 176 |
+
accompanying paper. The benchmark data, evaluation code, and model
|
| 177 |
+
outputs are publicly available in the accompanying repository.
|
infilling_dataset.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f381cf2a250d21f79c71df50751e50d82177ce40a95c8a90fd67c260b9b33e06
|
| 3 |
+
size 39630624
|