SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.14037 · 2023

MARVEL: Unlocking the Multi-Modal Capability of Dense Retrieval via Visual Module Plugin

arXiv · PDF · Open in the Atlas

Code that ran

18 of 18 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; 18 failures of our instrument; 0 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/2310.14037.json · badge: /api/ran/2310.14037.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
openmatch/marvel canonical (classifier label)
classifier basis: census
18 ran · 0 no recorded run
FunctionStatusWhere it lives
convert_to_string_id Ran
ran; our contract draft was wrong, not the code
openmatch/marvel/ANCE/retrieval.py
code served (permissive licence) · get_code("5f50bc569621e9e0")
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 torch
import numpy as np

torch.manual_seed(0)

# Analyzing the function:
# - It takes result_dict as input
# - It iterates over result_dict.items() to get k, v pairs
# - For each v, it iterates over v.items() to get inner_k, inner_v pairs
# - It converts keys to strings using str()
# - The structure is: result_dict[k][inner_k] = inner_v
# - Inner values are preserved as-is (not modified)

# Build a valid result_dict with nested structure
result_dict = {
    0: {
        1: torch.randn(2, 4),
        2: np.array([1.0, 2.0, 3.0]),
        3: "some_value"
    },
    1: {
        10: torch.tensor([5.0, 6.0]),
        20: 42,
        30: {"nested": "dict"}
    },
    "existing_string_key": {
        100: [1, 2, 3],
        200: torch.ones(2, 3)
    }
}

ARGS = {
    "result_dict": result_dict
}
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 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
get_img_patch_token_size Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
openmatch/marvel/ANCE/utils.py
code served (permissive licence) · get_code("78797c5fbc1d7a65")
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 int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape 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
from transformers import CLIPVisionModel

torch.manual_seed(0)

class MockCLIPConfig:
    def __init__(self):
        self.image_size = 224
        self.patch_size = 16

class MockCLIPVisionModel:
    def __init__(self):
        self.config = MockCLIPConfig()
    
    @classmethod
    def from_pretrained(cls, model_name):
        return cls()

# Monkey patch to avoid actual model downloads
original_from_pretrained = CLIPVisionModel.from_pretrained
CLIPVisionModel.from_pretrained = MockCLIPVisionModel.from_pretrained

