SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.01225 · 2023

A path-norm toolkit for modern networks: consequences, promises and challenges

arXiv · PDF · Open in the Atlas

Code that ran

15 of 20 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; 4 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 10 failures of our instrument; 5 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/2310.01225.json · badge: /api/ran/2310.01225.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
agonon/pathnorm_toolkit canonical (classifier label)
classifier basis: census
15 ran · 5 no recorded run
FunctionStatusWhere it lives
adaptive_pool_params Ran
ran, honoured the contract we drafted
agonon/pathnorm_toolkit/repro/icml25/utils/pathnorm_transform.py
code served (permissive licence) · get_code("d504804f0f9ac808")
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 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

torch.manual_seed(0)

# Analyze the function:
# - in_size: int, used in arithmetic operations
# - out_size: int, used in arithmetic operations and comparison
# These are simple integers for adaptive pooling parameters

ARGS = {
    "in_size": 16,
    "out_size": 4,
}
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 tuple, ndim 1, dtype family int — 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
check_imagenet_prepared Ran
ran; our contract draft was wrong, not the code
agonon/pathnorm_toolkit/repro/iclr24/utils/imagenet_data.py
code served (permissive licence) · get_code("4af14115cc3aee7e")
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 ImageNetStatus. 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 tempfile
from pathlib import Path

# Create a temporary directory structure that mimics a prepared ImageNet dataset
with tempfile.TemporaryDirectory() as tmpdir:
    root_path = Path(tmpdir)
    
    # Create train and val directories
    train_dir = root_path / 'train'
    val_dir = root_path / 'val'
    train_dir.mkdir(parents=True, exist_ok=True)
    val_dir.mkdir(parents=True, exist_ok=True)
    
    # Add dummy files to make directories non-empty
    (train_dir / 'dummy_train.txt').touch()
    (val_dir / 'dummy_val.txt').touch()
    
    # Store the path for use in ARGS
    imagenet_root = str(root_path)

ARGS = {
    'root': imagenet_root
}
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 ImageNetStatus — a ImageNetStatus output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ImageNetStatus 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
class_dir_name Ran
ran; our contract draft was wrong, not the code
agonon/pathnorm_toolkit/repro/iclr24/utils/download_imagenet_from_hf.py
code served (permissive licence) · get_code("6e545c1bdc3f7cec")
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

ARGS = {
    "label": 5
}
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
count_files_recursive Ran
ran, honoured the contract we drafted
agonon/pathnorm_toolkit/repro/iclr24/utils/imagenet_data.py
code served (permissive licence) · get_code("6bbf2dc539716669")
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 os
from pathlib import Path
import tempfile

# Create a temporary directory structure for testing
temp_dir = tempfile.mkdtemp()
temp_path = Path(temp_dir)

# Create some test files and subdirectories
(temp_path / "file1.txt").touch()
(temp_path / "file2.txt").touch()

subdir1 = temp_path / "subdir1"
subdir1.mkdir()
(subdir1 / "file3.txt").touch()

subdir2 = temp_path / "subdir2"
subdir2.mkdir()
(subdir2 / "file4.txt").touch()
(subdir2 / "file5.txt").touch()

nested_subdir = subdir2 / "nested"
nested_subdir.mkdir()
(nested_subdir / "file6.txt").touch()

ARGS = {
    "root": temp_path
}
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 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
estimate_total_epoch_steps Ran
ran, honoured the contract we drafted
agonon/pathnorm_toolkit/repro/iclr24/utils/train_imagenet.py
code served (permissive licence) · get_code("3e27e0086ed49361")
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
import numpy as np

class Args:
    def __init__(self):
        self.epochs = 100
        self.start_epoch = 10
        self.IMP_iters = 50
        self.start_IMP_iter = 5

ARGS = {
    "args": Args()
}
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 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
format_duration Ran
ran; our contract draft was wrong, not the code
agonon/pathnorm_toolkit/repro/iclr24/utils/train_imagenet.py
code served (permissive licence) · get_code("108ebe73d0b32ec2")
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

ARGS = {
    'seconds': 3661.7
}
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
get_imagenet_train_val_test Ran
ran; our contract draft was wrong, not the code
agonon/pathnorm_toolkit/repro/iclr24/utils/imagenet_dataset.py
code served (permissive licence) · get_code("cfe74f26307fd802")
How it ran

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

import torch
import torch.utils.data
from torchvision import datasets as datasets
import torchvision.transforms as transforms
import os
from torchvision.transforms import InterpolationMode
import tempfile
from PIL import Image
import numpy as np

torch.manual_seed(0)

# Create a temporary directory structure with minimal ImageNet-like data
temp_dir = tempfile.mkdtemp()
train_dir = os.path.join(temp_dir, 'train')
val_dir = os.path.join(temp_dir, 'val')

