SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.12081 · 2025

VisionReasoner: Unified Reasoning-Integrated Visual Perception via Reinforcement Learning

arXiv · PDF · Open in the Atlas

Code that ran

14 of 15 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 13 have no contract verdict; 1 failure of our instrument; 1 no recorded run), measured 2026-11-24; 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/2505.12081.json · badge: /api/ran/2505.12081.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
dvlab-research/Seg-Zero canonical (classifier label)
classifier basis not recorded on the link
12 ran · 1 no recorded run
dvlab-research/VisionReasoner canonical (classifier label)
classifier basis not recorded on the link
2 ran · 0 no recorded run
FunctionStatusWhere it lives
compute_bbox_iou Ran
ran on a synthesized input
dvlab-research/Seg-Zero/evaluation_scripts/evaluation_visionreasoner.py
code served (permissive licence) · get_code("cea027a0a2a1de9b")
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 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

torch.manual_seed(0)

# bbox1 and bbox2 should be sequences with 4 elements: [x1, y1, x2, y2]
# representing the top-left and bottom-right corners of a bounding box
bbox1 = [10, 20, 50, 80]
bbox2 = [30, 40, 70, 100]

ARGS = {
    "bbox1": bbox1,
    "bbox2": bbox2
}
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 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
compute_bbox_iou Ran
ran on a synthesized input
dvlab-research/VisionReasoner/evaluation/evaluation_coco.py
code served (permissive licence) · get_code("43902f82943491dd")
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 ndarray, ndim 2, dtype family float, shape (2, 3) 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 numpy as np

# Create sample bounding boxes
# bboxes1: 2 prediction boxes in format [x1, y1, x2, y2]
bboxes1 = np.array([
    [10.0, 20.0, 50.0, 60.0],
    [15.0, 25.0, 55.0, 65.0]
])

# bboxes2: 3 ground truth boxes in format [x1, y1, x2, y2]
bboxes2 = np.array([
    [10.0, 20.0, 50.0, 60.0],
    [30.0, 40.0, 70.0, 80.0],
    [5.0, 15.0, 45.0, 55.0]
])

