SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2509.14232 · ICML · 2025

GenExam: A Multidisciplinary Text-to-Image Exam

Jifeng Dai, Yu Qiao, Wenhai Wang, Xiangyu Zhao, Gen Luo, Zhaokai Wang, Penghao Yin, Changyao Tian

arXiv · PDF · Open in the Atlas

Code that ran

3 of 4 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 1 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2509.14232.json · badge: /api/ran/2509.14232.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
OpenGVLab/GenExam canonical (classifier label)
classifier basis: census
3 ran · 1 no recorded run
FunctionStatusWhere it lives
cal_score_single Ran
ran; our contract draft was wrong, not the code
OpenGVLab/GenExam/cal_score.py
code served (permissive licence) · get_code("8a2c3a82ded78363")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

# Construct a valid eval_result for cal_score_single

# The function expects:
# 1. 'global_evaluation' with nested structure containing score dicts for:
#    - 'Clarity and Readability' with 'score' field
#    - 'Logical Consistency' with 'score' field
#    - 'Spelling' with 'score' field
# 2. 'answers' - list of dicts with 'answer' field (0 or 1)
# 3. 'scoring_points' - list of dicts with 'score' field that sum to 1.0

eval_result = {
    'global_evaluation': {
        'Clarity and Readability': {'score': 2},
        'Logical Consistency': {'score': 2},
        'Spelling': {'score': 2}
    },
    'answers': [
        {'answer': 1},
        {'answer': 1},
        {'answer': 0},
        {'answer': 1}
    ],
    'scoring_points': [
        {'score': 0.25},
        {'score': 0.25},
        {'score': 0.25},
        {'score': 0.25}
    ]
}

ARGS = {
    'eval_result': eval_result
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
calculate_score Ran
ran; our contract draft was wrong, not the code
OpenGVLab/GenExam/cal_score.py
code served (permissive licence) · get_code("fdc208489297bdd5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import json
import os
import tempfile
from pathlib import Path

# Create a temporary directory structure with test JSON files
temp_dir = tempfile.mkdtemp()

# Create a sample eval result that satisfies the function requirements
eval_result_1 = {
    'id': 'sample_1',
    'subject': 'math',
    'global_evaluation': {
        'Clarity and Readability': {'score': 2},
        'Logical Consistency': {'score': 2},
        'Spelling': {'score': 2}
    },
    'answers': [
        {'answer': 1},
        {'answer': 1}
    ],
    'scoring_points': [
        {'score': 0.5},
        {'score': 0.5}
    ]
}

eval_result_2 = {
    'id': 'sample_2',
    'subject': 'math',
    'global_evaluation': {
        'Clarity and Readability': {'score': 1},
        'Logical Consistency': {'score': 1},
        'Spelling': {'score': 1}
    },
    'answers': [
        {'answer': 1},
        {'answer': 0}
    ],
    'scoring_points': [
        {'score': 0.6},
        {'score': 0.4}
    ]
}

eval_result_3 = {
    'id': 'sample_3',
    'subject': 'science',
    'global_evaluation': {
        'Clarity and Readability': {'score': 2},
        'Logical Consistency': {'score': 2},
        'Spelling': {'score': 2}
    },
    'answers': [
        {'answer': 0},
        {'answer': 1}
    ],
    'scoring_points': [
        {'score': 0.3},
        {'score': 0.7}
    ]
}

# Write JSON files to the temp directory
subdir = os.path.join(temp_dir, 'results')
os.makedirs(subdir, exist_ok=True)

with open(os.path.join(subdir, 'result_1.json'), 'w') as f:
    json.dump(eval_result_1, f)

with open(os.path.join(subdir, 'result_2.json'), 'w') as f:
    json.dump(eval_result_2, f)

with open(os.path.join(subdir, 'result_3.json'), 'w') as f:
    json.dump(eval_result_3, f)

# Create a sampled_id file
sampled_id_file = os.path.join(temp_dir, 'sampled_ids.txt')
with open(sampled_id_file, 'w') as f:
    f.write('sample_1\n')
    f.write('sample_2\n')
    f.write('sample_3\n')

ARGS = {
    'eval_results_dir': subdir,
    'sampled_id_path': sampled_id_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
encode_image Ran
ran; our contract draft was wrong, not the code
OpenGVLab/GenExam/run_eval.py
code served (permissive licence) · get_code("c780d21931c485a1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import base64
from PIL import Image
import io
import tempfile
import os

# Create a small test image and save it to a temporary file
def create_test_image():
    img = Image.new('RGB', (2048, 1536), color='red')
    temp_file = tempfile.NamedTemporaryFile(delete=False, suffix='.png')
    img.save(temp_file.name)
    temp_file.close()
    return temp_file.name

image_path = create_test_image()

ARGS = {
    'image_path': image_path,
    'target_size': 1024,
    'fmt': 'JPEG'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
call_gpt5 Not yet run
unverified (harvested, no recorded run)
OpenGVLab/GenExam/run_eval.py
code served (permissive licence) · get_code("4d31d97366ab0b2e")
How it ran

no invocation recorded.

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 4 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 4 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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 closedsource ones. By framing image generation as an exam, GenExam offers a rigorous assessment of models' ability to integrate understanding, reasoning, and generation, providing insights for on the path to intelligent generative models. Our benchmark and evaluation code are released at https: //github.com/OpenGVLab/GenExam.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2509.14232")
get_code_for_paper("2509.14232")
have("2509.14232")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2509.14232.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2509.14232.svg)](https://syntology.ai/paper/2509.14232)

Connect an agent — have() is free.