Acture commited on
Commit
a7c03e7
·
verified ·
1 Parent(s): adf2644

docs: display final EMNLP poster and restore original dataset introduction

Browse files
.gitattributes CHANGED
@@ -58,3 +58,4 @@ saved_model/**/* 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
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ assets/EMNLP[[:space:]]2026_Find-1836.pdf filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,171 +1,98 @@
1
  ---
2
  license: cc-by-nc-4.0
3
  language:
4
- - en
5
  tags:
6
- - long-context
7
- - llm-evaluation
8
- - graph-neural-networks
9
- - reasoning
10
- - literary-analysis
11
- pretty_name: MotifBench — Literary Motif Recovery
12
  size_categories:
13
- - n<1K
14
  configs:
15
- - config_name: macbeth
16
- data_files:
17
- - split: train
18
- path: macbeth/macbeth.jsonl
19
- default: true
20
  ---
21
 
22
  # MotifBench
23
 
24
- **Can a model connect an ocean in Act II with perfume in Act V?**
25
 
26
- A dataset for recovering recurring literary motifs from *Macbeth*, using associations extracted from published criticism. Accompanies **Critic’s Eye**, accepted to **Findings of EMNLP 2026**.
27
 
28
- [Quick start](#quick-start) · [Data and fields](#what-is-in-this-repository) · [Paper and citation](#paper-and-citation) · [Code](https://github.com/Acture/critics-eye)
 
29
 
30
- ## Different images. A recurring idea.
 
31
 
32
- <img src="assets/ocean-perfume.png" alt="An ocean streaked with red and an ornate perfume bottle: two different images connected by the attempt to cleanse a bloody hand." width="760" />
33
 
34
- | Macbeth · Act II | Lady Macbeth · Act V |
35
- | --- | --- |
36
- | “Will all great Neptune’s **ocean wash this blood** / Clean from my hand?” | “the **perfumes of Arabia will not sweeten** this little hand.” |
37
- | Water cannot wash it away. | Perfume cannot cover it up. |
38
 
39
- Both passages return to **cleansing that fails**: a way of expressing guilt that cannot be erased. The imagery, speaker and scene change; the underlying connection remains. A **motif** is an element that recurs with variation across a work.
 
 
40
 
41
- Finding the passages is only part of the problem. A model must also connect what they mean. This is the long-range reasoning challenge that motivates MotifBench: a large context window gives access to distant text, but does not by itself establish those connections.
 
42
 
43
- *This is an illustrative reading, not a scored model prediction or a labeled pair in this export. Read the passages in Folger’s [Act 2, scene 2](https://www.folger.edu/explore/shakespeares-works/macbeth/read/2/2/) and [Act 5, scene 1](https://www.folger.edu/explore/shakespeares-works/macbeth/read/5/1/).*
 
 
44
 
45
- ## What does a model predict?
 
 
 
 
 
46
 
47
- The paper’s **motif recovery** task asks a model to rank a fixed inventory of motifs for a given line. The target is an association recorded in literary criticism.
 
48
 
49
- | Input | Output | Reference |
50
- | --- | --- | --- |
51
- | A query line and a candidate motif inventory, with the context allowed by the evaluation setting | A ranked list of motifs | Recorded line–motif associations |
52
 
53
- The benchmark uses criticism because the target is interpretive: critics have already connected passages and named recurring elements in published work. The extraction pipeline locates these assertions and resolves their references to the play. The bibliography contains **26 sources**; the dated entries range from **1765 to 2020**.
 
 
 
54
 
55
- These are **recorded positive associations, not exhaustive labels**. A missing association does not establish that an interpretation is wrong. Extraction, motif grouping and citation resolution can also introduce errors.
56
 
57
- ## Quick start
 
 
58
 
59
- Install `huggingface_hub` in your Python environment. While this repository is private, use `hf auth login` with an account that has access.
60
 
61
  ```python
62
- import json
63
-
64
  from huggingface_hub import hf_hub_download
65
 
66
- path: str = hf_hub_download(
67
- repo_id="Acture/MotifBench",
68
- filename="macbeth/macbeth.jsonl",
69
- repo_type="dataset",
70
- )
71
- with open(path, encoding="utf-8") as stream:
72
- rows: list[dict[str, str | None]] = [json.loads(line) for line in stream]
73
-
74
- line_rows: list[dict[str, str | None]] = [
75
- row for row in rows if row["node_type"] == "line"
76
- ]
77
- print(f"{len(rows)} associations; {len(line_rows)} line associations")
78
- print(line_rows[0])
79
  ```
80
 
81
- The current file prints `645 associations; 585 line associations`. Multiple rows can refer to the same line, so **rows are not independent query lines**. Pin `revision` to a Hub commit when recording experiments.
82
-
83
- ## What is in this repository?
84
-
85
- This Hub snapshot is a **flattened association export**. It contains the following files:
86
-
87
- | File | Contents |
88
- | --- | --- |
89
- | [macbeth/macbeth.jsonl](macbeth/macbeth.jsonl) | Narrative-node–motif associations, with text for line nodes |
90
- | [macbeth/criticism_sources.csv](macbeth/criticism_sources.csv) | Source bibliography, publication information, access links and public-domain status as recorded in the release |
91
- | [LICENSE](LICENSE) | CC BY-NC 4.0 license |
92
-
93
- Counts below were computed directly from the data at revision `fa060c5ad43ea3fdccb7cb6ad02a7bc85fa20c70`. The September 2026 card update leaves those data files unchanged.
94
-
95
- | `node_type` | Association rows | Distinct source nodes |
96
- | --- | ---: | ---: |
97
- | `line` | 585 | 314 |
98
- | `scene` | 44 | 14 |
99
- | `stage_direction` | 7 | 5 |
100
- | `theme` | 9 | 9 |
101
- | **Total** | **645** | **342** |
102
 
103
- Across all rows, **277 distinct `motif_id` values** appear. These are the motifs represented as association targets in this file, not a separately distributed full candidate inventory.
 
 
 
104
 
105
- ### Fields
 
 
106
 
107
- All fields are strings or `null`.
108
-
109
- | Field | Meaning |
110
- | --- | --- |
111
- | `node_type` | Source node type: `line`, `scene`, `stage_direction` or `theme` |
112
- | `node_id` | Source node identifier. Line IDs use Folger Through-Line Numbers, such as `ftln-1616`. |
113
- | `act_id`, `scene_id`, `section_id` | Available structural identifiers. A section denotes a speaking turn. Non-line rows have null values in these columns. |
114
- | `speaker` | Speaker identifier, where available |
115
- | `text` | Folger line text; null for non-line rows |
116
- | `motif_id` | Target motif identifier; an export ID, not a ranked position |
117
- | `motif_descriptor` | Text description associated with that motif in this export |
118
-
119
- ### An actual row
120
-
121
- This record associates a line describing Banquo’s ghost with a motif descriptor. Macbeth is the **speaker**; Banquo is the person described.
122
-
123
- ```json
124
- {
125
- "node_type": "line",
126
- "node_id": "ftln-1616",
127
- "act_id": "act_4",
128
- "scene_id": "act_4_scene_1",
129
- "section_id": "sp-1605",
130
- "speaker": "Macbeth_Mac",
131
- "text": "For the blood-boltered Banquo smiles upon me",
132
- "motif_id": "motif_74",
133
- "motif_descriptor": "the ghost’s appearance described as ‘blood���baltered’ (4.1.138)"
134
- }
135
- ```
136
 
137
- The descriptor is shown exactly as stored. It is not a model prediction.
138
-
139
- ## Using the data for evaluation
140
-
141
- **This export is not a complete reproduction package for the EMNLP evaluation.** The paper’s frozen evaluation uses a 281-motif inventory and 351 membership annotations over 283 query lines. The Hub file above has a different population and does not preserve the relation types needed to isolate that membership set.
142
-
143
- The file also does not include the full narrative graph, evaluation fold assignments, per-association source citations, or a separate complete motif inventory. `criticism_sources.csv` is a bibliography, not a row-level provenance table. The Hub’s `train` split name is a loading convention for the single file; it does not define the paper’s training partition.
144
-
145
- For exploratory work with this export:
146
-
147
- - Filter to `node_type == "line"` for line-level analyses, and group associations by `node_id` before defining queries.
148
- - Keep all associations for the same query line together when constructing a split.
149
- - Record the data revision, candidate inventory, split, available context and scoring rule. Results under a new protocol should be identified as such.
150
- - Interpret unrecorded associations as unobserved, rather than automatically false.
151
-
152
- The released text covers the associated lines, not the complete play. Consult the [Folger edition](https://www.folger.edu/explore/shakespeares-works/macbeth/read/) when full narrative context is needed.
153
-
154
- ## Text, sources and license
155
-
156
- The dataset is licensed **CC BY-NC 4.0**; see [LICENSE](LICENSE).
157
-
158
- Line text comes from the Folger Shakespeare Library’s digital edition of *Macbeth*, edited by Barbara A. Mowat and Paul Werstine, with encoding by Michael Poston and Rebecca Niles. The source edition is licensed **CC BY-NC 3.0**. Preserve this attribution when reusing the text.
159
-
160
- The repository supplies bibliographic metadata and available access links for the criticism sources. It does not host their full texts or PDFs. The `public_domain` column records the release’s source classification; one entry is `unclear`.
161
-
162
- The opening illustration is reused from the authors’ EMNLP poster. It is explanatory artwork, not experimental evidence; see [asset provenance](assets/README.md).
163
-
164
- ## Paper and citation
165
-
166
- **Critic’s Eye: Review-Grounded Graph Reasoning for Long-Form Motif Discovery**
167
- Xinyu Sun · Zhangyue Yin · Xin Wang · Fudan University
168
- Accepted to Findings of EMNLP 2026 · Paper 1836-FIND
169
 
170
  ```bibtex
171
  @inproceedings{sun2026criticseye,
@@ -176,4 +103,6 @@ Accepted to Findings of EMNLP 2026 · Paper 1836-FIND
176
  }
177
  ```
178
 
179
- Contact: [sunxy23@m.fudan.edu.cn](mailto:sunxy23@m.fudan.edu.cn).
 
 
 
1
  ---
2
  license: cc-by-nc-4.0
3
  language:
4
+ - en
5
  tags:
6
+ - long-context
7
+ - llm-evaluation
8
+ - graph-neural-networks
9
+ - reasoning
10
+ pretty_name: MotifBench
 
11
  size_categories:
12
+ - 1K<n<10K
13
  configs:
14
+ - config_name: macbeth
15
+ data_files: macbeth/macbeth.jsonl
16
+ default: true
 
 
17
  ---
18
 
19
  # MotifBench
20
 
21
+ [![Critic’s Eye — EMNLP 2026 poster](assets/EMNLP%202026_Find-1836.png)](https://huggingface.co/datasets/Acture/MotifBench/resolve/main/assets/EMNLP%202026_Find-1836.pdf)
22
 
23
+ [Open the full-resolution poster (PDF)](https://huggingface.co/datasets/Acture/MotifBench/resolve/main/assets/EMNLP%202026_Find-1836.pdf)
24
 
25
+ **A benchmark for whether models can assemble meaning that no single passage
26
+ states — not just retrieve it.**
27
 
28
+ [![Code](https://img.shields.io/badge/code-critics--eye-blue)](https://github.com/Acture/critics-eye)
29
+ [![License](https://img.shields.io/badge/license-CC%20BY--NC%204.0-lightgrey)](LICENSE)
30
 
31
+ ## Why this benchmark
32
 
33
+ Long-context benchmarks test **locating**: the answer sits somewhere in the
34
+ input, and the task is to find it. Needle-in-a-haystack, multi-hop QA,
35
+ book-length summarization — in all of them, retrieval eventually wins.
 
36
 
37
+ MotifBench tests something retrieval cannot do. A **motif** is a recurring
38
+ salient thematic element a work returns to — blood in *Macbeth*, surfacing
39
+ in lines that share no vocabulary:
40
 
41
+ > "the multitudinous seas incarnadine" (2.2) · "Out, damned spot!" (5.1) ·
42
+ > "all the perfumes of Arabia" (5.1)
43
 
44
+ None of these lines contains the word *blood*. No line states the motif —
45
+ it exists only across them. Recovering it means noticing that scattered,
46
+ dissimilar passages belong together: **assembly, not search**.
47
 
48
+ The labels are not ours to invent. An interpretive target has no annotator
49
+ we could trust more than the alternative, so MotifBench draws its ground
50
+ truth from published literary criticism (1765–2020) — critics who named
51
+ these motifs, in print, long before any benchmark existed. A language model
52
+ is used only to *locate* where a critic asserts a link and resolve the
53
+ citation; nothing enters the benchmark on the model's word.
54
 
55
+ Paper: *Critic's Eye: Review-Grounded Graph Reasoning for Long-Form Motif
56
+ Discovery* (EMNLP 2026). Code: <https://github.com/Acture/critics-eye>.
57
 
58
+ ## Dataset structure (`macbeth/`)
 
 
59
 
60
+ | file | contents |
61
+ |---|---|
62
+ | `macbeth.jsonl` | One row per (narrative node, motif) association: `node_type`, `node_id`, `act_id`, `scene_id`, `section_id`, `speaker`, `text`, `motif_id`, `motif_descriptor`. `node_type` is `line`, `scene`, or `stage_direction`; `node_id` for a line is the Folger Through-Line-Number (FTLN), e.g. `ftln-0001`. `text` holds the Folger line text for `line` rows and is `null` for `scene`/`stage_direction` rows. |
63
+ | `criticism_sources.csv` | The 26 criticism works this benchmark draws on: author, year, title, venue, public-domain status, access URL/DOI. |
64
 
65
+ ### Example row
66
 
67
+ ```json
68
+ {"node_type": "line", "node_id": "ftln-0004", "act_id": "act_1", "scene_id": "act_1_scene_1", "section_id": "sp-0003", "speaker": "WITCHES.2_Mac", "text": "When the battle’s lost and won.", "motif_id": "motif_23", "motif_descriptor": "lady macbeth's line \"wouldst not play false, / and yet wouldst wrongly win\""}
69
+ ```
70
 
71
+ ## Usage
72
 
73
  ```python
74
+ import pandas as pd
 
75
  from huggingface_hub import hf_hub_download
76
 
77
+ path = hf_hub_download(repo_id="Acture/MotifBench", filename="macbeth/macbeth.jsonl", repo_type="dataset")
78
+ df = pd.read_json(path, lines=True)
79
+ print(df[["node_id", "text", "motif_id", "motif_descriptor"]].head())
 
 
 
 
 
 
 
 
 
 
80
  ```
81
 
82
+ ## Text and copyright
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
 
84
+ `text` on `line` rows is from the Folger Shakespeare Library's digital
85
+ edition of *Macbeth* (Barbara A. Mowat and Paul Werstine, eds.; encoded by
86
+ Michael Poston and Rebecca Niles; <https://www.folgerdigitaltexts.org>),
87
+ licensed CC BY-NC 3.0.
88
 
89
+ Of the 26 criticism works, public-domain ones (pre-1922) are pointed to in
90
+ full (mostly via Project Gutenberg); copyrighted ones are referenced by
91
+ metadata only — see `criticism_sources.csv`.
92
 
93
+ ## Citation
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
 
95
+ Provisional BibTeX; the final ACL Anthology entry is pending.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
96
 
97
  ```bibtex
98
  @inproceedings{sun2026criticseye,
 
103
  }
104
  ```
105
 
106
+ ## License
107
+
108
+ CC BY-NC 4.0 — see `LICENSE`.
assets/EMNLP 2026_Find-1836.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a6e011f0c2fe265177497bd5e2635bed43f6bc5c55f594eecbed5fde13cd67c6
3
+ size 16296493
assets/{ocean-perfume.png → EMNLP 2026_Find-1836.png} RENAMED
File without changes
assets/README.md DELETED
@@ -1,7 +0,0 @@
1
- # Illustration provenance
2
-
3
- `ocean-perfume.png` is an unchanged copy of the authors’ EMNLP poster asset `acl/poster/assets/motif_objects_transparent_v17.png` in the Critic’s Eye paper repository.
4
-
5
- The artwork was generated with OpenAI image generation and subsequently edited with the same tool to remove its background. It depicts an ocean and a perfume bottle as an illustration of the Macbeth reading described in the dataset card. It is not a historical image, a source-document scan, a benchmark annotation, or a measured model response.
6
-
7
- The original resolution is 1774 × 887 pixels, with an alpha channel. No new image generation or image editing was performed for this card update.