SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2509.19003 · NeurIPS · 2025

Unveiling Chain of Step Reasoning for Vision-Language Models with Fine-grained Rewards

Xinlong Wang, Honghao Chen, Kaiqi Huang, Xingzhou Lou, Xiaokun Feng

arXiv · PDF · Open in the Atlas

Code that ran

20 of 22 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; 4 honoured the contract we drafted, 4 violated it and 0 have no contract verdict; 12 failures of our instrument; 2 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/2509.19003.json · badge: /api/ran/2509.19003.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
baaivision/CoS canonical (classifier label)
classifier basis: census
20 ran · 2 no recorded run
FunctionStatusWhere it lives
check_is_number Ran
ran, violated the contract we drafted
baaivision/CoS/eval/mmmu/eval_utils.py
code served (permissive licence) · get_code("81305e2c0d5ef1a9")
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 bool, ndim 0, dtype family float, 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
import numpy as np

def check_is_number(string):
    """
    Check if the given string a number.
    """
    try:
        float(string.replace(',', ''))
        return True
    except ValueError:
        return False

ARGS = {
    "string": "123.45"
}
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 bool, ndim 0, dtype family float, 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
collate_fn Ran
ran; our contract draft was wrong, not the code
baaivision/CoS/eval/mathvista/evaluate_mathvista.py
code served (permissive licence) · get_code("9483aaa3e36c23a0")
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. 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)

# Create a minimal tokenizer stand-in (not actually used in collate_fn, but required as parameter)
class DummyTokenizer:
    pass

tokenizer = DummyTokenizer()

# Create batch items with the structure expected by collate_fn
# Each batch item needs 'pixel_values' and 'data_item' keys
batches = [
    {
        'pixel_values': torch.randn(2, 4),  # Shape: (2, 4) for first batch item
        'data_item': {'id': 0, 'label': 'sample_0'}
    },
    {
        'pixel_values': torch.randn(2, 4),  # Shape: (2, 4) for second batch item
        'data_item': {'id': 1, 'label': 'sample_1'}
    }
]

ARGS = {
    'batches': batches,
    'tokenizer': tokenizer
}
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 — a tuple output has no array shape of its own; none is 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
collate_fn Ran
ran; our contract draft was wrong, not the code
baaivision/CoS/eval/mathvista/evaluate_mathvista_mine.py
code served (permissive licence) · get_code("53ae416061b7cd9e")
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. 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)

# Create a minimal tokenizer stand-in (not actually used in the function body)
class TokenizerStandIn:
    pass

tokenizer = TokenizerStandIn()

# Create batch items with the required keys
batch_item_1 = {
    'pixel_values': torch.randn(1, 3, 4, 4),  # 1 image with 3 channels, 4x4 spatial
    'question': "What is this?",
    'answer': "A cat",
    'image_path': "/path/to/image1.jpg"
}

batch_item_2 = {
    'pixel_values': torch.randn(1, 3, 4, 4),  # 1 image with 3 channels, 4x4 spatial
    'question': "What color?",
    'answer': "Orange",
    'image_path': "/path/to/image2.jpg"
}

batches = [batch_item_1, batch_item_2]

ARGS = {
    'batches': batches,
    'tokenizer': tokenizer
}
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 — a tuple output has no array shape of its own; none is 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
evaluate_exact_match_accuracy Ran
ran, honoured the contract we drafted
baaivision/CoS/eval/vqa/score_with_prm.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from brandon3964/multimodal-task-vector, is pointer only (licence: NOASSERTION) · get_code("e159a001bd4cbfaa")
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 brandon3964/multimodal-task-vector, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

evaluate_relaxed_accuracy Ran
ran, honoured the contract we drafted
baaivision/CoS/eval/vqa/score_with_prm.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from brandon3964/multimodal-task-vector, is pointer only (licence: NOASSERTION) · get_code("4ffcad52354b4806")
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 brandon3964/multimodal-task-vector, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

