SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.13164 · ICLR · 2025

VL-ICL Bench: The Devil in the Details of Multimodal In-Context Learning

Timothy Hospedales, Ondrej Bohdal, Yongshuo Zong, Induction Operator, Perpo

arXiv · PDF · Open in the Atlas

Code that ran

6 of 10 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; 6 failures of our instrument; 4 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2403.13164.json · badge: /api/ran/2403.13164.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
ys-zong/vl-icl canonical (classifier label)
classifier basis: census
6 ran · 4 no recorded run
FunctionStatusWhere it lives
coco_id_to_imgname Ran
ran; our contract draft was wrong, not the code
ys-zong/vl-icl/utils/utils.py
code served (permissive licence) · get_code("d1db96fcb77d3b5f")
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 = {
    'img_id': 12345,
    'prefix': 'COCO_val2014_'
}
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
format_answer Ran
ran; our contract draft was wrong, not the code
ys-zong/vl-icl/utils/ICL_utils.py
code served (permissive licence) · get_code("6908e3a4a22ac1b2")
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)

# Analyzing the function:
# - answer: can be various types, gets converted to str if dataset matches certain values
# - dataset: string that's checked against a list of specific dataset names
# - query: optional parameter (default None), not used in the function body

# For testing, we'll use:
# - answer: an integer (will be converted to string for operator_induction dataset)
# - dataset: one of the datasets that triggers the string conversion
# - query: None (optional, not used)

answer_value = 42
dataset_value = "operator_induction"
query_value = None

ARGS = {
    "answer": answer_value,
    "dataset": dataset_value,
    "query": query_value
}
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
get_task_instruction Ran
ran; our contract draft was wrong, not the code
ys-zong/vl-icl/utils/ICL_utils.py
code served (permissive licence) · get_code("c5402088fb8f3686")
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
from types import SimpleNamespace

torch.manual_seed(0)

# Create a simple args object with the required attributes
args = SimpleNamespace(
    dataset='textocr',
    task_description='concise'
)

ARGS = {
    'args': args
}
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
load_image Ran
ran; our contract draft was wrong, not the code
ys-zong/vl-icl/utils/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from dtennant/mirb_eval, is pointer only (licence: NONE) · get_code("2a0bf8b452c624f0")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from dtennant/mirb_eval, 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.

select_demonstration Ran
ran; our contract draft was wrong, not the code
ys-zong/vl-icl/utils/ICL_utils.py
code served (permissive licence) · get_code("79f8918d0e4fd3f2")
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 list, 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 random
import copy

random.seed(0)

# Test case 1: operator_induction dataset
support_meta_op = [
    {'answer': [10, 5, 50]},
    {'answer': [20, 15, 100]},
    {'answer': [7, 3, 21]},
]

query_op = {
    'operator': '+',
}

# Test case 2: open_mi dataset
support_open_mi = [
    {
        'image': 'img1.jpg',
        'answer': 'cat',
    },
    {
        'image': 'img2.jpg',
        'answer': 'dog',
    },
]

query_open_mi = {
    'answer': 'cat',
    'classes': ['cat', 'dog'],
    'support': {
        'cat': {'images': ['cat1.jpg', 'cat2.jpg', 'cat3.jpg']},
        'dog': {'images': ['dog1.jpg', 'dog2.jpg', 'dog3.jpg']},
    }
}

# Test case 3: matching_mi dataset
support_matching_mi = [
    {'same': {'image': 'same1.jpg'}, 'diff': {'image': 'diff1.jpg'}},
    {'same': {'image': 'same2.jpg'}, 'diff': {'image': 'diff2.jpg'}},
    {'same': {'image': 'same3.jpg'}, 'diff': {'image': 'diff3.jpg'}},
]

query_matching_mi = {}

# Test case 4: open_t2i_mi dataset
query_open_t2i_mi = {
    'task_label': 'cat',
    'classes': ['cat', 'dog'],
    'support': {
        'cat': {'images': ['cat1.jpg', 'cat2.jpg', 'cat3.jpg']},
        'dog': {'images': ['dog1.jpg', 'dog2.jpg', 'dog3.jpg']},
    }
}

