SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2306.08553 · 2023

Noise Stability Optimization for Finding Flat Minima: A Hessian-based Regularization Approach

arXiv · PDF · Open in the Atlas

Code that ran

13 of 15 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 10 have no contract verdict; 3 failures of our instrument; 2 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2306.08553.json · badge: /api/ran/2306.08553.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
virtuosoresearch/noise-stability-optimization canonical (classifier label)
classifier basis: census
13 ran · 2 no recorded run
FunctionStatusWhere it lives
compute_hessian_traces Ran
ran on a synthesized input
virtuosoresearch/noise-stability-optimization/exps_on_graph_datasets/compute_noise_stability.py
code served (permissive licence) · get_code("84dbf7cf0c1ad519")
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 1, dtype family float, shape (2,) 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
from torch import nn
from torch_geometric.nn.dense.linear import Linear

torch.manual_seed(0)

# Create a simple model with Linear layers
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.fc1 = nn.Linear(4, 3)
        self.fc2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.fc1(x)
        x = self.fc2(x)
        return x

model = SimpleModel()

# Create a small input tensor and target
x = torch.randn(2, 4)  # batch_size=2, input_dim=4
y = torch.randint(0, 2, (2, 2))  # batch_size=2, output_dim=2

# Forward pass to get output
output = model(x)

# Create a loss function
loss_fn = nn.MSELoss()
loss = loss_fn(output, y.float())

