SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.23380 · 2025

UniRL: Self-Improving Unified Multimodal Models via Supervised and Reinforcement Learning

arXiv · PDF · Open in the Atlas

Code that ran

10 of 12 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 1 has no contract verdict; 9 failures of our instrument; 2 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.23380.json · badge: /api/ran/2505.23380.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/unirl canonical (classifier label)
classifier basis not recorded on the link
10 ran · 2 no recorded run
FunctionStatusWhere it lives
Normalize Ran
ran; our contract draft was wrong, not the code
showlab/unirl/models/common_modules.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from Xingyu-Zheng/BiDM, is pointer only (licence: NONE) · get_code("c3a6b977022957cb")
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 Xingyu-Zheng/BiDM, 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.

compute_iou Ran
ran on a synthesized input
showlab/unirl/evaluate_imgs.py
code served (permissive licence) · get_code("2f96ce289cb03a29")
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
import numpy as np

torch.manual_seed(0)

# box_a and box_b are expected to be indexable objects with at least 4 elements
# representing bounding box coordinates [x1, y1, x2, y2]
# The function uses: box[0], box[1], box[2], box[3] indexing
# It performs arithmetic operations on these values

box_a = [10, 20, 50, 80]
box_b = [30, 40, 60, 90]

ARGS = {
    "box_a": box_a,
    "box_b": box_b,
}
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 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
flatten_omega_conf Ran
ran; our contract draft was wrong, not the code
showlab/unirl/inference.py
code served (permissive licence) · get_code("d15d620fa9ed83c7")
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 2, 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.

from omegaconf import DictConfig, ListConfig, OmegaConf

# Create a simple nested DictConfig for testing
cfg = OmegaConf.create({
    "model": {
        "name": "transformer",
        "layers": 12,
        "hidden_dim": 768,
    },
    "training": {
        "lr": 0.001,
        "batch_size": 32,
    },
    "data": [1, 2, 3],
})

