Official Repository of MMLONGBENCH-DOC: Benchmarking Long-context Document Understanding with Visualizations
156
stars
13
commits
Python
primary language
Sep 28, 2025
updated
Yubo Ma · Yuhang Zang · Liangyu Chen · Meiqi Chen · Yizhu Jiao · Xinze Li · Xinyuan Lu · Ziyu Liu · Yan Ma · Xiaoyi Dong · Pan Zhang · Liangming Pan . Yu-Gang Jiang . Jiaqi Wang . Yixin Cao . Aixin Sun
📖Paper |🏠Homepage|🤗Huggingface|🏅Leaderboard
The automatic understanding of lengthy documents (Long-context Document Understanding; DU) stands as a long-standing task in urgent and practical needs. Although many LVLMs now claim (and show promising cases) their capabilities on long-context DU, there lacks a unified and quantitative evaluation of existing models due to the absence of related benchmark.
To bridge this gap, we construct MMLongBench-Doc which comprises 135 documents and 1091 qustions (each accompanied by a short, deterministic reference answer and detailed meta information.). The documents have an average of 47.5 pages and 21,214 tokens, cover 7 diverse domains, and are PDF-formatted with rich layouts and multi-modal components. The questions are either curated from existing datasets or newly-annotated by expert-level annotators. Towards a comprehensive evaluation, the questions cover different sources like text, table, chart, image, etc., and different locations (page index) of the documents. Notably, 33.0% questions are cross-page questions necessitating comprehension and reasoning on evidences across multiple pages. And 22.5% questions are designed to be unanswerable for reducing the shortcuts in this benchmark and detecting LVLMs' hallucinations.
We save our benchmark, including both questions and documents, in ./data.
{
"doc_id": "Independents-Report.pdf",
"doc_type": "Research report / Introduction",
"question": "What's the percentage of people who are democrats and voted in the last election compared to the entire population in 2018?",
"answer": "18.29%",
"evidence_pages": "[3, 5]",
"evidence_sources": "['Pure-text (Plain-text)']",
"answer_format": "Float",
}
./data/documents as the format of PDF files.You can also download this dataset by the following command (make sure that you have installed Huggingface Datasets):
from datasets import load_dataset
samples = load_dataset("yubo2333/MMLongBench-Doc/data")["train"]
python 3.9
2.1.2+cu121
You can install other dependencies by pip install -r requirements.txt.
MODEL_NAME=[gpt-4o|gpt-4-turbo|gemini-1.5-pro-latest|internvl|4khd|minicpm_llama3] bash run.sh
Note that
OPENAI_API_KEY should be set no matter what models you are evaluating because we adopt a three-stage evaluation protocol as detailed in Section 4.1 of our paper. The conversion from a long-form response to a short-form prediction necessitates GPT-4o's involving.@misc{ma2024mmlongbenchdocbenchmarkinglongcontextdocument,
title={MMLongBench-Doc: Benchmarking Long-context Document Understanding with Visualizations},
author={Yubo Ma and Yuhang Zang and Liangyu Chen and Meiqi Chen and Yizhu Jiao and Xinze Li and Xinyuan Lu and Ziyu Liu and Yan Ma and Xiaoyi Dong and Pan Zhang and Liangming Pan and Yu-Gang Jiang and Jiaqi Wang and Yixin Cao and Aixin Sun},
year={2024},
eprint={2407.01523},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2407.01523},
}
Usage and License Notices: The data and code are intended and licensed for research use only.
License: Attribution-NonCommercial 4.0 International It should abide by the policy of OpenAI: https://openai.com/policies/terms-of-use
Python
98.1%
Shell
1.9%
Official Repository of MMLONGBENCH-DOC: Benchmarking Long-context Document Understanding with Visualizations
156
stars
13
commits
Python
primary language
Sep 28, 2025
updated
Yubo Ma · Yuhang Zang · Liangyu Chen · Meiqi Chen · Yizhu Jiao · Xinze Li · Xinyuan Lu · Ziyu Liu · Yan Ma · Xiaoyi Dong · Pan Zhang · Liangming Pan . Yu-Gang Jiang . Jiaqi Wang . Yixin Cao . Aixin Sun
📖Paper |🏠Homepage|🤗Huggingface|🏅Leaderboard
The automatic understanding of lengthy documents (Long-context Document Understanding; DU) stands as a long-standing task in urgent and practical needs. Although many LVLMs now claim (and show promising cases) their capabilities on long-context DU, there lacks a unified and quantitative evaluation of existing models due to the absence of related benchmark.
To bridge this gap, we construct MMLongBench-Doc which comprises 135 documents and 1091 qustions (each accompanied by a short, deterministic reference answer and detailed meta information.). The documents have an average of 47.5 pages and 21,214 tokens, cover 7 diverse domains, and are PDF-formatted with rich layouts and multi-modal components. The questions are either curated from existing datasets or newly-annotated by expert-level annotators. Towards a comprehensive evaluation, the questions cover different sources like text, table, chart, image, etc., and different locations (page index) of the documents. Notably, 33.0% questions are cross-page questions necessitating comprehension and reasoning on evidences across multiple pages. And 22.5% questions are designed to be unanswerable for reducing the shortcuts in this benchmark and detecting LVLMs' hallucinations.
We save our benchmark, including both questions and documents, in ./data.
{
"doc_id": "Independents-Report.pdf",
"doc_type": "Research report / Introduction",
"question": "What's the percentage of people who are democrats and voted in the last election compared to the entire population in 2018?",
"answer": "18.29%",
"evidence_pages": "[3, 5]",
"evidence_sources": "['Pure-text (Plain-text)']",
"answer_format": "Float",
}
./data/documents as the format of PDF files.You can also download this dataset by the following command (make sure that you have installed Huggingface Datasets):
from datasets import load_dataset
samples = load_dataset("yubo2333/MMLongBench-Doc/data")["train"]
python 3.9
2.1.2+cu121
You can install other dependencies by pip install -r requirements.txt.
MODEL_NAME=[gpt-4o|gpt-4-turbo|gemini-1.5-pro-latest|internvl|4khd|minicpm_llama3] bash run.sh
Note that
OPENAI_API_KEY should be set no matter what models you are evaluating because we adopt a three-stage evaluation protocol as detailed in Section 4.1 of our paper. The conversion from a long-form response to a short-form prediction necessitates GPT-4o's involving.@misc{ma2024mmlongbenchdocbenchmarkinglongcontextdocument,
title={MMLongBench-Doc: Benchmarking Long-context Document Understanding with Visualizations},
author={Yubo Ma and Yuhang Zang and Liangyu Chen and Meiqi Chen and Yizhu Jiao and Xinze Li and Xinyuan Lu and Ziyu Liu and Yan Ma and Xiaoyi Dong and Pan Zhang and Liangming Pan and Yu-Gang Jiang and Jiaqi Wang and Yixin Cao and Aixin Sun},
year={2024},
eprint={2407.01523},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2407.01523},
}
Usage and License Notices: The data and code are intended and licensed for research use only.
License: Attribution-NonCommercial 4.0 International It should abide by the policy of OpenAI: https://openai.com/policies/terms-of-use
Python
98.1%
Shell
1.9%