SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2506.00433 · ICLR · 2025

Latent Wavelet Diffusion For Ultra-High-Resolution Image Synthesis

Luigi Sigillo, Danilo Comminiello, Shengfeng He

arXiv · PDF · Open in the Atlas

Code that ran

6 of 10 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, 1 violated it and 4 have no contract verdict; 1 failure of our instrument; 4 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/2506.00433.json · badge: /api/ran/2506.00433.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
LuigiSigillo/LatentWaveletDiffusion canonical (classifier label)
classifier basis not recorded on the link
6 ran · 4 no recorded run
FunctionStatusWhere it lives
calculate_shift Ran
ran, violated the contract we drafted
LuigiSigillo/LatentWaveletDiffusion/src/pipeline_flux.py
code served (permissive licence) · get_code("4e3ad3679e5c37b2")
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 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)

# Analyzing the function:
# - image_seq_len: a numeric value (int or float) representing sequence length
# - base_seq_len: int, default 256
# - max_seq_len: int, default 4096
# - base_shift: float, default 0.5
# - max_shift: float, default 1.16
# The function performs linear interpolation calculations on these numeric values

ARGS = {
    "image_seq_len": 512,
    "base_seq_len": 256,
    "max_seq_len": 4096,
    "base_shift": 0.5,
    "max_shift": 1.16
}
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 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
decode_and_save Ran
ran on a synthesized input
LuigiSigillo/LatentWaveletDiffusion/src/train_2k.py
code served (permissive licence) · get_code("23e116cc74ff473e")
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 torch
import torch.nn as nn
import os
import tempfile
from unittest.mock import MagicMock

torch.manual_seed(0)

# Create a minimal VAE mock
class MinimalVAE(nn.Module):
    def __init__(self):
        super().__init__()
        self.device = torch.device('cpu')
        self.dtype = torch.float32
        self.linear = nn.Linear(4, 12)  # 4 latent dims -> 12 (3 channels * 4 spatial)
    
    def decode(self, latents):
        # latents: [1, 4]
        # return object with .sample attribute
        batch = latents.shape[0]
        decoded = self.linear(latents.view(batch, -1))
        decoded = decoded.view(batch, 3, 2, 2)  # [batch, channels, height, width]
        result = MagicMock()
        result.sample = decoded
        return result

# Create a minimal accelerator mock
class MinimalAccelerator:
    def __init__(self):
        self.is_main_process = True
        self.log_with = 'no'  # Avoid wandb logging
    
    def log(self, data, step=None):
        pass

# Create a minimal logger mock
class MinimalLogger:
    def info(self, msg):
        pass
    
    def warning(self, msg):
        pass
    
    def error(self, msg):
        pass

# Tensor batch: [2, 4] (batch size 2, 4 latent dims)
tensor_batch = torch.randn(2, 4)

# Create temporary directory for outputs
viz_dir = tempfile.mkdtemp()

