SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2604.06468 · 2026

Conformal Margin Risk Minimization: An Envelope Framework for Robust Learning under Label Noise

Masashi Sugiyama, Weihua Hu, Miao Xu, Gang Niu, Maya Gupta, Bo Han, Been Kim, Dan Hendrycks, Mantas Mazeika, Ivor Tsang, Heinrich Jiang, Quanming Yao, and 13 more

arXiv · PDF · Open in the Atlas

Code that ran

17 of 18 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; 16 failures of our instrument; 1 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/2604.06468.json · badge: /api/ran/2604.06468.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
YuanjieSh/CMRM canonical (classifier label)
classifier basis: census
17 ran · 1 no recorded run
FunctionStatusWhere it lives
accuracy_matrix Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
YuanjieSh/CMRM/Multi_code_human_annotation/ICP/generate_score.py
code served (permissive licence) · get_code("165c9590c92e284d")
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 2, dtype family float; no output shape is stated. 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 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 torch.nn as nn
from collections import defaultdict

torch.manual_seed(0)

# Build a minimal model
class SimpleModel(nn.Module):
    def __init__(self, num_classes=3):
        super().__init__()
        self.fc = nn.Linear(4, num_classes)
    
    def forward(self, x):
        return self.fc(x)

# Build a minimal data loader (list of batches)
def create_val_loader(num_batches=2, batch_size=2, input_dim=4, num_classes=3):
    loader = []
    for _ in range(num_batches):
        inputs = torch.randn(batch_size, input_dim)
        targets = torch.randint(0, num_classes, (batch_size,))
        loader.append((inputs, targets))
    return loader

# Build args object
class Args:
    def __init__(self, gpu=None):
        self.gpu = gpu

# Create instances
model = SimpleModel(num_classes=3)
val_loader = create_val_loader(num_batches=2, batch_size=2, input_dim=4, num_classes=3)
args = Args(gpu=None)
num_class = 3

ARGS = {
    'val_loader': val_loader,
    'model': model,
    'args': args,
    'num_class': num_class
}
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 2, dtype family float — 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
average_results_across_seeds Ran
ran; our contract draft was wrong, not the code
YuanjieSh/CMRM/Multi_code_human_annotation/main_eva_cifarn.py
code served (permissive licence) · get_code("302e37982ede648e")
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 DataFrame. 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 os
import pickle
import pandas as pd
import glob
import tempfile
import shutil

# Create a temporary directory for test pickle files
temp_dir = tempfile.mkdtemp()

# Create sample pickle files with results data
# Each pickle file contains a dict with method names as keys
sample_results_1 = {
    'MCP': {
        2: {'marginal_cov': 0.95},
        3: {'mean': 15.2}
    },
    'CCP': {
        2: {'marginal_cov': 0.92},
        3: {'mean': 14.8}
    },
    'k-CCP': {
        2: {'marginal_cov': 0.94},
        3: {'mean': 15.5}
    }
}

sample_results_2 = {
    'MCP': {
        2: {'marginal_cov': 0.96},
        3: {'mean': 15.5}
    },
    'CCP': {
        2: {'marginal_cov': 0.93},
        3: {'mean': 15.1}
    },
    'k-CCP': {
        2: {'marginal_cov': 0.95},
        3: {'mean': 15.8}
    }
}

sample_results_3 = {
    'MCP': {
        2: {'marginal_cov': 0.94},
        3: {'mean': 15.0}
    },
    'CCP': {
        2: {'marginal_cov': 0.91},
        3: {'mean': 14.9}
    },
    'k-CCP': {
        2: {'marginal_cov': 0.93},
        3: {'mean': 15.3}
    }
}

# Write pickle files
with open(os.path.join(temp_dir, 'seed_0.pkl'), 'wb') as f:
    pickle.dump(sample_results_1, f)

with open(os.path.join(temp_dir, 'seed_1.pkl'), 'wb') as f:
    pickle.dump(sample_results_2, f)

with open(os.path.join(temp_dir, 'seed_2.pkl'), 'wb') as f:
    pickle.dump(sample_results_3, f)

