Datasets:
Formats:
parquet
Languages:
English
Size:
10K - 100K
ArXiv:
Tags:
dialogue
hallucination
procedural-hallucination
task-oriented-dialogue
conversational-agents
llm-evaluation
License:
fork_turn -> fork_assistant_turn (1-based, assistant turns) + fork_turn_index (0-based, in turns)
Browse files- README.md +6 -5
- data/test-00000-of-00008.parquet +2 -2
- data/test-00001-of-00008.parquet +2 -2
- data/test-00002-of-00008.parquet +2 -2
- data/test-00003-of-00008.parquet +2 -2
- data/test-00004-of-00008.parquet +2 -2
- data/test-00005-of-00008.parquet +2 -2
- data/test-00006-of-00008.parquet +2 -2
- data/test-00007-of-00008.parquet +2 -2
README.md
CHANGED
|
@@ -77,7 +77,7 @@ Each conformant dialogue is forked at **four** evenly spaced points (*k* = 1, 2,
|
|
| 77 |
<p align="center"><img src="https://huggingface.co/datasets/DialFork/dialfork/resolve/main/assets/forking.png" width="60%" alt="A conformant dialogue forked at four positions: the earlier the fork, the less similar to the original"></p>
|
| 78 |
|
| 79 |
- **`fork_position`** (*k*): an earlier fork leaves less of the conversation conformant, so *k* = 1 > 2 > 3 > 4 is a built-in ranking of deviation;
|
| 80 |
-
- **`
|
| 81 |
|
| 82 |
## 🧭 Four ways to go off-track
|
| 83 |
|
|
@@ -145,7 +145,7 @@ The labels come from the construction, so we checked that people see the same th
|
|
| 145 |
|
| 146 |
- **Fork order is perceived.** Blind ratings rise with *k*: Kendall τ<sub>b</sub> = 0.64 within annotators (WIC, SSPC, GR).
|
| 147 |
- **The injected behaviour is there.** Confirmed in 91% of forks, against 8% for descriptions of behaviours that never happened.
|
| 148 |
-
- **It starts where intended.** 77% of the annotated onsets are within one turn of `
|
| 149 |
- **The replayed beginning is clean.** 95% of the parts before the fork follow the workflow.
|
| 150 |
|
| 151 |
The anonymized judgments and the annotation tool are released [on GitHub](https://github.com/idiap/dialfork/blob/main/docs/human_study.md).
|
|
@@ -158,7 +158,7 @@ from datasets import load_dataset
|
|
| 158 |
ds = load_dataset("DialFork/dialfork", split="test") # 36,278 rows, one per dialogue
|
| 159 |
|
| 160 |
row = ds.filter(lambda r: r["id"] == "2115-GR-k2")[0]
|
| 161 |
-
print(row["hallucination_type"], row["fork_position"], row["
|
| 162 |
for turn in row["turns"][:4]:
|
| 163 |
print(f'{turn["speaker"]:>6}: {turn["text"]}')
|
| 164 |
```
|
|
@@ -188,12 +188,13 @@ python scripts/download_data.py # -> datasets/dialfork/ (+ datasets/STAR/)
|
|
| 188 |
| `hallucination_type`, `hallucination_type_short` | string | e.g. `goal_replacement` / `GR`; empty for conformant dialogues |
|
| 189 |
| `variant_id` | string | the instruction that was injected (e.g. `goal_collect_feedback`) |
|
| 190 |
| `fork_position` | int | *k* in 1..4 (1 = earliest fork, most deviant); empty for conformant dialogues |
|
| 191 |
-
| `
|
|
|
|
| 192 |
| `num_turns` | int | number of turns (both speakers) |
|
| 193 |
| `turns` | list | the conversation: `[{speaker, text}, ...]` |
|
| 194 |
| `dialog_json` | string | the complete original file: personas, generation settings and seed, the full event trace (injected instruction included), and the task's workflow |
|
| 195 |
|
| 196 |
-
A single `test` split: DialFork is an evaluation benchmark. Methods may use the conformant dialogues as reference data, but should never train on or tune with the labels (`fork_position`, `
|
| 197 |
|
| 198 |
## 🎯 The benchmark
|
| 199 |
|
|
|
|
| 77 |
<p align="center"><img src="https://huggingface.co/datasets/DialFork/dialfork/resolve/main/assets/forking.png" width="60%" alt="A conformant dialogue forked at four positions: the earlier the fork, the less similar to the original"></p>
|
| 78 |
|
| 79 |
- **`fork_position`** (*k*): an earlier fork leaves less of the conversation conformant, so *k* = 1 > 2 > 3 > 4 is a built-in ranking of deviation;
|
| 80 |
+
- **`fork_assistant_turn`** (*t<sub>k</sub>*): the assistant turn where the deviation starts, counting assistant turns only; `fork_turn_index` gives the same turn as a position in `turns`.
|
| 81 |
|
| 82 |
## 🧭 Four ways to go off-track
|
| 83 |
|
|
|
|
| 145 |
|
| 146 |
- **Fork order is perceived.** Blind ratings rise with *k*: Kendall τ<sub>b</sub> = 0.64 within annotators (WIC, SSPC, GR).
|
| 147 |
- **The injected behaviour is there.** Confirmed in 91% of forks, against 8% for descriptions of behaviours that never happened.
|
| 148 |
+
- **It starts where intended.** 77% of the annotated onsets are within one turn of `fork_assistant_turn`.
|
| 149 |
- **The replayed beginning is clean.** 95% of the parts before the fork follow the workflow.
|
| 150 |
|
| 151 |
The anonymized judgments and the annotation tool are released [on GitHub](https://github.com/idiap/dialfork/blob/main/docs/human_study.md).
|
|
|
|
| 158 |
ds = load_dataset("DialFork/dialfork", split="test") # 36,278 rows, one per dialogue
|
| 159 |
|
| 160 |
row = ds.filter(lambda r: r["id"] == "2115-GR-k2")[0]
|
| 161 |
+
print(row["hallucination_type"], row["fork_position"], row["fork_assistant_turn"]) # goal_replacement 2 2
|
| 162 |
for turn in row["turns"][:4]:
|
| 163 |
print(f'{turn["speaker"]:>6}: {turn["text"]}')
|
| 164 |
```
|
|
|
|
| 188 |
| `hallucination_type`, `hallucination_type_short` | string | e.g. `goal_replacement` / `GR`; empty for conformant dialogues |
|
| 189 |
| `variant_id` | string | the instruction that was injected (e.g. `goal_collect_feedback`) |
|
| 190 |
| `fork_position` | int | *k* in 1..4 (1 = earliest fork, most deviant); empty for conformant dialogues |
|
| 191 |
+
| `fork_assistant_turn` | int | *t<sub>k</sub>*: the 1-based **assistant** turn the deviation starts at (counting assistant turns only); what Task 3 predicts |
|
| 192 |
+
| `fork_turn_index` | int | the same turn as a 0-based position in `turns` (both speakers): `turns[:fork_turn_index]` is the part before the fork |
|
| 193 |
| `num_turns` | int | number of turns (both speakers) |
|
| 194 |
| `turns` | list | the conversation: `[{speaker, text}, ...]` |
|
| 195 |
| `dialog_json` | string | the complete original file: personas, generation settings and seed, the full event trace (injected instruction included), and the task's workflow |
|
| 196 |
|
| 197 |
+
A single `test` split: DialFork is an evaluation benchmark. Methods may use the conformant dialogues as reference data, but should never train on or tune with the labels (`fork_position`, `fork_assistant_turn`, `fork_turn_index`, `hallucination_type`).
|
| 198 |
|
| 199 |
## 🎯 The benchmark
|
| 200 |
|
data/test-00000-of-00008.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c828711d8418bcb3ec5fb816d33ecf6bb901d5f468b2396a067220b0939c9b17
|
| 3 |
+
size 4170331
|
data/test-00001-of-00008.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f5b88dbcb050bdda3d03232a8cc4de9366f8ed0d0baaaffded8eb63625a49489
|
| 3 |
+
size 3558178
|
data/test-00002-of-00008.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0d8108ff61e9257ffec8258ae21bba281ececfad4610b2a825d912997846581e
|
| 3 |
+
size 3228845
|
data/test-00003-of-00008.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a5e82512b9d95a317000a32efd90a77c6518454c766698961d8277f549c32b99
|
| 3 |
+
size 4396416
|
data/test-00004-of-00008.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f6172cecdbf9e2790d44b45deec6c4342790710cd4f6822856d7d257e62305fa
|
| 3 |
+
size 3481806
|
data/test-00005-of-00008.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f576535a66914fe7ad59f5d61c95157d92ed705ecd895993c7a83473002188e6
|
| 3 |
+
size 3689840
|
data/test-00006-of-00008.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:30c05fbdfda06668b8c22809e040a8060710f315483b7bd47a17c630d11418ea
|
| 3 |
+
size 5253271
|
data/test-00007-of-00008.parquet
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0e77c0a4ea3a99fd5dad05293f5732c9c43ad574591fcfeb617c8554115bb970
|
| 3 |
+
size 4672794
|