ARGS = {
    'tensor_batch': tensor_batch,
    'filename_base': 'model_input',
    'timestep': 0,
    'global_step': 1,
    'vae': MinimalVAE(),
    'scale_factor': 0.18215,
    'shift_factor': 0.0,
    'viz_dir': viz_dir,
    'logger': MinimalLogger(),
    'accelerator': MinimalAccelerator(),
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
accelerate, torch, torchvision — 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
get_mask Ran
ran on a synthesized input
LuigiSigillo/LatentWaveletDiffusion/src/new_wav_attn_maps.py
code served (permissive licence) · get_code("75ac92003acbbee0")
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 float, shape (2, 4, 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 a small attention map tensor
# Shape: (B=2, H=4, W=3) with values in [0, 1]
A = torch.rand(2, 4, 3)

# Parameters for the function
l = 0.1
T = 1000
t = 500

ARGS = {
    "A": A,
    "l": l,
    "T": T,
    "t": t
}
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 float, shape (2, 4, 3) — shape (2, 4, 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_mask_batch Ran
ran on a synthesized input
LuigiSigillo/LatentWaveletDiffusion/src/new_wav_attn_maps.py
code served (permissive licence) · get_code("5a6018313fb2afd6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Construct arguments for get_mask_batch
B = 2  # batch size
H = 4  # height
W = 3  # width
T = 10  # total timesteps

# A: Wavelet attention map, shape (B, H, W), values in [0, 1]
A = torch.rand(B, H, W)

# l: Lower bound (float)
l = 0.1

# timesteps: Tensor of shape (B,) with values in [0, T]
timesteps = torch.tensor([3, 7], dtype=torch.long)

# return_visualization: bool
return_visualization = False

ARGS = {
    "A": A,
    "l": l,
    "T": T,
    "timesteps": timesteps,
    "return_visualization": return_visualization,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
resize Ran
ran on a synthesized input
LuigiSigillo/LatentWaveletDiffusion/src/helpers/cache_latent_codes.py
code served (permissive licence) · get_code("35767eedf8ca0430")
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 Image. 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.

from PIL import Image
import numpy as np

# Create a small test image with PIL
# The function expects img.size (width, height) and img.resize() method
img = Image.new('RGB', (2048, 1536))  # width=2048, height=1536

ARGS = {
    'img': img,
    'base_size': 4096
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int 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
retrieve_timesteps Ran
ran; our contract draft was wrong, not the code
LuigiSigillo/LatentWaveletDiffusion/src/pipeline_flux.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from krafton-ai/Rare-to-Frequent, is pointer only (licence: NONE) · get_code("0b56680ee1708fee")
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 krafton-ai/Rare-to-Frequent, 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_wavelet_attention Not yet run
unverified (harvested, no recorded run)
LuigiSigillo/LatentWaveletDiffusion/src/new_wav_attn_maps.py
code served (permissive licence) · get_code("6fe1dccb17235788")
How it ran

no invocation recorded.

parse_args Not yet run
unverified (harvested, no recorded run)
LuigiSigillo/LatentWaveletDiffusion/src/train_2k.py
code served (permissive licence) · get_code("589fc02804855db7")
How it ran

no invocation recorded.

parse_args Not yet run
unverified (harvested, no recorded run)
LuigiSigillo/LatentWaveletDiffusion/src/train_4k.py
code served (permissive licence) · get_code("a548e14c1a574df6")
How it ran

no invocation recorded.

parse_args Not yet run
unverified (harvested, no recorded run)
LuigiSigillo/LatentWaveletDiffusion/src/helpers/cache_latent_codes.py
code served (permissive licence) · get_code("a5ae6bb2816685a3")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 1 the same month, 2 later) and 8 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
retrieve_timesteps 46 other papers
26 dated earlier, 1 the same month, 16 later, 1 same year, order not determinable, 2 undated
2312.04461 (2023-12)
PhotoMaker: Customizing Realistic Human Photos via Stacked ID Embedding
2402.10491 (2024-02)
Make a Cheap Scaling: A Self-Cascade Diffusion Model for Higher-Resolution Adaptation
2405.18991 (2024-05)
EasyAnimate: High-Performance Video Generation Framework with Hybrid Windows Attention and Reward Backpropagation
and 43 more not named here
calculate_shift 15 other papers
10 dated earlier, 4 later, 1 same year, order not determinable
2406.04312 (2024-06)
ReNO: Enhancing One-step Text-to-Image Models through Reward-based Noise Optimization
2410.22376 (2024-10)
Rare-to-Frequent: Unlocking Compositional Generation Power of Diffusion Models on Rare Concepts with LLM Guidance
2411.06558 (2024-11)
Region-Aware Text-to-Image Generation via Hard Binding and Soft Refinement
and 12 more not named here

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

High-resolution image synthesis remains a core challenge in generative modeling, particularly in balancing computational efficiency with the preservation of finegrained visual detail. We present Latent Wavelet Diffusion (LWD), a lightweight training framework that significantly improves detail and texture fidelity in ultrahigh-resolution (2K-4K) image synthesis. LWD introduces a novel, frequencyaware masking strategy derived from wavelet energy maps, which dynamically focuses the training process on detail-rich regions of the latent space. This is complemented by a scale-consistent VAE objective to ensure high spectral fidelity. The primary advantage of our approach is its efficiency: LWD requires no architectural modifications and adds zero additional cost during inference, making it a practical solution for scaling existing models. Across multiple strong baselines, LWD consistently improves perceptual quality and FID scores, demonstrating the power of signal-driven supervision as a principled and efficient path toward high-resolution generative modeling. The code is available at https: //github.com/LuigiSigillo/LatentWaveletDiffusion.

For agents

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

get_harvested_code_for_paper("2506.00433")
get_code_for_paper("2506.00433")
have("2506.00433")

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

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

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

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

Connect an agent — have() is free.