ARGS = {
    "model": model,
    "loss": loss,
    "maxIter": 5,
    "tol": 0.001
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (2,) — shape (2,) 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_completion_data_path Ran
ran on a synthesized input
virtuosoresearch/noise-stability-optimization/chain-of-thought-finetuning/src/paths.py
code served (permissive licence) · get_code("083a2d17fc537dcd")
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

# Create a temporary directory structure to simulate the PROJECT_PATH
temp_dir = tempfile.mkdtemp()
PROJECT_PATH = temp_dir
SAVED_PATH = os.path.join(PROJECT_PATH, 'saved')
COMPLETION_DATA_PATH = os.path.join(SAVED_PATH, 'completion_data')

# Create the directories
os.makedirs(COMPLETION_DATA_PATH, exist_ok=True)

# Define function with mocked paths
def get_completion_data_path(base_model: str, completion_key: str, dataset_key: str, train_key: str=None, epoch: int=None, train_lora=None, lora_rank=None) -> str:
    dirname = 'B_{}__C_{}'.format(base_model, completion_key)
    base_tags = ['D_{}'.format(dataset_key)]
    if train_key is not None:
        base_tags.append('T_{}'.format(train_key))
    if epoch is not None:
        base_tags.append('E_{:03d}'.format(epoch))
    if train_lora:
        base_tags.append('Lora_r_{}'.format(lora_rank))
    basename = '__'.join(base_tags)
    return os.path.join(COMPLETION_DATA_PATH, dirname, '{}.json'.format(basename))

ARGS = {
    'base_model': 'gpt2',
    'completion_key': 'v1',
    'dataset_key': 'openwebtext',
    'train_key': 'adam_lr_0001',
    'epoch': 5,
    'train_lora': True,
    'lora_rank': 8
}
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
get_constant_schedule Ran
ran; our contract draft was wrong, not the code
virtuosoresearch/noise-stability-optimization/exps_on_text_datasets/transformers/optimization.py
code served (permissive licence) · get_code("1141f8139411c789")
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 LambdaLR. 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.optim import SGD

torch.manual_seed(0)

# Create a simple model
model = nn.Linear(4, 3)

# Create an optimizer
optimizer = SGD(model.parameters(), lr=0.01)

# Define arguments for get_constant_schedule
ARGS = {
    "optimizer": optimizer,
    "last_epoch": -1
}
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 LambdaLR — a LambdaLR output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a LambdaLR 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_constant_schedule_with_warmup Ran
ran; our contract draft was wrong, not the code
virtuosoresearch/noise-stability-optimization/exps_on_text_datasets/transformers/optimization.py
code served (permissive licence) · get_code("8e243647722211b3")
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 LambdaLR. 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.optim import SGD

torch.manual_seed(0)

# Create a minimal model with parameters
model = nn.Linear(4, 3)

# Create an optimizer
optimizer = SGD(model.parameters(), lr=0.1)

# Define arguments for the function
ARGS = {
    "optimizer": optimizer,
    "num_warmup_steps": 100,
    "last_epoch": -1
}
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 LambdaLR — a LambdaLR output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a LambdaLR 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_dataset_path Ran
ran on a synthesized input
virtuosoresearch/noise-stability-optimization/chain-of-thought-finetuning/src/paths.py
code served (permissive licence) · get_code("3df12d92fd1ba3ec")
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

# Create a temporary directory to simulate the project structure
temp_dir = tempfile.mkdtemp()
project_path = temp_dir
data_path = os.path.join(project_path, 'data')
dataset_path = os.path.join(data_path, 'dataset')

# Create the necessary directories
os.makedirs(dataset_path, exist_ok=True)

# Create a sample dataset file
sample_dataset_file = os.path.join(dataset_path, 'test_dataset.json')
with open(sample_dataset_file, 'w') as f:
    f.write('{}')

# Define the function with modified paths
PROJECT_PATH = project_path
DATA_PATH = os.path.join(PROJECT_PATH, 'data')
DATASET_PATH = os.path.join(DATA_PATH, 'dataset')

def get_dataset_path(dataset_key: str) -> str:
    return os.path.join(DATASET_PATH, '{}.json'.format(dataset_key))

# Define ARGS
ARGS = {
    'dataset_key': 'test_dataset'
}
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
get_linear_schedule_with_warmup Ran
ran; our contract draft was wrong, not the code
virtuosoresearch/noise-stability-optimization/exps_on_text_datasets/transformers/optimization.py
code served (permissive licence) · get_code("afba2c06a42074fe")
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 LambdaLR. 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.optim import SGD

torch.manual_seed(0)

# Create a simple model
model = nn.Linear(4, 2)

# Create an optimizer
optimizer = SGD(model.parameters(), lr=0.1)

# Define arguments for get_linear_schedule_with_warmup
ARGS = {
    "optimizer": optimizer,
    "num_warmup_steps": 100,
    "num_training_steps": 1000,
    "last_epoch": -1,
}
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 LambdaLR — a LambdaLR output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a LambdaLR 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_split_path Ran
ran on a synthesized input
virtuosoresearch/noise-stability-optimization/chain-of-thought-finetuning/src/paths.py
code served (permissive licence) · get_code("c2bc595db0df3786")
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 json

# Create a temporary directory structure to simulate the project layout
temp_dir = tempfile.mkdtemp()
project_path = temp_dir
data_path = os.path.join(project_path, 'data')
split_path = os.path.join(data_path, 'split')
os.makedirs(split_path, exist_ok=True)

# Create a sample split file
sample_split_data = {"train": [1, 2, 3], "test": [4, 5]}
sample_split_file = os.path.join(split_path, 'dataset1__train.json')
with open(sample_split_file, 'w') as f:
    json.dump(sample_split_data, f)

# Define the arguments for get_split_path
ARGS = {
    'dataset_key': 'dataset1',
    'split_key': 'train'
}
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
get_trainable_parameters Ran
ran on a synthesized input
virtuosoresearch/noise-stability-optimization/chain-of-thought-finetuning/compute_hessian_traces.py
code served (permissive licence) · get_code("51a2376d3165e058")
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 generator. 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)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
        # Create a parameter that doesn't require grad
        self.register_parameter('frozen_param', nn.Parameter(torch.randn(2)))
        self.frozen_param.requires_grad = False
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

model = SimpleModel()

ARGS = {
    'model': model
}
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 generator — a generator output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a generator 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_weights Ran
ran on a synthesized input
virtuosoresearch/noise-stability-optimization/exps_on_graph_datasets/compute_noise_stability.py
code served (permissive licence) · get_code("7f5a965a9547d732")
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. 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_geometric.nn.dense.linear import Linear

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
        self.geo_linear = Linear(2, 5)
        self.relu = nn.ReLU()
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.relu(x)
        x = self.linear2(x)
        x = self.geo_linear(x)
        return x

model = SimpleModel()

