Datasets:
First version of 2D-ATOMS dataset
Browse files- .gitattributes +10 -0
- 2D-ATOMS.py +55 -0
- README.md +23 -0
- overview_hf.png +3 -0
- task0_action_understanding.json +3 -0
- task1_short_term_intention.json +3 -0
- task2_long_term_intention.json +3 -0
- task3_desire.json +3 -0
- task4_perception.json +3 -0
- task5_first_order_belief.json +3 -0
- task6_second_order_belief.json +3 -0
- task7_non_literal_communication.json +3 -0
- task8_knowledge.json +3 -0
- task9_emotions.json +3 -0
.gitattributes
CHANGED
@@ -53,3 +53,13 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
53 |
*.jpg filter=lfs diff=lfs merge=lfs -text
|
54 |
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
55 |
*.webp filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
*.jpg filter=lfs diff=lfs merge=lfs -text
|
54 |
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
55 |
*.webp filter=lfs diff=lfs merge=lfs -text
|
56 |
+
task1_short_term_intention.json filter=lfs diff=lfs merge=lfs -text
|
57 |
+
task2_long_term_intention.json filter=lfs diff=lfs merge=lfs -text
|
58 |
+
task4_perception.json filter=lfs diff=lfs merge=lfs -text
|
59 |
+
task5_first_order_belief.json filter=lfs diff=lfs merge=lfs -text
|
60 |
+
task9_emotions.json filter=lfs diff=lfs merge=lfs -text
|
61 |
+
task0_action_understanding.json filter=lfs diff=lfs merge=lfs -text
|
62 |
+
task3_desire.json filter=lfs diff=lfs merge=lfs -text
|
63 |
+
task6_second_order_belief.json filter=lfs diff=lfs merge=lfs -text
|
64 |
+
task7_non_literal_communication.json filter=lfs diff=lfs merge=lfs -text
|
65 |
+
task8_knowledge.json filter=lfs diff=lfs merge=lfs -text
|
2D-ATOMS.py
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import datasets
|
2 |
+
|
3 |
+
_DESCRIPTION = """\
|
4 |
+
We introduce **2D-ATOMS** dataset, a novel text-based dataset that evaluates machine's reasoning process under situated theory-of-mind setting.
|
5 |
+
|
6 |
+
Our dataset includes 9 different ToM evaluation tasks for each mental state under ATOMS[1], and 1 reality-checking task to test LLMs’ understanding of the world. It is important to acknowledge that our experiment serves as a proof of concept and does not aim to cover the entire spectrum of machine ToM, as our case studies are far from being exhaustive or systematic. Here we release the zero-shot version of our dataset, which is used in our paper.
|
7 |
+
"""
|
8 |
+
|
9 |
+
class TRIP(datasets.GeneratorBasedBuilder):
|
10 |
+
VERSION = datasets.Version("1.0.1")
|
11 |
+
|
12 |
+
def _info(self):
|
13 |
+
return datasets.DatasetInfo(
|
14 |
+
description=_DESCRIPTION,
|
15 |
+
features=datasets.Features(
|
16 |
+
{
|
17 |
+
"prompt": datasets.Value("string"),
|
18 |
+
"answer": datasets.Value("string"),
|
19 |
+
|
20 |
+
}
|
21 |
+
),
|
22 |
+
)
|
23 |
+
|
24 |
+
def _split_generators(self, dl_manager: datasets.DownloadManager):
|
25 |
+
"""Returns SplitGenerators."""
|
26 |
+
task_list = [
|
27 |
+
"task0_action_understanding",
|
28 |
+
"task1_short_term_intention",
|
29 |
+
"task2_long_term_intention",
|
30 |
+
"task3_desire",
|
31 |
+
"task4_perception",
|
32 |
+
"task5_first_order_belief",
|
33 |
+
"task6_second_order_belief",
|
34 |
+
"task7_non_literal_communication",
|
35 |
+
"task8_knowledge",
|
36 |
+
"task9_emotions"
|
37 |
+
]
|
38 |
+
data_roots = dl_manager.download_and_extract({k: f"{k}.json" for k in task_list})
|
39 |
+
return [
|
40 |
+
datasets.SplitGenerator(
|
41 |
+
name=split,
|
42 |
+
gen_kwargs={
|
43 |
+
"filepath": data_roots[split],
|
44 |
+
},
|
45 |
+
)
|
46 |
+
for split in task_list
|
47 |
+
]
|
48 |
+
|
49 |
+
def _generate_examples(self, filepath):
|
50 |
+
# load jsonl file
|
51 |
+
import json
|
52 |
+
with open(filepath) as f:
|
53 |
+
data = [json.loads(line) for line in f]
|
54 |
+
for i, example in enumerate(data):
|
55 |
+
yield i, example
|
README.md
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# 2D-ATOMS: 2D Abilities in Theory of Mind Space dataset
|
2 |
+
|
3 |
+
Official dataset for **Towards A Holistic Landscape of Situated Theory of Mind in Large Language Models**. Ziqiao Ma, Jacob Sandom, Run Peng, Joyce Chai. EMNLP Findings, 2023.
|
4 |
+
|
5 |
+
## Overview
|
6 |
+
|
7 |
+