extract_answer_from_think Ran
ran; our contract draft was wrong, not the code
baaivision/CoS/eval/mathvista/evaluate_mathvista.py
code served (permissive licence) · get_code("70baae22332ae35d")
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

def extract_answer_from_think(reasoning):
    out = None
    if '<|answer_start|>' in reasoning and '<|answer_end|>' in reasoning:
        thought_and_answer = reasoning.split('<|answer_start|>')
        out = thought_and_answer[1].strip().split('<|answer_end|>')[0].strip()
        out = out.strip('(').strip(')')
    return out

# Test case 1: reasoning with answer markers
reasoning_with_answer = "Let me think about this problem. <|answer_start|> (42) <|answer_end|> That's my final answer."

# Test case 2: reasoning with answer markers and extra whitespace
reasoning_with_whitespace = "Some reasoning here <|answer_start|>   (The answer is 7)   <|answer_end|> More text after."

# Test case 3: reasoning without answer markers
reasoning_without_markers = "This is just regular reasoning without any markers."

ARGS = {
    'reasoning': reasoning_with_answer
}
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
get_loose_foramt Ran
ran; our contract draft was wrong, not the code
baaivision/CoS/eval/mathvista/evaluate_mathvista_mine.py
code served (permissive licence) · get_code("35d3f6616685d038")
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:
# - predict: a string that will be stripped and indexed
# - answer: a string that will be checked against options list
# The function uses .strip() on predict and indexes it with [0]
# So we need string arguments

ARGS = {
    "predict": "(A) This is the answer",
    "answer": "A"
}
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_most_similar Ran
ran; our contract draft was wrong, not the code
baaivision/CoS/eval/mathvista/calculate_score.py
code served (permissive licence) · get_code("c28eb86a8d14e4ed")
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.

from Levenshtein import distance

def get_most_similar(prediction, choices):
    """
    Use the Levenshtein distance (or edit distance) to determine which of the choices is most similar to the given prediction
    """
    distances = [distance(prediction, choice) for choice in choices]
    ind = distances.index(min(distances))
    return choices[ind]


ARGS = {
    "prediction": "kitten",
    "choices": ["sitting", "kitten", "kitchen", "mitten"]
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
Levenshtein — 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_multi_choice_info Ran
ran; our contract draft was wrong, not the code
baaivision/CoS/eval/mmmu/data_utils.py
code served (permissive licence) · get_code("811b35dbfb4c4959")
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. 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

# The function get_multi_choice_info takes a list of options and processes them
# It doesn't use torch or any complex objects, just strings/basic Python types

# Create a simple list of options for a multiple choice question
options = ["Paris", "London", "Berlin", "Madrid"]

# Construct the ARGS dictionary
ARGS = {
    "options": options
}
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 — a tuple output has no array shape of its own; none is 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
len2weight Ran
ran, honoured the contract we drafted
baaivision/CoS/internvl/train/internvl_chat_finetune.py
code served (permissive licence) · get_code("308c2b4d20602020")
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) and returned float, ndim 0, dtype family float, 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
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# - x: a numeric value (int or float) that is compared to 0 and used in division/power operations
# - loss_reduction: a string that is compared against 'token', 'sample', 'square'

# Test case 1: x = 0 (edge case)
x_zero = 0
loss_reduction_token = 'token'

# Test case 2: x = 5 (non-zero value)
x_nonzero = 5
loss_reduction_sample = 'sample'

# Test case 3: x = 4 (for square root)
x_square = 4
loss_reduction_square = 'square'

