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

docs: build illustrated research README from separate poster figures

Browse files
README.md CHANGED
@@ -1,98 +1,124 @@
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,6 +129,4 @@ Provisional BibTeX; the final ACL Anthology entry is pending.
103
  }
104
  ```
105
 
106
- ## License
107
-
108
- CC BY-NC 4.0 — see `LICENSE`.
 
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
+ - n<1K
13
  configs:
14
+ - config_name: macbeth
15
+ data_files: macbeth/macbeth.jsonl
16
+ default: true
17
  ---
18
 
19
+ <h1 align="center">Critic’s Eye</h1>
20
+ <h3 align="center">Review-Grounded Graph Reasoning for Long-Form Motif Discovery</h3>
21
+ <p align="center">Xinyu Sun · Zhangyue Yin · Xin Wang<br/>Fudan University · EMNLP 2026</p>
22
+ <p align="center">
23
+ <a href="https://github.com/Acture/critics-eye">Code</a> ·
24
+ <a href="#use-motifbench">Dataset</a> ·
25
+ <a href="https://huggingface.co/datasets/Acture/MotifBench/resolve/main/assets/EMNLP%202026_Find-1836.pdf">Poster</a> ·
26
+ <a href="#citation">Citation</a>
27
+ </p>
28
 
29
+ ## Can LLMs connect distant descriptions and make sense of them?
30
 
31
+ A **motif** is an element that recurs with variation across scenes. In *Macbeth*, an ocean and a perfume bottle evoke the same problem: guilt that cannot be erased. Recognizing the connection means bringing distant passages together despite their different imagery.
32
 
33
+ [![The poster’s ocean-and-perfume example: different acts, speakers and imagery return to failed cleansing.](assets/motif-example.png)](https://huggingface.co/datasets/Acture/MotifBench/resolve/main/assets/motif-example.png)
 
34
 
35
+ *An illustrative reading, not a scored model response.*
 
36
 
37
+ **MotifBench** turns this challenge into a task: given a line, rank a fixed inventory of motifs. **Critic’s Eye** learns from the play’s narrative structure to recover associations recorded in literary criticism.
38
 
39
+ ## Let critics supply the connections
 
 
40
 
41
+ The paper draws on **26 published works of criticism**. Their cited passages yield **351 line–motif membership links** over **283 query lines**, with **281 candidate motifs**. For a query line, Hit@5 asks whether a motif identified by critics appears among the first five choices.
 
 
42
 
43
+ Here is one recorded connection: Susan Sachon’s discussion points to *Macbeth* 4.1.138, associated with **Blood-Stained Ghost**. Macbeth speaks the line; Banquo is the person it describes.
 
44
 
45
+ [![Susan Sachon’s published criticism points to “For the blood-boltered Banquo smiles upon me”, associated with Blood-Stained Ghost.](assets/critic-evidence.png)](https://huggingface.co/datasets/Acture/MotifBench/resolve/main/assets/critic-evidence.png)
 
 
46
 
47
+ Critics record interpretations, not every possible reading. **Missing does not mean wrong.**
 
 
 
 
 
48
 
49
+ ## Connect lines through the play’s structure
 
50
 
51
+ Lines belong to speaking turns, follow other lines, and are spoken by characters. These relations connect the text across the play. The diagram keeps the words and speakers visible so that the structure can be read directly.
52
 
53
+ [![Three scene groups from the poster: Macbeth’s bloodied hands, Banquo’s ghost, and Lady Macbeth’s sleepwalking. Lines are grouped by speaking turn and linked to speakers.](assets/narrative-structure.png)](https://huggingface.co/datasets/Acture/MotifBench/resolve/main/assets/narrative-structure.png)
 
 
 
54
 
55
+ Critic’s Eye first learns structural relations, then learns recorded line–motif links, and finally scores the candidate motifs for a query line.
56
 
57
+ [![The poster’s three learning stages: learn narrative structure, learn recorded motif links, then rank motifs.](assets/learning-motif-links.png)](https://huggingface.co/datasets/Acture/MotifBench/resolve/main/assets/learning-motif-links.png)
58
+
59
+ ## What did we find?
60
+
61
+ **LLMs struggle to recover recorded motifs.** The best tested LLM configuration reaches **22.6% Hit@5**; adding three retrieved lines helps some models and hurts others. In a separate motif-supervised setting, the graph configurations show that narrative structure carries useful signal.
62
+
63
+ [![Poster results. Left: LLM motif recovery with and without retrieval. Right: separate supervised graph configurations using speaker, speaking-turn and next-line relations.](assets/results.png)](https://huggingface.co/datasets/Acture/MotifBench/resolve/main/assets/results.png)
64
+
65
+ The two panels use different training and scoring settings. The LLM evaluation supplies a target line and the motif inventory, optionally with three retrieved lines, and scores one recorded motif per query. The graph panel reports transductive, frozen-encoder configurations trained with critic labels and credits any recorded motif. These are separate experimental findings, not a matched comparison of adding a graph to an LLM.
66
 
67
+ ## Use MotifBench
68
+
69
+ The `macbeth` configuration contains a flattened export of narrative-node–motif associations, with Folger line text and structural identifiers. Use an account with access while the repository is private.
70
 
71
  ```python
72
+ import json
73
+
74
  from huggingface_hub import hf_hub_download
75
 