|
8 |
+
|
9 |
+
We introduce **2D-ATOMS** dataset, a novel text-based dataset that evaluates machine's reasoning process under situated theory-of-mind setting.
|
10 |
+
|
11 |
+
Our dataset includes 9 different ToM evaluation tasks for each mental state under ATOMS[1], and 1 reality-checking task to test LLMs’ understanding of the world. It is important to acknowledge that our experiment serves as a proof of concept and does not aim to cover the entire spectrum of machine ToM, as our case studies are far from being exhaustive or systematic. Here we release the zero-shot version of our dataset, which is used in our paper.
|
12 |
+
|
13 |
+
## Download
|
14 |
+
|
15 |
+
```python
|
16 |
+
from datasets import load_dataset
|
17 |
+
dataset = load_dataset("sled-umich/2D-ATOMS")
|
18 |
+
```
|
19 |
+
|
20 |
+
## Reference
|
21 |
+
|
22 |
+
|
23 |
+
[1] C. Beaudoin, É. Leblanc, C. Gagner, and M. H. Beauchamp, ‘Systematic review and inventory of theory of mind measures for young children’, Frontiers in psychology, vol. 10, p. 2905, 2020.
|
overview_hf.png
ADDED
![]() |
Git LFS Details
|
task0_action_understanding.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5e6a769da98e9550e0e06e6acf32a203a076d38451f70aee6600539f73cfd27c
|
3 |
+
size 288435
|
task1_short_term_intention.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f615059e060847ec88dcdb7eeedad9b80932f844f9063d5a28cf063a78687dd5
|
3 |
+
size 229290
|
task2_long_term_intention.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2c04c64622de4c8b0e7614d83b643072da401d8e19433e5116011ac49bfe3ee9
|
3 |
+
size 337843
|
task3_desire.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9ecb982b1e1b09af876848211d1c4afd97df22e48927649d36db48b39a1ae9e5
|
3 |
+
size 358127
|
task4_perception.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fad90f699cf818fd364dfa0245699e17751731b1e2e3cbebb1406f0150afced3
|
3 |
+
size 414223
|
task5_first_order_belief.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ba670d0599ddaece4f1d0964c81dba64e008b32ff66b3ca6a7e4bd4df93ca07d
|
3 |
+
size 881046
|
task6_second_order_belief.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8b6fb81ec9d2e419a31c8015feb581cd9c7395cba1a48f92b773c6e4c51e4f94
|
3 |
+
size 1343110
|
task7_non_literal_communication.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b50d7ce14c2ae327d5fe987830acb93cb8bb404f4e198e690f79d90098cdcf75
|
3 |
+
size 309783
|
task8_knowledge.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:327e35d220808de3e4dd19ae2a75d6e45ee677ce8131f23d7cd1d13e38bf18af
|
3 |
+
size 571240
|
task9_emotions.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2eff77d07a558629513e0b8840cc6331f6f38140fbf467dc22052930982e1d1d
|
3 |
+
size 745243
|