SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2006.09461 · 2020

Robust Compressed Sensing using Generative Models

arXiv · PDF · Open in the Atlas

Code that ran

15 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 11 have no contract verdict; 4 failures of our instrument; 2 no recorded run), measured 2026-11-22; 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/2006.09461.json · badge: /api/ran/2006.09461.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
ajiljalal/csgm-robust-neurips canonical (classifier label)
classifier basis: census
15 ran · 2 no recorded run
FunctionStatusWhere it lives
find_overlap_idx Ran
ran on a synthesized input
ajiljalal/csgm-robust-neurips/src/create_scripts.py
code served (permissive licence) · get_code("86c8f09d190ff0de")
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 int, ndim 0, dtype family int, 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

torch.manual_seed(0)

ARGS = {
    "list_of_strs": ["hello world", "foo bar", "test string", "python code"],
    "str_to_search": "world"
}
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 int, ndim 0, dtype family int, 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_figsize Ran
ran on a synthesized input
ajiljalal/csgm-robust-neurips/src/metrics_utils.py
code served (permissive licence) · get_code("857ba6b23095a4f0")
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, ndim 1, dtype family int; 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

# The function get_figsize takes a single boolean parameter 'is_save'
# and returns a figsize list if is_save is True, or None otherwise.
# We'll test both cases by creating two separate argument dictionaries.

# Test case 1: is_save = True
ARGS = {
    "is_save": True
}
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, ndim 1, dtype family int — a list 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
get_full_input Ran
ran on a synthesized input
ajiljalal/csgm-robust-neurips/src/celebA_input.py
code served (permissive licence) · get_code("68230c4c69e10d9c")
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 numpy as np
import tempfile
import os

torch.manual_seed(0)

# Create a temporary directory structure with .npy files for testing
temp_dir = tempfile.mkdtemp()
data_subdir = os.path.join(temp_dir, 'data')
os.makedirs(data_subdir)

# Create some small numpy files
for i in range(3):
    arr = np.random.randn(4, 3).astype(np.float32)
    np.save(os.path.join(data_subdir, f'{i}.npy'), arr)

# Create hparams class
class HParams:
    def __init__(self):
        self.image_dtype = 'npy'
        self.input_path = temp_dir
        self.image_size = 32
        self.input_type = 'full-input'
        self.num_input_images = 2

hparams = HParams()

ARGS = {
    'hparams': hparams
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch, torchvision — 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
get_image_nums Ran
ran on a synthesized input
ajiljalal/csgm-robust-neurips/src/view_estimated_celebA.py
code served (permissive licence) · get_code("8ad7897be275437c")
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, ndim 1, dtype family int; 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)

class HParams:
    def __init__(self, num_input_images):
        self.num_input_images = num_input_images

hparams = HParams(num_input_images=10)

ARGS = {
    "start": 0,
    "stop": 5,
    "hparams": hparams
}
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 list, ndim 1, dtype family int — a list 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
get_l2_loss Ran
ran on a synthesized input
ajiljalal/csgm-robust-neurips/src/utils.py
code served (permissive licence) · get_code("3f8654a051989cdf")
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 float32, 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 numpy as np

# Create two small numpy arrays with the same shape
image1 = np.random.randn(2, 4, 3, 3).astype(np.float32)
image2 = np.random.randn(2, 4, 3, 3).astype(np.float32)

ARGS = {
    "image1": image1,
    "image2": image2,
}
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 float32, 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_measurement_loss Ran
ran on a synthesized input
ajiljalal/csgm-robust-neurips/src/utils.py
code served (permissive licence) · get_code("9b90a29baade3892")
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 float64, 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 numpy as np

class HParams:
    def __init__(self):
        self.measurement_type = 'dense'
        self.num_clean_measurements = 2
        self.num_bad_measurements = 1
        self.batch_size = 1

# Create small test data
batch_size = 1
signal_dim = 4
num_measurements = 3