# Test case 5: cobsat dataset
support_cobsat = [
    {'color': 'red', 'latent': 'color', 'task': 'classify', 'data': 'x1'},
    {'color': 'red', 'latent': 'color', 'task': 'classify', 'data': 'x2'},
    {'color': 'blue', 'latent': 'color', 'task': 'classify', 'data': 'x3'},
    {'color': 'red', 'latent': 'color', 'task': 'detect', 'data': 'x4'},
]

query_cobsat = {
    'latent': 'color',
    'color': 'red',
    'task': 'classify',
}

# Test case 6: default dataset
support_default = [
    {'data': 'item1'},
    {'data': 'item2'},
    {'data': 'item3'},
]

query_default = {}

ARGS = {
    'support_meta': support_meta_op,
    'n_shot': 2,
    'dataset': 'operator_induction',
    'query': query_op,
}
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 list, ndim 1, dtype family float — a list 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
truncate_prediction Ran
ran; our contract draft was wrong, not the code
ys-zong/vl-icl/utils/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from dtennant/mirb_eval, is pointer only (licence: NONE) · get_code("d55cfede35824b77")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from dtennant/mirb_eval, 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.

ICL_I2T_inference Not yet run
unverified (harvested, no recorded run)
ys-zong/vl-icl/utils/model_inference.py
code served (permissive licence) · get_code("13e940c1b1f7fede")
How it ran

no invocation recorded.

ICL_T2I_inference Not yet run
unverified (harvested, no recorded run)
ys-zong/vl-icl/utils/model_inference.py
code served (permissive licence) · get_code("feb3b59ad50d25a9")
How it ran

no invocation recorded.

load_i2t_model Not yet run
unverified (harvested, no recorded run)
ys-zong/vl-icl/utils/load_models.py
code served (permissive licence) · get_code("f635b601c6d366e4")
How it ran

no invocation recorded.

load_t2i_model Not yet run
unverified (harvested, no recorded run)
ys-zong/vl-icl/utils/load_models.py
code served (permissive licence) · get_code("76f7942df9f8c3a3")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 2 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 2 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
load_image 1 other paper
1 later
2406.12742 (2024-06)
Benchmarking Multi-Image Understanding in Vision and Language Models: Perception, Knowledge, Reasoning, and Multi-Hop Reasoning
truncate_prediction 1 other paper
1 later
2406.12742 (2024-06)
Benchmarking Multi-Image Understanding in Vision and Language Models: Perception, Knowledge, Reasoning, and Multi-Hop Reasoning

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

Large language models (LLMs) famously exhibit emergent in-context learning (ICL) -the ability to rapidly adapt to new tasks using few-shot examples provided as a prompt, without updating the model's weights. Built on top of LLMs, vision large language models (VLLMs) have advanced significantly in areas such as recognition, visual question answering (VQA), reasoning, and grounding. However, investigations into multimodal ICL have predominantly focused on few-shot VQA and image captioning, which we will show neither exploit the strengths of ICL, nor test its limitations. The broader capabilities and limitations of multimodal ICL remain under-explored. In this study, we introduce a comprehensive benchmark for multimodal in-context learning. Our VL-ICL Bench encompasses a broad spectrum of tasks that involve both images and text as inputs and outputs, and different types of challenges, from perception to reasoning and long context length. We evaluate the abilities of state-of-theart VLLMs on this benchmark suite, revealing their diverse strengths and weaknesses, and showing that even the most advanced models, such as GPT-4, find the tasks challenging. By highlighting a range of new ICL tasks, and the associated strengths and limitations of existing models, we hope that our dataset will inspire future work on enhancing the in-context learning capabilities of VLLMs, as well as inspire new applications that leverage VLLM ICL. Project page: https://ys-zong.github.io/VL-ICL/.

For agents

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

get_harvested_code_for_paper("2403.13164")
get_code_for_paper("2403.13164")
have("2403.13164")

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

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

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

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

Connect an agent — have() is free.