SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1810.01483 · 2018

DeepCMB: Lensing Reconstruction of the Cosmic Microwave Background with Deep Neural Networks

arXiv · PDF · Open in the Atlas

Code that ran

7 of 9 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 7 have no contract verdict; 0 failures of our instrument; 2 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/1810.01483.json · badge: /api/ran/1810.01483.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
EEmGuzman/resunet-cmb community (classifier label)
classifier basis not recorded on the link
7 ran · 2 no recorded run
FunctionStatusWhere it lives
QU2EB Ran
ran on a synthesized input
EEmGuzman/resunet-cmb/bmode_extraction/datapipe.py
code served (permissive licence) · get_code("995452a7eb626baa")
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 ndarray, ndim 3, dtype family float, shape (3, 8, 8) 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

np.random.seed(0)

N = 8
pix_size = 2.0
Qmap = np.random.randn(N, N)
Umap = np.random.randn(N, N)

ARGS = {
    "N": N,
    "pix_size": pix_size,
    "Qmap": Qmap,
    "Umap": Umap,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family float, shape (3, 8, 8) — shape (3, 8, 8) 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
convolution_block Ran
ran on a synthesized input
EEmGuzman/resunet-cmb/resunet/resunet.py
code served (permissive licence) · get_code("daf8c1a3650ff642")
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 EagerTensor, ndim 4, dtype family float, shape (2, 4, 4, 16) 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 tensorflow as tf
import tensorflow.keras as keras
import numpy as np

# Create a small input tensor
# Shape: (batch_size=2, height=4, width=4, channels=3)
input_tensor = tf.random.normal((2, 4, 4, 3))

# Define ARGS dictionary with all parameters
ARGS = {
    "x": input_tensor,
    "filters": 16,
    "kernel_size": 3,
    "padding": "same",
    "strides": 1,
    "act": "relu",
    "dropval": 0.5,
    "name": "batch_norm_layer",
    "first_block": False,
    "upsample": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 4, dtype family float, shape (2, 4, 4, 16) — shape (2, 4, 4, 16) 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
cosine_window Ran
ran on a synthesized input
EEmGuzman/resunet-cmb/bmode_extraction/datapipe.py
code served (permissive licence) · get_code("f2894bc6502f9cb7")
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 ndarray, ndim 2, dtype family float, shape (8, 8) 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

def cosine_window(N):
    """makes a cosine window for apodizing to avoid edges effects in the 2d FFT"""
    ones = np.ones(N)
    inds = (np.arange(N) + 0.5 - N / 2.0) / N * np.pi
    X = np.outer(ones, inds)
    Y = np.transpose(X)
    window_map = np.cos(X) * np.cos(Y)
    return window_map

ARGS = {
    "N": 8
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (8, 8) — shape (8, 8) 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
load_data Ran
ran on a synthesized input
EEmGuzman/resunet-cmb/resunet/utils.py
code served (permissive licence) · get_code("c6697970a0837110")
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 numpy as np
import tempfile
import os

# Create a temporary .npz file with sample data
temp_dir = tempfile.mkdtemp()
npz_path = os.path.join(temp_dir, "test_data.npz")

# Create sample arrays with distinct sizes
sample_arrays = {
    'q_unl': np.random.randn(2, 4),
    'e_len': np.random.randn(3, 5),
    'unl_e': np.random.randn(4, 6),
}

# Save to .npz file
np.savez(npz_path, **sample_arrays)

# Define ARGS
ARGS = {
    'arrname': npz_path,
    'cmbmaps': ['q_unl', 'e_len', 'unl_e']
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — 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
preprocess Ran
ran on a synthesized input
EEmGuzman/resunet-cmb/resunet/utils.py
code served (permissive licence) · get_code("400850ced6ea173e")
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 os
import numpy as np
import tempfile

class Params:
    def __init__(self, output_dir):
        self.output_dir = output_dir
        self.feat_used = {'feature1': 'feat1', 'feature2': 'feat2'}
        self.target_used = {'target1': 'targ1'}

# Create a temporary directory for output
temp_dir = tempfile.mkdtemp()

# Create params object
params = Params(temp_dir)

# Create unprocessed data dictionary with train, val, test splits
# Using shape (2, 128, 128) for small batches
unproc = {
    'feat1_train': np.random.randn(2, 128, 128).astype(np.float32),
    'feat1_val': np.random.randn(2, 128, 128).astype(np.float32),
    'feat1_test': np.random.randn(2, 128, 128).astype(np.float32),
    'feat2_train': np.random.randn(2, 128, 128).astype(np.float32),
    'feat2_val': np.random.randn(2, 128, 128).astype(np.float32),
    'feat2_test': np.random.randn(2, 128, 128).astype(np.float32),
    'targ1_train': np.random.randn(2, 128, 128).astype(np.float32),
    'targ1_val': np.random.randn(2, 128, 128).astype(np.float32),
    'targ1_test': np.random.randn(2, 128, 128).astype(np.float32),
}

ARGS = {
    'params': params,
    'unproc': unproc,
    'submean': True,
    'imagesize': 128,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — 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
search_dicts_key Ran
ran on a synthesized input
EEmGuzman/resunet-cmb/bmode_extraction/datapipe.py
code served (permissive licence) · get_code("6a8512d0909ba880")
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

torch.manual_seed(0)

# Construct arguments for search_dicts_key
# The function searches through a list of dictionaries for a given key

ds_to_search = [
    {"name": "alice", "age": 30},
    {"city": "New York", "country": "USA"},
    {"color": "blue", "size": "large"}
]

search_key = "city"

ARGS = {
    "ds_to_search": ds_to_search,
    "search_key": search_key
}
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
skip_connection Ran
ran on a synthesized input
EEmGuzman/resunet-cmb/resunet/resunet.py
code served (permissive licence) · get_code("1aea4a31e7d72050")
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 EagerTensor, ndim 4, dtype family float, shape (2, 4, 3, 11) 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 tensorflow as tf
import numpy as np

# Create two small tensors with compatible shapes for concatenation
# The function concatenates along axis=3 (channel dimension in typical NHWC format)
# x shape: (batch=2, height=4, width=3, channels=5)
# xskip shape: (batch=2, height=4, width=3, channels=6)

x = tf.constant(np.random.randn(2, 4, 3, 5).astype(np.float32))
xskip = tf.constant(np.random.randn(2, 4, 3, 6).astype(np.float32))

ARGS = {
    "x": x,
    "xskip": xskip
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 4, dtype family float, shape (2, 4, 3, 11) — shape (2, 4, 3, 11) 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
load_model Not yet run
unverified (harvested, no recorded run)
EEmGuzman/resunet-cmb/resunet/utils.py
code served (permissive licence) · get_code("8fdbdb7420d408d5")
How it ran

no invocation recorded.

residual_block Not yet run
unverified (harvested, no recorded run)
EEmGuzman/resunet-cmb/resunet/resunet.py
code served (permissive licence) · get_code("17b864811b430869")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 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 9 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

Next-generation cosmic microwave background (CMB) experiments will have lower noise and therefore increased sensitivity, enabling improved constraints on fundamental physics parameters such as the sum of neutrino masses and the tensor-to-scalar ratio r. Achieving competitive constraints on these parameters requires high signal-to-noise extraction of the projected gravitational potential from the CMB maps. Standard methods for reconstructing the lensing potential employ the quadratic estimator (QE). However, the QE performs suboptimally at the low noise levels expected in upcoming experiments. Other methods, like maximum likelihood estimators (MLE), are under active development. In this work, we demonstrate reconstruction of the CMB lensing potential with deep convolutional neural networks (CNN) - ie, a ResUNet. The network is trained and tested on simulated data, and otherwise has no physical parametrization related to the physical processes of the CMB and gravitational lensing. We show that, over a wide range of angular scales, ResUNets recover the input gravitational potential with a higher signal-to-noise ratio than the QE method, reaching levels comparable to analytic approximations of MLE methods. We demonstrate that the network outputs quantifiably different lensing maps when given input CMB maps generated with different cosmologies. We also show we can use the reconstructed lensing map for cosmological parameter estimation. This application of CNN provides a few innovations at the intersection of cosmology and machine learning. First, while training and regressing on images, we predict a continuous-variable field rather than discrete classes. Second, we are able to establish uncertainty measures for the network output that are analogous to standard methods. We expect this approach to excel in capturing hard-to-model non-Gaussian astrophysical foreground and noise contributions.

For agents

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

get_harvested_code_for_paper("1810.01483")
get_code_for_paper("1810.01483")
have("1810.01483")

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

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

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

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

Connect an agent — have() is free.