x_hat = np.random.randn(batch_size, signal_dim).astype(np.float32)
A = np.random.randn(signal_dim, num_measurements).astype(np.float32)
y = np.random.randn(num_measurements).astype(np.float32)

hparams = HParams()

ARGS = {
    'x_hat': x_hat,
    'A': A,
    'y': y,
    'hparams': hparams
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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_setting_specific_name Ran
ran on a synthesized input
ajiljalal/csgm-robust-neurips/src/create_scripts.py
code served (permissive licence) · get_code("09306559529f51d8")
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. 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

# Construct a valid setting_dict argument
setting_dict = {
    'script_type': 'training',
    'task': 'classification',
    'sequence_length': 100,
    'cell_type': 'LSTM',
    'learning_rate': 0.001,
    'batch_size': 32,
    'hidden_dim': 64,
    'dropout': 0.5
}

ARGS = {
    'setting_dict': setting_dict
}
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
int_or_float Ran
ran on a synthesized input
ajiljalal/csgm-robust-neurips/src/metrics_utils.py
code served (permissive licence) · get_code("3a73f73ee48b894d")
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 int, ndim 0, dtype family int, 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

torch.manual_seed(0)

ARGS = {
    "val": "42"
}
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 int, ndim 0, dtype family int, 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
model_input Ran
ran on a synthesized input
ajiljalal/csgm-robust-neurips/src/celebA_input.py
code served (permissive licence) · get_code("b798a88c68cffe05")
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 numpy as np
import tempfile
import os
from unittest.mock import MagicMock

torch.manual_seed(0)

# Create a temporary directory structure with numpy files for NumpyDataset
tmpdir = tempfile.mkdtemp()
subdir = os.path.join(tmpdir, 'images')
os.makedirs(subdir, exist_ok=True)

# Create two small dummy .npy files
for i in range(2):
    dummy_array = np.random.randn(4, 3).astype(np.float32)
    np.save(os.path.join(subdir, f'{i}.npy'), dummy_array)

# Create hparams config object
class HParams:
    def __init__(self):
        self.image_dtype = 'npy'
        self.input_path = tmpdir
        self.image_size = 32
        self.input_type = 'full-input'
        self.num_input_images = 2
        self.model_name = 'pggan'

hparams = HParams()

ARGS = {
    'hparams': hparams
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch, torchvision — 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
scale Ran
ran on a synthesized input
ajiljalal/csgm-robust-neurips/src/celebA_utils.py
code served (permissive licence) · get_code("97498d6181a0d2bd")
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 numpy as np

torch.manual_seed(0)

# Create a small test image tensor
# The function calls .min(), .max() and performs arithmetic operations
# So we need a tensor with numeric values
image = torch.randn(2, 4)

ARGS = {
    "image": image
}
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 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
score_2afc_dataset Ran
ran; our contract draft was wrong, not the code
ajiljalal/csgm-robust-neurips/src/lpips/dist_model.py
code served (permissive licence) · get_code("514dd3c0eee3691c")
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 1, 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)

# Create a minimal distance function that takes two tensors and returns distances
def distance_func(tensor1, tensor2):
    """Compute L2 distance between two tensors and return as torch tensor"""
    # tensor1, tensor2 shape: Nx3xXxY
    # Flatten and compute L2 distance
    batch_size = tensor1.shape[0]
    diff = (tensor1 - tensor2).reshape(batch_size, -1)
    distances = torch.norm(diff, dim=1, keepdim=True)
    return distances

# Create a minimal data loader class with load_data method
class CustomDatasetDataLoader:
    def __init__(self, data_list):
        self.data_list = data_list
    
    def load_data(self):
        return iter(self.data_list)

# Create sample data batches
# Each batch contains 'ref', 'p0', 'p1', and 'judge' keys
batch_size = 2
height = 4
width = 5

data_batches = []
for _ in range(2):  # 2 batches
    batch = {
        'ref': torch.randn(batch_size, 3, height, width),
        'p0': torch.randn(batch_size, 3, height, width),
        'p1': torch.randn(batch_size, 3, height, width),
        'judge': torch.tensor([0.3, 0.7])  # Human preference scores in [0, 1]
    }
    data_batches.append(batch)

data_loader = CustomDatasetDataLoader(data_batches)

ARGS = {
    'data_loader': data_loader,
    'func': distance_func,
    'name': 'test_2afc'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, 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
score_jnd_dataset Ran
ran; our contract draft was wrong, not the code
ajiljalal/csgm-robust-neurips/src/lpips/dist_model.py
code served (permissive licence) · get_code("581c80d602289d6d")
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 1, 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)

# Create a minimal distance function that takes two tensors and returns distances
def mock_distance_func(in0, in1):
    """Mock distance function that returns distances between image pairs"""
    # in0 and in1 should be Nx3xXxY tensors
    # Return a tensor of length N with distances
    batch_size = in0.shape[0]
    distances = torch.randn(batch_size)
    return distances

# Create a minimal CustomDatasetDataLoader-like object
class MockDataLoader:
    def __init__(self, num_batches=2, batch_size=2):
        self.num_batches = num_batches
        self.batch_size = batch_size
    
    def load_data(self):
        """Generator that yields batches of data"""
        for _ in range(self.num_batches):
            batch = {
                'p0': torch.randn(self.batch_size, 3, 4, 4),  # Nx3xXxY
                'p1': torch.randn(self.batch_size, 3, 4, 4),  # Nx3xXxY
                'same': torch.randint(0, 2, (self.batch_size, 1), dtype=torch.float32)  # N x 1
            }
            yield batch

# Mock lpips.voc_ap function
import sys
from types import ModuleType
lpips_mock = ModuleType('lpips')

def mock_voc_ap(recalls, precisions):
    """Mock VOC AP calculation"""
    return float(np.random.rand())

lpips_mock.voc_ap = mock_voc_ap
sys.modules['lpips'] = lpips_mock

# Construct arguments
ARGS = {
    'data_loader': MockDataLoader(num_batches=2, batch_size=2),
    'func': mock_distance_func,
    'name': 'test_jnd_score'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
lpips, numpy, torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, 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
spatial_average Ran
ran; our contract draft was wrong, not the code
ajiljalal/csgm-robust-neurips/src/lpips/networks_basic.py
code served (permissive licence) · get_code("29e5e72bcd006dcd")
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, 1, 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)

# The function performs spatial averaging on a 4D tensor (batch, channels, height, width)
# by taking the mean over dimensions 2 and 3 (height and width)
in_tens = torch.randn(2, 4, 3, 5)  # batch=2, channels=4, height=3, width=5

ARGS = {
    "in_tens": in_tens,
    "keepdim": 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, 1, 1) — shape (2, 4, 1, 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
transpose Ran
ran on a synthesized input
ajiljalal/csgm-robust-neurips/src/celebA_utils.py
code served (permissive licence) · get_code("a6f71674cdc73691")
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 (4, 5, 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)

# The function expects an image with a shape attribute
# It checks if shape[2] == 3 or shape[0] == 3
# It uses .transpose(1, 2, 0) method
# We'll create a numpy array since it has shape and transpose

# Case 1: image with shape (height, width, 3) - channels last
image = np.random.rand(4, 5, 3).astype(np.float32)

ARGS = {
    "image": image
}
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 ndarray, ndim 3, dtype family float, shape (4, 5, 3) — shape (4, 5, 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
upsample Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ajiljalal/csgm-robust-neurips/src/lpips/networks_basic.py
pointer only (licence: MIT); the stored copy get_code serves, from cychungg/hairfusion, is pointer only (licence: NONE) · get_code("351677a36e1961df")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from cychungg/hairfusion, 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.

get_lpips_score Not yet run
unverified (harvested, no recorded run)
ajiljalal/csgm-robust-neurips/src/utils.py
code served (permissive licence) · get_code("f4a3a0cbedef7288")
How it ran

no invocation recorded.

sample_generator_images Not yet run
unverified (harvested, no recorded run)
ajiljalal/csgm-robust-neurips/src/celebA_input.py
code served (permissive licence) · get_code("29a7a66a98bbc2ed")
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, 9 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 0 the same month, 8 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
spatial_average 19 other papers
4 dated earlier, 15 later
1801.03924 (2018-01)
The Unreasonable Effectiveness of Deep Features as a Perceptual Metric
1912.04958 (2019-12)
Analyzing and Improving the Image Quality of StyleGAN
2002.09219 (2020-02)
Stochastic Latent Residual Video Prediction
and 16 more not named here
score_2afc_dataset 15 other papers
4 dated earlier, 11 later
1912.04958 (2019-12)
Analyzing and Improving the Image Quality of StyleGAN
2002.09219 (2020-02)
Stochastic Latent Residual Video Prediction
2005.00953 (2020-05)
Deep Generative Adversarial Residual Convolutional Networks for Real-World Super-Resolution
and 12 more not named here
upsample 10 other papers
3 dated earlier, 7 later
1912.04958 (2019-12)
Analyzing and Improving the Image Quality of StyleGAN
2002.09219 (2020-02)
Stochastic Latent Residual Video Prediction
2005.05999 (2020-05)
Fast Deep Multi-patch Hierarchical Network for Nonhomogeneous Image Dehazing
and 7 more not named here
score_jnd_dataset 6 other papers
2 dated earlier, 4 later
1912.04958 (2019-12)
Analyzing and Improving the Image Quality of StyleGAN
2002.09219 (2020-02)
Stochastic Latent Residual Video Prediction
2007.06600 (2020-07)
Closed-Form Factorization of Latent Semantics in GANs
and 3 more not named here
find_overlap_idx 2 other papers
2 dated earlier
1703.03208 (2017-03)
Compressed Sensing using Generative Models
1807.01442 (2018-07)
Modeling Sparse Deviations for Compressed Sensing using Generative Models
get_figsize 2 other papers
1 dated earlier, 1 later
1807.01442 (2018-07)
Modeling Sparse Deviations for Compressed Sensing using Generative Models
2106.12182 (2021-06)
Fairness for Image Generation with Uncertain Sensitive Attributes
int_or_float 2 other papers
1 dated earlier, 1 later
1807.01442 (2018-07)
Modeling Sparse Deviations for Compressed Sensing using Generative Models
2106.12182 (2021-06)
Fairness for Image Generation with Uncertain Sensitive Attributes
get_image_nums 1 other paper
1 later
2106.12182 (2021-06)
Fairness for Image Generation with Uncertain Sensitive Attributes
get_l2_loss 1 other paper
1 later
2106.12182 (2021-06)
Fairness for Image Generation with Uncertain Sensitive Attributes

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-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

The goal of compressed sensing is to estimate a high dimensional vector from an underdetermined system of noisy linear equations. In analogy to classical compressed sensing, here we assume a generative model as a prior, that is, we assume the vector is represented by a deep generative model $G: \mathbb{R}^k \rightarrow \mathbb{R}^n$. Classical recovery approaches such as empirical risk minimization (ERM) are guaranteed to succeed when the measurement matrix is sub-Gaussian. However, when the measurement matrix and measurements are heavy-tailed or have outliers, recovery may fail dramatically. In this paper we propose an algorithm inspired by the Median-of-Means (MOM). Our algorithm guarantees recovery for heavy-tailed data, even in the presence of outliers. Theoretically, our results show our novel MOM-based algorithm enjoys the same sample complexity guarantees as ERM under sub-Gaussian assumptions. Our experiments validate both aspects of our claims: other algorithms are indeed fragile and fail under heavy-tailed and/or corrupted data, while our approach exhibits the predicted robustness.

For agents

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

get_harvested_code_for_paper("2006.09461")
get_code_for_paper("2006.09461")
have("2006.09461")

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

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

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

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

Connect an agent — have() is free.