Upload 3 files
Browse files- MULTI_v1.3.1_20251016_release.zip +3 -0
- README.md +224 -204
- README_zh.md +212 -188
MULTI_v1.3.1_20251016_release.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:db8dc676ea2258502d359c5b356d4019d94c6a6ff3eeda742d9a602d1547135f
|
| 3 |
+
size 504311784
|
README.md
CHANGED
|
@@ -1,204 +1,224 @@
|
|
| 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 |
-
```shell
|
| 121 |
-
python eval.py \
|
| 122 |
-
--checkpoint_dir ../results/EXPERIMENT_NAME
|
| 123 |
-
```
|
| 124 |
-
|
| 125 |
-
Most of the arguments are saved in `../results/EXPERIMENT_NAME/args.json`, so you can continue the evaluation without specifying all the arguments again. Please note that `--api_key` is not saved in
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
--
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
| 204 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 🖼️ MULTI-Benchmark: Multimodal Understanding Leaderboard with Text and Images
|
| 2 |
+
|
| 3 |
+
<div align="center">
|
| 4 |
+
|
| 5 |
+

|
| 6 |
+
|
| 7 |
+
🌐 [Website](https://OpenDFM.github.io/MULTI-Benchmark/) | 📃 [Paper](https://arxiv.org/abs/2402.03173/) | 🤗 [Dataset](https://huggingface.co/datasets/OpenDFM/MULTI-Benchmark) |
|
| 8 |
+
🏆 [Leaderboard](https://opendfm.github.io/MULTI-Benchmark/#leaderboard) | 📮 [Submit](https://wj.sjtu.edu.cn/q/89UmRAJn)
|
| 9 |
+
|
| 10 |
+
[简体中文](./README_zh.md) | English
|
| 11 |
+
|
| 12 |
+
</div>
|
| 13 |
+
|
| 14 |
+
## 🔥 News
|
| 15 |
+
|
| 16 |
+
- **[2025.10.16]** We have released ground truth answers for all questions in MULTI as human expert baseline was surpassed by several models. Now you can run evaluation and get the final scores locally.
|
| 17 |
+
- **[2025.9.28]** MULTI is now available online at [https://doi.org/10.1007/s11432-024-4602-x](https://doi.org/10.1007/s11432-024-4602-x).
|
| 18 |
+
- **[2025.6.22]** MULTI is now accepted by Science China Information Sciences (Special Topic on Large Multimodal Models).
|
| 19 |
+
- **[2025.1.7]** We have updated our [leaderboard](https://opendfm.github.io/MULTI-Benchmark/#leaderboard) with the latest results.
|
| 20 |
+
- **[2025.1.2]** We have updated MULTI to v1.3.1.
|
| 21 |
+
- **[2024.3.4]** We have released the [evaluation page](https://OpenDFM.github.io/MULTI-Benchmark/static/pages/submit.html) (no longer maintained).
|
| 22 |
+
- **[2024.2.19]** We have released the [HuggingFace Page](https://huggingface.co/datasets/OpenDFM/MULTI-Benchmark/).
|
| 23 |
+
- **[2024.2.6]** We have published our [paper](https://arxiv.org/abs/2402.03173/) on arXiv.
|
| 24 |
+
- **[2023.12.7]** We have released the [code](https://github.com/OpenDFM/MULTI-Benchmark/tree/main/eval) of our benchmark evaluation.
|
| 25 |
+
- **[2023.12.5]** We have released the [GitHub Page](https://OpenDFM.github.io/MULTI-Benchmark/).
|
| 26 |
+
|
| 27 |
+
## 📖 Overview
|
| 28 |
+
|
| 29 |
+
The rapid development of multimodal large language models (MLLMs) raises the question of how they compare to human performance. While existing datasets often feature synthetic or
|
| 30 |
+
overly simplistic tasks, some models have already surpassed human expert baselines. In this paper, we present **MULTI**, a Chinese multimodal dataset derived from authentic examination
|
| 31 |
+
questions. Comprising over 18,000 carefully selected and refined questions, **MULTI** evaluates models using real-world examination standards, encompassing image-text comprehension,
|
| 32 |
+
complex reasoning, and knowledge recall. Additionally, We also introduce **MULTI-Elite**, a 500-question selected hard subset, and **MULTI-Extend** with more than 4,500 external knowledge
|
| 33 |
+
context pieces for testing in-context learning capabilities. **MULTI** serves not only as a robust evaluation platform but also paves the way for the development of expert-level AI.
|
| 34 |
+
|
| 35 |
+
## ⏬ Download
|
| 36 |
+
|
| 37 |
+
You can simply download data using the following command:
|
| 38 |
+
|
| 39 |
+
```shell
|
| 40 |
+
cd eval
|
| 41 |
+
python download_data.py
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
Or directly download the [zip file](https://huggingface.co/datasets/OpenDFM/MULTI-Benchmark/blob/main/MULTI_v1.3.1_20251016_release.zip) in the Huggingface repository and unzip it.
|
| 45 |
+
|
| 46 |
+
The structure of `./data` should be something like:
|
| 47 |
+
|
| 48 |
+
```
|
| 49 |
+
./data
|
| 50 |
+
├── images # folder containing images
|
| 51 |
+
├── problem_v1.3.1_20241210.json # MULTI (with answers)
|
| 52 |
+
├── problem_v1.3.1_20241210_release.json # MULTI
|
| 53 |
+
├── knowledge_v1.2.2_20240212_release.json # MULTI-Extend
|
| 54 |
+
├── hard_list_v1.3.0_20241203.json # MULTI-Elite
|
| 55 |
+
├── captions_v1.3.1_20241210_blip.csv # image captions generated by BLIP-6.7B
|
| 56 |
+
├── captions_v1.3.1_20241210_points.csv # image captions generated by POINTS-1-5
|
| 57 |
+
├── ocr_v1.3.1_20241210_easyocr.csv # OCR data generated by EasyOCR
|
| 58 |
+
└── ocr_v1.3.1_20241210_points.csv # OCR data generated by POINTS-1-5
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
## 📝 How to Evaluate
|
| 62 |
+
|
| 63 |
+
We provide a unified evaluation framework in `eval`. Each file in `eval/models` contains an evaluator specified to one M/LLM, and implements a `generate_answer` method to receive a question as input
|
| 64 |
+
and give out the answer of it.
|
| 65 |
+
|
| 66 |
+
```shell
|
| 67 |
+
cd eval
|
| 68 |
+
python eval.py -h # to list all supported arguments
|
| 69 |
+
python eval.py -l # to list all supported models
|
| 70 |
+
```
|
| 71 |
+
|
| 72 |
+
### Environment Preparation Before Usage
|
| 73 |
+
|
| 74 |
+
Each evaluator requires its unique environment setting, and a universal environment may not work for all evaluators. **Just follow the official guide.** If the corresponding model runs well, then so
|
| 75 |
+
should it fit in our framework.
|
| 76 |
+
|
| 77 |
+
You just need to install several another packages to run the evaluation code:
|
| 78 |
+
|
| 79 |
+
```shell
|
| 80 |
+
pip install tiktoken tqdm rouge_chinese jieba matplotlib
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
If you just want to generate data for a specific setting (using `--debug` argument), this line above is all you need.
|
| 84 |
+
|
| 85 |
+
### Running Evaluation
|
| 86 |
+
|
| 87 |
+
For a quick start, see these examples:
|
| 88 |
+
|
| 89 |
+
Test GPT-4o model on whole MULTI with multimodal input, using MULTI-Extend as external knowledge:
|
| 90 |
+
|
| 91 |
+
```shell
|
| 92 |
+
python eval.py \
|
| 93 |
+
--problem_file ../data/problem_v1.3.1_20241210_release.json \
|
| 94 |
+
--knowledge_file ../data/knowledge_v1.2.2_20240212_release.json \
|
| 95 |
+
--questions_type 0,1,2,3 \
|
| 96 |
+
--image_type 0,1,2 \
|
| 97 |
+
--input_type 2 \
|
| 98 |
+
--model gpt-4o \
|
| 99 |
+
--model_version gpt-4o-latest \
|
| 100 |
+
--api_key sk-************************************************
|
| 101 |
+
```
|
| 102 |
+
|
| 103 |
+
Test Qwen-VL model on MULTI-Elite with image caption input, skip all questions not containing images, evaluate only multiple-choice questions, automatically set cuda device:
|
| 104 |
+
|
| 105 |
+
```shell
|
| 106 |
+
python eval.py \
|
| 107 |
+
--problem_file ../data/problem_v1.3.1_20241210_release.json \
|
| 108 |
+
--subset ../data/hard_list_v1.3.0_20241203.json \
|
| 109 |
+
--caption_file ../data/captions_v1.3.1_20241210_points.csv \
|
| 110 |
+
--questions_type 0,1 \
|
| 111 |
+
--image_type 1,2 \
|
| 112 |
+
--input_type 1 \
|
| 113 |
+
--model qwen-vl \
|
| 114 |
+
--model_dir ../models/Qwen-VL-Chat
|
| 115 |
+
```
|
| 116 |
+
|
| 117 |
+
The evaluation script will generate a folder named `results` under the root directory, and the result will be saved in `../results/{EXPERIMENT_NAME}`. During the evaluation, the script will save
|
| 118 |
+
checkpoints in `../results/{EXPERIMENT_NAME}/checkpoints`, you can delete them after the evaluation is done. If the evaluation is interrupted, you can continue from the last checkpoint:
|
| 119 |
+
|
| 120 |
+
```shell
|
| 121 |
+
python eval.py \
|
| 122 |
+
--checkpoint_dir ../results/{EXPERIMENT_NAME}
|
| 123 |
+
```
|
| 124 |
+
|
| 125 |
+
Most of the arguments are saved in `../results/{EXPERIMENT_NAME}/args.json`, so you can continue the evaluation without specifying all the arguments again. Please note that `--api_key` is not saved in
|
| 126 |
+
`args.json` for security reasons, so you need to specify it again.
|
| 127 |
+
|
| 128 |
+
```shell
|
| 129 |
+
python eval.py \
|
| 130 |
+
--checkpoint_dir ../results/{EXPERIMENT_NAME} \
|
| 131 |
+
--api_key sk-************************************************
|
| 132 |
+
```
|
| 133 |
+
|
| 134 |
+
For more details of arguments, please use `python eval.py -h`, and refer to `args.py` and `eval.py`.
|
| 135 |
+
|
| 136 |
+
You can directly use the standard answers we provide to score the answer sheets:
|
| 137 |
+
|
| 138 |
+
```shell
|
| 139 |
+
python metrics.py \
|
| 140 |
+
--label_file ../data/problem_v1.3.1_20241210.json \
|
| 141 |
+
--detail \
|
| 142 |
+
--answer_position end \
|
| 143 |
+
--prediction_file ../results/{EXPERIMENT_NAME}/prediction.json
|
| 144 |
+
```
|
| 145 |
+
|
| 146 |
+
You will see the final scoring data in `../results/{EXPERIMENT_NAME}`.
|
| 147 |
+
|
| 148 |
+
### Add Support for Your Models
|
| 149 |
+
|
| 150 |
+
It's recommended to read the code of the other given evaluators in `eval/models` before your implementation.
|
| 151 |
+
|
| 152 |
+
Create `class YourModelEvaluator` and implement `generate_answer(self, question:dict)` to match the design supported in `eval.py` and `eval.sh`, which is anticipated to largely ease the coding
|
| 153 |
+
process.
|
| 154 |
+
|
| 155 |
+
**Do not forget to add their references into `args.py` for the convenience of usage.**
|
| 156 |
+
|
| 157 |
+
You can execute `model_tester.py` in the `eval` folder to check the correctness of you implementation. Various problems including implementation errors, small bugs in code, and even wrong environment
|
| 158 |
+
settings may cause failure of the evaluation. The examples provided in the file cover most kinds of cases presented in our benchmark. Feel free to change the code in it to debug your code😊
|
| 159 |
+
|
| 160 |
+
```shell
|
| 161 |
+
python model_tester.py <args> # args are similar to the default settings above
|
| 162 |
+
```
|
| 163 |
+
|
| 164 |
+
### Create Captions and OCR Data for Images
|
| 165 |
+
|
| 166 |
+
Generate captions or OCR data for images, and save them in csv with format below:
|
| 167 |
+
|
| 168 |
+
```
|
| 169 |
+
../data/images/czls/502_1.png,a cartoon drawing of a man standing in front of a large block
|
| 170 |
+
../data/images/czls/525_1.png,a chinese newspaper with the headline, china's new year
|
| 171 |
+
...
|
| 172 |
+
```
|
| 173 |
+
|
| 174 |
+
We provide two example scripts to generate captions (`image_caption.py`) and OCR data (`image_ocr.py`) for images.
|
| 175 |
+
|
| 176 |
+
## 📮 How to Submit
|
| 177 |
+
|
| 178 |
+
<details>
|
| 179 |
+
<summary>You can do evaluation locally directly</summary>
|
| 180 |
+
You need to first prepare a UTF-8 encoded JSON file with the following format:
|
| 181 |
+
|
| 182 |
+
```
|
| 183 |
+
{
|
| 184 |
+
"czsx_0_0": {
|
| 185 |
+
"question_id": "czsx_0_0",
|
| 186 |
+
"question_image_number": 1,
|
| 187 |
+
"image_list": [...], # optional
|
| 188 |
+
"input_message": ..., # optional
|
| 189 |
+
"prediction": "C"
|
| 190 |
+
},
|
| 191 |
+
...
|
| 192 |
+
}
|
| 193 |
+
```
|
| 194 |
+
|
| 195 |
+
If you evaluate the model with our official code, you can simply zip the prediction file `prediction.json` and the configuration file `args.json` in the experiment results folder
|
| 196 |
+
`. /results/{EXPERIMENT_NAME}` in `.zip` format.
|
| 197 |
+
|
| 198 |
+
Then, you can submit your result to our [evaluation page](https://opendfm.github.io/MULTI-Benchmark/static/pages/submit.html).
|
| 199 |
+
<details>
|
| 200 |
+
|
| 201 |
+
You are also welcomed to pull a request and contribute your code to our evaluation code. We will be very grateful for your contribution!
|
| 202 |
+
|
| 203 |
+
**[Notice]** Thank you for being so interested in the **MULTI** dataset! If you want to add your model in our leaderboard, please fill in [this questionnaire](https://wj.sjtu.edu.cn/q/89UmRAJn), your information will be kept strictly confidential, so please feel free to fill it out. 🤗
|
| 204 |
+
|
| 205 |
+
## 📑 Citation
|
| 206 |
+
|
| 207 |
+
If you find our work useful, please cite us!
|
| 208 |
+
|
| 209 |
+
```
|
| 210 |
+
@article{zhu2025multi,
|
| 211 |
+
title={{MULTI}: Multimodal Understanding Leaderboard with Text and Images},
|
| 212 |
+
author={Zichen Zhu and Yang Xu and Lu Chen and Jingkai Yang and Yichuan Ma and Yiming Sun and Hailin Wen and Jiaqi Liu and Jinyu Cai and Yingzi Ma and Situo Zhang and Zihan Zhao and Liangtai Sun and Kai Yu},
|
| 213 |
+
journal = "SCIENCE CHINA Information Sciences",
|
| 214 |
+
year = "2025",
|
| 215 |
+
volume = "68",
|
| 216 |
+
number = "10",
|
| 217 |
+
pages = "200107.1--200107.26",
|
| 218 |
+
doi = "https://doi.org/10.1007/s11432-024-4602-x"
|
| 219 |
+
}
|
| 220 |
+
```
|
| 221 |
+
|
| 222 |
+
## 📧 Contact Us
|
| 223 |
+
|
| 224 |
+
If you have any questions, please feel free to contact us via email `JamesZhutheThird@sjtu.edu.cn`
|
README_zh.md
CHANGED
|
@@ -1,188 +1,212 @@
|
|
| 1 |
-
# 🖼️ MULTI-Benchmark: Multimodal Understanding Leaderboard with Text and Images
|
| 2 |
-
|
| 3 |
-
<div align="center">
|
| 4 |
-
|
| 5 |
-
 | 📃 [论文](https://arxiv.org/abs/2402.03173/) | 🤗 [数据](https://huggingface.co/datasets/OpenDFM/MULTI-Benchmark) | 🏆 [榜单](https://opendfm.github.io/MULTI-Benchmark/#leaderboard) | 📮 [提交](https://
|
| 8 |
-
|
| 9 |
-
简体中文 | [English](./README.md)
|
| 10 |
-
|
| 11 |
-
</div>
|
| 12 |
-
|
| 13 |
-
## 🔥 新闻
|
| 14 |
-
|
| 15 |
-
- **[2025.
|
| 16 |
-
- **[2025.
|
| 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 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
```
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
|
| 169 |
-
|
| 170 |
-
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
|
| 175 |
-
|
| 176 |
-
|
| 177 |
-
|
| 178 |
-
|
| 179 |
-
|
| 180 |
-
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
|
| 188 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# 🖼️ MULTI-Benchmark: Multimodal Understanding Leaderboard with Text and Images
|
| 2 |
+
|
| 3 |
+
<div align="center">
|
| 4 |
+
|
| 5 |
+

|
| 6 |
+
|
| 7 |
+
🌐 [网站](https://OpenDFM.github.io/MULTI-Benchmark/) | 📃 [论文](https://arxiv.org/abs/2402.03173/) | 🤗 [数据](https://huggingface.co/datasets/OpenDFM/MULTI-Benchmark) | 🏆 [榜单](https://opendfm.github.io/MULTI-Benchmark/#leaderboard) | 📮 [提交](https://wj.sjtu.edu.cn/q/89UmRAJn)
|
| 8 |
+
|
| 9 |
+
简体中文 | [English](./README.md)
|
| 10 |
+
|
| 11 |
+
</div>
|
| 12 |
+
|
| 13 |
+
## 🔥 新闻
|
| 14 |
+
|
| 15 |
+
- **[2025.10.16]** 我们发布了 MULTI 中所有问题的标准答案,因为多个模型已经超越了人类专家的基准。现在您可以在本地运行评测并获得最终分数。
|
| 16 |
+
- **[2025.9.28]** MULTI 现已在线发布,网址为 [https://doi.org/10.1007/s11432-024-4602-x](https://doi.org/10.1007/s11432-024-4602-x)。
|
| 17 |
+
- **[2025.6.22]** MULTI 现已被《中国科学信息科学》多模态大模型专题接收。
|
| 18 |
+
- **[2025.1.7]** 我们更新了最新的[榜单](https://opendfm.github.io/MULTI-Benchmark/#leaderboard)。
|
| 19 |
+
- **[2025.1.2]** 我们更新了MULTI到v1.3.1。
|
| 20 |
+
- **[2024.3.4]** 我们发布了[评测页面](https://opendfm.github.io/MULTI-Benchmark/static/pages/submit.html) (不再维护)。
|
| 21 |
+
- **[2024.2.19]** 我们发布了[HuggingFace页面](https://huggingface.co/datasets/OpenDFM/MULTI-Benchmark/)。
|
| 22 |
+
- **[2024.2.6]** 我们在arXiv上发布了我们的[论文](https://arxiv.org/abs/2402.03173/)。
|
| 23 |
+
- **[2023.12.7]** 我们发布了我们的基准评测[代码](https://github.com/OpenDFM/MULTI-Benchmark/tree/main/eval)。
|
| 24 |
+
- **[2023.12.5]** 我们发布了[GitHub页面](https://OpenDFM.github.io/MULTI-Benchmark/)。
|
| 25 |
+
|
| 26 |
+
## 📖 介绍
|
| 27 |
+
|
| 28 |
+
在多模态大型语言模型(MLLMs)快速发展的背景下,如何与人类表现进行比较成为一个重要问题。现有的数据集通常涉及合成的数据或过于简单的任务,而一些模型已经超越了人类专家的基准。本文介绍了**MULTI**,一个源自真实考试问题的中文多模态数据集。**MULTI**包含超过18,000个精心挑选和优化的问题,评估模型在中国现实考试标准下的表现,涵盖了图像-文本理解、复杂推理和知识回忆等方面。此外,我们还引入了**MULTI-Elite**,一个由500个难题组成的精选子集,以及**MULTI-Extend**,一个包含超过4,500个外部知识上下文的数据集,用于测试模型的上下文学习能力。**MULTI**不仅作为一个稳健的评测平台,也为专家级AI的发展指明了道路。
|
| 29 |
+
|
| 30 |
+
## ⏬ 下载
|
| 31 |
+
|
| 32 |
+
您只需使用以下命令即可下载数据:
|
| 33 |
+
|
| 34 |
+
```shell
|
| 35 |
+
cd eval
|
| 36 |
+
python download_data.py
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
或直接下载 Huggingface 仓库中的[压缩包](https://huggingface.co/datasets/OpenDFM/MULTI-Benchmark/blob/main/MULTI_v1.3.1_20251016_release.zip)并解压。
|
| 40 |
+
|
| 41 |
+
`./data` 的结构应该如下所示:
|
| 42 |
+
|
| 43 |
+
```
|
| 44 |
+
./data
|
| 45 |
+
├── images # 包含图片的文件夹
|
| 46 |
+
├── problem_v1.3.1_20241210.json # MULTI (含答案)
|
| 47 |
+
├── problem_v1.3.1_20241210_release.json # MULTI
|
| 48 |
+
├── knowledge_v1.2.2_20240212_release.json # MULTI-Extend
|
| 49 |
+
├── hard_list_v1.3.0_20241203.json # MULTI-Elite
|
| 50 |
+
├── captions_v1.3.1_20241210_blip.csv # 由BLIP-6.7b生成的图片描述
|
| 51 |
+
├── captions_v1.3.1_20241210_points.csv # 由POINTS-1-5生成的图片描述
|
| 52 |
+
├── ocr_v1.3.1_20241210_easyocr.csv # 由EasyOCR生成的OCR数据
|
| 53 |
+
└── ocr_v1.3.1_20241210_points.csv # 由POINTS-1-5生成的OCR数据
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
## 📝 如何评测
|
| 57 |
+
|
| 58 |
+
我们在`eval`中提供了一个统一的评测框架。`eval/models`中的每个文件都包含了一个针对某个M/LLM的评测器,并实现了一个`generate_answer`方法来接收问题输入并输出答案。
|
| 59 |
+
|
| 60 |
+
```shell
|
| 61 |
+
cd eval
|
| 62 |
+
python eval.py -h # 列出所有支持的参数
|
| 63 |
+
python eval.py -l # 列出所有支持的模型
|
| 64 |
+
```
|
| 65 |
+
|
| 66 |
+
### 使用前的环境准备
|
| 67 |
+
|
| 68 |
+
每个模型都需要其独特的环境设置,通用环境可能不适用于所有模型的评测。**按照官方文档操作即可。** 如果相应的模型运行良好,那么它应该也适合我们的框架。
|
| 69 |
+
|
| 70 |
+
您只需要安装另外几个包来运行评测代码:
|
| 71 |
+
|
| 72 |
+
```shell
|
| 73 |
+
pip install tiktoken tqdm rouge_chinese jieba matplotlib
|
| 74 |
+
```
|
| 75 |
+
|
| 76 |
+
如果您只是想为特定设置生成数据(使用`--debug`参数),上面这行代码就是您所需要的一切。
|
| 77 |
+
|
| 78 |
+
### 运行评测
|
| 79 |
+
|
| 80 |
+
请参考这些示例以便快速开始:
|
| 81 |
+
|
| 82 |
+
在MULTI上测试GPT-4o模型,采用多模态输入,并使用MULTI-Extend作为外部知识:
|
| 83 |
+
|
| 84 |
+
```shell
|
| 85 |
+
python eval.py \
|
| 86 |
+
--problem_file ../data/problem_v1.3.1_20241210_release.json \
|
| 87 |
+
--knowledge_file ../data/knowledge_v1.2.2_20240212_release.json \
|
| 88 |
+
--questions_type 0,1,2,3 \
|
| 89 |
+
--image_type 0,1,2 \
|
| 90 |
+
--input_type 2 \
|
| 91 |
+
--model gpt-4o \
|
| 92 |
+
--model_version gpt-4o-latest \
|
| 93 |
+
--api_key sk-************************************************
|
| 94 |
+
```
|
| 95 |
+
|
| 96 |
+
在MULTI-Elite上测试Qwen-VL模型,使用图片描述输入,跳过所有不包含图片的问题,仅评测选择题,自动设置cuda设备:
|
| 97 |
+
|
| 98 |
+
```shell
|
| 99 |
+
python eval.py \
|
| 100 |
+
--problem_file ../data/problem_v1.3.1_20241210_release.json \
|
| 101 |
+
--subset ../data/hard_list_v1.3.0_20241203.json \
|
| 102 |
+
--caption_file ../data/captions_v1.3.1_20241210_points.csv \
|
| 103 |
+
--questions_type 0,1 \
|
| 104 |
+
--image_type 1,2 \
|
| 105 |
+
--input_type 1 \
|
| 106 |
+
--model qwen-vl \
|
| 107 |
+
--model_dir ../models/Qwen-VL-Chat
|
| 108 |
+
```
|
| 109 |
+
|
| 110 |
+
测脚本将在根目录下生成`results`文件夹,结果将保存在`../results/{EXPERIMENT_NAME}`中。评测过程中,脚本将在`../results/{EXPERIMENT_NAME}/checkpoints`中保存检查点,评测完成后您可以删除它们。如果评测被中断,您可以从最后一个检查点继续:
|
| 111 |
+
|
| 112 |
+
```shell
|
| 113 |
+
python eval.py \
|
| 114 |
+
--checkpoint_dir ../results/{EXPERIMENT_NAME}
|
| 115 |
+
```
|
| 116 |
+
|
| 117 |
+
大多数参数都保存在`../results/{EXPERIMENT_NAME}/args.json`中,因此您可以继续评测而无需再次指定所有参数。请注意,出于安全原因,`--api_key`不会保存在`args.json`中,因此您需要再次指定它。
|
| 118 |
+
|
| 119 |
+
```shell
|
| 120 |
+
python eval.py \
|
| 121 |
+
--checkpoint_dir ../results/{EXPERIMENT_NAME} \
|
| 122 |
+
--api_key sk-************************************************
|
| 123 |
+
```
|
| 124 |
+
|
| 125 |
+
有关参数的更多详细信息,请使用`python eval.py -h`并参考`args.py`和`eval.py`。
|
| 126 |
+
|
| 127 |
+
您可以直接使用我们提供的标准答案对答卷进行评分:
|
| 128 |
+
|
| 129 |
+
```shell
|
| 130 |
+
python metrics.py \
|
| 131 |
+
--label_file ../data/problem_v1.3.1_20241210.json \
|
| 132 |
+
--detail \
|
| 133 |
+
--answer_position end \
|
| 134 |
+
--prediction_file ../results/{EXPERIMENT_NAME}/prediction.json
|
| 135 |
+
```
|
| 136 |
+
|
| 137 |
+
您将会在 `../results/{EXPERIMENT_NAME}` 中看到生成的评分数据。
|
| 138 |
+
|
| 139 |
+
### 为您的模型增加支持
|
| 140 |
+
|
| 141 |
+
建议在此之前阅读`eval/models`中其他评测器的代码。
|
| 142 |
+
|
| 143 |
+
创建`class YourModelEvaluator`并实现 `generate_answer(self, question:dict)`以匹配`eval.py`和`eval.sh`中支持的设计,这预计将大大简化代码实现过程。
|
| 144 |
+
|
| 145 |
+
**不要忘记将它们的调用方式添加到`args.py`中,以方便使用。**
|
| 146 |
+
|
| 147 |
+
您可以在`eval`文件夹中执行`model_tester.py`来检查您的实现的正确性。各种问题,包括实现错误、代码中的小错误,甚至错误的环境设置都可能导致评测失败。文件中提供的示例覆盖了我们基准测试中呈现的大多数情况类型。随意更改其中的代码以调试您的代码😊
|
| 148 |
+
|
| 149 |
+
```shell
|
| 150 |
+
python model_tester.py <args> # args 类似于上面的默认设置
|
| 151 |
+
```
|
| 152 |
+
|
| 153 |
+
### 为图片创建描述和OCR数据
|
| 154 |
+
|
| 155 |
+
为图片生成描述或OCR数据,并以下面的格式保存在csv中:
|
| 156 |
+
|
| 157 |
+
```
|
| 158 |
+
../data/images/czls/502_1.png,a cartoon drawing of a man standing in front of a large block
|
| 159 |
+
../data/images/czls/525_1.png,a chinese newspaper with the headline, china's new year
|
| 160 |
+
...
|
| 161 |
+
```
|
| 162 |
+
|
| 163 |
+
我们提供了两个示例脚本来为图片生成标题(`image_caption.py`)和OCR数据(`image_ocr.py`)。
|
| 164 |
+
|
| 165 |
+
## 📮 如何提交
|
| 166 |
+
|
| 167 |
+
|
| 168 |
+
<details>
|
| 169 |
+
<summary>您可以直接在本地进行评测</summary>
|
| 170 |
+
您需要首先准备一个UTF-8编码的JSON文件,格式如下:
|
| 171 |
+
|
| 172 |
+
```
|
| 173 |
+
{
|
| 174 |
+
"czsx_0_0": {
|
| 175 |
+
"question_id": "czsx_0_0",
|
| 176 |
+
"question_image_number": 1,
|
| 177 |
+
"image_list": [...],
|
| 178 |
+
"input_message": ...,
|
| 179 |
+
"prediction": "C"
|
| 180 |
+
},
|
| 181 |
+
...
|
| 182 |
+
}
|
| 183 |
+
```
|
| 184 |
+
如果您使用我们的官方代码评测模型,可以直接压缩实验结果文件夹`./results/{EXPERIMENT_NAME}`中的预测文件`prediction.json`和配置文件`args.json`为`.zip`格式。
|
| 185 |
+
|
| 186 |
+
然后,您可以将你的结果提交到我们的[评测页面](https://opendfm.github.io/MULTI-Benchmark/static/pages/submit.html)。
|
| 187 |
+
</details>
|
| 188 |
+
|
| 189 |
+
欢迎拉取请求(Pull Request)并贡献您的代码到我们的评测代码中。我们感激不尽!
|
| 190 |
+
|
| 191 |
+
**[提示]** 感谢您对 MULTI 数据集的关注!如果您希望将您的模型结果添加至榜单,请填写[此问卷](https://wj.sjtu.edu.cn/q/89UmRAJn),您的个人信息将被严格保密,请放心填写。🤗
|
| 192 |
+
|
| 193 |
+
## 📑 引用
|
| 194 |
+
|
| 195 |
+
如果您觉得我们的工作有用,请引用我们!
|
| 196 |
+
|
| 197 |
+
```
|
| 198 |
+
@article{zhu2025multi,
|
| 199 |
+
title={{MULTI}: Multimodal Understanding Leaderboard with Text and Images},
|
| 200 |
+
author={Zichen Zhu and Yang Xu and Lu Chen and Jingkai Yang and Yichuan Ma and Yiming Sun and Hailin Wen and Jiaqi Liu and Jinyu Cai and Yingzi Ma and Situo Zhang and Zihan Zhao and Liangtai Sun and Kai Yu},
|
| 201 |
+
journal = "SCIENCE CHINA Information Sciences",
|
| 202 |
+
year = "2025",
|
| 203 |
+
volume = "68",
|
| 204 |
+
number = "10",
|
| 205 |
+
pages = "200107.1--200107.26",
|
| 206 |
+
doi = "https://doi.org/10.1007/s11432-024-4602-x"
|
| 207 |
+
}
|
| 208 |
+
```
|
| 209 |
+
|
| 210 |
+
## 📧 联系我们
|
| 211 |
+
|
| 212 |
+
如果您有任何问题,请随时通过电子邮件与我们联系: `JamesZhutheThird@sjtu.edu.cn`
|