ruaruaxu commited on
Commit
0794d4e
·
0 Parent(s):

Duplicate from EmbodiedCity/BasicSpatialAbility

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
.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
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
12
+ *.mds filter=lfs diff=lfs merge=lfs -text
13
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
14
+ *.model filter=lfs diff=lfs merge=lfs -text
15
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
16
+ *.npy filter=lfs diff=lfs merge=lfs -text
17
+ *.npz filter=lfs diff=lfs merge=lfs -text
18
+ *.onnx filter=lfs diff=lfs merge=lfs -text
19
+ *.ot filter=lfs diff=lfs merge=lfs -text
20
+ *.parquet filter=lfs diff=lfs merge=lfs -text
21
+ *.pb filter=lfs diff=lfs merge=lfs -text
22
+ *.pickle filter=lfs diff=lfs merge=lfs -text
23
+ *.pkl filter=lfs diff=lfs merge=lfs -text
24
+ *.pt filter=lfs diff=lfs merge=lfs -text
25
+ *.pth filter=lfs diff=lfs merge=lfs -text
26
+ *.rar filter=lfs diff=lfs merge=lfs -text
27
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
28
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
29
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
30
+ *.tar filter=lfs diff=lfs merge=lfs -text
31
+ *.tflite filter=lfs diff=lfs merge=lfs -text
32
+ *.tgz filter=lfs diff=lfs merge=lfs -text
33
+ *.wasm filter=lfs diff=lfs merge=lfs -text
34
+ *.xz filter=lfs diff=lfs merge=lfs -text
35
+ *.zip filter=lfs diff=lfs merge=lfs -text
36
+ *.zst filter=lfs diff=lfs merge=lfs -text
37
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
38
+ # Audio files - uncompressed
39
+ *.pcm filter=lfs diff=lfs merge=lfs -text
40
+ *.sam filter=lfs diff=lfs merge=lfs -text
41
+ *.raw filter=lfs diff=lfs merge=lfs -text
42
+ # Audio files - compressed
43
+ *.aac filter=lfs diff=lfs merge=lfs -text
44
+ *.flac filter=lfs diff=lfs merge=lfs -text
45
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
46
+ *.ogg filter=lfs diff=lfs merge=lfs -text
47
+ *.wav filter=lfs diff=lfs merge=lfs -text
48
+ # Image files - uncompressed
49
+ *.bmp filter=lfs diff=lfs merge=lfs -text
50
+ *.gif filter=lfs diff=lfs merge=lfs -text
51
+ *.png filter=lfs diff=lfs merge=lfs -text
52
+ *.tiff filter=lfs diff=lfs merge=lfs -text
53
+ # Image files - compressed
54
+ *.jpg filter=lfs diff=lfs merge=lfs -text
55
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
56
+ *.webp filter=lfs diff=lfs merge=lfs -text
57
+ # Video files - compressed
58
+ *.mp4 filter=lfs diff=lfs merge=lfs -text
59
+ *.webm filter=lfs diff=lfs merge=lfs -text
60
+ BSA_datasets/Spatial[[:space:]]Orientation_MRMT/MRMT.psd filter=lfs diff=lfs merge=lfs -text
61
+ BSA_datasets/Spatial[[:space:]]Relation_NCIT/NCIT_5.psd filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - visual-question-answering
5
+ language:
6
+ - en
7
+ tags:
8
+ - video
9
+ - text
10
+ - embodied
11
+ - spatial
12
+ - multimodal
13
+ size_categories:
14
+ - n<1K
15
+ ---
16
+
17
+ # [ACL'25 Main] Defining and Evaluating Visual Language Models’ Basic Spatial Abilities: A Perspective from Psychometrics
18
+ [![Published Paper](https://img.shields.io/badge/Published-ACL_Paper-red)](https://aclanthology.org/2025.acl-long.567/)
19
+ [![Arxiv](https://img.shields.io/badge/arXiv-2502.11859-darkred?logo=arxiv)](https://arxiv.org/abs/2502.11859)
20
+ [![Code](https://img.shields.io/badge/Github-Code-blue?logo=github)](https://github.com/EmbodiedCity/BasicSpatialAbility.code)
21
+ [![Dataset](https://img.shields.io/badge/Hugging_Face-Dataset-yellow?logo=huggingface)](https://huggingface.co/datasets/EmbodiedCity/BasicSpatialAbility)
22
+
23
+ > [!IMPORTANT]
24
+ > **You can find the sample testing code on GitHub!**
25
+
26
+ This dataset is a benchmark designed for evaluating Multimodal Large Language Models' Basic Spatial Abilities based on authentic Psychometric theories. It is structured specifically to support both **Zero-shot** and **Few-shot** evaluation protocols.
27
+
28
+ | Split Name | Role | Description |
29
+ | :--- | :--- | :--- |
30
+ | **`test`** | **Query Set** | Contains the actual benchmark questions (images & queries) to be evaluated. <br>⚠️ **Evaluation Only.** Do not use for training or as few-shot examples. |
31
+ | **`validation`** | **Support Set** | Contains high-quality examples intended to be used as **Few-shot Prompts (In-Context Learning)**. <br>These samples should be prepended to the test queries to demonstrate the task to the model. |
32
+
33
+ # ⚙️ Usage & Evaluation Protocol
34
+ You can load the dataset using the Hugging Face `datasets` library.
35
+
36
+ ### 1. Zero-Shot Evaluation
37
+ **Logic:** Directly evaluate the model on the `test` split without any prior examples.
38
+
39
+ ```python
40
+ from datasets import load_dataset
41
+
42
+ # Load the evaluation queries
43
+ test_dataset = load_dataset("EmbodiedCity/BasicSpatialAbility", split="test")
44
+
45
+ for sample in test_dataset:
46
+ image = sample['image']
47
+ question = sample['question']
48
+ # Model inference...
49
+ ```
50
+
51
+ ### 2. Few-Shot Evaluation
52
+ **Logic:** Use examples from the validation split as the context (demonstrations), followed by the query from the test split.
53
+ 1. Load the validation split.
54
+ 2. Format them into the prompt history.
55
+ 3. Append the target question from the test split.
56
+
57
+ ```python
58
+ from datasets import load_dataset
59
+
60
+ # 1. Load the support set (demonstrations)
61
+ support_set = load_dataset("EmbodiedCity/BasicSpatialAbility", split="validation")
62
+
63
+ # 2. Load the query set (evaluation)
64
+ test_set = load_dataset("EmbodiedCity/BasicSpatialAbility", split="test")
65
+
66
+ # Pseudo-code for prompt construction
67
+ prompt_context = []
68
+ for ex in support_set:
69
+ prompt_context.append(f"User: {ex['question']}\nAssistant: {ex['answer']}")
70
+
71
+ # 3. Evaluate on Test Set
72
+ for sample in test_set:
73
+ # Combine context + current test question
74
+ final_prompt = prompt_context + [f"User: {sample['question']}"]
75
+
76
+ # Model inference...
77
+ ```
78
+
79
+ # 🔬 Underlying Theory
80
+ The Theory of Multiple Intelligences underscores the hierarchical nature of cognitive capabilities. To advance Spatial Artificial Intelligence, we pioneer a psychometric framework defining five Basic Spatial Abilities (BSAs) in Visual Language Models (VLMs): Spatial Perception, Spatial Relation, Spatial Orientation, Mental Rotation, and Spatial Visualization. Benchmarking 13 mainstream VLMs through nine validated psychometric experiments reveals significant gaps versus humans, with three key findings: 1) VLMs mirror human hierarchies (strongest in 2D orientation, weakest in 3D rotation) with independent BSAs; 2) Many smaller models surpass larger counterparts, with Qwen leading and InternVL2 lagging; 3) Interventions like CoT and few-shot training show limits from architectural constraints, while ToT demonstrates the most effective enhancement. Identified barriers include weak geometry encoding and missing dynamic simulation. By linking Psychometrics to VLMs, we provide a comprehensive BSA evaluation benchmark, a methodological perspective for embodied AI development, and a cognitive science-informed roadmap for achieving human-like spatial intelligence.
81
+ | Type | Definition | Tests |
82
+ |:----------------------:|:---------------------------------------------------------------------------------------------------------------------:|:-----------------------:|
83
+ | Spatial Perception | The ability to perceive horizontal and vertical orientations without interference from miscellaneous information. | SVT |
84
+ | Spatial Relation | The ability of recognizing relationships between parts of an entity. | NCIT DAT:SR R-Cube-SR |
85
+ | Spatial Orientation | The ability to navigate or enter a given spatial state. | MRMT |
86
+ | Mental Rotation | The ability to mentally rotate 3D objects. | MRT PSVT:R |
87
+ | Spatial Visualization | The ability to mentally manipulate and transform 2D and 3D objects. | SBST R-Cube-Vis |****
88
+
89
+ <p align="center">
90
+ <img width="600" src="https://github.com/EmbodiedCity/BasicSpatialAbility.code/raw/main/framework.jpg">
91
+ </p>
92
+
93
+ <p align="center">
94
+ The Framework of Basic Spatial Abilities (Image sources are cited in the paper)
95
+ </p>
96
+
97
+ # Citation
98
+ If you use this project in your research, please cite the following paper:
99
+ ```bibtex
100
+ @inproceedings{xu-etal-2025-defining,
101
+ title = "Defining and Evaluating Visual Language Models' Basic Spatial Abilities: A Perspective from Psychometrics",
102
+ author = "Xu, Wenrui and
103
+ Lyu, Dalin and
104
+ Wang, Weihang and
105
+ Feng, Jie and
106
+ Gao, Chen and
107
+ Li, Yong",
108
+ booktitle = "Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)",
109
+ month = jul,
110
+ year = "2025",
111
+ address = "Vienna, Austria",
112
+ publisher = "Association for Computational Linguistics",
113
+ url = "https://aclanthology.org/2025.acl-long.567/",
114
+ doi = "10.18653/v1/2025.acl-long.567",
115
+ pages = "11571--11590",
116
+ ISBN = "979-8-89176-251-0"
117
+ }
test/DATSR_1.png ADDED

Git LFS Details

  • SHA256: 2c56b5d10c48f9f5b02ffa54d72afde307aab7c818e2dd3e06a4a089b7ec7e01
  • Pointer size: 130 Bytes
  • Size of remote file: 99.5 kB
test/DATSR_10.png ADDED

Git LFS Details

  • SHA256: d3676499aad1820466c0a975a70a669f89ee4b931693b8a203bc7c2f438b757e
  • Pointer size: 130 Bytes
  • Size of remote file: 75.1 kB
test/DATSR_11.png ADDED

Git LFS Details

  • SHA256: 63db538177b001c7046e34159a44e610eecacb38d7df4acdd1319be896349291
  • Pointer size: 131 Bytes
  • Size of remote file: 106 kB
test/DATSR_12.png ADDED

Git LFS Details

  • SHA256: 00aff98b10cc33ad11e518652f512be0784f48838a25504f9097fd067944de06
  • Pointer size: 131 Bytes
  • Size of remote file: 109 kB
test/DATSR_13.png ADDED

Git LFS Details

  • SHA256: 6c9768d8af52aca075d6df128d0094ebe6adfa9a005be380ea6cbe2f1356bf10
  • Pointer size: 130 Bytes
  • Size of remote file: 77.7 kB
test/DATSR_14.png ADDED

Git LFS Details

  • SHA256: 8a7a4c5a32ebbcef71a073dddc75a4ab58e6af44f2c098cb45bac0386dc469f7
  • Pointer size: 131 Bytes
  • Size of remote file: 103 kB
test/DATSR_15.png ADDED

Git LFS Details

  • SHA256: e968572212809976278b096e31eb7525f13b7e64fa285bd5ab53c834689bdf3f
  • Pointer size: 130 Bytes
  • Size of remote file: 92.1 kB
test/DATSR_16.png ADDED

Git LFS Details

  • SHA256: 320ef4c034ce8cd40f6f060e3eae8ec80aa2d3bca8ae4ae23d6c163ba982b626
  • Pointer size: 131 Bytes
  • Size of remote file: 100 kB
test/DATSR_17.png ADDED

Git LFS Details

  • SHA256: 3c119d58c2bceea057ca11c517540b5197deaf4a41f87c0e232732a8ac27ca8f
  • Pointer size: 131 Bytes
  • Size of remote file: 120 kB
test/DATSR_18.png ADDED

Git LFS Details

  • SHA256: cd20ddb8758adf47988c0074a2906308b67d49cc1d06bbdc1cfe047f000000a3
  • Pointer size: 130 Bytes
  • Size of remote file: 73.7 kB
test/DATSR_19.png ADDED

Git LFS Details

  • SHA256: 3fa354163a0d7b4f17c97b65d5dada981b1b3ed26a882c0dbcb5243357045441
  • Pointer size: 131 Bytes
  • Size of remote file: 148 kB
test/DATSR_2.png ADDED

Git LFS Details

  • SHA256: 02bc46df9fc21d551822b4d04ecb28fd6b2fdaf0df06cf2910a1cf375810257f
  • Pointer size: 130 Bytes
  • Size of remote file: 70.9 kB
test/DATSR_20.png ADDED

Git LFS Details

  • SHA256: b0b146a2469121b120275d2807edbe6684eeefa3ab1c127402c619bf62e80a22
  • Pointer size: 130 Bytes
  • Size of remote file: 94.3 kB
test/DATSR_21.png ADDED

Git LFS Details

  • SHA256: d077523b597270acacbb25519edfd6cb87263f8545ec7c283665fb21d7cf22f9
  • Pointer size: 131 Bytes
  • Size of remote file: 110 kB
test/DATSR_22.png ADDED

Git LFS Details

  • SHA256: 6ac62f035a8dcfb5c3ea6b144035628b598138d1b4b2b9f6ea6a780c16bf37b8
  • Pointer size: 130 Bytes
  • Size of remote file: 72.4 kB
test/DATSR_23.png ADDED

Git LFS Details

  • SHA256: d0e28cf22b72b6e6591d5975f863619289e5362a7fffed0e105f6e79b975ed21
  • Pointer size: 131 Bytes
  • Size of remote file: 130 kB
test/DATSR_24.png ADDED

Git LFS Details

  • SHA256: 907e84b5de65e7bdbe92c2412ace48a85994d4d956cca4ac3a295306fec7bf12
  • Pointer size: 130 Bytes
  • Size of remote file: 87.1 kB
test/DATSR_25.png ADDED

Git LFS Details

  • SHA256: a15878881757da5212defd6b5df2053019e23abcb17bea4d29ecdd6e6d89c8e5
  • Pointer size: 130 Bytes
  • Size of remote file: 98.6 kB
test/DATSR_26.png ADDED

Git LFS Details

  • SHA256: 8d19d2f0fdc09b456e6fbfd3e59d8205ce958eb3c18b65a68d8256e944e12634
  • Pointer size: 130 Bytes
  • Size of remote file: 75.2 kB
test/DATSR_27.png ADDED

Git LFS Details

  • SHA256: c2c3cff824e7e84f58fabd8254ea25dec13c83643542ca4ecd4ab0240c9f76dc
  • Pointer size: 131 Bytes
  • Size of remote file: 110 kB
test/DATSR_28.png ADDED

Git LFS Details

  • SHA256: df98dd233a790ac4d5967fffc2ec8973dc31d643d5611d02bf39d1b6f364a96a
  • Pointer size: 130 Bytes
  • Size of remote file: 76.8 kB
test/DATSR_29.png ADDED

Git LFS Details

  • SHA256: ba057e93ec213938ad18bd3b9839505d8519bfbd3c0321b051bb8275f7aadbcf
  • Pointer size: 130 Bytes
  • Size of remote file: 75.7 kB
test/DATSR_3.png ADDED

Git LFS Details

  • SHA256: abae137613aca267d9eaa2f85350646eb363c16a39f07eb8434e93f60c7d908f
  • Pointer size: 131 Bytes
  • Size of remote file: 105 kB
test/DATSR_30.png ADDED

Git LFS Details

  • SHA256: 0b9f365c4341faba6d6dc2fbeedd9f818f84458be637d6bad4031cb5b3cf5570
  • Pointer size: 131 Bytes
  • Size of remote file: 118 kB
test/DATSR_31.png ADDED

Git LFS Details

  • SHA256: 26e525517f012924f1aef2f0453ab1b2c06c5347ca5eb2f45d74d8ab3c7bc43b
  • Pointer size: 130 Bytes
  • Size of remote file: 75.1 kB
test/DATSR_32.png ADDED

Git LFS Details

  • SHA256: 2e2ffd1c5aa31cf5e642566463b9eb76e450574e7898a17cd4431034abda17c5
  • Pointer size: 131 Bytes
  • Size of remote file: 110 kB
test/DATSR_33.png ADDED

Git LFS Details

  • SHA256: 2b6b9e697e00a240cc044c69a4abf17b76c71c9b73bd44cd7581eb868384ef8d
  • Pointer size: 131 Bytes
  • Size of remote file: 141 kB
test/DATSR_34.png ADDED

Git LFS Details

  • SHA256: 52cae40477d02ee9f7b5060a82aed41cfe7f844acc15c53aa5058068282f4e2a
  • Pointer size: 131 Bytes
  • Size of remote file: 126 kB
test/DATSR_35.png ADDED

Git LFS Details

  • SHA256: 2c425c65e7e5e63826f1439c101f206b02900c260c81e453b4d8e903ada5b6ca
  • Pointer size: 131 Bytes
  • Size of remote file: 105 kB
test/DATSR_36.png ADDED

Git LFS Details

  • SHA256: de59ea25b6f697f6914520adc3bafd0685a057b596b5eb5df360379b0bc685a3
  • Pointer size: 131 Bytes
  • Size of remote file: 103 kB
test/DATSR_37.png ADDED

Git LFS Details

  • SHA256: f481cd090ce980c3cc24f47bf708251c0c06db7e0b163cc84cf7d1f2542ee39a
  • Pointer size: 130 Bytes
  • Size of remote file: 91.1 kB
test/DATSR_38.png ADDED

Git LFS Details

  • SHA256: c8774e285650b056747dd214948c65603cd25da25a8c8aaccf7b83eced01b73a
  • Pointer size: 131 Bytes
  • Size of remote file: 118 kB
test/DATSR_39.png ADDED

Git LFS Details

  • SHA256: 83cec626ca0830bec7df9f791b36c87e0e610c6a17da7db029221591f1c4e2a8
  • Pointer size: 131 Bytes
  • Size of remote file: 141 kB
test/DATSR_4.png ADDED

Git LFS Details

  • SHA256: 572e1af0e10801e635e045c0bf2fb9a1d84cc7c5c385a5bf65abf06754d13709
  • Pointer size: 130 Bytes
  • Size of remote file: 81.7 kB
test/DATSR_40.png ADDED

Git LFS Details

  • SHA256: da3f5e95bf2016ed3531c66780abd6996cc7fe3fa122925a2fe3bdd5fe89d4d0
  • Pointer size: 130 Bytes
  • Size of remote file: 86.6 kB
test/DATSR_5.png ADDED

Git LFS Details

  • SHA256: 92938d0733ee43316088842e9df1f2893ec6f9eb63747eaf547fe0fa250343df
  • Pointer size: 130 Bytes
  • Size of remote file: 93.4 kB
test/DATSR_6.png ADDED

Git LFS Details

  • SHA256: cc69ee8e4876f2a9f148cb903521035e8ae06999e63eb49b0830cfd51ade45d9
  • Pointer size: 130 Bytes
  • Size of remote file: 65.6 kB
test/DATSR_7.png ADDED

Git LFS Details

  • SHA256: 792d8326877810847883dec9eb886412f4b37a19a7a1374aa2591f2dac736f3b
  • Pointer size: 131 Bytes
  • Size of remote file: 111 kB
test/DATSR_8.png ADDED

Git LFS Details

  • SHA256: c857eed74b939bd189c75861f5b3c628412e026e8661ab90a185efa9f5e26bf6
  • Pointer size: 130 Bytes
  • Size of remote file: 93.7 kB
test/DATSR_9.png ADDED

Git LFS Details

  • SHA256: 9261e8643010904a494cde6f90a13bc84cdf99ce43febfd994b3e86fd7bb7d89
  • Pointer size: 131 Bytes
  • Size of remote file: 145 kB
test/LappanTest_1.png ADDED

Git LFS Details

  • SHA256: 23998c213c6ed3436c12bf0869078681d4595b90220ee8fc0427f8fe588dee31
  • Pointer size: 131 Bytes
  • Size of remote file: 274 kB
test/LappanTest_10.png ADDED

Git LFS Details

  • SHA256: 4c0981c458c50ac40b854a3d30b86d287108f57c49e608d804b411d682680eda
  • Pointer size: 131 Bytes
  • Size of remote file: 145 kB
test/LappanTest_11.png ADDED

Git LFS Details

  • SHA256: c9ced9f32377cc7e6add2764fa0efb223dd0d412ebfa5e529df2ebcae997cb34
  • Pointer size: 131 Bytes
  • Size of remote file: 110 kB
test/LappanTest_12.png ADDED

Git LFS Details

  • SHA256: 2cf8a6ead5a1ca896972180ef51c7efe77f661e9e851476760e8cd5d082d69e7
  • Pointer size: 131 Bytes
  • Size of remote file: 121 kB
test/LappanTest_13.png ADDED

Git LFS Details

  • SHA256: 16b6979f6f66a6d95dc3f31d3c404be83565bdca3e3415475f6feb4d6a537a41
  • Pointer size: 130 Bytes
  • Size of remote file: 94.1 kB
test/LappanTest_14.png ADDED

Git LFS Details

  • SHA256: d1b422f5a388e6fd966ee9e69387d6543aafab2a41bfe26439b3d05a91ecc3be
  • Pointer size: 130 Bytes
  • Size of remote file: 92.7 kB
test/LappanTest_15.png ADDED

Git LFS Details

  • SHA256: 8fe1e28b85d97e29356eb9f7b5e1da6eec609df7cb967e70c1f508a8e4733dd0
  • Pointer size: 130 Bytes
  • Size of remote file: 73.9 kB
test/LappanTest_16.png ADDED

Git LFS Details

  • SHA256: f6711663ffbe6aaaf176eb30d646925f7399df75675be7ffa0021de760d91497
  • Pointer size: 130 Bytes
  • Size of remote file: 84.3 kB