# Define ARGS
ARGS = {
    'folder': temp_dir,
    'print_results': True,
    'show_seed_ct': True,
    'methods': ['MCP', 'CCP', 'k-CCP'],
    'max_seeds': np.inf
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
calc_top_k_accuracy_per_class Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
YuanjieSh/CMRM/Multi_code_human_annotation/ICP/generate_score.py
code served (permissive licence) · get_code("5e94402af51c3024")
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. 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
from torch.utils.data import DataLoader
import numpy as np

torch.manual_seed(0)

# Define a minimal model that takes input and produces output
class SimpleClassifier(nn.Module):
    def __init__(self, num_classes=3):
        super().__init__()
        self.fc = nn.Linear(4, num_classes)
    
    def forward(self, x):
        return self.fc(x)

# Create a minimal data loader (list of batches)
def create_val_loader():
    batch_size = 2
    num_batches = 2
    num_classes = 3
    input_dim = 4
    
    batches = []
    for _ in range(num_batches):
        # Create random input and target
        input_tensor = torch.randn(batch_size, input_dim)
        target_tensor = torch.randint(0, num_classes, (batch_size,))
        batches.append((input_tensor, target_tensor))
    
    return batches

# Create a simple args object
class Args:
    def __init__(self):
        self.gpu = None  # CPU only

# Construct the ARGS dictionary
model = SimpleClassifier(num_classes=3)
val_loader = create_val_loader()
args = Args()
k = 2

ARGS = {
    "val_loader": val_loader,
    "model": model,
    "args": args,
    "k": k
}
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 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
find_real_batch_size_dir Ran
ran; our contract draft was wrong, not the code
YuanjieSh/CMRM/Multi_code_synthetic_noise/main_eva.py
code served (permissive licence) · get_code("9d6878630a316637")
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 os
import tempfile
import shutil

# Create a temporary directory structure for testing
temp_base_dir = tempfile.mkdtemp()

# Create some batch-size directories
os.makedirs(os.path.join(temp_base_dir, 'batch-size=32'), exist_ok=True)
os.makedirs(os.path.join(temp_base_dir, 'batch-size=64'), exist_ok=True)
os.makedirs(os.path.join(temp_base_dir, 'batch-size=128_extra_suffix'), exist_ok=True)

ARGS = {
    'base_dir': temp_base_dir,
    'batch_size': 32
}
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 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
focal_loss Ran
ran; our contract draft was wrong, not the code
YuanjieSh/CMRM/Multi_code_synthetic_noise/train/losses.py
pointer only (licence: MIT); the stored copy get_code serves, from tmlr-group/atol, is pointer only (licence: NONE) · get_code("4dcf06ba28983266")
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 tmlr-group/atol, 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_softmax_and_ranks Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
YuanjieSh/CMRM/Multi_code_human_annotation/ICP/generate_score.py
code served (permissive licence) · get_code("e156cd71262c686a")
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. 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 numpy as np

torch.manual_seed(0)

# Create a minimal model that matches what the function expects
class MinimalModel(nn.Module):
    def __init__(self, num_classes=4):
        super().__init__()
        self.linear = nn.Linear(3, num_classes)
    
    def forward(self, x):
        return self.linear(x)

# Create a minimal data loader (list of batches)
def create_val_loader(batch_size=2, num_batches=2, input_dim=3, num_classes=4):
    loader = []
    for _ in range(num_batches):
        x = torch.randn(batch_size, input_dim)
        targets = torch.randint(0, num_classes, (batch_size,))
        loader.append((x, targets))
    return loader

# Create args with necessary attributes
class Args:
    def __init__(self):
        self.gpu = 'cpu'

ARGS = {
    'val_loader': create_val_loader(batch_size=2, num_batches=2, input_dim=3, num_classes=4),
    'model': MinimalModel(num_classes=4),
    'args': Args()
}
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 — 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
initialize_metrics_dict Ran
ran; our contract draft was wrong, not the code
YuanjieSh/CMRM/Multi_code_human_annotation/main_eva_cifarn.py
code served (permissive licence) · get_code("3357d500ca86b3e2")
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)

# The function takes a 'methods' parameter which is iterated over
# Each method becomes a key in the metrics dict
# The function doesn't call any methods on the items, just uses them as dict keys

methods = ['method_a', 'method_b', 'method_c']

ARGS = {
    'methods': methods
}
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
load_features_npz Ran
ran; our contract draft was wrong, not the code
YuanjieSh/CMRM/Multi_code_human_annotation/main_cr2m.py
code served (permissive licence) · get_code("73910d526750af79")
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 numpy as np
import tempfile
import os

# Create a temporary NPZ file with the required keys
temp_dir = tempfile.mkdtemp()
temp_path = os.path.join(temp_dir, "test_features.npz")

# Create dummy data with distinct shapes for different dimensions
X_train = np.random.randn(2, 4).astype(np.float32)  # batch=2, features=4
X_test = np.random.randn(3, 4).astype(np.float32)   # batch=3, features=4
y_test = np.random.randint(0, 2, size=(3,)).astype(np.int32)  # batch=3