ARGS = {
    "cfg": cfg,
    "resolve": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
omegaconf — 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 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_constant_schedule Ran
ran; our contract draft was wrong, not the code
showlab/unirl/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/unirl/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/unirl/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.

nonlinearity Ran
ran; our contract draft was wrong, not the code
showlab/unirl/models/common_modules.py
code served (permissive licence) · get_code("3137073275f8c21a")
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 takes a single parameter 'x' which is used with:
# - multiplication operator (*)
# - torch.sigmoid() function
# This means x should be a tensor

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
soft_target_cross_entropy Ran
ran; our contract draft was wrong, not the code
showlab/unirl/inference.py
code served (permissive licence) · get_code("d8437c41cc2a860f")
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 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 logits tensor: shape (batch=2, seq_len=5, vocab=4)
# After slicing [:, 1:], becomes (2, 4, 4)
logits = torch.randn(2, 5, 4)

# Create targets tensor: shape (batch=2, seq_len=5)
# After slicing [:, 1:], becomes (2, 4)
# Values should be -100 (padding) or valid indices
targets = torch.tensor([
    [-100, 0, 1, 2, -100],
    [1, 2, 0, -100, -100]
])

# Create soft_targets tensor: shape (batch=2, seq_len=4, num_classes=3)
# This should match the shape after logits slicing and truncation
soft_targets = torch.softmax(torch.randn(2, 4, 3), dim=-1)

ARGS = {
    "logits": logits,
    "targets": targets,
    "soft_targets": soft_targets
}
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 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
timed Ran
ran; our contract draft was wrong, not the code
showlab/unirl/evaluate_imgs.py
code served (permissive licence) · get_code("844a4aecea80d106")
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 function. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import time
import sys

def timed(fn):
    def wrapper(*args, **kwargs):
        startt = time.time()
        result = fn(*args, **kwargs)
        endt = time.time()
        print(f'Function {fn.__name__!r} executed in {endt - startt:.3f}s', file=sys.stderr)
        return result
    return wrapper

# Create a simple test function to decorate
def sample_function(x, y):
    return x + y

# The timed decorator takes a function as its only argument
ARGS = {
    'fn': sample_function
}
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 function — a function output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a function output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
unpack_time Ran
ran; our contract draft was wrong, not the code
showlab/unirl/models/common_modules.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("2d82abbef2c4addb")
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_logger Not yet run
unverified (harvested, no recorded run)
showlab/unirl/models/logging.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("376bf22d5737fc2a")
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. No invocation recorded.

get_vq_model_class Not yet run
unverified (harvested, no recorded run)
showlab/unirl/inference.py
code served (permissive licence) · get_code("509a71c867af544b")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 10 are also present in other papers whose code we hold (10 with at least one paper dated earlier, 8 the same month, 8 later) and 2 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
nonlinearity 156 other papers
132 dated earlier, 6 the same month, 18 later · 25 only as an assembly brick
2104.07652 (2021-04)
Geometry-Free View Synthesis: Transformers and no 3D Priors
2106.00132 (2021-06)
On Fast Sampling of Diffusion Probabilistic Models
2106.06819 (2021-06)
D2C: Diffusion-Denoising Models for Few-shot Conditional Generation
and 153 more not named here
Normalize 90 other papers
76 dated earlier, 3 the same month, 11 later · 32 only as an assembly brick
2104.07652 (2021-04)
Geometry-Free View Synthesis: Transformers and no 3D Priors
2106.00132 (2021-06)
On Fast Sampling of Diffusion Probabilistic Models
2106.06819 (2021-06)
D2C: Diffusion-Denoising Models for Few-shot Conditional Generation
and 87 more not named here
get_linear_schedule_with_warmup 21 other papers
15 dated earlier, 1 the same month, 5 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
8 dated earlier, 1 the same month, 4 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
8 dated earlier, 1 the same month, 4 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_logger 12 other papers
6 dated earlier, 3 the same month, 3 later
2004.10964 (2020-04)
Don't Stop Pretraining: Adapt Language Models to Domains and Tasks
2305.01938 (2023-05)
Doc2SoarGraph: Discrete Reasoning over Visually-Rich Table-Text Documents via Semantic-Oriented Hierarchical Graphs
2406.05478 (2024-06)
Revisiting Non-Autoregressive Transformers for Efficient Image Synthesis
and 9 more not named here
unpack_time 6 other papers
1 dated earlier, 2 the same month, 3 later
2503.03651 (2025-03)
DoraCycle: Domain-Oriented Adaptation of Unified Generative Model in Multimodal Cycles
2505.14671 (2025-05)
UniCTokens: Boosting Personalized Understanding and Generation via Unified Concept Tokens
2505.15809 (2025-05)
MMaDA: Multimodal Large Diffusion Language Models
and 3 more not named here
timed 4 other papers
2 dated earlier, 1 the same month, 1 later
2310.11513 (2023-10)
GenEval: An Object-Focused Framework for Evaluating Text-to-Image Alignment
2412.04431 (2024-12)
Infinity: Scaling Bitwise AutoRegressive Modeling for High-Resolution Image Synthesis
2505.14683 (2025-05)
Emerging Properties in Unified Multimodal Pretraining
and 1 more not named here
flatten_omega_conf 3 other papers
3 dated earlier
2301.00704 (2023-01)
Muse: Text-To-Image Generation via Masked Generative Transformers
2410.06264 (2024-10)
Think While You Generate: Discrete Diffusion with Planned Denoising
2410.13136 (2024-10)
Unlocking the Capabilities of Masked Generative Models for Image Synthesis via Self-Guidance
soft_target_cross_entropy 2 other papers
2 dated earlier
2301.00704 (2023-01)
Muse: Text-To-Image Generation via Masked Generative Transformers
2410.13136 (2024-10)
Unlocking the Capabilities of Masked Generative Models for Image Synthesis via Self-Guidance

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

Unified multimodal large language models such as Show-o and Janus have achieved strong performance across both generation and understanding tasks. However, these models typically rely on large-scale datasets and require substantial computation during the pretraining stage. In addition, several post-training methods have been proposed, but they often depend on external data or are limited to task-specific customization. In this work, we introduce UniRL, a self-improving post-training approach. Our approach enables the model to generate images from prompts and use them as training data in each iteration, without relying on any external image data. Moreover, it enables the two tasks to enhance each other: the generated images are used for understanding, and the understanding results are used to supervise generation. We explore supervised fine-tuning (SFT) and Group Relative Policy Optimization (GRPO) to optimize the models. UniRL offers three key advantages: (1) it requires no external image data, as all training samples are generated by the model itself during training; (2) it not only improves individual task performance, but also reduces the imbalance between generation and understanding; and (3) it requires only several additional training steps during the post-training stage. We evaluate UniRL on top of Show-o and Janus, achieving a GenEval score of 0.77 for Show-o and 0.65 for Janus. Code and models will be released in https://github.com/showlab/UniRL.

For agents

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

get_harvested_code_for_paper("2505.23380")
get_code_for_paper("2505.23380")
have("2505.23380")

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

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

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

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

Connect an agent — have() is free.