ARGS = {
    "clip_model_name": "openai/clip-vit-base-patch16"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, transformers — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
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
load_candidate_from_stream Ran
ran; our contract draft was wrong, not the code
openmatch/marvel/ANCE/msmarco_eval.py
code served (permissive licence) · get_code("44dabd5275dfdd74")
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 io

# Create a stream with candidate passage data
# Format: query_id\tpassage_id\trank
stream_content = """1\t101\t1
1\t102\t2
1\t103\t3
2\t201\t1
2\t202\t2
3\t301\t1
"""

# Convert string to a file-like object
f = io.StringIO(stream_content)

ARGS = {
    "f": f
}
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
load_caps Ran
ran; our contract draft was wrong, not the code
openmatch/marvel/ANCE/data.py
code served (permissive licence) · get_code("54e02b2b07d569cc")
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 pandas as pd
import tempfile
import os

# Create a temporary directory for test files
temp_dir = tempfile.mkdtemp()

# Create a test parquet file for the 'clueweb' case
clueweb_data = {
    'img_id': ['img_001', 'img_002'],
    'caption': ['A cat sitting on a mat', 'A dog running in the park']
}
clueweb_df = pd.DataFrame(clueweb_data)
clueweb_path = os.path.join(temp_dir, 'clueweb_test.parquet')
clueweb_df.to_parquet(clueweb_path)

# Create a test jsonl file for the 'webqa' case
webqa_path = os.path.join(temp_dir, 'webqa_test.jsonl')
with open(webqa_path, 'w') as f:
    f.write(json.dumps({'image_id': 123, 'caption': 'A bird flying in the sky'}) + '\n')
    f.write(json.dumps({'image_id': 456, 'caption': 'A fish swimming in water'}) + '\n')

# Define ARGS dict with both possible paths (we'll use the clueweb one as the main test)
ARGS = {
    'path': clueweb_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — 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
load_caps Ran
ran; our contract draft was wrong, not the code
openmatch/marvel/DPR/data.py
code served (permissive licence) · get_code("f3fa7721d1d6c94a")
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 pandas as pd
import tempfile
import os

# Create temporary directory for test files
temp_dir = tempfile.mkdtemp()

# Create a test parquet file for clueweb case
clueweb_data = {
    'img_id': ['img_001', 'img_002'],
    'caption': ['A cat sitting on a mat', 'A dog playing in the park']
}
clueweb_df = pd.DataFrame(clueweb_data)
clueweb_path = os.path.join(temp_dir, 'clueweb_test.parquet')
clueweb_df.to_parquet(clueweb_path)

# Create a test jsonl file for webqa case
webqa_path = os.path.join(temp_dir, 'webqa_test.jsonl')
with open(webqa_path, 'w') as f:
    f.write(json.dumps({'image_id': 123, 'caption': 'A bird in flight'}) + '\n')
    f.write(json.dumps({'image_id': 456, 'caption': 'A tree in the forest'}) + '\n')

# Define ARGS dictionary with valid paths
ARGS = {
    'path': clueweb_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — 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
load_docs Ran
ran; our contract draft was wrong, not the code
openmatch/marvel/ANCE/data.py
code served (permissive licence) · get_code("1567be8b2bcb92d0")
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 pandas as pd
import tempfile
import os

# Create temporary files for testing
temp_dir = tempfile.mkdtemp()

# Create a parquet file for the 'clueweb' case
clueweb_data = pd.DataFrame({
    'text_id': [1, 2],
    'surround': ['context1', 'context2']
})
clueweb_path = os.path.join(temp_dir, 'clueweb_test.parquet')
clueweb_data.to_parquet(clueweb_path)

# Create a jsonl file for the 'webqa' case
webqa_path = os.path.join(temp_dir, 'webqa_test.jsonl')
with open(webqa_path, 'w') as f:
    f.write(json.dumps({'snippet_id': 101, 'fact': 'fact1'}) + '\n')
    f.write(json.dumps({'snippet_id': 102, 'fact': 'fact2'}) + '\n')

# Define ARGS with clueweb path (can also test with webqa_path)
ARGS = {
    'path': clueweb_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — 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
load_docs Ran
ran; our contract draft was wrong, not the code
openmatch/marvel/ANCE/gen_embeddings.py
code served (permissive licence) · get_code("6b65342a5278b830")
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 2, 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 json
import pandas as pd
import tempfile
import os

# Create a temporary directory for test files
temp_dir = tempfile.mkdtemp()

# Create a test parquet file for the clueweb case
clueweb_data = {
    'text_id': ['doc1', 'doc2'],
    'surround': ['surrounding text 1', 'surrounding text 2']
}
clueweb_df = pd.DataFrame(clueweb_data)
clueweb_path = os.path.join(temp_dir, 'clueweb_test.parquet')
clueweb_df.to_parquet(clueweb_path)

# Create a test jsonl file for the webqa case
webqa_path = os.path.join(temp_dir, 'webqa_test.jsonl')
with open(webqa_path, 'w') as f:
    json.dump({'snippet_id': 123, 'fact': 'test fact 1'}, f)
    f.write('\n')
    json.dump({'snippet_id': 456, 'fact': 'test fact 2'}, f)
    f.write('\n')

# Define ARGS with the clueweb path
ARGS = {
    'path': clueweb_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, 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
load_docs Ran
ran; our contract draft was wrong, not the code
openmatch/marvel/DPR/data.py
code served (permissive licence) · get_code("81c9bc5cbd1e63f4")
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 pandas as pd
import tempfile
import os

# Create a temporary directory for test data
temp_dir = tempfile.mkdtemp()

# Create a parquet file for clueweb test case
clueweb_data = pd.DataFrame({
    'text_id': [1, 2],
    'surround': ['surrounding text 1', 'surrounding text 2']
})
clueweb_path = os.path.join(temp_dir, 'clueweb_test.parquet')
clueweb_data.to_parquet(clueweb_path)

# Create a JSONL file for webqa test case
webqa_path = os.path.join(temp_dir, 'webqa_test.jsonl')
with open(webqa_path, 'w') as f:
    f.write(json.dumps({'snippet_id': 101, 'fact': 'fact text 1'}) + '\n')
    f.write(json.dumps({'snippet_id': 102, 'fact': 'fact text 2'}) + '\n')

# Define arguments - using clueweb path as the primary test case
ARGS = {
    'path': clueweb_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — 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
load_docs Ran
ran; our contract draft was wrong, not the code
openmatch/marvel/DPR/gen_embeddings.py
code served (permissive licence) · get_code("735781aa80ba078f")
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 2, 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 json
import pandas as pd
import tempfile
import os

# Create a temporary parquet file for clueweb test
temp_dir = tempfile.mkdtemp()
clueweb_path = os.path.join(temp_dir, "clueweb_test.parquet")
webqa_path = os.path.join(temp_dir, "webqa_test.jsonl")

# Create clueweb test data
clueweb_df = pd.DataFrame({
    'text_id': ['doc1', 'doc2'],
    'surround': ['surrounding text 1', 'surrounding text 2']
})
clueweb_df.to_parquet(clueweb_path)

# Create webqa test data
with open(webqa_path, 'w') as f:
    f.write(json.dumps({'snippet_id': 123, 'fact': 'fact text 1'}) + '\n')
    f.write(json.dumps({'snippet_id': 456, 'fact': 'fact text 2'}) + '\n')

ARGS = {
    'path': clueweb_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, 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
load_file Ran
ran; our contract draft was wrong, not the code
openmatch/marvel/ANCE/data.py
code served (permissive licence) · get_code("b334283bb59e66d0")
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 json
import numpy as np
import pandas as pd
import tempfile
import os

# Create temporary directory for test files
tmpdir = tempfile.mkdtemp()

# Create a test parquet file for clueweb dataset
clueweb_data = {
    'txt_negFacts': [
        [{'id': 'neg1', 'text': 'fact1'}, {'id': 'neg2', 'text': 'fact2'}],
        [{'id': 'neg3', 'text': 'fact3'}]
    ],
    'img_negFacts': [
        [{'id': 'img_neg1', 'url': 'url1'}, {'id': 'img_neg2', 'url': 'url2'}],
        [{'id': 'img_neg3', 'url': 'url3'}]
    ],
    'all_negFacts': [
        [{'id': 'all_neg1'}, {'id': 'all_neg2'}],
        [{'id': 'all_neg3'}]
    ],
    'text_id': ['txt_001', None],
    'img_id': ['img_001', 'img_002']
}

clueweb_df = pd.DataFrame(clueweb_data)
clueweb_path = os.path.join(tmpdir, 'clueweb_test.parquet')
clueweb_df.to_parquet(clueweb_path)

# Create a test jsonl file for webqa dataset
webqa_path = os.path.join(tmpdir, 'webqa_test.jsonl')
webqa_examples = [
    {
        'txt_negFacts': [{'id': 'neg1', 'text': 'fact1'}, {'id': 'neg2', 'text': 'fact2'}],
        'img_negFacts': [{'id': 'img_neg1', 'url': 'url1'}],
        'all_negFacts': [{'id': 'all_neg1'}, {'id': 'all_neg2'}],
        'txt_posFacts': [{'id': 'pos1', 'text': 'positive fact'}],
        'img_posFacts': [{'id': 'img_pos1', 'url': 'url_pos'}]
    },
    {
        'txt_negFacts': [{'id': 'neg3', 'text': 'fact3'}],
        'img_negFacts': [{'id': 'img_neg3', 'url': 'url3'}],
        'txt_posFacts': [{'id': 'pos2', 'text': 'another positive fact'}],
        'img_posFacts': []
    }
]

with open(webqa_path, 'w') as f:
    for example in webqa_examples:
        f.write(json.dumps(example) + '\n')

# Define ARGS for different test cases
ARGS = {
    'path': clueweb_path,
    'txt': True,
    'img': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — 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
load_file Ran
ran; our contract draft was wrong, not the code
openmatch/marvel/ANCE/retrieval.py
code served (permissive licence) · get_code("d71b15e3f71f7d11")
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 pandas as pd
import tempfile
import os

# Create temporary parquet file for clueweb test
temp_dir = tempfile.mkdtemp()
parquet_path = os.path.join(temp_dir, "clueweb_test.parquet")

# Create sample parquet data
parquet_data = pd.DataFrame({
    'qid': ['q1', 'q2', 'q3'],
    'text_id': ['t1', 't2', None],
    'img_id': ['i1', None, 'i3']
})
parquet_data.to_parquet(parquet_path)

# Create temporary jsonl file for webqa test
jsonl_path = os.path.join(temp_dir, "webqa_test.jsonl")
with open(jsonl_path, 'w') as f:
    f.write(json.dumps({'qid': 'q1', 'txt_posFacts': [{'text': 'fact1'}], 'img_posFacts': []}) + '\n')
    f.write(json.dumps({'qid': 'q2', 'txt_posFacts': [], 'img_posFacts': [{'img': 'img1'}]}) + '\n')
    f.write(json.dumps({'qid': 'q3', 'txt_posFacts': [{'text': 'fact3'}], 'img_posFacts': [{'img': 'img3'}]}) + '\n')

ARGS = {
    'path': parquet_path,
    'txt': True,
    'img': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — 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
load_file Ran
ran; our contract draft was wrong, not the code
openmatch/marvel/DPR/data.py
code served (permissive licence) · get_code("bc7b881120312440")
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 json
import numpy as np
import pandas as pd
import tempfile
import os

# Create a temporary parquet file for the clueweb case
temp_dir = tempfile.mkdtemp()

# Create sample data for clueweb parquet file
clueweb_data = pd.DataFrame({
    'text_id': [1, None, 3],
    'img_id': [None, 2, 4],
    'content': ['text1', 'text2', 'text3']
})
clueweb_path = os.path.join(temp_dir, 'clueweb_sample.parquet')
clueweb_data.to_parquet(clueweb_path)

# Create a temporary JSONL file for the webqa case
webqa_path = os.path.join(temp_dir, 'webqa_sample.jsonl')
with open(webqa_path, 'w') as f:
    example1 = {
        'txt_negFacts': ['neg1', 'neg2'],
        'img_negFacts': ['img_neg1'],
        'txt_posFacts': ['pos1', 'pos2'],
        'img_posFacts': ['img_pos1']
    }
    example2 = {
        'txt_negFacts': ['neg3'],
        'img_negFacts': ['img_neg2', 'img_neg3'],
        'txt_posFacts': ['pos3'],
        'img_posFacts': []
    }
    f.write(json.dumps(example1) + '\n')
    f.write(json.dumps(example2) + '\n')

ARGS = {
    'path': clueweb_path,
    'txt': True,
    'img': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — 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
load_file Ran
ran; our contract draft was wrong, not the code
openmatch/marvel/DPR/get_hard_negs_all.py
code served (permissive licence) · get_code("70926fb8a521dab4")
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 pandas as pd
import tempfile
import os

# Create a temporary directory for test files
tmpdir = tempfile.mkdtemp()

# Create a test parquet file for clueweb path
clueweb_data = pd.DataFrame({
    'qid': ['q1', 'q2'],
    'query': ['test query 1', 'test query 2'],
    'answer': ['answer 1', 'answer 2']
})
clueweb_path = os.path.join(tmpdir, 'clueweb_test.parquet')
clueweb_data.to_parquet(clueweb_path)

# Create a test jsonl file for webqa path
webqa_path = os.path.join(tmpdir, 'webqa_test.jsonl')
with open(webqa_path, 'w') as f:
    f.write(json.dumps({'qid': 'q1', 'query': 'test query 1', 'answer': 'answer 1'}) + '\n')
    f.write(json.dumps({'qid': 'q2', 'query': 'test query 2', 'answer': 'answer 2'}) + '\n')

# Define ARGS with clueweb path
ARGS = {
    'path': clueweb_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — 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
load_img_docs Ran
ran; our contract draft was wrong, not the code
openmatch/marvel/ANCE/gen_embeddings.py
code served (permissive licence) · get_code("33777073f6fbe9ee")
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 DataFrame. 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 pandas as pd
import numpy as np
import tempfile
import os

# Create a temporary parquet file with sample data
with tempfile.TemporaryDirectory() as tmpdir:
    parquet_path = os.path.join(tmpdir, "test_data.parquet")
    
    # Create sample dataframe and save as parquet
    sample_data = pd.DataFrame({
        'image_id': [1, 2, 3],
        'document_type': ['invoice', 'receipt', 'contract'],
        'content': ['text1', 'text2', 'text3']
    })
    sample_data.to_parquet(parquet_path)
    
    # Since we can't use the tempfile after context, we need to create it persistently
    # Create a simple in-memory parquet file representation
    parquet_path = "/tmp/test_img_docs.parquet"
    sample_data.to_parquet(parquet_path)

ARGS = {
    "path": "/tmp/test_img_docs.parquet"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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_queries Ran
ran; our contract draft was wrong, not the code
openmatch/marvel/ANCE/gen_embeddings.py
code served (permissive licence) · get_code("8d62ec4c9d2a8b34")
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 2, 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 json
import pandas as pd
import tempfile
import os

# Create a temporary directory for test files
temp_dir = tempfile.mkdtemp()

# Test case 1: Create a parquet file with clueweb data
clueweb_path = os.path.join(temp_dir, "clueweb_test.parquet")
clueweb_df = pd.DataFrame({
    'qid': [101, 102],
    'query': ['what is python', 'machine learning basics']
})
clueweb_df.to_parquet(clueweb_path)

# Test case 2: Create a jsonl file with webqa data
webqa_path = os.path.join(temp_dir, "webqa_test.jsonl")
with open(webqa_path, 'w') as f:
    json.dump({'qid': 201, 'Q': 'what is AI'}, f)
    f.write('\n')
    json.dump({'qid': 202, 'Q': 'deep learning explained'}, f)
    f.write('\n')

# We'll use the clueweb path as the primary test
ARGS = {
    'path': clueweb_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, 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
load_queries Ran
ran; our contract draft was wrong, not the code
openmatch/marvel/DPR/gen_embeddings.py
code served (permissive licence) · get_code("c82904a23f9f6650")
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 2, 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 json
import pandas as pd
import tempfile
import os

# Create temporary directories and files for testing
temp_dir = tempfile.mkdtemp()

# Create a test parquet file for clueweb path
clueweb_data = {
    'qid': [1, 2],
    'query': ['test query 1', 'test query 2']
}
clueweb_df = pd.DataFrame(clueweb_data)
clueweb_path = os.path.join(temp_dir, 'clueweb_test.parquet')
clueweb_df.to_parquet(clueweb_path)

# Create a test jsonl file for webqa path
webqa_path = os.path.join(temp_dir, 'webqa_test.jsonl')
with open(webqa_path, 'w') as f:
    f.write(json.dumps({'qid': 1, 'Q': 'what is test'}) + '\n')
    f.write(json.dumps({'qid': 2, 'Q': 'another test'}) + '\n')

ARGS = {
    'path': clueweb_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, 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
load_reference Ran
ran; our contract draft was wrong, not the code
openmatch/marvel/ANCE/msmarco_eval.py
code served (permissive licence) · get_code("73a28fd25464e18b")
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 tempfile
import os

# Create a temporary file with reference data in the expected format
# Format: query_id \t passage_id \t passage_id (tab-separated)
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
temp_file.write("1\tignored\t101\n")
temp_file.write("1\tignored\t102\n")
temp_file.write("2\tignored\t201\n")
temp_file.write("3\tignored\t301\n")
temp_file.write("3\tignored\t302\n")
temp_file.write("3\tignored\t303\n")
temp_file.close()

path_to_reference = temp_file.name

ARGS = {
    "path_to_reference": path_to_reference
}
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
load_reference_from_stream Ran
ran; our contract draft was wrong, not the code
openmatch/marvel/ANCE/msmarco_eval.py
code served (permissive licence) · get_code("3bb6407c68aabca4")
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 io

# Create a stream with valid tab-separated data
# Format: query_id \t passage_id \t passage_id (the function uses column 0 and column 2)
stream_content = """1\tunused\t101
1\tunused\t102
2\tunused\t201
3\tunused\t301
3\tunused\t302
3\tunused\t303
"""

f = io.StringIO(stream_content)

ARGS = {
    "f": f
}
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

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 0 the same month, 3 later) and 14 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_reference 5 other papers
4 dated earlier, 1 later
1611.09268 (2016-11)
MS MARCO: A Human Generated MAchine Reading COmprehension Dataset
2110.05789 (2021-10)
Learning Discrete Representations via Constrained Clustering for Effective and Efficient Dense Retrieval
2022.emnlp-main.727 (2022 (year only))
CODER: An efficient framework for improving retrieval through COntextual Document Embedding Reranking
and 2 more not named here
load_candidate_from_stream 4 other papers
3 dated earlier, 1 later
1611.09268 (2016-11)
MS MARCO: A Human Generated MAchine Reading COmprehension Dataset
2022.emnlp-main.727 (2022 (year only))
CODER: An efficient framework for improving retrieval through COntextual Document Embedding Reranking
2209.00179 (2022-09)
Universal Vision-Language Dense Retrieval: Learning A Unified Representation Space for Multi-Modal Retrieval
and 1 more not named here
load_reference_from_stream 4 other papers
3 dated earlier, 1 later
1611.09268 (2016-11)
MS MARCO: A Human Generated MAchine Reading COmprehension Dataset
2022.emnlp-main.727 (2022 (year only))
CODER: An efficient framework for improving retrieval through COntextual Document Embedding Reranking
2209.00179 (2022-09)
Universal Vision-Language Dense Retrieval: Learning A Unified Representation Space for Multi-Modal Retrieval
and 1 more not named here
convert_to_string_id 1 other paper
1 dated earlier
2209.00179 (2022-09)
Universal Vision-Language Dense Retrieval: Learning A Unified Representation Space for Multi-Modal Retrieval

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

This paper proposes Multi-modAl Retrieval model via Visual modulE pLugin (MARVEL), which learns an embedding space for queries and multi-modal documents to conduct retrieval. MARVEL encodes queries and multi-modal documents with a unified encoder model, which helps to alleviate the modality gap between images and texts. Specifically, we enable the image understanding ability of the well-trained dense retriever, T5-ANCE, by incorporating the visual module's encoded image features as its inputs. To facilitate the multi-modal retrieval tasks, we build the ClueWeb22-MM dataset based on the ClueWeb22 dataset, which regards anchor texts as queries, and extracts the related text and image documents from anchor-linked web pages. Our experiments show that MARVEL significantly outperforms the state-of-the-art methods on the multi-modal retrieval dataset WebQA and ClueWeb22-MM. MARVEL provides an opportunity to broaden the advantages of text retrieval to the multi-modal scenario. Besides, we also illustrate that the language model has the ability to extract image semantics and partly map the image features to the input word embedding space. All codes are available at https://github.com/OpenMatch/MARVEL.

For agents

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

get_harvested_code_for_paper("2310.14037")
get_code_for_paper("2310.14037")
have("2310.14037")

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

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

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

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

Connect an agent — have() is free.