# Save to NPZ file
np.savez(temp_path, X_train=X_train, X_test=X_test, y_test=y_test)

ARGS = {
    "path": temp_path
}
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 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
resnet18 Ran
ran; our contract draft was wrong, not the code
YuanjieSh/CMRM/Multi_code_synthetic_noise/models/resnet_eurosat.py
code served (permissive licence) · get_code("f2b5240bcfd4cf3a")
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 ResNet18. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "num_classes": 200,
    "use_norm": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ResNet18 — a ResNet18 output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet18 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
resnet18 Ran
ran; our contract draft was wrong, not the code
YuanjieSh/CMRM/Multi_code_synthetic_noise/models/resnet_tiny.py
code served (permissive licence) · get_code("607bb2c5904df9e5")
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 ResNet18. 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 torch.nn as nn
import torch.nn.functional as F
import torch.nn.init as init
from torch.nn import Parameter
import torchvision

torch.manual_seed(0)

def _weights_init(m):
    classname = m.__class__.__name__
    if isinstance(m, nn.Linear) or isinstance(m, nn.Conv2d):
        init.kaiming_normal_(m.weight)

class NormedLinear(nn.Module):

    def __init__(self, in_features, out_features):
        super(NormedLinear, self).__init__()
        self.weight = Parameter(torch.Tensor(in_features, out_features))
        self.weight.data.uniform_(-1, 1).renorm_(2, 1, 1e-05).mul_(100000.0)

    def forward(self, x):
        out = F.normalize(x, dim=1).mm(F.normalize(self.weight, dim=0))
        return out

class ResNet18(nn.Module):

    def __init__(self, num_classes=200, use_norm=False):
        super(ResNet18, self).__init__()
        self.model = torchvision.models.resnet18(pretrained=False)
        if use_norm:
            linear = NormedLinear(512, num_classes)
        else:
            linear = nn.Linear(512, num_classes)
        self.model.fc = linear
        self.model.apply(_weights_init)

    def forward(self, x):
        out = self.model(x)
        return out

def resnet18(num_classes=200, use_norm=False):
    return ResNet18(num_classes=num_classes, use_norm=use_norm)

ARGS = {
    "num_classes": 10,
    "use_norm": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ResNet18 — a ResNet18 output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet18 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
resnet20 Ran
ran; our contract draft was wrong, not the code
YuanjieSh/CMRM/Multi_code_synthetic_noise/models/resnet_cifar.py
code served (permissive licence) · get_code("682ea0b23a9b9564")
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 ResNet_s. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "num_classes": 10,
    "use_norm": False,
    "features": 3,
}
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 ResNet_s — a ResNet_s output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet_s 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
resnet20 Ran
ran; our contract draft was wrong, not the code
YuanjieSh/CMRM/Multi_code_synthetic_noise/models/resnet_eurosat.py
code served (permissive licence) · get_code("f332591908476ccc")
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 ResNet_s. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "num_classes": 10,
    "use_norm": False,
    "features": 3,
}
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 ResNet_s — a ResNet_s output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet_s 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
resnet32 Ran
ran; our contract draft was wrong, not the code
YuanjieSh/CMRM/Multi_code_synthetic_noise/models/resnet_cifar.py
code served (permissive licence) · get_code("c855e300f1337b9f")
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 ResNet_s. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "num_classes": 10,
    "use_norm": False,
    "features": 3,
}
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 ResNet_s — a ResNet_s output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet_s 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
resnet32 Ran
ran; our contract draft was wrong, not the code
YuanjieSh/CMRM/Multi_code_synthetic_noise/models/resnet_eurosat.py
code served (permissive licence) · get_code("11d038f53d77a8d2")
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 ResNet_s. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'num_classes': 10,
    'use_norm': False,
}
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 ResNet_s — a ResNet_s output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet_s 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
resnet32 Ran
ran; our contract draft was wrong, not the code
YuanjieSh/CMRM/Multi_code_synthetic_noise/models/resnet_tiny.py
code served (permissive licence) · get_code("1f54eef2129f31e1")
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 ResNet_s. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "num_classes": 10,
    "use_norm": False,
    "features": 3,
}
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 ResNet_s — a ResNet_s output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet_s 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
resnet44 Ran
ran; our contract draft was wrong, not the code
YuanjieSh/CMRM/Multi_code_synthetic_noise/models/resnet_cifar.py
code served (permissive licence) · get_code("06958241b55ab4aa")
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 ResNet_s. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'num_classes': 10,
    'use_norm': False,
    'features': 3,
}
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 ResNet_s — a ResNet_s output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet_s 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
str2bool Ran
ran, violated the contract we drafted
YuanjieSh/CMRM/Multi_code_human_annotation/main_cr2m.py
code served (permissive licence) · get_code("7c508037b40522af")
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 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 argparse