76
+ path: str = hf_hub_download(
77
+ repo_id="Acture/MotifBench",
78
+ filename="macbeth/macbeth.jsonl",
79
+ repo_type="dataset",
80
+ )
81
+ with open(path, encoding="utf-8") as stream:
82
+ rows: list[dict[str, str | None]] = [json.loads(line) for line in stream]
83
+
84
+ line_rows: list[dict[str, str | None]] = [
85
+ row for row in rows if row["node_type"] == "line"
86
+ ]
87
+ print(line_rows[0])
88
  ```
89
 
90
+ Install `huggingface_hub` and authenticate with `hf auth login` if needed. Pin `revision` to a Hub commit when recording experiments.
91
+
92
+ <details>
93
+ <summary><b>Files, fields and data version</b></summary>
94
+
95
+ | File | Contents |
96
+ | --- | --- |
97
+ | [macbeth/macbeth.jsonl](macbeth/macbeth.jsonl) | 645 associations: 585 line, 44 scene, 7 stage-direction and 9 theme rows |
98
+ | [macbeth/criticism_sources.csv](macbeth/criticism_sources.csv) | Bibliographic metadata and available access links for 26 criticism sources |
99
 
100
+ The JSONL contains 314 distinct line nodes and 277 distinct target motif IDs. Its fields are `node_type`, `node_id`, `act_id`, `scene_id`, `section_id`, `speaker`, `text`, `motif_id` and `motif_descriptor`. All values are strings or null. Line identifiers use Folger Through-Line Numbers, such as `ftln-1616`; non-line rows have null text and structural-context fields.
 
 
 
101
 
102
+ The data files are unchanged from revision `fa060c5ad43ea3fdccb7cb6ad02a7bc85fa20c70`. Their population differs from the frozen paper evaluation described above. This flattened export does not include relation types, the complete candidate inventory, narrative graph, evaluation folds or per-association source citations. It should not be treated as the complete reproduction package for the reported scores.
103
+
104
+ Multiple associations can share a query line. Group by `node_id` before defining queries, and keep a line’s associations together when constructing a split. The single Hub `train` split is a loading convention, not the paper’s training partition.
105
+
106
+ </details>
107
+
108
+ <details>
109
+ <summary><b>Text, illustration sources and license</b></summary>
110
+
111
+ The dataset is released under [CC BY-NC 4.0](LICENSE). 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, licensed CC BY-NC 3.0. See the [Folger edition](https://www.folger.edu/explore/shakespeares-works/macbeth/read/).
112
+
113
+ The source bibliography provides metadata and available access links. Full criticism texts and PDFs are not part of the data export. The criticism figure reproduces the attributed excerpt already shown in the conference poster.
114
+
115
+ Figures on this page are individually rendered from the authors’ final poster: the explanatory illustrations, source example, narrative diagram, learning stages and results retain their original roles. Illustrative passages and ranking placeholders are not model predictions. See [figure provenance](assets/README.md).
116
+
117
+ </details>
118
 
119
  ## Citation
120
 
121
+ Provisional BibTeX; replace with the final ACL Anthology entry when available.
122
 
123
  ```bibtex
124
  @inproceedings{sun2026criticseye,
 
129
  }
130
  ```
131
 
132
+ Contact: [sunxy23@m.fudan.edu.cn](mailto:sunxy23@m.fudan.edu.cn).
 
 
assets/README.md ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Figure provenance
2
+
3
+ These panels are rendered individually from the final V22 HTML poster in the authors’ [paper repository](https://github.com/Acture/Critic-s-Eye-Paper/tree/d2250009573ba563c43a7170f423746537ef59eb/acl/poster), using the existing fonts, illustrations, diagrams and charts. The README assembles the separate panels in reading order; it does not embed the full poster as its main content.
4
+
5
+ | File | Poster elements |
6
+ | --- | --- |
7
+ | `motif-example.png` | `.story-gallery`: ocean/perfume example and reasoning hurdles |
8
+ | `critic-evidence.png` | `.record-gallery`: attributed Sachon source example, reflowed horizontally |
9
+ | `narrative-structure.png` | `.structure-figure`: scene groups, speaking turns, speakers and line relations |
10
+ | `learning-motif-links.png` | `.learning-flow`: structural learning, recorded motif links and ranking |
11
+ | `results.png` | `.llm-result` and `.graph-result`: original charts and protocol captions, placed side by side |
12
+
13
+ Only presentation geometry and figure-level spacing are adapted for the README. All results and chart marks come from the poster. The LLM and supervised graph panels describe separate experimental settings. The ocean/perfume reading, character illustrations and ranking placeholders are illustrative, not scored predictions.
14
+
15
+ The fictional character and object artwork was created with OpenAI image generation for the poster. Native SVG diagrams and charts are source-authored. The source page and excerpt in the criticism panel come from Susan Sachon (2020), *Shakespeare, Objects and Phenomenology*, printed page 86, and retain the poster’s attribution. They are source evidence, not generated text.
16
+
17
+ The existing full poster PDF remains available through the README’s Poster link.
assets/{EMNLP 2026_Find-1836.png → critic-evidence.png} RENAMED
File without changes
assets/learning-motif-links.png ADDED

Git LFS Details

  • SHA256: f711e9777918121ae4189e2b7e3b5481ce7463f9fd34b1966d880c2928ed50df
  • Pointer size: 131 Bytes
  • Size of remote file: 103 kB
assets/motif-example.png ADDED

Git LFS Details

  • SHA256: fc12e8a080263720cfc4b9e7266d5524747ce9627e7f3b7cdf7dd43472bad113
  • Pointer size: 131 Bytes
  • Size of remote file: 393 kB
assets/narrative-structure.png ADDED

Git LFS Details

  • SHA256: 0b794d68a2b8357d89165866f18259f63b586d631b11cc6655b112c65376e29e
  • Pointer size: 131 Bytes
  • Size of remote file: 392 kB
assets/results.png ADDED

Git LFS Details

  • SHA256: 7164e958ae9d843b15a85ca500772725fec403d79069c302cb47f3ffa6c42b49
  • Pointer size: 131 Bytes
  • Size of remote file: 139 kB