SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.18600 · NeurIPS · 2025

Chain-of-Zoom: Extreme Super-Resolution via Scale Autoregression and Preference Alignment

Bryan Sangwoo, Kim Jeongsol, Kim Jong, Chul Ye

arXiv · PDF · Open in the Atlas

Code that ran

12 of 20 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 5 have no contract verdict; 7 failures of our instrument; 8 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/2505.18600.json · badge: /api/ran/2505.18600.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
cswry/OSEDiff community
Papers with Code archive
12 ran · 8 no recorded run
FunctionStatusWhere it lives
GroupNormParam Ran
ran on a synthesized input
cswry/OSEDiff/my_utils/vaehook.py
code served (permissive licence) · get_code("cd284aab598a07c2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned NoneType. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 torch.nn.functional as F
import types as _types

def custom_group_norm(input, num_groups, mean, var, weight=None, bias=None, eps=1e-06):
    """
    Custom group norm with fixed mean and var
    """
    b, c = (input.size(0), input.size(1))
    channel_in_group = int(c / num_groups)
    input_reshaped = input.contiguous().view(1, int(b * num_groups), channel_in_group, *input.size()[2:])
    out = F.batch_norm(input_reshaped, mean, var, weight=None, bias=None, training=False, momentum=0, eps=eps)
    out = out.view(b, c, *input.size()[2:])
    if weight is not None:
        out *= weight.view(1, -1, 1, 1)
    if bias is not None:
        out += bias.view(1, -1, 1, 1)
    return out

def get_var_mean(input, num_groups, eps=1e-06):
    """
    Get mean and var for group norm
    """
    b, c = (input.size(0), input.size(1))
    channel_in_group = int(c / num_groups)
    input_reshaped = input.contiguous().view(1, int(b * num_groups), channel_in_group, *input.size()[2:])
    var, mean = torch.var_mean(input_reshaped, dim=[0, 2, 3, 4], unbiased=False)
    return (var, mean)

class GroupNormParam:

    def __init__(self):
        self.var_list = []
        self.mean_list = []
        self.pixel_list = []
        self.weight = None
        self.bias = None

    def add_tile(self, tile, layer):
        var, mean = get_var_mean(tile, 32)
        if var.dtype == torch.float16 and var.isinf().any():
            fp32_tile = tile.float()
            var, mean = get_var_mean(fp32_tile, 32)
        self.var_list.append(var)
        self.mean_list.append(mean)
        self.pixel_list.append(tile.shape[2] * tile.shape[3])
        if hasattr(layer, 'weight'):
            self.weight = layer.weight
            self.bias = layer.bias
        else:
            self.weight = None
            self.bias = None

    def summary(self):
        """
        summarize the mean and var and return a function
        that apply group norm on each tile
        """
        if len(self.var_list) == 0:
            return None
        var = torch.vstack(self.var_list)
        mean = torch.vstack(self.mean_list)
        max_value = max(self.pixel_list)
        pixels = torch.tensor(self.pixel_list, dtype=torch.float32, device=torch.device('cpu')) / max_value
        sum_pixels = torch.sum(pixels)
        pixels = pixels.unsqueeze(1) / sum_pixels
        var = torch.sum(var * pixels, dim=0)
        mean = torch.sum(mean * pixels, dim=0)
        return lambda x: custom_group_norm(x, 32, mean, var, self.weight, self.bias)

    @staticmethod
    def from_tile(tile, norm):
        """
        create a function from a single tile without summary
        """
        var, mean = get_var_mean(tile, 32)
        if var.dtype == torch.float16 and var.isinf().any():
            fp32_tile = tile.float()
            var, mean = get_var_mean(fp32_tile, 32)
        if hasattr(norm, 'weight'):
            weight = norm.weight
            bias = norm.bias
        else:
            weight = None
            bias = None

        def group_norm_func(x, mean=mean, var=var, weight=weight, bias=bias):
            return custom_group_norm(x, 32, mean, var, weight, bias, 1e-06)
        return group_norm_func


INIT_ARGS = {}

ARGS = {
    'tile': torch.randn(2, 32, 4, 3, 5),
    'layer': nn.GroupNorm(32, 32)
}

METHOD = 'add_tile'
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type NoneType — a NoneType output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a NoneType 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
attn_forward Ran
ran; our contract draft was wrong, not the code
cswry/OSEDiff/my_utils/vaehook.py
code served (permissive licence) · get_code("bc23635609cf5e46")
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 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
import torch.nn as nn

torch.manual_seed(0)

class AttentionModule(nn.Module):
    def __init__(self, channels):
        super().__init__()
        self.q = nn.Conv2d(channels, channels, kernel_size=1)
        self.k = nn.Conv2d(channels, channels, kernel_size=1)
        self.v = nn.Conv2d(channels, channels, kernel_size=1)
        self.proj_out = nn.Conv2d(channels, channels, kernel_size=1)
    
    def forward(self, h_):
        q = self.q(h_)
        k = self.k(h_)
        v = self.v(h_)
        b, c, h, w = q.shape
        q = q.reshape(b, c, h * w)
        q = q.permute(0, 2, 1)
        k = k.reshape(b, c, h * w)
        w_ = torch.bmm(q, k)
        w_ = w_ * int(c) ** (-0.5)
        w_ = torch.nn.functional.softmax(w_, dim=2)
        v = v.reshape(b, c, h * w)
        w_ = w_.permute(0, 2, 1)
        h_ = torch.bmm(v, w_)
        h_ = h_.reshape(b, c, h, w)
        h_ = self.proj_out(h_)
        return h_

# Create attention module instance
attn_module = AttentionModule(channels=4)

# Create input tensor: (batch=2, channels=4, height=3, width=3)
h_input = torch.randn(2, 4, 3, 3)

ARGS = {
    'self': attn_module,
    'h_': h_input
}
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 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
attn_forward_new Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
cswry/OSEDiff/my_utils/vaehook.py
code served (permissive licence) · get_code("ad8c4ea29723e250")
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 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
import torch.nn as nn

torch.manual_seed(0)

# Build a minimal attention module that implements all required methods
class MinimalAttention(nn.Module):
    def __init__(self, hidden_dim=4, num_heads=2):
        super().__init__()
        self.hidden_dim = hidden_dim
        self.num_heads = num_heads
        self.head_dim = hidden_dim // num_heads
        
        # Linear projections for query, key, value
        self.to_q = nn.Linear(hidden_dim, hidden_dim)
        self.to_k = nn.Linear(hidden_dim, hidden_dim)
        self.to_v = nn.Linear(hidden_dim, hidden_dim)
        
        # Output projection
        self.to_out = nn.Sequential(
            nn.Linear(hidden_dim, hidden_dim),
            nn.Linear(hidden_dim, hidden_dim)
        )
        
        self.norm_cross = False
        self.norm_encoder_hidden_states = nn.Identity()
    
    def prepare_attention_mask(self, attention_mask, sequence_length, batch_size):
        # Return None or a simple mask tensor
        return None
    
    def head_to_batch_dim(self, x):
        # x shape: (batch_size, sequence_length, hidden_dim)
        batch_size, sequence_length, hidden_dim = x.shape
        x = x.reshape(batch_size, sequence_length, self.num_heads, self.head_dim)
        x = x.permute(0, 2, 1, 3).reshape(batch_size * self.num_heads, sequence_length, self.head_dim)
        return x
    
    def batch_to_head_dim(self, x):
        # x shape: (batch_size * num_heads, sequence_length, head_dim)
        batch_size_times_heads, sequence_length, head_dim = x.shape
        batch_size = batch_size_times_heads // self.num_heads
        x = x.reshape(batch_size, self.num_heads, sequence_length, head_dim)
        x = x.permute(0, 2, 1, 3).reshape(batch_size, sequence_length, self.num_heads * head_dim)
        return x
    
    def get_attention_scores(self, query, key, attention_mask):
        # query, key shape: (batch_size * num_heads, sequence_length, head_dim)
        scores = torch.bmm(query, key.transpose(1, 2))
        scores = scores / (self.head_dim ** 0.5)
        attention_probs = torch.softmax(scores, dim=-1)
        return attention_probs
    
    def forward(self, h_):
        # This would call attn_forward_new
        pass

# Create the attention module instance
attention_module = MinimalAttention(hidden_dim=4, num_heads=2)

# Create input tensor: (batch_size=2, channel=4, height=3, width=3)
h_ = torch.randn(2, 4, 3, 3)

ARGS = {
    "self": attention_module,
    "h_": h_
}
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 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
clone_task_queue Ran
ran; our contract draft was wrong, not the code
cswry/OSEDiff/my_utils/vaehook.py
code served (permissive licence) · get_code("05623218f00496b1")
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. 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)

