File size: 4,472 Bytes
3288ba3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75b5eb0
 
 
 
3288ba3
 
75b5eb0
 
 
3288ba3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
---
license: cc0-1.0
task_categories:
  - visual-question-answering
  - image-text-to-text
language:
  - en
  - zh
pretty_name: Graph Understanding Multimodal Benchmark
size_categories:
  - 1K<n<10K
tags:
  - graph-understanding
  - flowchart
  - gantt-chart
  - knowledge-graph
  - mind-map
  - route-map
  - vlm
  - benchmark
configs:
  - config_name: default
    default: true
    data_files:
      - split: train
        path: data/train.parquet
      - split: test
        path: data/test.parquet
  - config_name: eval_subset
    data_files:
      - split: test
        path: eval_subset/eval.parquet
---

# Graph Understanding Multimodal Benchmark

Dataset of the ACL 2024 paper
**[Advancement in Graph Understanding: A Multimodal Benchmark and Fine-Tuning of Vision-Language Models](https://aclanthology.org/2024.acl-long.404/)**.

- **Code / results:** <https://github.com/BIT-AQH/Graph-Understanding-Multimodal-Benchmark>
- **Paper:** <https://aclanthology.org/2024.acl-long.404/>

The benchmark evaluates how well vision-language models understand
**graph-structured images**: flowcharts, Gantt charts, knowledge graphs, mind
maps and route maps. It is bilingual (English / Chinese) and every question is
labelled with a difficulty level (`simple`, `medium`, `complex`).

![Dataset samples](assets/dataset_samples.png)

*One example per graph type (test split, English).*

## Statistics

![Dataset statistics](assets/dataset_statistics.png)


| Split | Language | QA pairs | Images |
|---|---|---:|---:|
| train | English | 2,945 | 1,210 |
| train | Chinese | 2,106 | 1,130 |
| test | English | 738 | 598 |
| test | Chinese | 554 | 302 |
| eval subset | English + Chinese | 239 | 93 |

QA pairs per graph type (train / test):

| Language | Flowchart | Gantt chart | Knowledge graph | Mind map | Route map |
|---|---:|---:|---:|---:|---:|
| English | 571 / 143 | 451 / 113 | 592 / 148 | 475 / 119 | 856 / 215 |
| Chinese | 64 / 18 | 16 / 30 | 798 / 193 | 479 / 118 | 749 / 195 |

## Usage

```python
from datasets import load_dataset

ds = load_dataset("PG23/Graph-Understanding-Multimodal-Benchmark")                 # train / test
ev = load_dataset("PG23/Graph-Understanding-Multimodal-Benchmark", "eval_subset")  # evaluation subset
print(ds["train"][0])
```

### Fields (`default` config)

| Field | Description |
|---|---|
| `id` | Sample id (`<lang>-<graph type>-<image>-<difficulty>`). |
| `image` | The graph image. |
| `image_path` | Path of the image relative to `images/<split>/`. |
| `language` | `en` or `zh`. |
| `graph_type` | `flowchart`, `gantt_chart`, `knowledge_graph`, `mind_map` or `route_map`. |
| `difficulty` | `simple`, `medium`, `complex` (empty for a few multi-question samples). |
| `question` / `answer` | The question and the reference answer. |

### `eval_subset` config

The 239 questions (93 images) with human-checked ground truth that are used for
the model comparison in the paper (GPT-4V, Gemini, LLaVA, MiniGPT-4 and the
fine-tuned models). Fields: `question_id`, `image`, `image_path`, `language`,
`graph_type`, `difficulty`, `question`, `answer`. The corresponding model
outputs are available in the GitHub repository under `results/`.

## Raw files (LLaVA format)

Besides the Parquet files, the repository contains the original release:

```
annotations/
├── train/{train,train_en,train_zh}.jsonl   # LLaVA conversation format
├── test/{test,test_en,test_zh}.jsonl
└── eval/eval.jsonl
images/
├── train/   # `image` field of annotations/train/*.jsonl is relative to this folder
├── test/
└── eval/
```

```json
{
  "id": "eng-routemap-image80-complex",
  "image": "routemap/image80/image80.jpg",
  "conversations": [
    {"from": "human", "value": "<image>\n..."},
    {"from": "gpt", "value": "..."}
  ]
}
```

These files can be used directly for LLaVA-style fine-tuning
(`--data_path annotations/train/train.jsonl --image_folder images/train`).

## Citation

```bibtex
@inproceedings{ai2024advancement,
  title={Advancement in Graph Understanding: A Multimodal Benchmark and Fine-Tuning of Vision-Language Models},
  author={Ai, Qihang and Li, Jiafan and Dai, Jincheng and Zhou, Jianwu and Liu, Lemao and Jiang, Haiyun and Shi, Shuming},
  booktitle={Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
  pages={7485--7501},
  year={2024}
}
```

## License

[CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/)