SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.09575 · 2024

Reconstructive Visual Instruction Tuning

arXiv · PDF · Open in the Atlas

Code that ran

9 of 13 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 1 has no contract verdict; 6 failures of our instrument; 4 no recorded run), measured 2026-11-22; 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/2410.09575.json · badge: /api/ran/2410.09575.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
haochen-wang409/ross community (classifier label)
classifier basis not recorded on the link
9 ran · 4 no recorded run
FunctionStatusWhere it lives
count_consecutive_blocks Ran
ran on a synthesized input
haochen-wang409/ross/ross/model/ross_arch.py
code served (permissive licence) · get_code("25d7c8f510336006")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

# Analyze the function: count_consecutive_blocks(lst, v)
# - lst: a list or iterable that we iterate through
# - v: a value we compare against elements in lst
# The function counts how many separate consecutive blocks of value v exist

# Create test data
lst = [1, 1, 1, 2, 2, 1, 1, 3, 1]  # 3 consecutive blocks of 1's
v = 1

ARGS = {
    "lst": lst,
    "v": v
}
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 int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
divide_to_patches Ran
ran; our contract draft was wrong, not the code
haochen-wang409/ross/ross/mm_utils.py
code served (permissive licence) · get_code("7e03b180fa317c9a")
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 simple test image
# The function expects a PIL.Image.Image object
# It calls .size to get width and height, and .crop() to create patches
image_array = np.random.randint(0, 256, (100, 120, 3), dtype=np.uint8)
test_image = Image.fromarray(image_array, mode='RGB')

# Define patch size
patch_size = 32

ARGS = {
    "image": test_image,
    "patch_size": patch_size,
}
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
get_1d_sincos_pos_embed_from_grid Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
haochen-wang409/ross/ross/model/utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Zhangwenyao1/DreamVLA, is pointer only (licence: NONE) · get_code("5c8ea92d43ead77d")
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 Zhangwenyao1/DreamVLA, 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_2d_sincos_pos_embed Ran
ran, honoured the contract we drafted
haochen-wang409/ross/ross/model/utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from lluosi/RDB-CL, is pointer only (licence: NONE) · get_code("77e8a3ac46f3afec")
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 lluosi/RDB-CL, 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.

resize_and_pad_image Ran
ran; our contract draft was wrong, not the code
haochen-wang409/ross/ross/mm_utils.py
code served (permissive licence) · get_code("468eedeba67f1b00")
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 Image. 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 PIL import Image
import numpy as np

# Create a sample image for testing
# Create a simple RGB image with distinct dimensions (100x75)
img_array = np.random.randint(0, 256, (75, 100, 3), dtype=np.uint8)
sample_image = Image.fromarray(img_array, mode='RGB')

# Define target resolution (width, height)
target_resolution = (200, 150)

ARGS = {
    "image": sample_image,
    "target_resolution": target_resolution,
}
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 Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int 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
select_best_resolution Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
haochen-wang409/ross/ross/mm_utils.py
code served (permissive licence) · get_code("3999ff487573f32c")
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 torch
import numpy as np

torch.manual_seed(0)

# Construct valid arguments for select_best_resolution
# The function takes:
# 1. original_size: tuple of (width, height)
# 2. possible_resolutions: list of tuples [(width1, height1), (width2, height2), ...]

original_size = (640, 480)  # width=640, height=480

possible_resolutions = [
    (256, 256),
    (512, 512),
    (1024, 768),
    (768, 1024),
    (1280, 960),
]

ARGS = {
    "original_size": original_size,
    "possible_resolutions": possible_resolutions,
}
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 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
split_to_even_chunks Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
haochen-wang409/ross/ross/ross_trainer.py
code served (permissive licence) · get_code("10893c4608c08075")
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 list, ndim 2, 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 torch

torch.manual_seed(0)

# Analyzing the function:
# - indices: a list/sequence of indices that will be iterated over
# - lengths: a dict-like or list-like object that maps indices to their lengths (accessed via lengths[index])
# - num_chunks: an integer specifying how many chunks to split into

# Create sample data
indices = [0, 1, 2, 3, 4, 5]
lengths = {0: 10, 1: 15, 2: 8, 3: 12, 4: 9, 5: 11}
num_chunks = 3