# Construct a task_queue as a list of lists
# The function iterates through task_queue and for each task, iterates through items
# A simple structure would be a list of lists containing various items

task_queue = [
    [1, 2, 3, 4],
    [5, 6, 7],
    ['a', 'b', 'c', 'd', 'e'],
    [torch.tensor([1.0, 2.0]), torch.tensor([3.0, 4.0])],
    [[1, 2], [3, 4], [5, 6]]
]

ARGS = {
    "task_queue": task_queue
}
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 list — a list 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
crop_valid_region Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
cswry/OSEDiff/my_utils/vaehook.py
code served (permissive licence) · get_code("4f5087c964be075a")
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 4, dtype family float, shape (2, 4, 32, 32) 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 with batch=2, channels=4, height=32, width=32
x = torch.randn(2, 4, 32, 32)

# input_bbox: [left, right, top, bottom] - original bounding box coordinates
input_bbox = [0, 16, 0, 16]

# target_bbox: [left, right, top, bottom] - desired output bounding box
target_bbox = [0, 128, 0, 128]

# is_decoder: boolean flag to determine scaling direction
is_decoder = True

ARGS = {
    "x": x,
    "input_bbox": input_bbox,
    "target_bbox": target_bbox,
    "is_decoder": is_decoder,
}
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 4, dtype family float, shape (2, 4, 32, 32) — shape (2, 4, 32, 32) 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
custom_group_norm Ran
ran; our contract draft was wrong, not the code
cswry/OSEDiff/my_utils/vaehook.py
code served (permissive licence) · get_code("b9bb34c9f6fa3f19")
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 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
import torch.nn as nn

