SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.15564 · NeurIPS · 2025

Show-o2: Improved Native Unified Multimodal Models

Mike Shou, Jinheng Xie, Zhenheng Yang

arXiv · PDF · Open in the Atlas

Code that ran

11 of 11 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 11 failures of our instrument; 0 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/2506.15564.json · badge: /api/ran/2506.15564.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
showlab/Show-o canonical (classifier label)
classifier basis: census
11 ran · 0 no recorded run
FunctionStatusWhere it lives
apply_rotary_pos_emb Ran
ran; our contract draft was wrong, not the code
showlab/Show-o/show-o2/models/modules.py
code served (permissive licence) · get_code("bac65c3dafaec040")
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 tuple, ndim 5, 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

torch.manual_seed(0)

# Create small tensors for query and key
# Shape: [batch_size, heads, seq_len, head_dim]
batch_size = 2
heads = 3
seq_len = 4
head_dim = 8

q = torch.randn(batch_size, heads, seq_len, head_dim)
k = torch.randn(batch_size, heads, seq_len, head_dim)

# Create cos and sin tensors
# Shape: [batch_size, seq_len, head_dim]
cos = torch.randn(batch_size, seq_len, head_dim)
sin = torch.randn(batch_size, seq_len, head_dim)

# position_ids is optional and unused according to docstring
position_ids = None

# unsqueeze_dim defaults to 1
unsqueeze_dim = 1

ARGS = {
    "q": q,
    "k": k,
    "cos": cos,
    "sin": sin,
    "position_ids": position_ids,
    "unsqueeze_dim": unsqueeze_dim,
}
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 tuple, ndim 5, dtype family float — 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
get_constant_schedule Ran
ran; our contract draft was wrong, not the code
showlab/Show-o/show-o2/models/lr_schedulers.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Feng-Hong/WINO-DLLM, is pointer only (licence: NONE) · get_code("a8366f238618edad")
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 Feng-Hong/WINO-DLLM, 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_constant_schedule_with_warmup Ran
ran; our contract draft was wrong, not the code
showlab/Show-o/show-o2/models/lr_schedulers.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Feng-Hong/WINO-DLLM, is pointer only (licence: NONE) · get_code("11f07821d1b2286b")
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 Feng-Hong/WINO-DLLM, 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_linear_schedule_with_warmup Ran
ran; our contract draft was wrong, not the code
showlab/Show-o/show-o2/models/lr_schedulers.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Feng-Hong/WINO-DLLM, is pointer only (licence: NONE) · get_code("1975e0c51e6f5753")
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 Feng-Hong/WINO-DLLM, 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_parameter_device Ran
ran; our contract draft was wrong, not the code
showlab/Show-o/show-o2/models/modeling_utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from shuita2333/PAD-codes, is pointer only (licence: NONE) · get_code("3e268fcaaf4273fe")
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 shuita2333/PAD-codes, 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_parameter_dtype Ran
ran; our contract draft was wrong, not the code
showlab/Show-o/show-o2/models/modeling_utils.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from shuita2333/PAD-codes, is pointer only (licence: NONE) · get_code("33338f20f5619c59")
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 shuita2333/PAD-codes, 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.