ARGS = {
    "model": model
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torch_geometric — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list 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
label_noise Ran
ran on a synthesized input
virtuosoresearch/noise-stability-optimization/exps_on_image_datasets/data_loader/random_noise.py
code served (permissive licence) · get_code("485783150c7893b6")
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

class SimpleDataset:
    def __init__(self, labels):
        self.labels = labels

# Create a small dataset with 10 samples and 3 classes
dataset = SimpleDataset(labels=np.array([0, 1, 2, 0, 1, 2, 0, 1, 2, 0], dtype=int))

# Define train indices - select 8 samples from the dataset
train_indices = np.array([0, 1, 2, 3, 4, 5, 6, 7], dtype=int)

# Define noise rate
noise_rate = 0.25

# Define symmetric flag
symmetric = True

ARGS = {
    "dataset": dataset,
    "train_indices": train_indices,
    "noise_rate": noise_rate,
    "symmetric": symmetric
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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
noisy_labeler Ran
ran on a synthesized input
virtuosoresearch/noise-stability-optimization/exps_on_image_datasets/data_loader/random_noise.py
code served (permissive licence) · get_code("430d1fb772405f2e")
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.nn as nn
import numpy as np

torch.manual_seed(0)

# Create a simple auxiliary model that outputs log probabilities
class SimpleAuxModel(nn.Module):
    def __init__(self, input_dim=4, num_classes=3):
        super().__init__()
        self.fc = nn.Linear(input_dim, num_classes)
    
    def forward(self, x):
        return self.fc(x)

# Create a simple dataset class
class SimpleDataset:
    def __init__(self, labels):
        self.labels = list(labels)
    
    def __len__(self):
        return len(self.labels)

# Create train_data_loader as a list of (data, target, index) tuples
# Each tuple contains: (input_tensor, target_label, batch_indices)
train_data_loader = [
    (torch.randn(2, 4), torch.tensor([0, 1]), torch.tensor([0, 1])),
    (torch.randn(2, 4), torch.tensor([2, 0]), torch.tensor([2, 3])),
]

# Create dataset with initial labels
initial_labels = [0, 1, 2, 0, 1]
dataset = SimpleDataset(initial_labels)

# Define train_indices (which samples from the dataset are in training set)
train_indices = [0, 1, 2, 3]

# Create auxiliary model
aux_model = SimpleAuxModel(input_dim=4, num_classes=3)

# Set device to CPU
device = 'cpu'

ARGS = {
    'train_data_loader': train_data_loader,
    'dataset': dataset,
    'train_indices': train_indices,
    'aux_model': aux_model,
    'device': device,
}
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 — 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
perturbe_model_weights Ran
ran on a synthesized input
virtuosoresearch/noise-stability-optimization/exps_on_image_datasets/compute_noise_stability.py
code served (permissive licence) · get_code("aab5cc3f4ce427b5")
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 torch.nn as nn

torch.manual_seed(0)

# Create a mock state_dict with various weight tensors
# The function looks for keys containing 'conv' or 'pred_head' with 'weight' in the name
# and filters for multi-dimensional tensors (len(value.size()) != 1)

state_dict = {
    'conv1.weight': torch.randn(4, 3, 3, 3),  # conv weight: (out_channels, in_channels, height, width)
    'conv1.bias': torch.randn(4),  # bias (1D, should be skipped)
    'conv2.weight': torch.randn(8, 4, 3, 3),  # another conv weight
    'pred_head.weight': torch.randn(10, 8),  # pred_head weight: (out_features, in_features)
    'pred_head.bias': torch.randn(10),  # bias (1D, should be skipped)
    'linear.weight': torch.randn(5, 8),  # linear weight not matching pattern, but let's include it
    'linear.bias': torch.randn(5),  # bias (1D)
    'bn1.weight': torch.randn(4),  # batch norm weight (1D, should be skipped)
}

ARGS = {
    'state_dict': state_dict,
    'eps': 0.001
}
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
perturbe_model_weights Ran
ran on a synthesized input
virtuosoresearch/noise-stability-optimization/exps_on_text_datasets/compute_noise_stability.py
code served (permissive licence) · get_code("2c8622034db2b781")
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 torch.nn as nn

torch.manual_seed(0)

# Create a minimal state_dict with the required keys
state_dict = {
    'encoder.weight': torch.randn(4, 3),
    'encoder.bias': torch.randn(4),
    'classifier.weight': torch.randn(5, 4),
    'classifier.bias': torch.randn(5),
    'LayerNorm.weight': torch.randn(4),
    'other_layer.weight': torch.randn(3, 2),
}

# Create a perturbation dict for use_neg=True case
perturbation = {
    'encoder.weight': torch.randn(4, 3) * 0.001,
    'classifier.weight': torch.randn(5, 4) * 0.001,
}

ARGS = {
    'state_dict': state_dict,
    'eps': 0.001,
    'use_neg': False,
    'perturbation': {},
}
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 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
compute_loss Not yet run
unverified (harvested, no recorded run)
virtuosoresearch/noise-stability-optimization/exps_on_graph_datasets/compute_noise_stability.py
code served (permissive licence) · get_code("bf7e2a77d22565f7")
How it ran

no invocation recorded.

create_optimizer Not yet run
unverified (harvested, no recorded run)
virtuosoresearch/noise-stability-optimization/exps_on_text_datasets/transformers/optimization_tf.py
code served (permissive licence) · get_code("6c2c33724affff7b")
How it ran

no invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 1 the same month, 3 later) and 9 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
get_linear_schedule_with_warmup 21 other papers
7 dated earlier, 14 later
2004.10964 (2020-04)
Don't Stop Pretraining: Adapt Language Models to Domains and Tasks
2011.07430 (2020-11)
Audio-Visual Event Recognition through the lens of Adversary
2109.04912 (2021-09)
ReasonBERT: Pre-trained to Reason with Distant Supervision
and 18 more not named here
get_constant_schedule 13 other papers
3 dated earlier, 10 later
2004.10964 (2020-04)
Don't Stop Pretraining: Adapt Language Models to Domains and Tasks
2204.13902 (2022-04)
Fast Sampling of Diffusion Models with Exponential Integrator
2305.15328 (2023-05)
Visual Programming for Text-to-Image Generation and Evaluation
and 10 more not named here
get_constant_schedule_with_warmup 13 other papers
3 dated earlier, 1 the same month, 9 later
2004.10964 (2020-04)
Don't Stop Pretraining: Adapt Language Models to Domains and Tasks
2204.13902 (2022-04)
Fast Sampling of Diffusion Models with Exponential Integrator
2305.15328 (2023-05)
Visual Programming for Text-to-Image Generation and Evaluation
and 10 more not named here
get_dataset_path 1 other paper
1 dated earlier
2212.10071 (2022-12)
Large Language Models Are Reasoning Teachers
get_split_path 1 other paper
1 dated earlier
2212.10071 (2022-12)
Large Language Models Are Reasoning Teachers
perturbe_model_weights 1 other paper
1 dated earlier
2206.02659 (2022-06)
Robust Fine-Tuning of Deep Neural Networks with Hessian-based Generalization Guarantees

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

The training of over-parameterized neural networks has received much study in recent literature. An important consideration is the regularization of over-parameterized networks due to their highly nonconvex and nonlinear geometry. In this paper, we study noise injection algorithms, which can regularize the Hessian of the loss, leading to regions with flat loss surfaces. Specifically, by injecting isotropic Gaussian noise into the weight matrices of a neural network, we can obtain an approximately unbiased estimate of the trace of the Hessian. However, naively implementing the noise injection via adding noise to the weight matrices before backpropagation presents limited empirical improvements. To address this limitation, we design a two-point estimate of the Hessian penalty, which injects noise into the weight matrices along both positive and negative directions of the random noise. In particular, this two-point estimate eliminates the variance of the first-order Taylor's expansion term on the Hessian. We show a PAC-Bayes generalization bound that depends on the trace of the Hessian (and the radius of the weight space), which can be measured from data. We conduct a detailed experimental study to validate our approach and show that it can effectively regularize the Hessian and improve generalization. First, our algorithm can outperform prior approaches on sharpness-reduced training, delivering up to a 2.4% test accuracy increase for fine-tuning ResNets on six image classification datasets. Moreover, the trace of the Hessian reduces by 15.8%, and the largest eigenvalue is reduced by 9.7% with our approach. We also find that the regularization of the Hessian can be combined with weight decay and data augmentation, leading to stronger regularization. Second, our approach remains effective for improving generalization in pretraining multimodal CLIP models and chain-of-thought fine-tuning.

For agents

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

get_harvested_code_for_paper("2306.08553")
get_code_for_paper("2306.08553")
have("2306.08553")

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

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

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

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

Connect an agent — have() is free.