# GenExam **Repository Path**: py-service/GenExam ## Basic Information - **Project Name**: GenExam - **Description**: https://github.com/OpenGVLab/GenExam - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-03-04 - **Last Updated**: 2026-03-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
# logo GenExam: A Multidisciplinary Text-to-Image Exam [Zhaokai Wang](https://www.wzk.plus/)\*, [Penghao Yin](https://penghaoyin.github.io/)\*, [Xiangyu Zhao](https://scholar.google.com/citations?user=eqFr7IgAAAAJ), [Changyao Tian](https://scholar.google.com/citations?user=kQ3AisQAAAAJ), [Yu Qiao](https://scholar.google.com/citations?user=gFtI-8QAAAAJ), [Wenhai Wang](https://whai362.github.io/), [Jifeng Dai](https://jifengdai.org/), [Gen Luo](https://scholar.google.com/citations?user=EyZqU9gAAAAJ)

arXiv PDF data img/data data img/data data img/data



teaser

## ⭐️ News * [2026/2/26] Results of Seedream 5.0 and Nano Banana 2 are updated. * [2026/1/28] Results of Qwen-Image-2512 and FLUX.2 dev are updated. * [2025/12/17] Results of GPT-Image-1.5, Seedream 4.5 and FLUX.2 max are updated. * [2025/11/23] Nano Banana Pro achieves new SOTA! (72.7 strict score and 93.7 relaxed score) * [2025/10/7] Results of HunyuanImage-3.0 are updated. * [2025/9/18] GenExam is released! ## 📖 Introduction Exams are a fundamental test of expert-level intelligence and require integrated understanding, reasoning, and generation. Existing exam-style benchmarks mainly focus on understanding and reasoning tasks, and current generation benchmarks emphasize the illustration of world knowledge and visual concepts, neglecting the evaluation of rigorous drawing exams. We introduce GenExam, the first benchmark for **multidisciplinary text-to-image exams**, featuring 1,000 samples across 10 subjects with exam-style prompts organized under a four-level taxonomy. Each problem is equipped with ground-truth images and fine-grained scoring points to enable a precise evaluation of semantic correctness and visual plausibility. Experiments on 17 text-to-image and unified models demonstrate the great challenge of GenExam and the huge gap where open-source models consistently lag behind the leading closed-source ones. By framing image generation as an exam, GenExam offers a rigorous assessment of models' ability to integrate understanding, reasoning, and generation, providing insights on the path to intelligent generative models. Our benchmark and evaluation code will be released.
overview overview
## 🚀 Leaderboard ### Strict Score
Model         MathPhyChemBio GeoCompEngEcon MusicHistOverall
Closed-source Models
Nano Banana Pro55.675.260.275.675.865.771.288.361.597.672.7
Nano Banana 256.374.352.566.069.756.967.663.650.882.964.1
Seedream 5.047.038.938.144.245.545.155.962.335.429.344.2
GPT-Image-1.526.546.039.056.460.636.344.142.929.251.243.2
GPT-Image-18.013.213.522.815.910.313.113.09.32.412.1
Seedream 4.55.311.57.625.012.112.715.315.63.14.911.3
FLUX.2 max6.68.86.811.615.28.810.82.66.27.38.5
Seedream 4.02.63.55.918.610.66.911.75.20.07.37.2
Imagen-4-Ultra2.69.79.314.77.62.912.69.10.00.06.9
Gemini-2.5-Flash-Image0.77.14.25.14.54.910.01.31.50.03.9
Seedream 3.00.70.00.80.00.00.00.00.00.00.00.2
FLUX.1 Kontext max0.00.00.00.00.00.00.00.00.00.00.0
Open-source T2I Models
FLUX.2 dev2.61.84.63.83.01.02.71.30.00.02.1
Qwen-Image-25120.02.70.81.36.10.04.50.00.00.01.5
Qwen-Image0.00.00.00.03.00.00.00.00.00.00.3
HiDream-I1-Full0.00.00.00.00.00.00.00.00.00.00.0
HunyuanImage-3.00.00.00.00.00.00.00.00.00.00.00.0
FLUX.1 dev0.00.00.00.00.00.00.00.00.00.00.0
FLUX.1 Krea0.00.00.00.00.00.00.00.00.00.00.0
Stable Diffusion 3.5 Large0.00.00.00.00.00.00.00.00.00.00.0
Open-source Unified MLLMs
BAGEL (thinking)0.00.00.00.00.00.00.00.00.00.00.0
BAGEL0.00.00.00.00.00.00.00.00.00.00.0
Show-o2-7B0.00.00.00.00.00.00.00.00.00.00.0
Show-o2-1.5B-HQ0.00.00.00.00.00.00.00.00.00.00.0
BLIP3o-NEXT-GRPO-Text-30.00.00.00.00.00.00.00.00.00.00.0
BLIP3o-8B0.00.00.00.00.00.00.00.00.00.00.0
Janus-Pro0.00.00.00.00.00.00.00.00.00.00.0
Emu30.00.00.00.00.00.00.00.00.00.00.0

