SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2604.21450 · 2026

VARestorer: One-Step VAR Distillation for Real-World Image Super-Resolution

Jiwen Lu, Jie Zhou, Lei Chen, Yansong Tang, Ao Li, Haolin Wang, Yixuan Zhu, Shilin Ma, Yanzhe Jing

arXiv · PDF · Open in the Atlas

Code that ran

12 of 17 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; 11 failures of our instrument; 5 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/2604.21450.json · badge: /api/ran/2604.21450.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
EternalEvan/VARestorer canonical (classifier label)
classifier basis: census
12 ran · 5 no recorded run
FunctionStatusWhere it lives
GumbelArgmax Ran
ran; our contract draft was wrong, not the code
EternalEvan/VARestorer/infinity/models/infinity.py
code served (permissive licence) · get_code("516ea8a7f10c40a2")
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
import torch.nn.functional as F

torch.manual_seed(0)

# logits: a tensor of shape (batch_size, num_classes)
# tau: a temperature parameter (float)

logits = torch.randn(2, 4)
tau = 0.5

ARGS = {
    "logits": logits,
    "tau": tau,
}
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
apply_rotary_emb Ran
ran; our contract draft was wrong, not the code
EternalEvan/VARestorer/infinity/models/basic.py
code served (permissive licence) · get_code("42125baaa5c021b6")
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 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
import numpy as np

torch.manual_seed(0)

# Construct tiny tensors for q and k
# Shape: (batch, heads, seq_len, dim)
batch_size = 2
num_heads = 3
seq_len = 4
dim = 8

q = torch.randn(batch_size, num_heads, seq_len, dim)
k = torch.randn(batch_size, num_heads, seq_len, dim)

# scale_schedule: list of tuples, each with 3 elements (used in the function)
# The function computes: start = sum([item[0] * item[1] * item[2] for item in scale_schedule[:scale_ind]])
scale_schedule = ((2, 3, 4), (5, 6, 7))

# rope2d_freqs_grid: dict with string keys mapping to tensors
# Key is str(tuple(scale_schedule))
# Tensor shape should support: rope_cache = rope2d_freqs_grid[key][:, :, :, :, start:start + seq_len]
# So it needs shape (?, ?, ?, ?, large_seq_dim)
# The function reshapes qk from (..., seq_len, dim) to (..., seq_len, -1, 2)
# After rope application, it reshapes back to (..., seq_len, dim)
# rope_cache is indexed as [0] and [1] for cos and sin components
# Shape: (2, batch, heads, ?, total_seq_len) where total_seq_len >= seq_len

rope2d_freqs_grid = {
    str(tuple(scale_schedule)): torch.randn(2, batch_size, num_heads, 1, 20)
}

# pad_to_multiplier: likely an integer or not used in the function body
# Looking at the function, pad_to_multiplier is never referenced
pad_to_multiplier = 8

# rope2d_normalized_by_hw: likely a boolean or not used in the function body
# Looking at the function, rope2d_normalized_by_hw is never referenced
rope2d_normalized_by_hw = True

# scale_ind: integer index into scale_schedule
scale_ind = 0