# Create class directories and minimal image files
for class_name in ['class_0', 'class_1']:
    os.makedirs(os.path.join(train_dir, class_name), exist_ok=True)
    os.makedirs(os.path.join(val_dir, class_name), exist_ok=True)
    
    # Create minimal dummy images (2x2 RGB images)
    for i in range(3):
        img_array = np.random.randint(0, 256, (2, 2, 3), dtype=np.uint8)
        img = Image.fromarray(img_array, 'RGB')
        img.save(os.path.join(train_dir, class_name, f'img_{i}.jpg'))
        img.save(os.path.join(val_dir, class_name, f'img_{i}.jpg'))

ARGS = {
    'imagenet_data': temp_dir,
    'blurred': False,
    'randAugLevel': 9
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch, torchvision — 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
get_imagenet_transforms Ran
ran; our contract draft was wrong, not the code
agonon/pathnorm_toolkit/repro/iclr24/utils/imagenet_dataset.py
code served (permissive licence) · get_code("b417f83635432b4d")
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 torchvision.transforms as transforms
from torchvision.transforms import InterpolationMode

torch_seed = 0

ARGS = {
    "randAugLevel": 9
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torchvision — 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
get_trainloader Ran
ran; our contract draft was wrong, not the code
agonon/pathnorm_toolkit/repro/iclr24/utils/pretrained_resnets.py
code served (permissive licence) · get_code("15c4080169910373")
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 DataLoader. 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 torchvision.transforms as transforms
from pathlib import Path
import tempfile
import os
from PIL import Image
import shutil

torch.manual_seed(0)

# Create a temporary directory structure with fake image data
temp_dir = tempfile.mkdtemp()
train_dir = Path(temp_dir) / 'train'
train_dir.mkdir(parents=True, exist_ok=True)

# Create two fake image classes
class_dirs = [train_dir / 'class_0', train_dir / 'class_1']
for class_dir in class_dirs:
    class_dir.mkdir(exist_ok=True)

# Create minimal fake images (small PIL images)
for class_dir in class_dirs:
    for i in range(5):  # Create 5 images per class
        img = Image.new('RGB', (256, 256), color=(73, 109, 137))
        img.save(class_dir / f'img_{i}.jpg')

data_dir = Path(temp_dir)
batch_size = 2
workers = 0

ARGS = {
    'data_dir': data_dir,
    'batch_size': batch_size,
    'workers': workers
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataLoader — a DataLoader output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataLoader 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
infer_suffix Ran
ran; our contract draft was wrong, not the code
agonon/pathnorm_toolkit/repro/iclr24/utils/download_imagenet_from_hf.py
code served (permissive licence) · get_code("5db6a07ebbde4147")
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
from io import BytesIO
from PIL import Image as PILImage

# Create a small valid image in bytes format (PNG)
img = PILImage.new('RGB', (2, 2), color='red')
img_bytes_io = BytesIO()
img.save(img_bytes_io, format='PNG')
image_bytes = img_bytes_io.getvalue()

ARGS = {
    'image_bytes': image_bytes
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, 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
is_primary_process Ran
ran, violated the contract we drafted
agonon/pathnorm_toolkit/repro/iclr24/utils/train_imagenet.py
code served (permissive licence) · get_code("914182d62d18d406")
How it ran

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

import torch
import torch.nn as nn

# Create a simple args object with the required attributes
class Args:
    def __init__(self, multiprocessing_distributed, rank):
        self.multiprocessing_distributed = multiprocessing_distributed
        self.rank = rank

# Test case 1: multiprocessing_distributed=True, rank=0, ngpus_per_node=2
# This should return True (0 % 2 == 0)
args_1 = Args(multiprocessing_distributed=True, rank=0)

# Test case 2: multiprocessing_distributed=False
# This should return True (not False)
args_2 = Args(multiprocessing_distributed=False, rank=1)

# Use case 1 for ARGS
ARGS = {
    "args": args_1,
    "ngpus_per_node": 2
}
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 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
resolve_token Ran
ran; our contract draft was wrong, not the code
agonon/pathnorm_toolkit/repro/iclr24/utils/download_imagenet_from_hf.py
code served (permissive licence) · get_code("8b2b1cd08a25a990")
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

torch.manual_seed(0)

ARGS = {
    "token": "example_token"
}
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
stage_imagenet Ran
ran; our contract draft was wrong, not the code
agonon/pathnorm_toolkit/repro/iclr24/utils/imagenet_data.py
code served (permissive licence) · get_code("36a66c7a63a7bb23")
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 ImageNetStatus. 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 tempfile
from pathlib import Path
import os

# Create temporary directories for source and destination
source_temp = tempfile.TemporaryDirectory()
dest_temp = tempfile.TemporaryDirectory()

source_dir = Path(source_temp.name)
dest_dir = Path(dest_temp.name)

# Create the expected ImageNet structure in source_dir
train_dir = source_dir / 'train'
val_dir = source_dir / 'val'
train_dir.mkdir(parents=True, exist_ok=True)
val_dir.mkdir(parents=True, exist_ok=True)

# Add at least one file to each directory so they're not empty
(train_dir / 'dummy_train.txt').touch()
(val_dir / 'dummy_val.txt').touch()

# Define arguments for stage_imagenet
ARGS = {
    'source_dir': source_dir,
    'dest_dir': dest_dir,
    'mode': 'symlink'
}
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 ImageNetStatus — a ImageNetStatus output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ImageNetStatus 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
to_2tuple Ran
ran, honoured the contract we drafted
agonon/pathnorm_toolkit/repro/icml25/utils/pathnorm_transform.py
code served (permissive licence) · get_code("52b674f7653b81f1")
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 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

torch.manual_seed(0)

# The function to_2tuple takes a single parameter 'value'
# It checks if value is a tuple of length 2, or converts a single value to a 2-tuple
# We'll test with a single integer value

ARGS = {
    "value": 5
}
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 tuple, ndim 1, dtype family int — 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
validate_path_norm_support Ran
ran; our contract draft was wrong, not the code
agonon/pathnorm_toolkit/pathnorm.py
code served (permissive licence) · get_code("ef4505d66a1f15cd")
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 PathNormSupportReport. 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
from torch.nn.modules.batchnorm import BatchNorm2d

torch.manual_seed(0)

# Build a simple model that uses supported modules
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.conv1 = nn.Conv2d(3, 4, kernel_size=3, padding=1)
        self.relu = nn.ReLU()
        self.pool = nn.MaxPool2d(kernel_size=2, stride=2)
        self.linear = nn.Linear(4 * 4 * 4, 10)
        self.flatten = nn.Flatten()
    
    def forward(self, x):
        x = self.conv1(x)
        x = self.relu(x)
        x = self.pool(x)
        x = self.flatten(x)
        x = self.linear(x)
        return x

# Create model instance
model = SimpleModel()

# Create dummy input tensor (batch_size=2, channels=3, height=8, width=8)
dummy_input = torch.randn(2, 3, 8, 8)

ARGS = {
    'model': model,
    'input_tensor': dummy_input,
}
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 PathNormSupportReport — a PathNormSupportReport output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PathNormSupportReport 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
build_training_args Not yet run
unverified (harvested, no recorded run)
agonon/pathnorm_toolkit/repro/icml25/utils/finetune_pruned.py
code served (permissive licence) · get_code("dbcf7d222a1bcd97")
How it ran

no invocation recorded.

compute_path_norm Not yet run
unverified (harvested, no recorded run)
agonon/pathnorm_toolkit/pathnorm.py
code served (permissive licence) · get_code("3d4115d0e8e0f23d")
How it ran

no invocation recorded.

compute_path_norms Not yet run
unverified (harvested, no recorded run)
agonon/pathnorm_toolkit/pathnorm.py
code served (permissive licence) · get_code("f2be78276ff88def")
How it ran

no invocation recorded.

get_model Not yet run
unverified (harvested, no recorded run)
agonon/pathnorm_toolkit/repro/iclr24/utils/pretrained_resnets.py
code served (permissive licence) · get_code("03655098d4ec5888")
How it ran

no invocation recorded.

unwrap_model Not yet run
unverified (harvested, no recorded run)
agonon/pathnorm_toolkit/repro/icml25/utils/pathnorm_transform.py
code served (permissive licence) · get_code("25a99cb17f71ec59")
How it ran

no invocation recorded.

Also present in other papers' code

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

This work introduces the first toolkit around path-norms that fully encompasses general DAG ReLU networks with biases, skip connections and any operation based on the extraction of order statistics: max pooling, GroupSort etc. This toolkit notably allows us to establish generalization bounds for modern neural networks that are not only the most widely applicable path-norm based ones, but also recover or beat the sharpest known bounds of this type. These extended path-norms further enjoy the usual benefits of path-norms: ease of computation, invariance under the symmetries of the network, and improved sharpness on layered fully-connected networks compared to the product of operator norms, another complexity measure most commonly used. The versatility of the toolkit and its ease of implementation allow us to challenge the concrete promises of path-norm-based generalization bounds, by numerically evaluating the sharpest known bounds for ResNets on ImageNet.

For agents

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

get_harvested_code_for_paper("2310.01225")
get_code_for_paper("2310.01225")
have("2310.01225")

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

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

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

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

Connect an agent — have() is free.