### Relaxed Score
Model MathPhyChemBio GeoCompEngEcon MusicHistOverall
Closed-source Models
Nano Banana Pro86.395.188.795.996.591.795.197.291.099.993.7
Nano Banana 287.895.790.095.294.888.895.894.286.997.392.6
Seedream 5.082.985.781.189.989.585.291.294.776.787.086.4
GPT-Image-1.565.885.478.191.992.575.886.485.570.890.982.3
GPT-Image-152.066.453.474.673.955.665.565.852.667.462.6
FLUX.2 max49.163.254.074.576.356.568.961.547.068.061.9
Seedream 4.544.763.448.975.867.657.969.767.338.055.058.8
Gemini-2.5-Flash-Image43.160.945.372.670.247.465.859.837.057.155.9
Imagen-4-Ultra35.957.444.568.166.940.165.659.738.457.853.4
Seedream 4.039.849.046.171.065.152.260.056.034.556.753.0
FLUX.1 Kontext max23.525.619.238.347.520.928.922.325.433.528.5
Seedream 3.018.621.518.332.238.215.326.512.521.629.223.4
Open-source T2I Models
FLUX.2 dev31.642.733.254.862.631.148.943.633.447.542.9
Qwen-Image-251227.941.323.244.456.624.142.932.328.337.035.8
Qwen-Image18.926.315.332.149.618.932.020.323.438.627.5
HiDream-I1-Full16.717.713.527.336.215.424.418.821.331.822.3
HunyuanImage-3.017.017.218.818.730.415.516.911.723.920.419.1
FLUX.1 dev12.214.412.522.836.411.014.09.221.321.717.6
FLUX.1 Krea7.014.08.526.538.48.415.411.116.817.416.4
Stable Diffusion 3.5 Large12.213.210.721.838.86.616.38.024.118.017.0
Open-source Unified MLLMs
BAGEL (thinking)11.713.811.915.228.56.210.76.314.716.013.5
BAGEL14.710.67.910.824.56.810.25.313.714.411.9
Show-o2-7B10.811.94.812.833.34.711.87.08.814.512.0
Show-o2-1.5B-HQ7.37.56.215.025.34.39.37.37.619.811.0
BLIP3o-NEXT-GRPO-Text-315.510.59.215.523.78.210.18.115.210.212.6
BLIP3o-8B6.45.54.77.016.73.68.42.56.011.27.2
Janus-Pro13.78.88.27.218.83.910.54.214.56.69.6
Emu311.30.60.65.634.65.116.51.95.86.28.8
### Comparison Across Four Dimensions
## 🛠️ Usage Our data is stored in `data/`. You can also download them from [Huggingface](https://huggingface.co/datasets/OpenGVLab/GenExam/resolve/main/GenExam_data.zip?download=true). Additionally, images organized by taxonomy can be found [here](https://huggingface.co/datasets/OpenGVLab/GenExam/resolve/main/images_by_taxonomy.zip?download=true). ### 1. Prerequisites 1. Install requirements: `pip install requests tqdm pillow` 2. Set `openai_api_key` and `openai_base_url` (optional, if you want to use proxy) in `run_eval.py` for the gpt-5-20250807 evaluator and inference of gpt-image-1. 3. Generate the images offline with your model based on the `prompt` values in `data/annotations/All_Subjects.jsonl`. Saved image paths should be like `gen_imgs/{id}.png`. ### 2. Run Evaluation #### Offline Inference Run evaluation offline if images are already generated in `gen_imgs/`: ```bash python run_eval.py --data_dir ./data/ --img_save_dir ./gen_imgs --eval_save_dir ./eval_results ``` The eval results are saved to separate jsons under `./eval_results` for each sample. The `run_eval.py` script supports resuming from breakpoints. If your evaluation encounters an error midway, simply **re-run** the script. #### Online Inference Alternatively, you can add `--run_inference` to inference and evaluation together (generate images online): ```bash python run_eval.py --run_inference --data_dir ./data/ --img_save_dir ./gen_imgs --eval_save_dir ./eval_results ``` This script runs gpt-image-1 by default, which costs $185 on the full set ($160 for inference and $25 for evaluation). You can replace the `inference_function` in the script with customized function for your model's inference. #### Speed Up with Multiprocessing Add a `--max_worker` argument to speed up with multiprocessing: ```bash python run_eval.py --max_worker 20 --data_dir ./data/ --img_save_dir ./gen_imgs --eval_save_dir ./eval_results ``` ### 3. Calculate Scores Run the script to generate a detailed report for the eval results: ```bash python cal_score.py --eval_results_dir ./eval_results ``` This should give a report like:
Report Example ```yaml ================================================================================ Each score dimension: - semantic_correctness: 0.47 - spelling: 1.48 - readability: 1.55 - logical_consistency: 0.7 ================================================================================ Each score dimension (average) for each subject: - Computer_Science: semantic_correctness: 0.53 spelling: 1.68 readability: 1.43 logical_consistency: 0.66 - Physics: semantic_correctness: 0.4 spelling: 1.7 readability: 1.41 logical_consistency: 0.5 - Biology: semantic_correctness: 0.72 spelling: 1.28 readability: 1.59 logical_consistency: 1.02 - History: semantic_correctness: 0.53 spelling: 1.32 readability: 1.68 logical_consistency: 0.85 - Math: semantic_correctness: 0.24 spelling: 1.5 readability: 1.65 logical_consistency: 0.29 - Geography: semantic_correctness: 0.62 spelling: 1.27 readability: 1.69 logical_consistency: 0.98 - Economics: semantic_correctness: 0.56 spelling: 1.77 readability: 1.58 logical_consistency: 0.75 - Chemistry: semantic_correctness: 0.33 spelling: 1.33 readability: 1.52 logical_consistency: 0.6 - Music: semantic_correctness: 0.26 spelling: 1.42 readability: 1.5 logical_consistency: 0.46 - Engineering: semantic_correctness: 0.56 spelling: 1.49 readability: 1.43 logical_consistency: 0.94 -------------------------------------------------------------------------------- Total number of eval results: 487 -------------------------------------------------------------------------------- Strict score: - Computer_Science(47 samples): 10.2% - Physics(46 samples): 3.5% - Biology(46 samples): 12.2% - History(41 samples): 5.9% - Math(52 samples): 0.0% - Geography(52 samples): 7.7% - Economics(52 samples): 3.1% - Chemistry(52 samples): 4.6% - Music(52 samples): 0.0% - Engineering(47 samples): 6.8% Average strict score: 5.4% -------------------------------------------------------------------------------- Relaxed score: - Computer_Science(47 samples): 44.8% - Physics(46 samples): 36.9% - Biology(46 samples): 56.1% - History(41 samples): 45.4% - Math(52 samples): 27.2% - Geography(52 samples): 50.7% - Economics(52 samples): 47.6% - Chemistry(52 samples): 32.4% - Music(52 samples): 27.8% - Engineering(47 samples): 47.0% Average relaxed score: 41.6% ```
### Run on GenExam-Mini To run evaluation on the mini subset, you can add a `--mini` argument when running `run_eval.py`: ```bash python run_eval.py --mini --data_dir ./data/ --img_save_dir ./gen_imgs --eval_save_dir ./eval_results ``` If you have already run evaluation on the full set, you can alternatively add `--mini` when running `cal_score.py`: ```bash python cal_score.py --mini --eval_results_dir ./eval_results ``` ## 🖼 Examples of Generated Images For more examples, please refer to the appendix in our paper and [this repo](https://huggingface.co/datasets/OpenGVLab/GenExam_Gen_Images).
math
### Images Generated by Nano Banana Pro | bio_1 | bio_2 | chem | |-----|-----|-----| | comp | econ | eng | | geo | hist | music | | math_1 | math_2 | phy | ## 📃 License This project is released under the [MIT license](LICENSE). ## 🖊️ Citation If you find our work helpful, please consider giving us a ⭐ and citing our paper: ```bibtex @article{GenExam, title={GenExam: A Multidisciplinary Text-to-Image Exam}, author = {Wang, Zhaokai and Yin, Penghao and Zhao, Xiangyu and Tian, Changyao and Qiao, Yu and Wang, Wenhai and Dai, Jifeng and Luo, Gen}, journal={arXiv preprint arXiv:2509.14232}, year={2025} } ```