ARGS = {
    "q": q,
    "k": k,
    "scale_schedule": scale_schedule,
    "rope2d_freqs_grid": rope2d_freqs_grid,
    "pad_to_multiplier": pad_to_multiplier,
    "rope2d_normalized_by_hw": rope2d_normalized_by_hw,
    "scale_ind": scale_ind,
}
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 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
drop_path Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
EternalEvan/VARestorer/infinity/models/helpers.py
code served (permissive licence) · get_code("971ae8d2d8313e30")
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 4, dtype family float, shape (2, 4, 3, 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

torch.manual_seed(0)

# Create a small tensor for testing
# Shape: (batch_size=2, channels=4, height=3, width=3) - 4D tensor
x = torch.randn(2, 4, 3, 3)

ARGS = {
    "x": x,
    "drop_prob": 0.5,
    "training": True,
    "scale_by_keep": True,
}
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 4, dtype family float, shape (2, 4, 3, 3) — shape (2, 4, 3, 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_dropout_layer Ran
ran on a synthesized input
EternalEvan/VARestorer/infinity/models/basic.py
code served (permissive licence) · get_code("b4a8295838aac5c1")
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 Dropout. 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

torch.manual_seed(0)

# The function takes a single parameter 'p' which is a dropout probability
# It should be a float between 0 and 1
# We'll test with a value > 0 to trigger the Dropout case

ARGS = {
    "p": 0.5
}
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 Dropout — a Dropout output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Dropout 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_ema_model Ran
ran; our contract draft was wrong, not the code
EternalEvan/VARestorer/infinity/models/ema.py
code served (permissive licence) · get_code("2d0f2338dbaba23b")
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 SimpleModel. 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 copy

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
        self.bn = nn.BatchNorm1d(3)
    
    def forward(self, x):
        x = self.linear(x)
        x = self.bn(x)
        return x

model = SimpleModel()

ARGS = {
    "model": model
}
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 SimpleModel — a SimpleModel output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a SimpleModel 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_params_num Ran
ran; our contract draft was wrong, not the code
EternalEvan/VARestorer/infinity/models/infinity_old.py
code served (permissive licence) · get_code("6a19741de3a68058")
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 str. 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 numpy as np

torch.manual_seed(0)

# Analyzing the function:
# - d: appears to be an integer (used in multiplication: d * (w ** 2 * 8 + w * m * 2))
# - w: appears to be an integer (used in arithmetic operations)
# - mlp: appears to be an integer or float (used in: round(mlp * w / 256) * 256)
# All parameters are numeric values used in mathematical calculations

ARGS = {
    "d": 12,
    "w": 768,
    "mlp": 3072
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
gumbel_softmax_with_rng Ran
ran; our contract draft was wrong, not the code
EternalEvan/VARestorer/infinity/models/helpers.py
code served (permissive licence) · get_code("e543491ea064c733")
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
import torch.nn.functional as F

torch.manual_seed(0)

# Create a small logits tensor (batch_size=2, num_classes=4)
logits = torch.randn(2, 4)

# Create an RNG generator
rng = torch.Generator()
rng.manual_seed(42)

ARGS = {
    "logits": logits,
    "tau": 1.0,
    "hard": False,
    "eps": 1e-10,
    "dim": -1,
    "rng": rng
}
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
precompute_rope2d_freqs_grid Ran
ran; our contract draft was wrong, not the code
EternalEvan/VARestorer/infinity/models/basic.py
code served (permissive licence) · get_code("94b02b98b65ce1b4")
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 dict. 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

torch.manual_seed(0)

# Build dynamic_resolution_h_w structure
# This mimics the nested dict structure expected by the function
dynamic_resolution_h_w = {
    "1:1": {
        "1M": {
            "scales": [
                (0, 16, 16),
                (1, 32, 32),
            ]
        },
        "2M": {
            "scales": [
                (0, 24, 24),
                (1, 48, 48),
            ]
        }
    },
    "2:1": {
        "1M": {
            "scales": [
                (0, 16, 32),
                (1, 32, 64),
            ]
        },
        "2M": {
            "scales": [
                (0, 24, 48),
                (1, 48, 96),
            ]
        }
    }
}

ARGS = {
    "dim": 4,
    "dynamic_resolution_h_w": dynamic_resolution_h_w,
    "rope2d_normalized_by_hw": 0,
    "pad_to_multiplier": 1,
    "max_height": 128,
    "max_width": 128,
    "base": 10000.0,
    "device": None,
    "scaling_factor": 1.0,
}
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 dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
sample_with_top_k_top_p_ Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
EternalEvan/VARestorer/infinity/models/helpers.py
code served (permissive licence) · get_code("80371584448f2f6e")
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 3, dtype family int, shape (2, 3, 1) 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 logits tensor with shape (B, l, V) = (batch_size, sequence_length, vocab_size)
# Using distinct dimensions: B=2, l=3, V=4
logits_BlV = torch.randn(2, 3, 4)

# top_k parameter: filter to keep only top k logits
top_k = 2

# top_p parameter: nucleus sampling threshold
top_p = 0.9

# rng parameter: random number generator (None or torch.Generator)
rng = None

# num_samples parameter: number of samples to draw per position
num_samples = 1

ARGS = {
    "logits_BlV": logits_BlV,
    "top_k": top_k,
    "top_p": top_p,
    "rng": rng,
    "num_samples": num_samples,
}
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 3, dtype family int, shape (2, 3, 1) — shape (2, 3, 1) 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
sample_with_top_k_top_p_also_inplace_modifying_logits_ Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
EternalEvan/VARestorer/infinity/models/infinity.py
code served (permissive licence) · get_code("9526ce09c7148703")
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 int, shape (2, 3, 1) 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)

# Construct logits tensor with shape (B, l, V)
# B=2 (batch), l=3 (sequence length), V=4 (vocabulary size)
logits_BlV = torch.randn(2, 3, 4)

# top_k parameter: number of top tokens to keep
top_k = 2

# top_p parameter: nucleus sampling threshold
top_p = 0.9

# rng parameter: random number generator
rng = torch.Generator()
rng.manual_seed(42)

# num_samples parameter: number of samples to draw
num_samples = 1

ARGS = {
    "logits_BlV": logits_BlV,
    "top_k": top_k,
    "top_p": top_p,
    "rng": rng,
    "num_samples": num_samples,
}
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 int, shape (2, 3, 1) — shape (2, 3, 1) 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
sample_with_top_k_top_p_also_modifying_logits_ Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
EternalEvan/VARestorer/infinity/models/infinity.py
code served (permissive licence) · get_code("0a42a4b558ef4d31")
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 3, dtype family int, shape (2, 3, 1) 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)

# Small logits tensor: B=2 (batch), l=3 (sequence length), V=4 (vocabulary size)
logits_BlV = torch.randn(2, 3, 4)

# top_k parameter - number of top tokens to keep
top_k = 2

# top_p parameter - nucleus sampling threshold
top_p = 0.9

# rng parameter - random number generator
rng = torch.Generator()
rng.manual_seed(42)

# num_samples parameter - number of samples to draw
num_samples = 1

ARGS = {
    "logits_BlV": logits_BlV,
    "top_k": top_k,
    "top_p": top_p,
    "rng": rng,
    "num_samples": num_samples,
}
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 3, dtype family int, shape (2, 3, 1) — shape (2, 3, 1) 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
sampling_with_top_k_top_p_also_inplace_modifying_probs_ Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
EternalEvan/VARestorer/infinity/models/infinity_old.py
code served (permissive licence) · get_code("5451c3f14c7e520c")
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 int, shape (2, 3, 1) 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)