torch.manual_seed(0)

# Create input tensor: batch=2, channels=4, height=3, width=3
input = torch.randn(2, 4, 3, 3)

# Parameters
num_groups = 2
channel_in_group = 4 // num_groups  # 2

# Create mean and var for batch_norm
# After reshaping, input becomes (1, b*num_groups, channel_in_group, h, w)
# = (1, 4, 2, 3, 3)
# batch_norm expects mean and var of shape (num_features,) where num_features = b*num_groups = 4
mean = torch.zeros(4)
var = torch.ones(4)

# Create weight and bias for affine transformation
# These should be of shape (c,) = (4,)
weight = torch.randn(4)
bias = torch.randn(4)

# Epsilon value
eps = 1e-6

ARGS = {
    'input': input,
    'num_groups': num_groups,
    'mean': mean,
    'var': var,
    'weight': weight,
    'bias': bias,
    'eps': eps
}
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 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_cuda_device_string Ran
ran on a synthesized input
cswry/OSEDiff/my_utils/vaehook.py
code served (permissive licence) · get_code("5b18dd6258dda3ac")
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 str. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 get_cuda_device_string() takes no parameters
# It simply returns the string 'cuda'

ARGS = {}
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 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
get_optimal_device Ran
ran on a synthesized input
cswry/OSEDiff/my_utils/vaehook.py
code served (permissive licence) · get_code("c0cb908a86960b3e")
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 device. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 sys

torch.manual_seed(0)

# Mock the mac_specific module since the function references it
class MacSpecificMock:
    has_mps = False

sys.modules['mac_specific'] = MacSpecificMock()

# The function get_optimal_device() takes no parameters
ARGS = {}
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 device — a device output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a device 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_optimal_device_name Ran
ran on a synthesized input
cswry/OSEDiff/my_utils/vaehook.py
code served (permissive licence) · get_code("fdb5f42c95e7ce7c")
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 str. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 sys

# Mock the mac_specific module since it's referenced in has_mps()
class MacSpecific:
    has_mps = False

sys.modules['mac_specific'] = MacSpecific()
mac_specific = sys.modules['mac_specific']

# The function get_optimal_device_name() takes no parameters
ARGS = {}
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 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
get_var_mean Ran
ran; our contract draft was wrong, not the code
cswry/OSEDiff/my_utils/vaehook.py
code served (permissive licence) · get_code("2c31ab46d2d7816d")
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 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.

import torch

torch.manual_seed(0)

# Construct a small 4D input tensor (batch=2, channels=4, height=3, width=3)
# The function expects input with at least 4 dimensions based on how it uses input.size()[2:]
input_tensor = torch.randn(2, 4, 3, 3)

# num_groups must divide evenly into the number of channels
# channels=4, so num_groups can be 1, 2, or 4
num_groups = 2

# eps is optional with default value
eps = 1e-06

ARGS = {
    "input": input_tensor,
    "num_groups": num_groups,
    "eps": eps,
}
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 2, 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
has_mps Ran
ran on a synthesized input
cswry/OSEDiff/my_utils/vaehook.py
code served (permissive licence) · get_code("d5f22536dca7a551")
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; 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 sys
from unittest.mock import MagicMock