ARGS = {
    "bboxes1": bboxes1,
    "bboxes2": bboxes2
}
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 ndarray, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) 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
compute_iou Ran
ran on a synthesized input
dvlab-research/Seg-Zero/evaluation_scripts/evaluation.py
code served (permissive licence) · get_code("faee26847645d13b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family int; 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 numpy as np

# Create two small binary masks for testing
mask1 = np.array([
    [1, 0, 1, 0],
    [0, 1, 0, 1]
], dtype=bool)

mask2 = np.array([
    [1, 1, 0, 0],
    [0, 1, 1, 0]
], dtype=bool)

ARGS = {
    "mask1": mask1,
    "mask2": mask2
}
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 tuple, ndim 1, dtype family int — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_iou Ran
ran on a synthesized input
dvlab-research/VisionReasoner/evaluation/evaluation_anomaly.py
code served (permissive licence) · get_code("611c245861107d30")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family int; 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 numpy as np

# Create two small binary masks for testing
mask1 = np.array([
    [True, False, True, False],
    [False, True, False, True]
], dtype=bool)

mask2 = np.array([
    [True, True, False, False],
    [False, True, True, False]
], dtype=bool)

ARGS = {
    'mask1': mask1,
    'mask2': mask2
}
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 tuple, ndim 1, dtype family int — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
extract_bbox_points_think Ran
ran on a synthesized input
dvlab-research/Seg-Zero/evaluation_scripts/evaluation.py
code served (permissive licence) · get_code("ed9a13dcc8178311")
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 json
import re

# Create test data for the function
output_text = '<think>This is a thinking step</think>{"bbox": [10, 20, 100, 200], "points1": [15, 25], "points2": [95, 195]}'

x_factor = 0.5
y_factor = 0.75

ARGS = {
    'output_text': output_text,
    'x_factor': x_factor,
    'y_factor': y_factor
}
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 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
extract_bbox_points_think Ran
ran on a synthesized input
dvlab-research/Seg-Zero/evaluation_scripts/evaluation_visionreasoner.py
code served (permissive licence) · get_code("732abc1b7bf1a77b")
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 json
import re

def extract_bbox_points_think(output_text, x_factor, y_factor):
    json_match = re.search('<answer>\\s*(.*?)\\s*</answer>', output_text, re.DOTALL)
    if json_match:
        data = json.loads(json_match.group(1))
        pred_bboxes = [[int(item['bbox_2d'][0] * x_factor + 0.5), int(item['bbox_2d'][1] * y_factor + 0.5), int(item['bbox_2d'][2] * x_factor + 0.5), int(item['bbox_2d'][3] * y_factor + 0.5)] for item in data]
        pred_points = [[int(item['point_2d'][0] * x_factor + 0.5), int(item['point_2d'][1] * y_factor + 0.5)] for item in data]
    think_pattern = '<think>([^<]+)</think>'
    think_text = ''
    think_match = re.search(think_pattern, output_text)
    if think_match:
        think_text = think_match.group(1)
    return (pred_bboxes, pred_points, think_text)


ARGS = {
    'output_text': '<think>Model reasoning process here</think>\n<answer>[{"bbox_2d": [10.5, 20.3, 100.7, 150.2], "point_2d": [55.4, 85.1]}, {"bbox_2d": [200.1, 250.9, 350.6, 400.3], "point_2d": [275.2, 325.6]}]</answer>',
    'x_factor': 2.0,
    'y_factor': 1.5
}
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 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
extract_bbox_points_think Ran
ran on a synthesized input
dvlab-research/Seg-Zero/inference_scripts/infer_multi_object.py
code served (permissive licence) · get_code("e17c29f2dfb12d4a")
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 json
import re

# Construct a valid output_text with JSON data containing bbox_2d and point_2d
output_text = """
<think>
Let me analyze this carefully. The image shows objects at various positions.
I need to identify the bounding boxes and points for each object.
</think>
<answer>
[
    {
        "bbox_2d": [10.5, 20.3, 100.7, 150.2],
        "point_2d": [55.4, 85.1]
    },
    {
        "bbox_2d": [200.1, 50.8, 300.5, 200.3],
        "point_2d": [250.3, 125.5]
    }
]
</answer>
"""

x_factor = 1.5
y_factor = 2.0

ARGS = {
    "output_text": output_text,
    "x_factor": x_factor,
    "y_factor": y_factor
}
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 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
get_mask_from_json Ran
ran on a synthesized input
dvlab-research/Seg-Zero/evaluation_scripts/create_reasonseg_hf.py
code served (permissive licence) · get_code("af0760e7da48075b")
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 ndarray, ndim 2, dtype family float, shape (200, 200) 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 json
import tempfile
import numpy as np
import os

# Create a temporary JSON file with valid annotation data
temp_dir = tempfile.mkdtemp()
json_path = os.path.join(temp_dir, "annotation.json")

# Create sample annotation with shapes
annotation_data = {
    "shapes": [
        {
            "label": "object",
            "points": [[10, 10], [50, 10], [50, 50], [10, 50]]
        },
        {
            "label": "ignore_region",
            "points": [[100, 100], [150, 100], [150, 150], [100, 150]]
        },
        {
            "label": "flag",
            "points": [[5, 5], [8, 5], [8, 8], [5, 8]]
        }
    ]
}

# Write the JSON file
with open(json_path, 'w') as f:
    json.dump(annotation_data, f)

# Define function parameters
height = 200
width = 200

ARGS = {
    "json_path": json_path,
    "height": height,
    "width": width
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (200, 200) — shape (200, 200) 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
merge_by_placement Ran
ran; our contract draft was wrong, not the code
dvlab-research/Seg-Zero/training_scripts/model_merger.py
code served (permissive licence) · get_code("32cbd7aa87e2f64b")
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 Tensor, ndim 2, dtype family float, shape (4, 4) 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 torch.distributed._tensor import Placement, Shard, Replicate

torch.manual_seed(0)

# Create small test tensors
# For Shard placement, we need multiple tensors that can be concatenated
tensor1 = torch.randn(2, 4)
tensor2 = torch.randn(2, 4)
tensors = [tensor1, tensor2]

# Create a Shard placement object with dim=0
placement = Shard(dim=0)

ARGS = {
    "tensors": tensors,
    "placement": placement,
}
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 Tensor, ndim 2, dtype family float, shape (4, 4) — shape (4, 4) 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
seg_iou_reward Ran
ran on a synthesized input
dvlab-research/Seg-Zero/verl/utils/reward_score/seg.py
code served (permissive licence) · get_code("58dcb3747ca297c1")
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 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 re
import json

def seg_iou_reward(predict_str: str, ground_truth: str) -> float:

    def iou(box1, box2):
        inter_x1 = max(box1[0], box2[0])
        inter_y1 = max(box1[1], box2[1])
        inter_x2 = min(box1[2], box2[2])
        inter_y2 = min(box1[3], box2[3])
        if inter_x1 < inter_x2 and inter_y1 < inter_y2:
            inter = (inter_x2 - inter_x1 + 1) * (inter_y2 - inter_y1 + 1)
        else:
            inter = 0
        area1 = (box1[2] - box1[0] + 1) * (box1[3] - box1[1] + 1)
        area2 = (box2[2] - box2[0] + 1) * (box2[3] - box2[1] + 1)
        union = area1 + area2 - inter
        return float(inter) / union
    try:
        ground_truth = ground_truth.strip()
        gt_box_pattern = '<box>\\((\\d+),(\\d+)\\),\\((\\d+),(\\d+)\\)</box>'
        gt_match = re.search(gt_box_pattern, ground_truth)
        if gt_match:
            gt_bbox = [int(gt_match.group(1)), int(gt_match.group(2)), int(gt_match.group(3)), int(gt_match.group(4))]
        json_pattern = '{[^}]+}'
        json_match = re.search(json_pattern, predict_str)
        if json_match:
            data = json.loads(json_match.group(0))
            bbox_key = next((key for key in data.keys() if 'bbox' in key.lower()), None)
            if bbox_key and len(data[bbox_key]) == 4:
                content_bbox = data[bbox_key]
                if iou(content_bbox, gt_bbox) > 0.5:
                    return 1.0
    except Exception:
        pass
    return 0.0


predict_str = '{"bbox": [10, 20, 30, 40], "label": "object"}'
ground_truth = '<box>(8,18),(32,42)</box>'

ARGS = {
    "predict_str": predict_str,
    "ground_truth": ground_truth
}
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 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
seg_iou_reward Ran
ran on a synthesized input
dvlab-research/Seg-Zero/verl/utils/reward_score/seg_restrict.py
code served (permissive licence) · get_code("80bd3e5670352790")
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 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 re
import json

def seg_iou_reward(predict_str: str, ground_truth: str) -> float:

    def iou(box1, box2):
        inter_x1 = max(box1[0], box2[0])
        inter_y1 = max(box1[1], box2[1])
        inter_x2 = min(box1[2], box2[2])
        inter_y2 = min(box1[3], box2[3])
        if inter_x1 < inter_x2 and inter_y1 < inter_y2:
            inter = (inter_x2 - inter_x1 + 1) * (inter_y2 - inter_y1 + 1)
        else:
            inter = 0
        area1 = (box1[2] - box1[0] + 1) * (box1[3] - box1[1] + 1)
        area2 = (box2[2] - box2[0] + 1) * (box2[3] - box2[1] + 1)
        union = area1 + area2 - inter
        return float(inter) / union
    try:
        ground_truth = ground_truth.strip()
        gt_box_pattern = '<box>\\((\\d+),(\\d+)\\),\\((\\d+),(\\d+)\\)</box>'
        gt_match = re.search(gt_box_pattern, ground_truth)
        if gt_match:
            gt_bbox = [int(gt_match.group(1)), int(gt_match.group(2)), int(gt_match.group(3)), int(gt_match.group(4))]
        json_pattern = '{[^}]+}'
        json_match = re.search(json_pattern, predict_str)
        if json_match:
            data = json.loads(json_match.group(0))
            bbox_key = 'bbox'
            if bbox_key and len(data[bbox_key]) == 4:
                content_bbox = data[bbox_key]
                if iou(content_bbox, gt_bbox) > 0.5:
                    return 1.0
    except Exception:
        pass
    return 0.0

# Setup code to construct valid arguments
predict_str_high_iou = '{"bbox": [10, 20, 30, 40]}'
ground_truth_high_iou = '<box>(10,20),(30,40)</box>'

predict_str_low_iou = '{"bbox": [100, 200, 300, 400]}'
ground_truth_low_iou = '<box>(10,20),(30,40)</box>'

predict_str_invalid = 'invalid json'
ground_truth_invalid = 'invalid format'

ARGS = {
    'predict_str': predict_str_high_iou,
    'ground_truth': ground_truth_high_iou
}
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 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
seg_segmentation_format_reward Ran
ran on a synthesized input
dvlab-research/Seg-Zero/verl/utils/reward_score/seg.py
code served (permissive licence) · get_code("77f785f63d30a16b")
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 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 re
import json

def seg_segmentation_format_reward(predict_str: str) -> float:

    def is_valid_format(predict_str: str) -> bool:
        try:
            json_match = re.search('{[^}]+}', predict_str)
            if not json_match:
                return False
            json_str = json_match.group(0)
            data = json.loads(json_str)
            bbox_key = None
            points_keys = []
            for key in data.keys():
                if 'bbox' in key.lower() and bbox_key is None:
                    bbox_key = key
                elif 'point' in key.lower():
                    points_keys.append(key)
            if not (bbox_key and len(points_keys) >= 2):
                return False
            bbox = data[bbox_key]
            if len(bbox) != 4:
                return False
            for key in points_keys[:2]:
                if len(data[key]) != 2:
                    return False
            return True
        except Exception:
            return False
    return 1.0 if is_valid_format(predict_str) else 0.0


# Valid case: contains bbox with 4 elements and at least 2 point keys with 2 elements each
valid_predict_str = 'The result is {"bbox": [10, 20, 30, 40], "point1": [5, 15], "point2": [25, 35]}'

ARGS = {
    "predict_str": valid_predict_str
}
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 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
seg_segmentation_format_reward Ran
ran on a synthesized input
dvlab-research/Seg-Zero/verl/utils/reward_score/seg_restrict.py
code served (permissive licence) · get_code("0d43353f3a3abfff")
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 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 re
import json

def seg_segmentation_format_reward(predict_str: str) -> float:

    def is_valid_format(predict_str: str) -> bool:
        try:
            json_match = re.search('{[^}]+}', predict_str)
            if not json_match:
                return False
            json_str = json_match.group(0)
            data = json.loads(json_str)
            required_keys = ['bbox', 'points_1', 'points_2']
            for key in required_keys:
                if key not in data:
                    return False
            bbox = data['bbox']
            if not isinstance(bbox, list) or len(bbox) != 4:
                return False
            points_1 = data['points_1']
            points_2 = data['points_2']
            if not isinstance(points_1, list) or len(points_1) != 2:
                return False
            if not isinstance(points_2, list) or len(points_2) != 2:
                return False
            return True
        except Exception:
            return False
    return 1.0 if is_valid_format(predict_str) else 0.0


# Valid format test case
valid_predict_str = '{"bbox": [10, 20, 30, 40], "points_1": [1, 2], "points_2": [3, 4]}'

ARGS = {
    "predict_str": valid_predict_str
}
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 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
seg_thinking_format_reward Ran
ran on a synthesized input
dvlab-research/Seg-Zero/verl/utils/reward_score/seg.py
code served (permissive licence) · get_code("a0fec9aec44b558c")
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 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 re

def seg_thinking_format_reward(predict_str: str) -> float:
    pattern = '<think>.*?</think>\\s*<answer>.*?</answer>'
    match = re.fullmatch(pattern, predict_str, re.DOTALL)
    return 1.0 if match else 0.0

# Test case 1: valid format with thinking and answer tags
valid_predict_str = '<think>This is my reasoning</think>\n<answer>42</answer>'

ARGS = {
    'predict_str': valid_predict_str
}
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 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
create_and_push_dataset Not yet run
unverified (harvested, no recorded run)
dvlab-research/Seg-Zero/evaluation_scripts/create_reasonseg_hf.py
code served (permissive licence) · get_code("9b81b23f39e8998d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 1 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
merge_by_placement 6 other papers
1 dated earlier, 2 the same month, 3 later
2410.21236 (2024-10)
Flaming-hot Initiation with Regular Execution Sampling for Large Language Models
2505.13417 (2025-05)
AdaptThink: Reasoning Models Can Learn When to Think
2505.16673 (2025-05)
R1-ShareVL: Incentivizing Reasoning Capability of Multimodal Large Language Models via Share-GRPO
and 3 more not named here

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

Large vision-language models exhibit inherent capabilities to handle diverse visual perception tasks. In this paper, we introduce VisionReasoner, a unified framework capable of reasoning and solving multiple visual perception tasks within a shared model. Specifically, by designing a unified reward mechanism and multi-object cognitive learning strategies, VisionReasoner enhances its reasoning capabilities to analyze visual inputs, and addresses diverse perception tasks within a unified model. VisionReasoner generates a structured reasoning process before delivering the desired outputs responding to user queries. Human evaluation reveals the reasoning process of VisionReasoner is faithful and reliable even without annotated reasoning train data. To rigorously assess unified visual perception capabilities, we evaluate VisionReasoner on ten diverse tasks spanning three critical domains: detection, segmentation, and counting. Experimental results show that VisionReasoner achieves superior performance as a unified model, outperforming the baseline Qwen2.5VL by relative margins of 29.1\% on COCO (detection), 22.1\% on ReasonSeg (segmentation), and 13.2\% on CountBench (counting).

For agents

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

get_harvested_code_for_paper("2505.12081")
get_code_for_paper("2505.12081")
have("2505.12081")

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

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

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

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

Connect an agent — have() is free.