SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2504.10465 · 2025

Pixel-SAIL: Single Transformer For Pixel-Grounded Understanding

arXiv · PDF · Open in the Atlas

Code that ran

8 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 1 violated it and 4 have no contract verdict; 2 failures of our instrument; 1 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/2504.10465.json · badge: /api/ran/2504.10465.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
magic-research/Sa2VA canonical (classifier label)
classifier basis not recorded on the link
8 ran · 1 no recorded run
FunctionStatusWhere it lives
chat_mt Ran
ran; our contract draft was wrong, not the code
magic-research/Sa2VA/sa2va_eval/vlmeval/inference_mt.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from DreamMr/HR-Bench, is pointer only (licence: NONE) · get_code("d39e00e95c8c76b0")
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 DreamMr/HR-Bench, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

dynamic_preprocess Ran
ran on a synthesized input
magic-research/Sa2VA/projects/sa2va/models/utils.py
code served (permissive licence) · get_code("0540d954e21b5549")
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 4, 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.

from PIL import Image
import numpy as np

# Create a small test image
img_array = np.random.randint(0, 256, (224, 336, 3), dtype=np.uint8)
test_image = Image.fromarray(img_array)

ARGS = {
    "image": test_image,
    "min_num": 1,
    "max_num": 6,
    "image_size": 448,
    "use_thumbnail": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 4, dtype family int — 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
find_closest_aspect_ratio Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
magic-research/Sa2VA/projects/sa2va/models/utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from OpenGVLab/MM-NIAH, is pointer only (licence: NONE) · get_code("bd77f5f8067f18e9")
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 OpenGVLab/MM-NIAH, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

find_seg_indices Ran
ran on a synthesized input
magic-research/Sa2VA/projects/sa2va/models/utils.py
code served (permissive licence) · get_code("7208c384f09f231e")
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 re

def find_seg_indices(text):
    all_seg_indices = [m.start() for m in re.finditer('\\[SEG\\]', text)]
    answer_spans = [(m.start(), m.end()) for m in re.finditer('<answer>.*?</answer>', text, re.DOTALL)]
    if len(answer_spans) == 0:
        return ([], list(range(len(all_seg_indices))))
    if len(answer_spans) > 1:
        print(f'Warning: There should be only one <answer> tag in the text. {text}')
    answer_span = answer_spans[0]
    start, end = answer_span
    seg_indices_in_reason = []
    seg_indices_in_answer = []
    for idx, seg_ind in enumerate(all_seg_indices):
        if start <= seg_ind < end:
            seg_indices_in_answer.append(idx)
        elif seg_ind < start:
            seg_indices_in_reason.append(idx)
        else:
            continue
    return (seg_indices_in_reason, seg_indices_in_answer)


# Setup code to construct valid arguments
text_with_segments_and_answer = (
    "This is a reason with [SEG] and another [SEG] here. "
    "<answer>The answer contains [SEG] inside it</answer> "
    "and this is after [SEG]."
)

ARGS = {
    "text": text_with_segments_and_answer
}
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
format_rewards_v1 Ran
ran on a synthesized input
magic-research/Sa2VA/projects/vrt_sa2va/models/sa2va_grpo.py
code served (permissive licence) · get_code("eec45fcd076c8d6d")
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 format_rewards_v1(predictions_texts):
    pattern = '<think>.*?</think>.*?<answer>.*?[SEG].*?</answer>.*?'
    completion_contents = predictions_texts
    matches = [re.fullmatch(pattern, content, re.DOTALL) and 'reasoning process here' not in content for content in completion_contents]
    return [1.0 if match else 0.0 for match in matches]


# Valid test cases for predictions_texts
valid_text_1 = '<think>some reasoning</think>some output<answer>result[SEG]final</answer>extra'
valid_text_2 = '<think>reasoning</think><answer>answer[SEG]content</answer>'

invalid_text_1 = '<think>reasoning process here</think><answer>result[SEG]</answer>'
invalid_text_2 = 'no tags here'

ARGS = {
    'predictions_texts': [valid_text_1, invalid_text_1, valid_text_2, invalid_text_2]
}
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
format_rewards_v2 Ran
ran on a synthesized input
magic-research/Sa2VA/projects/vrt_sa2va/models/sa2va_grpo.py
code served (permissive licence) · get_code("a78feee3a6340b1e")
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 format_rewards_v2(predictions_texts):
    pattern_full = '<think>.*?\\[SEG\\].*?</think>.*?<answer>.*?\\[SEG\\].*?</answer>.*?'
    pattern_answer = '<think>.*?</think>.*?<answer>.*?\\[SEG\\].*?</answer>.*?'
    rewards = []
    for content in predictions_texts:
        match = re.fullmatch(pattern_full, content, re.DOTALL)
        if match:
            rewards.append(1.0)
        elif re.fullmatch(pattern_answer, content, re.DOTALL):
            rewards.append(0.5)
        else:
            rewards.append(0.0)
    return rewards


# Setup code
predictions_texts = [
    '<think>some reasoning [SEG] more reasoning</think><answer>final answer [SEG] extra</answer>',
    '<think>reasoning</think><answer>answer [SEG] content</answer>',
    '<think>incomplete</think><answer>incomplete</answer>',
    'invalid format'
]

ARGS = {
    'predictions_texts': predictions_texts
}
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
get_gpu_num Ran
ran, honoured the contract we drafted
magic-research/Sa2VA/sa2va_eval/vlmeval/api/hf_chat_model.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from DreamMr/HR-Bench, is pointer only (licence: NONE) · get_code("535c5c06a6492a2f")
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 DreamMr/HR-Bench, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_seg_hidden_states Ran
ran, violated the contract we drafted
magic-research/Sa2VA/projects/sa2va/models/sa2va.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from echo840/LIRA, is pointer only (licence: NONE) · get_code("41ff9a76f657423e")
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 echo840/LIRA, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

answer_rewards_v3 Not yet run
unverified (harvested, no recorded run)
magic-research/Sa2VA/projects/vrt_sa2va/models/sa2va_grpo.py
code served (permissive licence) · get_code("4da7fef23614e59f")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 4 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 1 the same month, 2 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
find_closest_aspect_ratio 43 other papers
28 dated earlier, 1 the same month, 10 later, 4 same year, order not determinable
1910.01108 (2019-10)
DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter
2312.13271 (2023-12)
Repaint123: Fast and High-quality One Image to 3D Generation with Progressive Controllable 2D Repainting
2403.15952 (2024-03)
IllusionVQA: A Challenging Optical Illusion Dataset for Vision Language Models
and 40 more not named here
get_gpu_num 2 other papers
2 dated earlier
2311.17647 (2023-11)
Text as Images: Can Multimodal Large Language Models Follow Printed Instructions in Pixels?
2408.15556 (2024-08)
Divide, Conquer and Combine: A Training-Free Framework for High-Resolution Image Perception in Multimodal Large Language Models
chat_mt 1 other paper
1 dated earlier
2408.15556 (2024-08)
Divide, Conquer and Combine: A Training-Free Framework for High-Resolution Image Perception in Multimodal Large Language Models
get_seg_hidden_states 1 other paper
1 later
2507.06272 (2025-07)
LIRA: Inferring Segmentation in Large Multi-modal Models with Local Interleaved Region Assistance

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

Multimodal Large Language Models (MLLMs) achieve remarkable performance for fine-grained pixel-level understanding tasks. However, all the works rely heavily on extra components, such as vision encoder (CLIP), segmentation experts, leading to high system complexity and limiting model scaling. In this work, our goal is to explore a highly simplified MLLM without introducing extra components. Our work is motivated by the recent works on Single trAnsformer as a unified vIsion-Language Model (SAIL) design, where these works jointly learn vision tokens and text tokens in transformers. We present Pixel-SAIL, a single transformer for pixel-wise MLLM tasks. In particular, we present three technical improvements on the plain baseline. First, we design a learnable upsampling module to refine visual token features. Secondly, we propose a novel visual prompt injection strategy to enable the single transformer to understand visual prompt inputs and benefit from the early fusion of visual prompt embeddings and vision tokens. Thirdly, we introduce a vision expert distillation strategy to efficiently enhance the single transformer's fine-grained feature extraction capability. In addition, we have collected a comprehensive pixel understanding benchmark (PerBench), using a manual check. It includes three tasks: detailed object description, visual prompt-based question answering, and visual-text referring segmentation. Extensive experiments on four referring segmentation benchmarks, one visual prompt benchmark, and our PerBench show that our Pixel-SAIL achieves comparable or even better results with a much simpler pipeline. Code and model will be released at https://github.com/magic-research/Sa2VA.

For agents

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

get_harvested_code_for_paper("2504.10465")
get_code_for_paper("2504.10465")
have("2504.10465")

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

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

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

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

Connect an agent — have() is free.