modulate Ran
ran; our contract draft was wrong, not the code
showlab/Show-o/show-o2/models/modules.py
code served (permissive licence) · get_code("0a0354ad9a87e572")
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 (2, 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

torch.manual_seed(0)

# Create small test tensors
# x: input tensor with shape (batch, dim) = (2, 4)
x = torch.randn(2, 4, dtype=torch.float32)

# shift: shift tensor with shape (batch,) = (2,)
shift = torch.randn(2, dtype=torch.float32)

# scale: scale tensor with shape (batch,) = (2,)
scale = torch.randn(2, dtype=torch.float32)

ARGS = {
    "x": x,
    "shift": shift,
    "scale": scale,
}
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 (2, 4) — shape (2, 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
next_token_prediction Ran
ran; our contract draft was wrong, not the code
showlab/Show-o/show-o2/models/misc.py
code served (permissive licence) · get_code("10bfa31825ad417d")
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 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 torch.nn.functional as F

torch.manual_seed(0)

# Construct arguments for next_token_prediction
batch_size = 2
seq_length = 5
vocab_size = 4

# logits: shape (batch_size, seq_length, vocab_size)
# The function uses logits[:, :-1] so we need seq_length dimension
logits = torch.randn(batch_size, seq_length, vocab_size)

# labels: shape (batch_size, seq_length)
# The function uses labels[:, 1:] so we need seq_length dimension
# Values should be in range [0, vocab_size) or -100 for ignore_index
labels = torch.randint(0, vocab_size, (batch_size, seq_length))
labels[0, 0] = -100  # Add an example of ignore_index

vocab_szie = vocab_size

ARGS = {
    "logits": logits,
    "labels": labels,
    "vocab_szie": vocab_szie,
}
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 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
prepare_gen_input Ran
ran; our contract draft was wrong, not the code
showlab/Show-o/show-o2/models/misc.py
code served (permissive licence) · get_code("ef3ce1218285e733")
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)

class MockTextTokenizer:
    def __call__(self, text, add_special_tokens=False):
        # Return mock tokenizer output with input_ids
        # Make it vary based on text length for realism
        token_count = len(text.split()) + 2
        return {'input_ids': [101, 102] + [103] * (token_count - 2)}

prompts = [
    "a cat sitting on a mat",
    "a dog playing in the park"
]

text_tokenizer = MockTextTokenizer()

num_image_tokens = 5
bos_id = 101
eos_id = 102
boi_id = 103
eoi_id = 104
pad_id = 0
img_pad_id = 105
max_text_len = 10
device = 'cpu'

ARGS = {
    'prompts': prompts,
    'text_tokenizer': text_tokenizer,
    'num_image_tokens': num_image_tokens,
    'bos_id': bos_id,
    'eos_id': eos_id,
    'boi_id': boi_id,
    'eoi_id': eoi_id,
    'pad_id': pad_id,
    'img_pad_id': img_pad_id,
    'max_text_len': max_text_len,
    'device': device
}
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
rotate_half Ran
ran; our contract draft was wrong, not the code
showlab/Show-o/show-o2/models/modules.py
code served (permissive licence) · get_code("b99eea6376d1e212")
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 2, dtype family float, shape (2, 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

torch.manual_seed(0)

# The function rotate_half takes a single parameter 'x' which is a tensor
# It accesses x.shape[-1] to get the last dimension
# It uses indexing with [..., :] slicing notation
# It calls torch.cat() to concatenate tensors

# Create a small tensor with shape (2, 4) - batch size 2, hidden dim 4
x = torch.randn(2, 4)

ARGS = {
    "x": x
}
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 2, dtype family float, shape (2, 4) — shape (2, 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
velocity_prediction Ran
ran; our contract draft was wrong, not the code
showlab/Show-o/show-o2/models/misc.py
code served (permissive licence) · get_code("6a27f4593c6fdc92")
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 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 torch.nn.functional as F

torch.manual_seed(0)

# Create small tensors for latents and labels
# latents: predicted velocities
# labels: ground truth velocities
# Both should have the same shape
latents = torch.randn(2, 4)  # batch_size=2, dim=4
labels = torch.randn(2, 4)   # batch_size=2, dim=4

# Create a mask tensor (boolean mask for selecting which elements to include in loss)
mask = torch.tensor([[True, False, True, False], 
                     [True, True, False, True]])  # shape (2, 4)

ARGS = {
    'latents': latents,
    'labels': labels,
    'mask': mask
}
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 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

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 2 the same month, 7 later) and 4 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
rotate_half 360 other papers
282 dated earlier, 10 the same month, 60 later, 5 same year, order not determinable, 3 undated · 30 only as an assembly brick
1901.02860 (2019-01)
Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context
2203.08913 (2022-03)
Memorizing Transformers
2302.13971 (2023-02)
LLaMA: Open and Efficient Foundation Language Models
and 357 more not named here
apply_rotary_pos_emb 94 other papers
64 dated earlier, 4 the same month, 21 later, 2 same year, order not determinable, 3 undated · 6 only as an assembly brick
1901.02860 (2019-01)
Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context
2305.17888 (2023-05)
LLM-QAT: Data-Free Quantization Aware Training for Large Language Models
2309.11674 (2023-09)
A Paradigm Shift in Machine Translation: Boosting Translation Performance of Large Language Models
and 91 more not named here
get_linear_schedule_with_warmup 21 other papers
17 dated earlier, 4 later
2004.10964 (2020-04)
Don't Stop Pretraining: Adapt Language Models to Domains and Tasks
2011.07430 (2020-11)
Audio-Visual Event Recognition through the lens of Adversary
2109.04912 (2021-09)
ReasonBERT: Pre-trained to Reason with Distant Supervision
and 18 more not named here
get_constant_schedule 13 other papers
10 dated earlier, 3 later
2004.10964 (2020-04)
Don't Stop Pretraining: Adapt Language Models to Domains and Tasks
2204.13902 (2022-04)
Fast Sampling of Diffusion Models with Exponential Integrator
2305.15328 (2023-05)
Visual Programming for Text-to-Image Generation and Evaluation
and 10 more not named here
get_constant_schedule_with_warmup 13 other papers
10 dated earlier, 3 later
2004.10964 (2020-04)
Don't Stop Pretraining: Adapt Language Models to Domains and Tasks
2204.13902 (2022-04)
Fast Sampling of Diffusion Models with Exponential Integrator
2305.15328 (2023-05)
Visual Programming for Text-to-Image Generation and Evaluation
and 10 more not named here
get_parameter_device 3 other papers
1 dated earlier, 2 later
2505.14671 (2025-05)
UniCTokens: Boosting Personalized Understanding and Generation via Unified Concept Tokens
2507.11097 (2025-07)
The Devil behind the mask: An emergent safety vulnerability of Diffusion LLMs
2602.02600 (2026-02)
Step-Wise Refusal Dynamics in Autoregressive and Diffusion Language Models
get_parameter_dtype 3 other papers
1 dated earlier, 2 later
2505.14671 (2025-05)
UniCTokens: Boosting Personalized Understanding and Generation via Unified Concept Tokens
2507.11097 (2025-07)
The Devil behind the mask: An emergent safety vulnerability of Diffusion LLMs
2602.02600 (2026-02)
Step-Wise Refusal Dynamics in Autoregressive and Diffusion Language 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

This paper presents improved native unified multimodal models, i.e., Show-o2, that leverage autoregressive modeling and flow matching. Built upon a 3D causal variational autoencoder space, unified visual representations are constructed through a dual-path of spatial (-temporal) fusion, enabling scalability across image and video modalities while ensuring effective multimodal understanding and generation. Based on a language model, autoregressive modeling and flow matching are natively applied to the language head and flow head, respectively, to facilitate text token prediction and image/video generation. A two-stage training recipe is designed to effectively learn and scale to larger models. The resulting Show-o2 models demonstrate versatility in handling a wide range of multimodal understanding and generation tasks across diverse modalities, including text, images, and videos. Code and models are released at https://github.com/showlab/Show-o.

For agents

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

get_harvested_code_for_paper("2506.15564")
get_code_for_paper("2506.15564")
have("2506.15564")

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

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

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

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

Connect an agent — have() is free.