def str2bool(v):
    if isinstance(v, bool):
        return v
    if v.lower() in ('yes', 'true', 't', 'y', '1'):
        return True
    elif v.lower() in ('no', 'false', 'f', 'n', '0'):
        return False
    else:
        raise argparse.ArgumentTypeError('Boolean value expected.')

# Test cases for str2bool
ARGS = {
    'v': 'true'  # string input that should convert to boolean
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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, 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
save_features_npz Not yet run
unverified (harvested, no recorded run)
YuanjieSh/CMRM/Multi_code_human_annotation/main_cr2m.py
code served (permissive licence) · get_code("1f6ac62fc2696d58")
How it ran

no invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 11 are also present in other papers whose code we hold (11 with at least one paper dated earlier, 0 the same month, 2 later) and 6 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
str2bool 175 other papers
170 dated earlier, 5 later · 2 only as an assembly brick
1406.6247 (2014-06)
Recurrent Models of Visual Attention
1603.09382 (2016-03)
Deep Networks with Stochastic Depth
1710.10196 (2017-10)
Progressive Growing of GANs for Improved Quality, Stability, and Variation
and 172 more not named here
focal_loss 14 other papers
13 dated earlier, 1 later
1906.07413 (2019-06)
Learning Imbalanced Datasets with Label-Distribution-Aware Margin Loss
2107.09249 (2021-07)
Self-Supervised Aggregation of Diverse Experts for Test-Agnostic Long-Tailed Recognition
and 11 more not named here
resnet32 9 other papers
9 dated earlier
1906.07413 (2019-06)
Learning Imbalanced Datasets with Label-Distribution-Aware Margin Loss
2104.00466 (2021-04)
Improving Calibration for Long-Tailed Recognition
2106.10891 (2021-06)
Open-set Label Noise Can Improve Robustness Against Inherent Label Noise
and 6 more not named here
accuracy_matrix 1 other paper
1 dated earlier
2406.06818 (2024-06)
Conformal Prediction for Class-wise Coverage via Augmented Label Rank Calibration
calc_top_k_accuracy_per_class 1 other paper
1 dated earlier
2406.06818 (2024-06)
Conformal Prediction for Class-wise Coverage via Augmented Label Rank Calibration
get_softmax_and_ranks 1 other paper
1 dated earlier
2406.06818 (2024-06)
Conformal Prediction for Class-wise Coverage via Augmented Label Rank Calibration
resnet18 1 other paper
1 dated earlier
2406.06818 (2024-06)
Conformal Prediction for Class-wise Coverage via Augmented Label Rank Calibration
resnet20 1 other paper
1 dated earlier
2406.06818 (2024-06)
Conformal Prediction for Class-wise Coverage via Augmented Label Rank Calibration
resnet20 1 other paper
1 dated earlier
2406.06818 (2024-06)
Conformal Prediction for Class-wise Coverage via Augmented Label Rank Calibration
resnet32 1 other paper
1 dated earlier
2406.06818 (2024-06)
Conformal Prediction for Class-wise Coverage via Augmented Label Rank Calibration
resnet44 1 other paper
1 dated earlier
2406.06818 (2024-06)
Conformal Prediction for Class-wise Coverage via Augmented Label Rank Calibration

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

Most methods for learning with noisy labels require privileged knowledge such as noise transition matrices, clean subsets or pretrained feature extractors, resources typically unavailable when robustness is most needed. We propose Conformal Margin Risk Minimization (CMRM), a plug-and-play envelope framework that improves any classification loss under label noise by adding a single quantilecalibrated regularization term, with no privileged knowledge or training pipeline modification. CMRM measures the confidence margin between the observed label and competing labels, and thresholds it with a conformal quantile estimated per batch to focus training on high-margin samples while suppressing likely mislabeled ones. We derive a learning bound for CMRM under arbitrary label noise requiring only mild regularity of the margin distribution. Across five base methods and six benchmarks with synthetic and real-world noise, CMRM consistently improves accuracy (up to +3.39%), reduces conformal prediction set size (up to -20.44%) and does not hurt under 0% noise, showing that CMRM captures a method-agnostic uncertainty signal that existing mechanisms did not exploit. * Equal contribution.

For agents

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

get_harvested_code_for_paper("2604.06468")
get_code_for_paper("2604.06468")
have("2604.06468")

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

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

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

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

Connect an agent — have() is free.