ARGS = {
    "indices": indices,
    "lengths": lengths,
    "num_chunks": num_chunks,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, dtype family 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
unpad_image Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
haochen-wang409/ross/ross/model/ross_arch.py
code served (permissive licence) · get_code("55c32993da87759b")
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 Tensor, ndim 3, dtype family float, shape (3, 10, 12) 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)

# Create a padded image tensor in CxHxW format
# Let's say original image was 8x6 (width x height)
# After padding and resizing, it became 12x12 (square)
# C=3 (RGB), H=12, W=12
tensor = torch.randn(3, 12, 12)

# Original size as (width, height) tuple
original_size = (8, 6)

ARGS = {
    "tensor": tensor,
    "original_size": original_size,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 3, dtype family float, shape (3, 10, 12) — shape (3, 10, 12) 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
violates_moderation Ran
ran, violated the contract we drafted
haochen-wang409/ross/ross/utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Mi3-Lab/doScenes-VLM-Planning, is pointer only (licence: AGPL-3.0) · get_code("f9939a84b9a65279")
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 Mi3-Lab/doScenes-VLM-Planning, and AGPL-3.0, as GitHub detects it on that repository, is not in the permissive set Syntology serves inline. 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_2d_sincos_pos_embed_from_grid Not yet run
unverified (harvested, no recorded run)
haochen-wang409/ross/ross/model/utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Zhangwenyao1/DreamVLA, is pointer only (licence: NONE) · get_code("2884deadbb637c3e")
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 Zhangwenyao1/DreamVLA, 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.

get_mm_adapter_state_maybe_zero_3 Not yet run
unverified (harvested, no recorded run)
haochen-wang409/ross/ross/ross_trainer.py
code served (permissive licence) · get_code("bb35e3ac741bb2c9")
How it ran

no invocation recorded.

maybe_zero_3 Not yet run
unverified (harvested, no recorded run)
haochen-wang409/ross/ross/ross_trainer.py
code served (permissive licence) · get_code("735025744c1ab0cf")
How it ran

no invocation recorded.

pretty_print_semaphore Not yet run
unverified (harvested, no recorded run)
haochen-wang409/ross/ross/utils.py
code served (permissive licence) · get_code("37899f22fb191b37")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 12 are also present in other papers whose code we hold (12 with at least one paper dated earlier, 12 the same month, 12 later) and 1 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_2d_sincos_pos_embed_from_grid 190 other papers
120 dated earlier, 6 the same month, 63 later, 1 same year, order not determinable · 65 only as an assembly brick
1807.10221 (2018-07)
Unified Perceptual Parsing for Scene Understanding
2105.12723 (2021-05)
Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understanding
2111.06377 (2021-11)
Masked Autoencoders Are Scalable Vision Learners
and 187 more not named here
get_2d_sincos_pos_embed 95 other papers
69 dated earlier, 2 the same month, 23 later, 1 same year, order not determinable · 33 only as an assembly brick
1807.10221 (2018-07)
Unified Perceptual Parsing for Scene Understanding
2105.12723 (2021-05)
Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understanding
2111.06377 (2021-11)
Masked Autoencoders Are Scalable Vision Learners
and 92 more not named here
select_best_resolution 73 other papers
34 dated earlier, 11 the same month, 28 later · 7 only as an assembly brick
2106.06909 (2021-06)
GigaSpeech: An Evolving, Multi-domain ASR Corpus with 10,000 Hours of Transcribed Audio
2304.08485 (2023-04)
Visual Instruction Tuning
2308.13566 (2023-08)
MLLM-DataEngine: An Iterative Refinement Approach for MLLM
and 70 more not named here
unpad_image 69 other papers
21 dated earlier, 5 the same month, 43 later · 5 only as an assembly brick
2304.08485 (2023-04)
Visual Instruction Tuning
2309.09958 (2023-09)
An Empirical Study of Scaling Instruct-Tuned Large Multimodal Models
2310.03744 (2023-10)
Improved Baselines with Visual Instruction Tuning
and 66 more not named here
resize_and_pad_image 65 other papers
29 dated earlier, 10 the same month, 26 later
2106.06909 (2021-06)
GigaSpeech: An Evolving, Multi-domain ASR Corpus with 10,000 Hours of Transcribed Audio
2308.13566 (2023-08)
MLLM-DataEngine: An Iterative Refinement Approach for MLLM
2310.08588 (2023-10)
Octopus: Embodied Vision-Language Programmer from Environmental Feedback
and 62 more not named here
divide_to_patches 64 other papers
28 dated earlier, 10 the same month, 26 later
2106.06909 (2021-06)
GigaSpeech: An Evolving, Multi-domain ASR Corpus with 10,000 Hours of Transcribed Audio
2308.13566 (2023-08)
MLLM-DataEngine: An Iterative Refinement Approach for MLLM
2310.08588 (2023-10)
Octopus: Embodied Vision-Language Programmer from Environmental Feedback
and 61 more not named here
violates_moderation 56 other papers
39 dated earlier, 2 the same month, 14 later, 1 same year, order not determinable
2106.06909 (2021-06)
GigaSpeech: An Evolving, Multi-domain ASR Corpus with 10,000 Hours of Transcribed Audio
2308.03279 (2023-08)
UniversalNER: TARGETED DISTILLATION FROM LARGE LANGUAGE MODELS FOR OPEN NAMED ENTITY RECOGNITION
2308.13437 (2023-08)
Position-Enhanced Visual Instruction Tuning for Multimodal Large Language Models
and 53 more not named here
pretty_print_semaphore 54 other papers
36 dated earlier, 2 the same month, 15 later, 1 same year, order not determinable
2106.06909 (2021-06)
GigaSpeech: An Evolving, Multi-domain ASR Corpus with 10,000 Hours of Transcribed Audio
2308.13437 (2023-08)
Position-Enhanced Visual Instruction Tuning for Multimodal Large Language Models
2309.07120 (2023-09)
Sight Beyond Text: Multi-Modal Training Enhances LLMs in Truthfulness and Ethics
and 51 more not named here
get_mm_adapter_state_maybe_zero_3 43 other papers
23 dated earlier, 5 the same month, 15 later
2304.05884 (2023-04)
Unicom: Universal and Compact Representation Learning for Image Retrieval
2304.08485 (2023-04)
Visual Instruction Tuning
2310.03744 (2023-10)
Improved Baselines with Visual Instruction Tuning
and 40 more not named here
maybe_zero_3 42 other papers
24 dated earlier, 4 the same month, 14 later
2304.05884 (2023-04)
Unicom: Universal and Compact Representation Learning for Image Retrieval
2304.08485 (2023-04)
Visual Instruction Tuning
2310.03744 (2023-10)
Improved Baselines with Visual Instruction Tuning
and 39 more not named here
split_to_even_chunks 40 other papers
20 dated earlier, 5 the same month, 15 later
2304.05884 (2023-04)
Unicom: Universal and Compact Representation Learning for Image Retrieval
2304.08485 (2023-04)
Visual Instruction Tuning
2310.03744 (2023-10)
Improved Baselines with Visual Instruction Tuning
and 37 more not named here
get_1d_sincos_pos_embed_from_grid 25 other papers
14 dated earlier, 1 the same month, 10 later · 16 only as an assembly brick
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
2111.06377 (2021-11)
Masked Autoencoders Are Scalable Vision Learners
2301.01296 (2023-01)
TinyMIM: An Empirical Study of Distilling MIM Pre-trained Models
and 22 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-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

This paper introduces reconstructive visual instruction tuning (ROSS), a family of Large Multimodal Models (LMMs) that exploit vision-centric supervision signals. In contrast to conventional visual instruction tuning approaches that exclusively supervise text outputs, ROSS prompts LMMs to supervise visual outputs via reconstructing input images. By doing so, it capitalizes on the inherent richness and detail present within input images themselves, which are often lost in pure text supervision. However, producing meaningful feedback from natural images is challenging due to the heavy spatial redundancy of visual signals. To address this issue, ROSS employs a denoising objective to reconstruct latent representations of input images, avoiding directly regressing exact raw RGB values. This intrinsic activation design inherently encourages LMMs to maintain image detail, thereby enhancing their fine-grained comprehension capabilities and reducing hallucinations. Empirically, ROSS consistently brings significant improvements across different visual encoders and language models. In comparison with extrinsic assistance state-of-the-art alternatives that aggregate multiple visual experts, ROSS delivers competitive performance with a single SigLIP visual encoder, demonstrating the efficacy of our vision-centric supervision tailored for visual outputs.

For agents

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

get_harvested_code_for_paper("2410.09575")
get_code_for_paper("2410.09575")
have("2410.09575")

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

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

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

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

Connect an agent — have() is free.