# Create a mock module for mac_specific
mac_specific = MagicMock()
mac_specific.has_mps = False

# Insert the mock into sys.modules so it can be imported
sys.modules['mac_specific'] = mac_specific

# The function has_mps() takes no parameters
ARGS = {}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — 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 — no output shape is stated: observe_signature.py could not observe it (no_inputs)
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
inplace_nonlinearity Ran
ran; our contract draft was wrong, not the code
cswry/OSEDiff/my_utils/vaehook.py
code served (permissive licence) · get_code("76a017e88938061d")
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)

# inplace_nonlinearity takes a single parameter 'x' which should be a tensor
# The function applies F.silu with inplace=True to it
x = torch.randn(2, 4)

ARGS = {
    'x': x
}
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
NansException Not yet run
unverified (harvested, no recorded run)
cswry/OSEDiff/my_utils/vaehook.py
code served (permissive licence) · get_code("12b0a428903ea66d")
How it ran

no invocation recorded.

VAEHook Not yet run
unverified (harvested, no recorded run)
cswry/OSEDiff/my_utils/vaehook.py
code served (permissive licence) · get_code("a24a63fdf5977e44")
How it ran

no invocation recorded.

attn2task Not yet run
unverified (harvested, no recorded run)
cswry/OSEDiff/my_utils/vaehook.py
code served (permissive licence) · get_code("8bae659fb7d40d76")
How it ran

no invocation recorded.

build_sampling Not yet run
unverified (harvested, no recorded run)
cswry/OSEDiff/my_utils/vaehook.py
code served (permissive licence) · get_code("7a660644b945f53b")
How it ran

no invocation recorded.

build_task_queue Not yet run
unverified (harvested, no recorded run)
cswry/OSEDiff/my_utils/vaehook.py
code served (permissive licence) · get_code("28e56cf67d286e05")
How it ran

no invocation recorded.

resblock2task Not yet run
unverified (harvested, no recorded run)
cswry/OSEDiff/my_utils/vaehook.py
code served (permissive licence) · get_code("6d2cccfb582558a7")
How it ran

no invocation recorded.

test_for_nans Not yet run
unverified (harvested, no recorded run)
cswry/OSEDiff/my_utils/vaehook.py
code served (permissive licence) · get_code("3164631c0de24c4f")
How it ran

no invocation recorded.

xformer_attn_forward Not yet run
unverified (harvested, no recorded run)
cswry/OSEDiff/my_utils/vaehook.py
code served (permissive licence) · get_code("a97f72f307904874")
How it ran

no invocation recorded.

Also present in other papers' code

Of 20 samples lifted from this paper's linked repositories, 20 carry a function identity and 0 do not. Of the 20 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 3 later) and 17 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
attn_forward_new
brick of this paper's assembly: helper
4 other papers
3 dated earlier, 1 later
2403.05049 (2024-03)
XPSR: Cross-modal Priors for Diffusion-based Image Super-Resolution
2411.17163 (2024-11)
OSDFace: One-Step Diffusion Model for Face Restoration
2412.03017 (2024-12)
Pixel-level and Semantic-level Adjustable Super-resolution: A Dual-LoRA Approach
and 1 more not named here
inplace_nonlinearity
brick of this paper's assembly: helper
4 other papers
3 dated earlier, 1 later
2403.05049 (2024-03)
XPSR: Cross-modal Priors for Diffusion-based Image Super-Resolution
2411.17163 (2024-11)
OSDFace: One-Step Diffusion Model for Face Restoration
2412.03017 (2024-12)
Pixel-level and Semantic-level Adjustable Super-resolution: A Dual-LoRA Approach
and 1 more not named here
attn_forward
brick of this paper's assembly: model
3 other papers
2 dated earlier, 1 later
2411.17163 (2024-11)
OSDFace: One-Step Diffusion Model for Face Restoration
2412.03017 (2024-12)
Pixel-level and Semantic-level Adjustable Super-resolution: A Dual-LoRA Approach
2609.15120 (2026-09)
DNF-SR: Dual-Input and Negative-Aware Feature Fine-Tuning for Real-World Image Super-Resolution

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: Extreme super-resolution of photorealistic images by CoZ with up to 64× magnification (top) and 256× magnification (bottom). Fine details such as textures on a wall, wrinkles on a flag, and leaf veins are clearly seen.

For agents

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

get_harvested_code_for_paper("2505.18600")
get_code_for_paper("2505.18600")
have("2505.18600")

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

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

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

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

Connect an agent — have() is free.