SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.15196 · 2026

REFDECODER: Enhancing Visual Generation with Conditional Video Decoding

Zhongzheng Ren, Xiang Fan, Ranjay Krishna, Yuheng Wang, Bohan Fang

arXiv · PDF · Open in the Atlas

Code that ran

7 of 8 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, 2 violated it and 0 have no contract verdict; 5 failures of our instrument; 1 no recorded run), measured 2026-11-23; 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/2605.15196.json · badge: /api/ran/2605.15196.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
huggingface/diffusers canonical (classifier label)
classifier basis: census
7 ran · 1 no recorded run
FunctionStatusWhere it lives
compute_confidence_aware_loss Ran
ran; our contract draft was wrong, not the code
huggingface/diffusers/src/diffusers/training_utils.py
code served (permissive licence) · get_code("6ae68d6c9ac97541")
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 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
import torch.nn.functional as F

torch.manual_seed(0)

# Create small test tensors
batch_size = 2
seq_len = 3
vocab_size = 4

# logits: shape (batch_size, seq_len, vocab_size)
logits = torch.randn(batch_size, seq_len, vocab_size)

# labels: shape (batch_size, seq_len) with values in [0, vocab_size) or ignore_index
labels = torch.tensor([
    [0, 1, 2],
    [3, 0, 1]
], dtype=torch.long)

# per_token_weights: shape (batch_size, seq_len)
per_token_weights = torch.ones(batch_size, seq_len)

ARGS = {
    "logits": logits,
    "labels": labels,
    "lambda_conf": 0.5,
    "temperature": 1.0,
    "per_token_weights": per_token_weights,
    "ignore_index": -100,
}
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, ndim 1, 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
compute_snr Ran
ran; our contract draft was wrong, not the code
huggingface/diffusers/src/diffusers/training_utils.py
code served (permissive licence) · get_code("60584419d54b85d5")
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, 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 torch
import numpy as np

torch.manual_seed(0)

class NoiseScheduler:
    """Minimal NoiseScheduler with alphas_cumprod attribute."""
    def __init__(self):
        # Create a small alphas_cumprod tensor with 10 timesteps
        # Values should decrease from 1 towards 0 as timesteps progress
        self.alphas_cumprod = torch.tensor([
            1.0000, 0.9900, 0.9703, 0.9410, 0.9025,
            0.8550, 0.7988, 0.7341, 0.6611, 0.5800
        ], dtype=torch.float32)

# Create noise scheduler instance
noise_scheduler = NoiseScheduler()

# Create timesteps tensor - should be indices into alphas_cumprod
# Using batch size 2 with 3 timestep indices each
timesteps = torch.tensor([
    [1, 3, 5],
    [0, 2, 4]
], dtype=torch.long)

ARGS = {
    "noise_scheduler": noise_scheduler,
    "timesteps": timesteps,
}
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 Tensor, 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
get_constant_schedule Ran
ran; our contract draft was wrong, not the code
huggingface/diffusers/src/diffusers/optimization.py
code served (permissive licence) · get_code("92d80e4ab339e3ab")
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 LambdaLR. 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
from torch.optim import SGD

torch.manual_seed(0)

# Create a simple model
model = nn.Linear(4, 3)

# Create an optimizer
optimizer = SGD(model.parameters(), lr=0.1)

# Define arguments for get_constant_schedule
ARGS = {
    "optimizer": optimizer,
    "last_epoch": -1
}
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 LambdaLR — a LambdaLR output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a LambdaLR 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
get_constant_schedule_with_warmup Ran
ran; our contract draft was wrong, not the code
huggingface/diffusers/src/diffusers/optimization.py
code served (permissive licence) · get_code("d93f7e15c000f6c3")
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 LambdaLR. 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
from torch.optim import Adam

torch.manual_seed(0)

# Create a simple model
model = nn.Linear(4, 2)

# Create an optimizer
optimizer = Adam(model.parameters(), lr=0.001)

# Define arguments for get_constant_schedule_with_warmup
ARGS = {
    "optimizer": optimizer,
    "num_warmup_steps": 100,
    "last_epoch": -1
}
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 LambdaLR — a LambdaLR output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a LambdaLR 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
get_piecewise_constant_schedule Ran
ran; our contract draft was wrong, not the code
huggingface/diffusers/src/diffusers/optimization.py
code served (permissive licence) · get_code("812bc8a25911527f")
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 LambdaLR. 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
from torch.optim import SGD

torch.manual_seed(0)

# Create a simple model with parameters
model = nn.Linear(4, 3)

# Create an optimizer
optimizer = SGD(model.parameters(), lr=0.1)

# Define step_rules as a string following the format described
# Format: "multiplier1:steps1,multiplier2:steps2,...,multiplier_final"
# Example: "1:10,0.1:20,0.01:30,0.005"
step_rules = "1:10,0.1:20,0.01:30,0.005"

