SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · ijcai2025_0762 · IJCAI · 2025

M 4 Bench: A Benchmark of Multi-domain Multi-granularity Multi-image Understanding for Multi-modal Large Language Models

Rui Wang, Sheng Zhou, Chun Wang, Xiaojun Ye, Liangcheng Li, Gang Huang, Guanbao Liang, Pengfei Ke, Bingxin Jia, Qiao Sun

Open in the Atlas

Code that ran

8 of 9 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, 1 violated it and 0 have no contract verdict; 7 failures of our instrument; 1 no recorded run), measured 2026-11-24; 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/ijcai2025_0762.json · badge: /api/ran/ijcai2025_0762.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
eaglelab-zju/M4Bench canonical (classifier label)
classifier basis: census
8 ran · 1 no recorded run
FunctionStatusWhere it lives
build_prompt_blink Ran
ran; our contract draft was wrong, not the code
eaglelab-zju/M4Bench/utils/evaluation.py
code served (permissive licence) · get_code("24edbe9e87149835")
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 torch
import numpy as np

# The function build_prompt_blink takes three string parameters:
# question, options, and prediction
# It formats them into a template string

# Create sample arguments
question = "What is the capital of France?"
options = "(A) London\n(B) Paris\n(C) Berlin\n(Z) Failed"
prediction = "The capital of France is Paris, which is located in the north-central part of the country."

ARGS = {
    "question": question,
    "options": options,
    "prediction": prediction,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — 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
build_prompt_cn Ran
ran; our contract draft was wrong, not the code
eaglelab-zju/M4Bench/utils/evaluation.py
code served (permissive licence) · get_code("5ce25848ba2f94fa")
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 torch

ARGS = {
    "question": "图中最主要的物体是什么?",
    "options": "A. 泰迪熊 B. 兔子 C. 猫 D. 狗",
    "prediction": "一只可爱的泰迪熊"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — 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
cn_string Ran
ran, violated the contract we drafted
eaglelab-zju/M4Bench/utils/evaluation.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Slimshilin/Position-Bias-Analyzer-Demo, is pointer only (licence: NONE) · get_code("e8277b4e02292cbe")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from Slimshilin/Position-Bias-Analyzer-Demo, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

deepseek_vl2_grounding_template_func Ran
ran; our contract draft was wrong, not the code
eaglelab-zju/M4Bench/utils/grounding.py
code served (permissive licence) · get_code("461e62c9391f9fe7")
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 torch
import numpy as np

# Set seed for reproducibility
torch.manual_seed(0)

# Construct arguments for deepseek_vl2_grounding_template_func
# The function takes bounding box coordinates and image dimensions,
# then scales them and formats as a detection string

ARGS = {
    "x1": 10,
    "y1": 20,
    "x2": 100,
    "y2": 150,
    "image_width": 512,
    "image_height": 384,
    "max_range": 999
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — 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
internvl2_grounding_template_func Ran
ran; our contract draft was wrong, not the code
eaglelab-zju/M4Bench/utils/grounding.py
code served (permissive licence) · get_code("3ab0bae9ed64f003")
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 torch
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# - x1, y1, x2, y2: numeric coordinates (floats or ints)
# - image_width, image_height: numeric dimensions (ints)
# - max_range: numeric with default 1000
# The function normalizes box coordinates and returns a formatted string

ARGS = {
    'x1': 100.5,
    'y1': 150.3,
    'x2': 300.7,
    'y2': 400.2,
    'image_width': 640,
    'image_height': 480,
    'max_range': 1000
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — 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
prepare_object_states_prompt Ran
ran; our contract draft was wrong, not the code
eaglelab-zju/M4Bench/utils/prompt.py
code served (permissive licence) · get_code("832d3420b6ae246f")
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 tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 torch

torch.manual_seed(0)

sample = {
    'question': 'What color is the object?',
    'question_add_image_token': '[IMAGE] What color is the object?',
    'options': ['Red', 'Blue']
}

remove_image_tag = False
grounding_template = 'template_value'

ARGS = {
    'sample': sample,
    'remove_image_tag': remove_image_tag,
    'grounding_template': grounding_template
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
prepare_state_invariance_prompt Ran
ran; our contract draft was wrong, not the code
eaglelab-zju/M4Bench/utils/prompt.py
code served (permissive licence) · get_code("91ae6a80f873c517")
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 tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 torch

# Construct a sample dict with the required keys
sample = {
    'question': 'What is the color of the sky?',
    'question_add_image_token': '<image> What is the color of the sky?',
    'options': ['Blue', 'Green']
}

# Define parameters
remove_image_tag = False
grounding_template = None  # Not used in the function body

# Map all parameters to ARGS
ARGS = {
    'sample': sample,
    'remove_image_tag': remove_image_tag,
    'grounding_template': grounding_template
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
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
qwen2vl_grounding_template_func Ran
ran; our contract draft was wrong, not the code
eaglelab-zju/M4Bench/utils/grounding.py
code served (permissive licence) · get_code("10766df80504eb71")
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 torch

torch.manual_seed(0)

ARGS = {
    "x1": 100,
    "y1": 150,
    "x2": 400,
    "y2": 500,
    "image_width": 800,
    "image_height": 600,
    "max_range": 1000
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — 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
prepare_detailed_difference_prompt Not yet run
unverified (harvested, no recorded run)
eaglelab-zju/M4Bench/utils/prompt.py
code served (permissive licence) · get_code("f3eb6116cf0addaf")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 8 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.

FunctionAlso present inEarliest-datedOthers named
cn_string 3 other papers
3 dated earlier
2403.08604 (2024-03)
Prompting Large Language Models to Tackle the Full Software Development Lifecycle: A Case Study
2404.06480 (2024-04)
Ada-LEval: Evaluating long-context LLMs with length-adaptable benchmarks
2406.07791 (2024-06)
Judging the Judges: A Systematic Study of Position Bias in LLM-as-a-Judge

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-24.

Repositories linked to this paper

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

Abstract

The increasing demands in analyzing complex associated scenes pose necessities to researching multi-image understanding abilities. Compared with understanding individual images, both the alignments and differences between images are essential aspects of understanding the intricate relationships for multi-image inference tasks. However, existing benchmarks face difficulties in addressing both of these aspects simultaneously, resulting in obstacles to modeling relationships under various granularities and domains of images. In this paper, we introduce M 4 Bench to enhance the capability of aligning and distinguishing multi-images with multi-domain multi-granularity comparison. We carefully design five comparison tasks related to coarse and fine-grained granularities in single and multiple domains of images and evaluate them on 13 state-of-the-art multi-modal large language models with various sizes. Besides, we analyze the evaluation results and provide several observations and viewpoints for the multi-image understanding research. The data and evaluation code are available at https://github.com/eaglelab-zju/M4Bench.

For agents

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

get_harvested_code_for_paper("ijcai2025_0762")
get_code_for_paper("ijcai2025_0762")
have("ijcai2025_0762")

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

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

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

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

Connect an agent — have() is free.