# Construct a small probability tensor with shape (B, l, V)
# B=2 (batch), l=3 (sequence length), V=4 (vocabulary size)
probs_BlV = torch.rand(2, 3, 4)
probs_BlV = probs_BlV / probs_BlV.sum(dim=-1, keepdim=True)  # normalize to valid probabilities

# Create a random number generator
rng = torch.Generator()
rng.manual_seed(42)

ARGS = {
    "probs_BlV": probs_BlV,
    "top_k": 2,
    "top_p": 0.9,
    "rng": rng,
    "num_samples": 1
}
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 int, shape (2, 3, 1) — shape (2, 3, 1) 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
features2image Not yet run
unverified (harvested, no recorded run)
EternalEvan/VARestorer/infinity/models/bitwise_self_correction.py
code served (permissive licence) · get_code("0a9d5c3882889998")
How it ran

no invocation recorded.

fused_ada_layer_norm Not yet run
unverified (harvested, no recorded run)
EternalEvan/VARestorer/infinity/models/fused_op.py
code served (permissive licence) · get_code("2c95f490aca10ca4")
How it ran

no invocation recorded.

fused_ada_rms_norm Not yet run
unverified (harvested, no recorded run)
EternalEvan/VARestorer/infinity/models/fused_op.py
code served (permissive licence) · get_code("2799799371543095")
How it ran

