SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2112.03860 · ICLR · 2023

Differentiable Gaussianization Layers for Inverse Problems Regularized by Deep Generative Models

Dongzhuo Li

arXiv · PDF · Open in the Atlas

Code that ran

7 of 15 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 0 have no contract verdict; 6 failures of our instrument; 8 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2112.03860.json · badge: /api/ran/2112.03860.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
lidongzh/DGM-Inv-Gaussianization named in the paper
Papers with Code archive
7 ran · 8 no recorded run
FunctionStatusWhere it lives
_moment Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
lidongzh/DGM-Inv-Gaussianization/dgminv/ops/lambert_transform.py
code served (permissive licence) · get_code("5e99bf1ba3a7a845")
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 1, dtype family float, shape (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)

# Create a small test tensor with shape (4, 3)
# The function uses: detach(), cpu(), numpy(), size, shape, dtype
# torch operations: mean, unsqueeze, pow (**), multiplication
a = torch.randn(4, 3, dtype=torch.float32)

# Parameters for _moment function
moment_val = 2  # integer moment order
axis_val = 0    # axis along which to compute

ARGS = {
    'a': a,
    'moment': moment_val,
    'axis': axis_val
}
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 1, dtype family float, shape (3,) — shape (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
kurtosis Ran
ran; our contract draft was wrong, not the code
lidongzh/DGM-Inv-Gaussianization/dgminv/ops/lambert_transform.py
code served (permissive licence) · get_code("588962278894307c")
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 1, dtype family float, shape (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 numpy as np

torch.manual_seed(0)

# Create a small test tensor
a = torch.tensor([[1.0, 2.0, 3.0, 4.0],
                   [5.0, 6.0, 7.0, 8.0]], dtype=torch.float32)

ARGS = {
    'a': a,
    'axis': 0,
    'fisher': True,
    'bias': True,
    'nan_policy': 'propagate'
}
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 Tensor, ndim 1, dtype family float, shape (4,) — shape (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
lambertw Ran
ran; our contract draft was wrong, not the code
lidongzh/DGM-Inv-Gaussianization/dgminv/ops/lambert_transform.py
code served (permissive licence) · get_code("72531f75392e2edf")
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 1, dtype family float, shape (4,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a valid z0 tensor argument
# The function expects a tensor that can be indexed and supports various operations
z0 = torch.tensor([0.5, 1.0, -0.5, 2.0], dtype=torch.float32)

ARGS = {
    "z0": z0,
    "tol": 1e-08,
}
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 1, dtype family float, shape (4,) — shape (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
moment Ran
ran; our contract draft was wrong, not the code
lidongzh/DGM-Inv-Gaussianization/dgminv/ops/lambert_transform.py
code served (permissive licence) · get_code("3a7ac3ea7f27e6f4")
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 1, dtype family float, shape (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)

# Create a small tensor for testing
# Shape: (4, 3) - 4 samples, 3 features
a = torch.randn(4, 3, dtype=torch.float32)

# Test with moment=2 (second central moment)
moment_val = 2

# Test with axis=0 (compute along first dimension)
axis_val = 0

# Test with nan_policy='propagate'
nan_policy_val = 'propagate'

ARGS = {
    'a': a,
    'moment': moment_val,
    'axis': axis_val,
    'nan_policy': nan_policy_val
}
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 Tensor, ndim 1, dtype family float, shape (3,) — shape (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
w_d Ran
ran, violated the contract we drafted
lidongzh/DGM-Inv-Gaussianization/dgminv/ops/lambert_transform.py
code served (permissive licence) · get_code("d952e4e48d093122")
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 ndarray, ndim 1, dtype family float, shape (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 numpy as np
from scipy import special

# The function w_d takes two parameters: z and delta
# z should be a numeric value or array that can be squared and passed to lambertw
# delta should be a numeric value used as a scaling factor

# Create small test values
z_value = np.array([1.0, 2.0, 0.5, 1.5])  # Small array of complex/real numbers
delta_value = 0.1  # Small positive scalar for delta

ARGS = {
    "z": z_value,
    "delta": delta_value
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (4,) — shape (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
w_d_th Ran
ran; our contract draft was wrong, not the code
lidongzh/DGM-Inv-Gaussianization/dgminv/ops/lambert_transform.py
code served (permissive licence) · get_code("989ea922f28f905f")
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

torch.manual_seed(0)

# The function w_d_th takes two parameters: z and delta
# z is used in: torch.sign(z), z ** 2 (passed to lambertw)
# delta is used in: delta * z ** 2, division by delta
# Both should be tensors based on the operations

# Create small test tensors
z = torch.randn(2, 4)  # batch size 2, dimension 4
delta = torch.tensor(0.5)  # scalar tensor for delta

ARGS = {
    "z": z,
    "delta": delta,
}
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
w_t_th Ran
ran; our contract draft was wrong, not the code
lidongzh/DGM-Inv-Gaussianization/dgminv/ops/lambert_transform.py
code served (permissive licence) · get_code("2aca99248349fc3b")
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

torch.manual_seed(0)

# Analyzing the function w_t_th(y, tau):
# - y: a tensor that gets subtracted from tau[0], divided by tau[1], passed to w_d_th
# - tau: a sequence/tensor with at least 3 elements
#   - tau[0]: scalar or broadcastable (added to result)
#   - tau[1]: scalar or broadcastable (used in division and multiplication)
#   - tau[2]: scalar or broadcastable (passed as delta to w_d_th)

# w_d_th(z, delta) expects:
# - z: a tensor (can be any shape)
# - delta: a scalar or tensor (used in lambertw and division)

# lambertw(z0, tol) expects:
# - z0: a tensor
# - tol: optional float tolerance

# Create small test tensors
y = torch.randn(2, 4)  # batch of 2, dim 4

# tau needs to be a sequence with at least 3 elements
# Each element should be a scalar or small tensor
tau = [
    torch.tensor(0.5),      # tau[0] - offset
    torch.tensor(0.8),      # tau[1] - scale
    torch.tensor(0.1),      # tau[2] - delta parameter
]

ARGS = {
    "y": y,
    "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
delta_gmm_custom Not yet run
unverified (harvested, no recorded run)
lidongzh/DGM-Inv-Gaussianization/dgminv/ops/lambert_transform.py
code served (permissive licence) · get_code("5407d531fd31dfb0")
How it ran

no invocation recorded.

delta_gmm_np Not yet run
unverified (harvested, no recorded run)
lidongzh/DGM-Inv-Gaussianization/dgminv/ops/lambert_transform.py
code served (permissive licence) · get_code("fb912b0e8c67f264")
How it ran

no invocation recorded.

delta_gmm_th Not yet run
unverified (harvested, no recorded run)
lidongzh/DGM-Inv-Gaussianization/dgminv/ops/lambert_transform.py
code served (permissive licence) · get_code("12a51b8c827b9ece")
How it ran

no invocation recorded.

delta_init Not yet run
unverified (harvested, no recorded run)
lidongzh/DGM-Inv-Gaussianization/dgminv/ops/lambert_transform.py
code served (permissive licence) · get_code("63dbffe3e9047f33")
How it ran

no invocation recorded.

igmm Not yet run
unverified (harvested, no recorded run)
lidongzh/DGM-Inv-Gaussianization/dgminv/ops/lambert_transform.py
code served (permissive licence) · get_code("6e589830a3b835e2")
How it ran

no invocation recorded.

inside_func_th Not yet run
unverified (harvested, no recorded run)
lidongzh/DGM-Inv-Gaussianization/dgminv/ops/lambert_transform.py
code served (permissive licence) · get_code("500adcb55fdf013b")
How it ran

no invocation recorded.

inside_func_th_grad Not yet run
unverified (harvested, no recorded run)
lidongzh/DGM-Inv-Gaussianization/dgminv/ops/lambert_transform.py
code served (permissive licence) · get_code("942c83f8430dfd6f")
How it ran

no invocation recorded.

lambert_transform Not yet run
unverified (harvested, no recorded run)
lidongzh/DGM-Inv-Gaussianization/dgminv/ops/lambert_transform.py
code served (permissive licence) · get_code("87cce7037201ca42")
How it ran

no invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 15 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.

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

Deep generative models such as GANs, normalizing flows, and diffusion models are powerful regularizers for inverse problems. They exhibit great potential for helping reduce ill-posedness and attain high-quality results. However, the latent tensors of such deep generative models can fall out of the desired high-dimensional standard Gaussian distribution during inversion, particularly in the presence of data noise and inaccurate forward models, leading to low-fidelity solutions. To address this issue, we propose to reparameterize and Gaussianize the latent tensors using novel differentiable data-dependent layers wherein custom operators are defined by solving optimization problems. These proposed layers constrain inverse problems to obtain high-fidelity in-distribution solutions. We validate our technique on three inversion tasks: compressive-sensing MRI, image deblurring, and eikonal tomography (a nonlinear PDE-constrained inverse problem) using two representative deep generative models: StyleGAN2 and Glow. Our approach achieves state-of-the-art performance in terms of accuracy and consistency.

For agents

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

get_harvested_code_for_paper("2112.03860")
get_code_for_paper("2112.03860")
have("2112.03860")

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

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

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

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

Connect an agent — have() is free.