# Create ARGS with a valid combination
ARGS = {
    'x': 5,
    'loss_reduction': 'sample'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, ndim 0, dtype family float, 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_yaml Ran
ran; our contract draft was wrong, not the code
baaivision/CoS/eval/mmmu/data_utils.py
code served (permissive licence) · get_code("ce93b7e192e1a8b7")
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
import yaml

# Create a temporary YAML file with valid content
temp_dir = tempfile.mkdtemp()
yaml_file_path = os.path.join(temp_dir, "test.yaml")

# Write a simple valid YAML file
yaml_content = {
    "name": "test_config",
    "value": 42,
    "nested": {
        "key": "value",
        "list": [1, 2, 3]
    }
}

with open(yaml_file_path, 'w') as f:
    yaml.dump(yaml_content, f)

ARGS = {
    "file_path": yaml_file_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
yaml — 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
normalize_str Ran
ran, honoured the contract we drafted
baaivision/CoS/eval/mmmu/eval_utils.py
code served (permissive licence) · get_code("f487f39071cb0cac")
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 torch
import numpy as np

# The function normalize_str takes a single parameter: string
# It expects a string input that it will process

ARGS = {
    "string": "1,234.56"
}
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 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
parse_img_path Ran
ran; our contract draft was wrong, not the code
baaivision/CoS/eval/mmmu/data_utils.py
code served (permissive licence) · get_code("de4427887bed9253")
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 re

def parse_img_path(text):
    matches = re.findall("<img='(.*?)'>", text)
    return matches

ARGS = {
    "text": "This is a test <img='path/to/image1.png'> and another <img='path/to/image2.jpg'> in the text."
}
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
parse_multi_choice_response Ran
ran; our contract draft was wrong, not the code
baaivision/CoS/eval/mmmu/eval_utils.py
code served (permissive licence) · get_code("f3018307f9301da1")
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 random
import numpy as np

# Set seed for reproducibility
random.seed(42)
np.random.seed(42)

# Define the arguments for parse_multi_choice_response
ARGS = {
    "response": "The answer is (B) because it makes the most sense.",
    "all_choices": ['A', 'B', 'C', 'D'],
    "index2ans": {
        'A': 'first option',
        'B': 'second option',
        'C': 'third option',
        'D': 'fourth option'
    }
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — 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
read_csv Ran
ran; our contract draft was wrong, not the code
baaivision/CoS/eval/mathvista/utilities.py
code served (permissive licence) · get_code("1694e6d4f46ff13e")
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 tempfile
import os

# Create a temporary CSV file
temp_fd, temp_file_path = tempfile.mkstemp(suffix='.csv', text=True)
try:
    with os.fdopen(temp_fd, 'w') as f:
        f.write("name,age,city\n")
        f.write("Alice,30,New York\n")
        f.write("Bob,25,Los Angeles\n")
        f.write("Charlie,35,Chicago\n")
finally:
    pass

ARGS = {
    "file": temp_file_path
}
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
read_json Ran
ran; our contract draft was wrong, not the code
baaivision/CoS/eval/mathvista/utilities.py
code served (permissive licence) · get_code("9ffa907555068ff3")
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) 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 tempfile
import os

# Create a temporary JSON file with valid content
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test.json")

test_data = {
    "key1": "value1",
    "key2": [1, 2, 3],
    "key3": {"nested": "object"}
}

with open(temp_file, 'w', encoding='utf-8') as f:
    json.dump(test_data, f)

ARGS = {
    "path": temp_file
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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
read_pandas_csv Ran
ran; our contract draft was wrong, not the code
baaivision/CoS/eval/mathvista/utilities.py
code served (permissive licence) · get_code("32ae2fb99638aba7")
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 tempfile
import os

# Create a temporary CSV file for testing
temp_dir = tempfile.mkdtemp()
csv_path = os.path.join(temp_dir, "test_data.csv")

# Write a simple CSV file
df_test = pd.DataFrame({
    'col1': [1, 2, 3],
    'col2': ['a', 'b', 'c'],
    'col3': [1.5, 2.5, 3.5]
})
df_test.to_csv(csv_path, index=False)

ARGS = {
    'csv_path': csv_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 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
relaxed_correctness Ran
ran, violated the contract we drafted
baaivision/CoS/eval/vqa/score_with_prm.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from brandon3964/multimodal-task-vector, is pointer only (licence: NOASSERTION) · get_code("b3c8680ebd8739af")
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 brandon3964/multimodal-task-vector, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

safe_equal Ran
ran, violated the contract we drafted
baaivision/CoS/eval/mathvista/calculate_score.py
code served (permissive licence) · get_code("e7a23ea3695f6437")
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 bool, ndim 0, dtype family float, 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
import numpy as np

torch.manual_seed(0)

# The function safe_equal simply compares two values for equality
# It handles exceptions that might arise from the comparison
# We need to provide two arguments: prediction and answer

# Test case 1: Simple scalar values
prediction_1 = 42
answer_1 = 42

# Test case 2: Different types but comparable
prediction_2 = torch.tensor([1.0, 2.0, 3.0])
answer_2 = torch.tensor([1.0, 2.0, 3.0])

# Test case 3: Strings
prediction_3 = "hello"
answer_3 = "hello"

# Test case 4: Lists
prediction_4 = [1, 2, 3]
answer_4 = [1, 2, 3]

# Use the first test case as the primary arguments
ARGS = {
    "prediction": prediction_1,
    "answer": answer_1
}
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 bool, ndim 0, dtype family float, 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
verify_extraction Ran
ran, violated the contract we drafted
baaivision/CoS/eval/mathvista/extract_answer.py
code served (permissive licence) · get_code("db6b1bcee6eab96f")
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 bool, ndim 0, dtype family float, 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

ARGS = {
    "extraction": "  sample text  "
}
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 bool, ndim 0, dtype family float, 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
get_conv_template Not yet run
unverified (harvested, no recorded run)
baaivision/CoS/internvl/conversation.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from yzy-bupt/LiveStar, is pointer only (licence: NONE) · get_code("04b172bb0c32a0de")
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 yzy-bupt/LiveStar, 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. No invocation recorded.

normalize_extracted_answer Not yet run
unverified (harvested, no recorded run)
baaivision/CoS/eval/mathvista/calculate_score.py
code served (permissive licence) · get_code("f34ede28e15fb037")
How it ran

no invocation recorded.

Also present in other papers' code

Of 22 samples lifted from this paper's linked repositories, 22 carry a function identity and 0 do not. Of the 22 distinct functions with an identity, 17 are also present in other papers whose code we hold (17 with at least one paper dated earlier, 0 the same month, 3 later) and 5 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
get_conv_template 69 other papers
56 dated earlier, 9 later, 3 same year, order not determinable, 1 undated
1911.03705 (2019-11)
CommonGen: A Constrained Text Generation Challenge for Generative Commonsense Reasoning
2112.05682 (2021-12)
Self-attention Does Not Need $O(n^2)$ Memory
2204.07705 (2022-04)
SUPER-NATURALINSTRUCTIONS: Generalization via Declarative Instructions on 1600+ NLP Tasks
and 66 more not named here
parse_multi_choice_response 9 other papers
8 dated earlier, 1 same year, order not determinable
2311.10774 (2023-11)
MMC: Advancing Multimodal Chart Understanding with Large-scale Instruction Tuning
2402.11530 (2024-02)
Efficient Multimodal Learning from Data-centric Perspective
2402.14289 (2024-02)
TinyLLaVA: A Framework of Small-scale Large Multimodal Models
and 6 more not named here
get_most_similar 7 other papers
6 dated earlier, 1 same year, order not determinable
2403.03003 (2024-03)
Feast Your Eyes: Mixture-of-Resolution Adaptation for Multimodal Large Language Models
2405.05949 (2024-05)
CuMo: Scaling Multimodal LLM with Co-Upcycled Mixture-of-Experts
2405.15574 (2024-05)
Meteor: Mamba-based Traversal of Rationale for Large Language and Vision Models
and 4 more not named here
evaluate_relaxed_accuracy 6 other papers
6 dated earlier
2406.08487 (2024-06)
Beyond LLaVA-HD: Diving into High-Resolution Large Multimodal Models
2406.15334 (2024-06)
Multimodal Task Vectors Enable Many-Shot Multimodal In-Context Learning
2407.01976 (2024-07)
A Bounding Box is Worth One Token: Interleaving Layout and Text in a Large Language Model for Document Understanding
and 3 more not named here
load_yaml 6 other papers
5 dated earlier, 1 same year, order not determinable
2402.11530 (2024-02)
Efficient Multimodal Learning from Data-centric Perspective
2406.05343 (2024-06)
M3GIA: A Cognition Inspired Multilingual and Multimodal General Intelligence Ability Benchmark
2406.13642 (2024-06)
SpatialBot: Precise Spatial Understanding with Vision Language Models
and 3 more not named here
read_json 6 other papers
4 dated earlier, 1 later, 1 same year, order not determinable
2402.16379 (2024-02)
TEaR: Improving LLM-based Machine Translation with Systematic Self-Refinement
2405.05949 (2024-05)
CuMo: Scaling Multimodal LLM with Co-Upcycled Mixture-of-Experts
2409.00147 (2024-09)
MultiMath: Bridging Visual and Mathematical Reasoning for Large Language Models
and 3 more not named here
relaxed_correctness 6 other papers
6 dated earlier
2406.08487 (2024-06)
Beyond LLaVA-HD: Diving into High-Resolution Large Multimodal Models
2406.15334 (2024-06)
Multimodal Task Vectors Enable Many-Shot Multimodal In-Context Learning
2407.01976 (2024-07)
A Bounding Box is Worth One Token: Interleaving Layout and Text in a Large Language Model for Document Understanding
and 3 more not named here
safe_equal 6 other papers
5 dated earlier, 1 same year, order not determinable
2403.03003 (2024-03)
Feast Your Eyes: Mixture-of-Resolution Adaptation for Multimodal Large Language Models
2405.15574 (2024-05)
Meteor: Mamba-based Traversal of Rationale for Large Language and Vision Models
2409.00147 (2024-09)
MultiMath: Bridging Visual and Mathematical Reasoning for Large Language Models
and 3 more not named here
parse_img_path 5 other papers
4 dated earlier, 1 same year, order not determinable
2402.14418 (2024-02)
Uncertainty-Aware Evaluation for Vision-Language Models
2406.05343 (2024-06)
M3GIA: A Cognition Inspired Multilingual and Multimodal General Intelligence Ability Benchmark
Yang_PVC_Progressive_Visual_Token_Compression_for_Unified_Image_and_Video_CVPR_2025_paper (2025 (year only))
PVC: Progressive Visual Token Compression for Unified Image and Video Processing in Large Vision-Language Models
and 2 more not named here
evaluate_exact_match_accuracy 4 other papers
4 dated earlier
2406.15334 (2024-06)
Multimodal Task Vectors Enable Many-Shot Multimodal In-Context Learning
2410.16261 (2024-10)
Mini-InternVL: A Flexible-Transfer Pocket Multimodal Model with 5% Parameters and 90% Performance
2412.03324 (2024-12)
A Stitch in Time Saves Nine: Small VLM is a Precise Guidance for Accelerating Large VLMs
and 1 more not named here
len2weight 4 other papers
3 dated earlier, 1 later
2410.16261 (2024-10)
Mini-InternVL: A Flexible-Transfer Pocket Multimodal Model with 5% Parameters and 90% Performance
2504.10479 (2025-04)
InternVL3: Exploring Advanced Training and Test-Time Recipes for Open-Source Multimodal Models
2505.13427 (2025-05)
MM-PRM: Enhancing Multimodal Mathematical Reasoning with Scalable Step-Level Supervision
and 1 more not named here
check_is_number 3 other papers
2 dated earlier, 1 same year, order not determinable
2311.10774 (2023-11)
MMC: Advancing Multimodal Chart Understanding with Large-scale Instruction Tuning
Yang_PVC_Progressive_Visual_Token_Compression_for_Unified_Image_and_Video_CVPR_2025_paper (2025 (year only))
PVC: Progressive Visual Token Compression for Unified Image and Video Processing in Large Vision-Language Models
2502.00698 (2025-02)
MM-IQ: Benchmarking Human-Like Abstraction and Reasoning in Multimodal Models
read_csv 3 other papers
2 dated earlier, 1 same year, order not determinable
2409.00147 (2024-09)
MultiMath: Bridging Visual and Mathematical Reasoning for Large Language Models
2410.17885 (2024-10)
Theorem-Validated Reverse Chain-of-Thought Problem Generation for Geometric Reasoning
Guo_Integrating_Visual_Interpretation_and_Linguistic_Reasoning_for_Geometric_Problem_Solving_ICCV_2025_paper (2025 (year only))
Integrating Visual Interpretation and Linguistic Reasoning for Geometric Problem Solving
read_pandas_csv 3 other papers
2 dated earlier, 1 same year, order not determinable
2409.00147 (2024-09)
MultiMath: Bridging Visual and Mathematical Reasoning for Large Language Models
2410.17885 (2024-10)
Theorem-Validated Reverse Chain-of-Thought Problem Generation for Geometric Reasoning
Guo_Integrating_Visual_Interpretation_and_Linguistic_Reasoning_for_Geometric_Problem_Solving_ICCV_2025_paper (2025 (year only))
Integrating Visual Interpretation and Linguistic Reasoning for Geometric Problem Solving
get_multi_choice_info 2 other papers
1 dated earlier, 1 same year, order not determinable
2406.05343 (2024-06)
M3GIA: A Cognition Inspired Multilingual and Multimodal General Intelligence Ability Benchmark
Yang_PVC_Progressive_Visual_Token_Compression_for_Unified_Image_and_Video_CVPR_2025_paper (2025 (year only))
PVC: Progressive Visual Token Compression for Unified Image and Video Processing in Large Vision-Language Models
normalize_str 2 other papers
1 dated earlier, 1 same year, order not determinable
2311.10774 (2023-11)
MMC: Advancing Multimodal Chart Understanding with Large-scale Instruction Tuning
Yang_PVC_Progressive_Visual_Token_Compression_for_Unified_Image_and_Video_CVPR_2025_paper (2025 (year only))
PVC: Progressive Visual Token Compression for Unified Image and Video Processing in Large Vision-Language Models
normalize_extracted_answer 1 other paper
1 dated earlier
2409.14713 (2024-09)
Phantom of Latent for Large Language and Vision Models

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

Chain of thought reasoning has demonstrated remarkable success in large language models, yet its adaptation to vision-language reasoning remains an open challenge with unclear best practices. Existing attempts typically employ reasoning chains at a coarse-grained level, which struggles to perform fine-grained structured reasoning and, more importantly, are difficult to evaluate the reward and quality of intermediate reasoning. In this work, we delve into chain of step reasoning for vision-language models, enabling assessing reasoning step quality accurately and leading to effective reinforcement learning and inference-time scaling with finegrained rewards. We present a simple, effective, and fully transparent framework, including the step-level reasoning data, process reward model (PRM), and reinforcement learning training. With the proposed approaches, our models set strong baselines with consistent improvements on challenging vision-language benchmarks. More importantly, we conduct a thorough empirical analysis and ablation study, unveiling the impact of each component and several intriguing properties of inference-time scaling. We believe this paper serves as a baseline for visionlanguage models and offers insights into more complex multimodal reasoning. Our dataset, PRM, and code at https://github.com/baaivision/CoS.

For agents

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

get_harvested_code_for_paper("2509.19003")
get_code_for_paper("2509.19003")
have("2509.19003")

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

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

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

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

Connect an agent — have() is free.