# Define last_epoch
last_epoch = -1

ARGS = {
    "optimizer": optimizer,
    "step_rules": step_rules,
    "last_epoch": last_epoch,
}
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 LambdaLR — a LambdaLR output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a LambdaLR 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
is_valid_image Ran
ran, violated the contract we drafted
huggingface/diffusers/src/diffusers/image_processor.py
code served (permissive licence) · get_code("6b374abf44ba2349")
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 bool, 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 numpy as np
import PIL.Image
import torch

torch.manual_seed(0)

# Test case 1: PIL Image
pil_image = PIL.Image.new('RGB', (4, 3))

# Test case 2: 2D numpy array (grayscale)
np_2d = np.random.rand(4, 3)

# Test case 3: 3D numpy array (color)
np_3d = np.random.rand(4, 3, 3)

# Test case 4: 2D torch tensor (grayscale)
torch_2d = torch.randn(4, 3)

# Test case 5: 3D torch tensor (color)
torch_3d = torch.randn(4, 3, 3)

# Test case 6: Invalid input (1D array)
invalid_1d = np.random.rand(4)

ARGS = {
    "image": pil_image
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, 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
is_valid_image_imagelist Ran
ran, violated the contract we drafted
huggingface/diffusers/src/diffusers/image_processor.py
code served (permissive licence) · get_code("a0fb10d3d067e549")
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 bool, 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 numpy as np
import torch
import PIL.Image

torch.manual_seed(0)

# Create test images in different formats
pil_image = PIL.Image.new('RGB', (4, 3))

grayscale_np = np.random.rand(4, 3)
color_np = np.random.rand(4, 3, 3)

grayscale_torch = torch.randn(4, 3)
color_torch = torch.randn(4, 3, 3)

batch_np = np.random.rand(2, 4, 3, 3)
batch_torch = torch.randn(2, 4, 3, 3)

image_list = [
    pil_image,
    grayscale_np,
    color_torch
]

ARGS = {
    "images": batch_torch
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, 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
resolve_interpolation_mode Not yet run
unverified (harvested, no recorded run)
huggingface/diffusers/src/diffusers/training_utils.py
code served (permissive licence) · get_code("8b349cddb50e4322")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 0 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
compute_snr 9 other papers
8 dated earlier, 1 undated
2311.17918 (2023-11)
Driving into the Future: Multiview Visual Forecasting and Planning with World Model for Autonomous Driving
2403.10094 (2024-03)
RangeLDM: Fast Realistic LiDAR Point Cloud Generation
2403.12931 (2024-03)
You Only Sample Once: Taming One-Step Text-To-Image Synthesis by Self-Cooperative Diffusion GANs
and 6 more not named here
get_constant_schedule 2 other papers
2 dated earlier
2311.17918 (2023-11)
Driving into the Future: Multiview Visual Forecasting and Planning with World Model for Autonomous Driving
2405.15364 (2024-05)
NVS-Solver: Video Diffusion Model as Zero-Shot Novel View Synthesizer
get_constant_schedule_with_warmup 2 other papers
2 dated earlier
2311.17918 (2023-11)
Driving into the Future: Multiview Visual Forecasting and Planning with World Model for Autonomous Driving
2405.15364 (2024-05)
NVS-Solver: Video Diffusion Model as Zero-Shot Novel View Synthesizer
get_piecewise_constant_schedule 2 other papers
2 dated earlier
2311.17918 (2023-11)
Driving into the Future: Multiview Visual Forecasting and Planning with World Model for Autonomous Driving
2405.15364 (2024-05)
NVS-Solver: Video Diffusion Model as Zero-Shot Novel View Synthesizer
is_valid_image_imagelist 2 other papers
2 dated earlier
2312.16693 (2023-12)
I2V-Adapter: A General Image-to-Video Adapter for Diffusion Models
2505.17013 (2025-05)
When Are Concepts Erased From Diffusion Models?
resolve_interpolation_mode 2 other papers
2 dated earlier
2506.18871 (2025-06)
OmniGen2: Towards Instruction-Aligned Multimodal Generation
2512.11715 (2025-12)
EditMGT: Unleashing Potentials of Masked Generative Transformers in Image Editing

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

Figure 1: (a) REFDECODER improves video VAE decoders by conditioning on a high-fidelity reference signal that bypasses the lossy VAE latent round trip. Given the encoded latents, the decoder injects fine-grained details that are not preserved in the VAE latent space, improving reconstruction fidelity and downstream generation quality. (b) REFDECODER integrates with existing video generation pipelines (Wan 2.1 shown) without requiring costly re-training of the diffusion model.

For agents

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

get_harvested_code_for_paper("2605.15196")
get_code_for_paper("2605.15196")
have("2605.15196")

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

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

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

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

Connect an agent — have() is free.