no invocation recorded.

fused_rms_norm Not yet run
unverified (harvested, no recorded run)
EternalEvan/VARestorer/infinity/models/fused_op.py
code served (permissive licence) · get_code("6c1bfd60f7bf3664")
How it ran

no invocation recorded.

labels2image Not yet run
unverified (harvested, no recorded run)
EternalEvan/VARestorer/infinity/models/bitwise_self_correction.py
code served (permissive licence) · get_code("9ba6c0e0e8e4e50e")
How it ran

no invocation recorded.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 15 are also present in other papers whose code we hold (15 with at least one paper dated earlier, 0 the same month, 1 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
drop_path 66 other papers
63 dated earlier, 1 later, 2 undated · 15 only as an assembly brick
1906.01502 (2019-06)
How multilingual is Multilingual BERT?
2011.10566 (2020-11)
Exploring Simple Siamese Representation Learning
2103.03230 (2021-03)
Barlow Twins: Self-Supervised Learning via Redundancy Reduction
and 63 more not named here
gumbel_softmax_with_rng 8 other papers
8 dated earlier
2408.01181 (2024-08)
VAR-CLIP: Text-to-Image Generator with Visual Auto-Regressive Modeling
2410.10812 (2024-10)
HART: Efficient Visual Generation with Hybrid Autoregressive Transformer
2411.10433 (2024-11)
M-VAR: Decoupled Scale-wise Autoregressive Modeling for High-Quality Image Generation
and 5 more not named here
sample_with_top_k_top_p_ 8 other papers
8 dated earlier
2408.01181 (2024-08)
VAR-CLIP: Text-to-Image Generator with Visual Auto-Regressive Modeling
2410.10812 (2024-10)
HART: Efficient Visual Generation with Hybrid Autoregressive Transformer
2411.10433 (2024-11)
M-VAR: Decoupled Scale-wise Autoregressive Modeling for High-Quality Image Generation
and 5 more not named here
sample_with_top_k_top_p_also_inplace_modifying_logits_ 5 other papers
5 dated earlier
2404.02905 (2024-04)
Visual Autoregressive Modeling: Scalable Image Generation via Next-Scale Prediction
2412.04431 (2024-12)
Infinity: Scaling Bitwise AutoRegressive Modeling for High-Resolution Image Synthesis
and 2 more not named here
get_params_num 4 other papers
4 dated earlier
2404.02905 (2024-04)
Visual Autoregressive Modeling: Scalable Image Generation via Next-Scale Prediction
2412.04431 (2024-12)
Infinity: Scaling Bitwise AutoRegressive Modeling for High-Resolution Image Synthesis
and 1 more not named here
sampling_with_top_k_top_p_also_inplace_modifying_probs_ 4 other papers
4 dated earlier
2404.02905 (2024-04)
Visual Autoregressive Modeling: Scalable Image Generation via Next-Scale Prediction
2412.04431 (2024-12)
Infinity: Scaling Bitwise AutoRegressive Modeling for High-Resolution Image Synthesis
and 1 more not named here
features2image 3 other papers
3 dated earlier
Chung_Fine-Tuning_Visual_Autogressive_Models_for_Subject-Driven_Generation_ICCV_2025_paper (2025 (year only))
Fine-Tuning Visual Autoregressive Models for Subject-Driven Generation
2503.23367 (2025-03)
FastVAR: Linear Visual Autoregressive Modeling via Cached Token Pruning
2508.15772 (2025-08)
Visual Autoregressive Modeling for Instruction-Guided Image Editing
get_dropout_layer 3 other papers
3 dated earlier
Chung_Fine-Tuning_Visual_Autogressive_Models_for_Subject-Driven_Generation_ICCV_2025_paper (2025 (year only))
Fine-Tuning Visual Autoregressive Models for Subject-Driven Generation
2503.23367 (2025-03)
FastVAR: Linear Visual Autoregressive Modeling via Cached Token Pruning
2508.15772 (2025-08)
Visual Autoregressive Modeling for Instruction-Guided Image Editing
labels2image 3 other papers
3 dated earlier
Chung_Fine-Tuning_Visual_Autogressive_Models_for_Subject-Driven_Generation_ICCV_2025_paper (2025 (year only))
Fine-Tuning Visual Autoregressive Models for Subject-Driven Generation
2503.23367 (2025-03)
FastVAR: Linear Visual Autoregressive Modeling via Cached Token Pruning
2508.15772 (2025-08)
Visual Autoregressive Modeling for Instruction-Guided Image Editing
apply_rotary_emb 2 other papers
2 dated earlier
Chung_Fine-Tuning_Visual_Autogressive_Models_for_Subject-Driven_Generation_ICCV_2025_paper (2025 (year only))
Fine-Tuning Visual Autoregressive Models for Subject-Driven Generation
2503.23367 (2025-03)
FastVAR: Linear Visual Autoregressive Modeling via Cached Token Pruning
get_ema_model 2 other papers
2 dated earlier
Chung_Fine-Tuning_Visual_Autogressive_Models_for_Subject-Driven_Generation_ICCV_2025_paper (2025 (year only))
Fine-Tuning Visual Autoregressive Models for Subject-Driven Generation
2508.15772 (2025-08)
Visual Autoregressive Modeling for Instruction-Guided Image Editing
precompute_rope2d_freqs_grid 2 other papers
2 dated earlier
Chung_Fine-Tuning_Visual_Autogressive_Models_for_Subject-Driven_Generation_ICCV_2025_paper (2025 (year only))
Fine-Tuning Visual Autoregressive Models for Subject-Driven Generation
2503.23367 (2025-03)
FastVAR: Linear Visual Autoregressive Modeling via Cached Token Pruning
fused_ada_layer_norm 1 other paper
1 dated earlier
2508.15772 (2025-08)
Visual Autoregressive Modeling for Instruction-Guided Image Editing
fused_ada_rms_norm 1 other paper
1 dated earlier
2508.15772 (2025-08)
Visual Autoregressive Modeling for Instruction-Guided Image Editing
fused_rms_norm 1 other paper
1 dated earlier
2508.15772 (2025-08)
Visual Autoregressive Modeling for Instruction-Guided 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

Recent advancements in visual autoregressive models (VAR) have demonstrated their effectiveness in image generation, highlighting their potential for real-world image super-resolution (Real-ISR). However, adapting VAR for ISR presents critical challenges. The next-scale prediction mechanism, constrained by causal attention, fails to fully exploit global low-quality (LQ) context, resulting in blurry and inconsistent high-quality (HQ) outputs. Additionally, error accumulation in the iterative prediction severely degrades coherence in ISR task. To address these issues, we propose VARestorer, a simple yet effective distillation framework that transforms a pre-trained text-to-image VAR model into a one-step ISR model. By leveraging distribution matching, our method eliminates the need for iterative refinement, significantly reducing error propagation and inference time. Furthermore, we introduce pyramid image conditioning with cross-scale attention, which enables bidirectional scale-wise interactions and fully utilizes the input image information while adapting to the autoregressive mechanism. This prevents later LQ tokens from being overlooked in the transformer. By fine-tuning only 1.2% of the model parameters through parameter-efficient adapters, our method maintains the expressive power of the original VAR model while significantly enhancing efficiency. Extensive experiments show that VARestorer achieves state-of-the-art performance with 72.32 MUSIQ and 0.7669 CLIPIQA on DIV2K dataset, while accelerating inference by 10 times compared to conventional VAR inference. Our code is available at https://github.com/EternalEvan/VARestorer.

For agents

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

get_harvested_code_for_paper("2604.21450")
get_code_for_paper("2604.21450")
have("2604.21450")

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

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

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

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

Connect an agent — have() is free.