SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2211.17244 · ICML · 2023

Tight Certification of Adversarially Trained Neural Networks via Nonconvex Low-Rank Semidefinite Relaxations

Richard Zhang, Hong-Ming Chiu

arXiv · PDF · Open in the Atlas

Code that ran

18 of 24 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; 2 honoured the contract we drafted, 0 violated it and 16 have no contract verdict; 0 failures of our instrument; 6 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/2211.17244.json · badge: /api/ran/2211.17244.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
IBM/CROWN-Robustness-Certification canonical (classifier label)
classifier basis not recorded on the link
18 ran · 6 no recorded run
FunctionStatusWhere it lives
ReLU Ran
ran on a synthesized input
IBM/CROWN-Robustness-Certification/get_bounds_ours.py
code served (permissive licence) · get_code("753617a588e4fc41")
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 (4,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from numba import jit

@jit(nopython=True)
def ReLU(vec):
    return np.maximum(vec, 0)

# Create a small numpy array with mixed positive and negative values
vec = np.array([-2.0, -1.0, 0.5, 3.5], dtype=np.float64)

ARGS = {
    "vec": vec
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — 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 (4,) — shape (4,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
extract_data Ran
ran, honoured the contract we drafted
IBM/CROWN-Robustness-Certification/setup_mnist.py
code served (permissive licence) · get_code("86c9fa246614e9a9")
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 4, dtype family float, shape (2, 28, 28, 1) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import gzip
import io

# Create a minimal gzip file containing MNIST-like data
def create_test_gzip_file():
    # MNIST format: 16-byte header + image data
    # Header: magic number (4 bytes) + num images (4 bytes) + rows (4 bytes) + cols (4 bytes)
    header = np.array([2051, 2, 28, 28], dtype='>i4').tobytes()
    
    # Create image data: 2 images of 28x28 pixels
    num_images = 2
    image_data = np.random.randint(0, 256, size=(num_images * 28 * 28), dtype=np.uint8).tobytes()
    
    # Combine header and image data
    full_data = header + image_data
    
    # Compress with gzip and write to BytesIO
    buffer = io.BytesIO()
    with gzip.GzipFile(fileobj=buffer, mode='wb') as gz:
        gz.write(full_data)
    
    buffer.seek(0)
    return buffer

# Create the test gzip file
test_gzip_buffer = create_test_gzip_file()
test_filename = io.BytesIO(test_gzip_buffer.getvalue())

# Monkey-patch gzip.open to return our test file
import gzip as gzip_module
original_open = gzip_module.open

def mock_gzip_open(filename, *args, **kwargs):
    return gzip.GzipFile(fileobj=io.BytesIO(test_gzip_buffer.getvalue()), mode='rb')

gzip_module.open = mock_gzip_open

ARGS = {
    "filename": "test_mnist.gz",
    "num_images": 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 4, dtype family float, shape (2, 28, 28, 1) — shape (2, 28, 28, 1) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
extract_labels Ran
ran, honoured the contract we drafted
IBM/CROWN-Robustness-Certification/setup_mnist.py
code served (permissive licence) · get_code("a0cf6bb81ff7819e")
How it ran

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

import numpy as np
import gzip
import io
import tempfile
import os

# Create a temporary gzip file with mock label data
# MNIST label format: 8-byte magic header + 1 byte per label
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "labels.gz")

num_images = 5
magic_number = np.array([0, 0, 0, 8], dtype=np.uint8)  # MNIST magic number
num_images_bytes = np.array([0, 0, 0, num_images], dtype=np.uint8)
labels_data = np.array([0, 1, 2, 3, 4], dtype=np.uint8)

with gzip.open(temp_file, 'wb') as f:
    f.write(magic_number.tobytes())
    f.write(num_images_bytes.tobytes())
    f.write(labels_data.tobytes())

ARGS = {
    'filename': temp_file,
    'num_images': num_images
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (5, 10) — shape (5, 10) 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_area Ran
ran on a synthesized input
IBM/CROWN-Robustness-Certification/quad_fit.py
code served (permissive licence) · get_code("90f4d0f321d7321a")
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 float, 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 numpy as np

torch.manual_seed(0)

# Analyzing the function:
# - get_area takes 5 parameters: a, b, c, lower, upper
# - It creates a lambda function f that computes a cubic polynomial
# - The lambda uses a, b, c as coefficients and x as the variable
# - It returns f(upper) - f(lower), which is the area under the curve
# - All parameters appear to be numeric scalars

a = 2.0
b = 3.0
c = 1.5
lower = 1.0
upper = 5.0

ARGS = {
    "a": a,
    "b": b,
    "c": c,
    "lower": lower,
    "upper": upper
}
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 float, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_general_bounds Ran
ran on a synthesized input
IBM/CROWN-Robustness-Certification/get_bounds_general.py
code served (permissive licence) · get_code("1a305708776802f1")
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 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from numba import jit

# Define the jitted function (provided)
@jit(nopython=True)
def get_general_bounds(UBs, LBs, neuron_states, bounds_ul, ub_pn, lb_pn, ub_p, lb_p, ub_n, lb_n):
    upper_k = bounds_ul[0]
    upper_b = bounds_ul[1]
    lower_k = bounds_ul[2]
    lower_b = bounds_ul[3]
    idx_p = np.nonzero(neuron_states == 1)[0]
    idx_n = np.nonzero(neuron_states == -1)[0]
    idx_pn = np.nonzero(neuron_states == 0)[0]
    upper_k[idx_pn], upper_b[idx_pn] = ub_pn(UBs[idx_pn], LBs[idx_pn])
    lower_k[idx_pn], lower_b[idx_pn] = lb_pn(UBs[idx_pn], LBs[idx_pn])
    upper_k[idx_p], upper_b[idx_p] = ub_p(UBs[idx_p], LBs[idx_p])
    lower_k[idx_p], lower_b[idx_p] = lb_p(UBs[idx_p], LBs[idx_p])
    upper_k[idx_n], upper_b[idx_n] = ub_n(UBs[idx_n], LBs[idx_n])
    lower_k[idx_n], lower_b[idx_n] = lb_n(UBs[idx_n], LBs[idx_n])
    return (upper_k, upper_b, lower_k, lower_b)

# Define simple bound computation functions that work with numba nopython
@jit(nopython=True)
def ub_pn_func(ub_vals, lb_vals):
    k = np.zeros_like(ub_vals)
    b = np.zeros_like(ub_vals)
    for i in range(len(ub_vals)):
        k[i] = ub_vals[i] / (ub_vals[i] - lb_vals[i] + 1e-8)
        b[i] = -lb_vals[i] * k[i]
    return k, b

@jit(nopython=True)
def lb_pn_func(ub_vals, lb_vals):
    k = np.zeros_like(ub_vals)
    b = np.zeros_like(ub_vals)
    for i in range(len(ub_vals)):
        k[i] = lb_vals[i] / (ub_vals[i] - lb_vals[i] + 1e-8)
        b[i] = -ub_vals[i] * k[i]
    return k, b

@jit(nopython=True)
def ub_p_func(ub_vals, lb_vals):
    k = np.ones_like(ub_vals)
    b = np.zeros_like(ub_vals)
    return k, b

@jit(nopython=True)
def lb_p_func(ub_vals, lb_vals):
    k = np.ones_like(ub_vals)
    b = np.zeros_like(ub_vals)
    return k, b

@jit(nopython=True)
def ub_n_func(ub_vals, lb_vals):
    k = np.zeros_like(ub_vals)
    b = np.zeros_like(ub_vals)
    return k, b

@jit(nopython=True)
def lb_n_func(ub_vals, lb_vals):
    k = np.zeros_like(ub_vals)
    b = np.zeros_like(ub_vals)
    return k, b

# Create test data
num_neurons = 4
UBs = np.array([1.0, 2.0, 3.0, 4.0], dtype=np.float64)
LBs = np.array([0.1, 0.2, 0.3, 0.4], dtype=np.float64)
neuron_states = np.array([1, -1, 0, 1], dtype=np.int32)

upper_k = np.zeros(num_neurons, dtype=np.float64)
upper_b = np.zeros(num_neurons, dtype=np.float64)
lower_k = np.zeros(num_neurons, dtype=np.float64)
lower_b = np.zeros(num_neurons, dtype=np.float64)

bounds_ul = (upper_k, upper_b, lower_k, lower_b)

ARGS = {
    'UBs': UBs,
    'LBs': LBs,
    'neuron_states': neuron_states,
    'bounds_ul': bounds_ul,
    'ub_pn': ub_pn_func,
    'lb_pn': lb_pn_func,
    'ub_p': ub_p_func,
    'lb_p': lb_p_func,
    'ub_n': ub_n_func,
    'lb_n': lb_n_func,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, 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_layer_bound Ran
ran on a synthesized input
IBM/CROWN-Robustness-Certification/get_bounds_ours.py
code served (permissive licence) · get_code("37fee45ec17c90a3")
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 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Define parameters for get_layer_bound function
W_Nk = np.array([
    [0.5, -0.3, 0.2, 0.1],
    [-0.4, 0.6, -0.1, 0.3]
], dtype=np.float64)

b_Nk = np.array([0.1, -0.2], dtype=np.float64)

UB_prev = np.array([1.0, 0.8, 0.9, 0.7], dtype=np.float64)

LB_prev = np.array([-0.5, -0.7, -0.6, -0.8], dtype=np.float64)

x0 = np.array([0.1, 0.2, -0.1, 0.15], dtype=np.float64)

eps = 0.1

is_last = False

p_n = 2

ARGS = {
    "W_Nk": W_Nk,
    "b_Nk": b_Nk,
    "UB_prev": UB_prev,
    "LB_prev": LB_prev,
    "is_last": is_last,
    "x0": x0,
    "eps": eps,
    "p_n": p_n
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, 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_lower_quad_parameterized_lgtu Ran
ran on a synthesized input
IBM/CROWN-Robustness-Certification/quad_fit.py
code served (permissive licence) · get_code("859c42b9a1c7fb44")
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

torch.manual_seed(0)

ARGS = {
    "u": 2.5,
    "l": -1.0,
    "theta": 0.8
}
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
get_upper_quad_parameterized Ran
ran on a synthesized input
IBM/CROWN-Robustness-Certification/quad_fit.py
code served (permissive licence) · get_code("171e3d9dae850e45")
How it ran

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

import torch
import numpy as np
from numba import jit

torch.manual_seed(0)

@jit(nopython=True)
def get_upper_quad_parameterized(u, l, theta):
    a = 1.0 / (u - l) + 1.0 / (u * l) * theta
    b = 1.0 / (u * l) * (l * l * u / (l - u) - (l + u) * theta)
    c = theta
    return (a, b, c)

# u, l, and theta are scalars used in arithmetic operations
# They should be floating point numbers
u_val = 5.0
l_val = 2.0
theta_val = 1.5

ARGS = {
    "u": u_val,
    "l": l_val,
    "theta": theta_val
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, 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 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_weights_list Ran
ran on a synthesized input
IBM/CROWN-Robustness-Certification/get_bounds_ours.py
code served (permissive licence) · get_code("fcf70a46a28d44a2")
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 torch
import torch.nn as nn

torch.manual_seed(0)

class MockLayer(nn.Module):
    def __init__(self, in_features, out_features):
        super().__init__()
        self.weight_param = nn.Parameter(torch.randn(out_features, in_features))
        self.bias_param = nn.Parameter(torch.randn(out_features))
    
    def get_weights(self):
        return [self.weight_param.detach().numpy(), self.bias_param.detach().numpy()]

class MockModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.U = nn.ModuleList([
            MockLayer(4, 5),
            MockLayer(5, 6)
        ])
        self.W = MockLayer(6, 3)
    
    def forward(self, x):
        pass

model = MockModel()

ARGS = {
    'model': model
}
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
l1_dist Ran
ran on a synthesized input
IBM/CROWN-Robustness-Certification/utils.py
code served (permissive licence) · get_code("754f9759bf35afba")
How it ran

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

import numpy as np

# l1_dist takes two array-like objects (x, y) and computes L1 distance
# by flattening them and computing the L1 norm of their difference

x = np.random.randn(2, 4)
y = np.random.randn(2, 4)

ARGS = {
    "x": x,
    "y": y,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
l2_dist Ran
ran on a synthesized input
IBM/CROWN-Robustness-Certification/utils.py
code served (permissive licence) · get_code("c616cfbcc11326f3")
How it ran

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

import numpy as np

# l2_dist takes two parameters: x and y
# Both are used with .flatten() and subtraction, so they should be array-like
# They're passed to np.linalg.norm which expects array-like inputs

x = np.array([[1.0, 2.0, 3.0, 4.0],
              [5.0, 6.0, 7.0, 8.0]])

y = np.array([[1.5, 2.5, 3.5, 4.5],
              [5.5, 6.5, 7.5, 8.5]])

ARGS = {
    "x": x,
    "y": y
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
linf_dist Ran
ran on a synthesized input
IBM/CROWN-Robustness-Certification/utils.py
code served (permissive licence) · get_code("4fc767413887cc02")
How it ran

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

import numpy as np

# The function linf_dist takes two array-like arguments x and y
# and computes the L-infinity norm of their difference after flattening.
# We need to provide numpy arrays (or array-like objects).

x = np.array([[1.0, 2.0, 3.0, 4.0],
              [5.0, 6.0, 7.0, 8.0]])

y = np.array([[1.5, 2.5, 3.5, 4.5],
              [5.5, 6.5, 7.5, 8.5]])

ARGS = {
    "x": x,
    "y": y
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
proj_l1 Ran
ran on a synthesized input
IBM/CROWN-Robustness-Certification/get_bounds_quad.py
code served (permissive licence) · get_code("2dfae576a64727fc")
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 (4,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Create small test inputs
x_real = np.array([1.5, -2.3, 0.8, -1.2], dtype=np.float32)
x0 = np.array([0.1, 0.2, -0.1, 0.05], dtype=np.float32)
q = 0.5

ARGS = {
    "x_real": x_real,
    "x0": x0,
    "q": q,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — 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 (4,) — shape (4,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
proj_l2 Ran
ran on a synthesized input
IBM/CROWN-Robustness-Certification/get_bounds_quad.py
code served (permissive licence) · get_code("dd8e7c5361d6a51b")
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 (4,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from numba import jit

@jit(nopython=True)
def proj_l2(x, x0, eps):
    delta = x - x0
    norm = np.linalg.norm(delta)
    if norm > eps:
        delta /= norm / eps
    return x0 + delta

# Create test arguments
x = np.array([1.0, 2.0, 3.0, 4.0], dtype=np.float64)
x0 = np.array([0.5, 1.5, 2.5, 3.5], dtype=np.float64)
eps = 0.5

ARGS = {
    "x": x,
    "x0": x0,
    "eps": eps
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — 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 (4,) — shape (4,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
proj_li Ran
ran on a synthesized input
IBM/CROWN-Robustness-Certification/get_bounds_quad.py
code served (permissive licence) · get_code("cba73c35959ddc1d")
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 (4,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from numba import jit

@jit(nopython=True)
def proj_li(x, i_lb, i_ub):
    return np.minimum(np.maximum(x, i_lb), i_ub)

# Create small numpy arrays for testing
x = np.array([0.5, 1.5, -0.3, 2.1], dtype=np.float64)
i_lb = np.array(0.0, dtype=np.float64)  # scalar lower bound
i_ub = np.array(1.0, dtype=np.float64)  # scalar upper bound

ARGS = {
    "x": x,
    "i_lb": i_lb,
    "i_ub": i_ub
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — 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 (4,) — shape (4,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
relu_ub_p Ran
ran on a synthesized input
IBM/CROWN-Robustness-Certification/general_fit.py
code served (permissive licence) · get_code("527f8fd2c1c0757b")
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 3, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from numba import jit

@jit(nopython=True)
def relu_ub_p(u, l):
    return (np.ones_like(u), np.zeros_like(u))

# Create small numpy arrays for the function parameters
u = np.array([[1.0, 2.0, 3.0, 4.0],
              [5.0, 6.0, 7.0, 8.0]], dtype=np.float64)

l = np.array([[0.0, 0.5, 1.0, 1.5],
              [2.0, 2.5, 3.0, 3.5]], dtype=np.float64)

ARGS = {
    'u': u,
    'l': l
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 3, 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
relu_ub_pn Ran
ran on a synthesized input
IBM/CROWN-Robustness-Certification/general_fit.py
code served (permissive licence) · get_code("88ac5c47845ee90e")
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 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np
from numba import jit

torch.manual_seed(0)

@jit(nopython=True)
def relu_ub_pn(u, l):
    a = u / (u - l)
    return (a, -l * a)

# The function takes two parameters: u and l
# It performs element-wise operations: division and multiplication
# These should be numeric arrays or scalars that support arithmetic

# Create small numeric arrays for u and l
u = np.array([2.0, 3.0, 4.0, 5.0], dtype=np.float64)
l = np.array([0.5, 1.0, 1.5, 2.0], dtype=np.float64)

ARGS = {
    "u": u,
    "l": l,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, 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 2, 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
spectral_bound Ran
ran on a synthesized input
IBM/CROWN-Robustness-Certification/get_bounds_others.py
code served (permissive licence) · get_code("82879d94252d9441")
How it ran

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

import numpy as np

# Reset global state
import __main__
__main__.norm_prev = 1.0

# Create small test data
num_classes = 5
num_layers = 3
input_dim = 4

# Create weight matrices for each layer
# Layer 0: input_dim -> 6
# Layer 1: 6 -> 7
# Layer 2 (last): 7 -> num_classes
weights = [
    np.random.randn(6, input_dim),      # Layer 0 weights
    np.random.randn(7, 6),               # Layer 1 weights
    np.random.randn(num_classes, 7)     # Layer 2 (output) weights
]

# Create biases for each layer
biases = [
    np.random.randn(6),
    np.random.randn(7),
    np.random.randn(num_classes)
]

# Create predictions (output of network for current input)
predictions = np.array([0.1, 0.8, 0.05, 0.03, 0.02])

# Set up test case: predicted class is 1, target class is 0
pred_label = 1
target_label = 0
x0 = np.random.randn(input_dim)

ARGS = {
    'weights': weights,
    'biases': biases,
    'pred_label': pred_label,
    'target_label': target_label,
    'x0': x0,
    'predictions': predictions,
    'numlayer': num_layers,
    'p': 'i',
    'untargeted': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
__main__, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_layer_bound_LP Not yet run
unverified (harvested, no recorded run)
IBM/CROWN-Robustness-Certification/get_bounds_others.py
code served (permissive licence) · get_code("1271444c865b37e8")
How it ran

no invocation recorded.

get_relu_bounds Not yet run
unverified (harvested, no recorded run)
IBM/CROWN-Robustness-Certification/get_bounds_general.py
code served (permissive licence) · get_code("8ab40dd0da5f2fa6")
How it ran

no invocation recorded.

get_tanh_bounds Not yet run
unverified (harvested, no recorded run)
IBM/CROWN-Robustness-Certification/get_bounds_general.py
code served (permissive licence) · get_code("465f67a6527e6e6d")
How it ran

no invocation recorded.

load_batch Not yet run
unverified (harvested, no recorded run)
IBM/CROWN-Robustness-Certification/setup_cifar.py
code served (permissive licence) · get_code("ab7faf0047f2c872")
How it ran

no invocation recorded.

load_batch Not yet run
unverified (harvested, no recorded run)
IBM/CROWN-Robustness-Certification/setup_cifar.py
code served (permissive licence) · get_code("3b4fb87c66244ebf")
How it ran

no invocation recorded.

relu_lb_pn Not yet run
unverified (harvested, no recorded run)
IBM/CROWN-Robustness-Certification/general_fit.py
code served (permissive licence) · get_code("52125b4504b9b441")
How it ran

no invocation recorded.

Also present in other papers' code

Of 24 samples lifted from this paper's linked repositories, 24 carry a function identity and 0 do not. Of the 24 distinct functions with an identity, 20 are also present in other papers whose code we hold (20 with at least one paper dated earlier, 0 the same month, 0 later) and 4 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
extract_data 8 other papers
7 dated earlier, 1 same year, order not determinable
1802.07623 (2018-02)
Explanations based on the Missing: Towards Contrastive Explanations with Pertinent Negatives
1805.10367 (2018-05)
Zeroth-Order Stochastic Variance Reduction for Nonconvex Optimization
1805.11090 (2018-05)
GenAttack: Practical Black-box Attacks with Gradient-Free Optimization
and 5 more not named here
extract_labels 8 other papers
7 dated earlier, 1 same year, order not determinable
1802.07623 (2018-02)
Explanations based on the Missing: Towards Contrastive Explanations with Pertinent Negatives
1805.10367 (2018-05)
Zeroth-Order Stochastic Variance Reduction for Nonconvex Optimization
1805.11090 (2018-05)
GenAttack: Practical Black-box Attacks with Gradient-Free Optimization
and 5 more not named here
load_batch 5 other papers
5 dated earlier
1805.11090 (2018-05)
GenAttack: Practical Black-box Attacks with Gradient-Free Optimization
1805.11770 (2018-05)
AutoZOOM: Autoencoder-based Zeroth Order Optimization Method for Attacking Black-box Neural Networks
1811.00866 (2018-11)
Efficient Neural Network Robustness Certification with General Activation Functions
and 2 more not named here
load_batch 4 other papers
4 dated earlier
1805.11090 (2018-05)
GenAttack: Practical Black-box Attacks with Gradient-Free Optimization
1805.11770 (2018-05)
AutoZOOM: Autoencoder-based Zeroth Order Optimization Method for Attacking Black-box Neural Networks
1811.00866 (2018-11)
Efficient Neural Network Robustness Certification with General Activation Functions
and 1 more not named here
ReLU 1 other paper
1 dated earlier
1811.00866 (2018-11)
Efficient Neural Network Robustness Certification with General Activation Functions
get_area 1 other paper
1 dated earlier
1811.00866 (2018-11)
Efficient Neural Network Robustness Certification with General Activation Functions
get_layer_bound 1 other paper
1 dated earlier
1811.00866 (2018-11)
Efficient Neural Network Robustness Certification with General Activation Functions
get_lower_quad_parameterized_lgtu 1 other paper
1 dated earlier
1811.00866 (2018-11)
Efficient Neural Network Robustness Certification with General Activation Functions
get_relu_bounds 1 other paper
1 dated earlier
1811.00866 (2018-11)
Efficient Neural Network Robustness Certification with General Activation Functions
get_upper_quad_parameterized 1 other paper
1 dated earlier
1811.00866 (2018-11)
Efficient Neural Network Robustness Certification with General Activation Functions
get_weights_list 1 other paper
1 dated earlier
1811.00866 (2018-11)
Efficient Neural Network Robustness Certification with General Activation Functions
l1_dist 1 other paper
1 dated earlier
1811.00866 (2018-11)
Efficient Neural Network Robustness Certification with General Activation Functions
l2_dist 1 other paper
1 dated earlier
1811.00866 (2018-11)
Efficient Neural Network Robustness Certification with General Activation Functions
linf_dist 1 other paper
1 dated earlier
1811.00866 (2018-11)
Efficient Neural Network Robustness Certification with General Activation Functions
proj_l1 1 other paper
1 dated earlier
1811.00866 (2018-11)
Efficient Neural Network Robustness Certification with General Activation Functions
proj_l2 1 other paper
1 dated earlier
1811.00866 (2018-11)
Efficient Neural Network Robustness Certification with General Activation Functions
proj_li 1 other paper
1 dated earlier
1811.00866 (2018-11)
Efficient Neural Network Robustness Certification with General Activation Functions
relu_lb_pn 1 other paper
1 dated earlier
1811.00866 (2018-11)
Efficient Neural Network Robustness Certification with General Activation Functions
relu_ub_pn 1 other paper
1 dated earlier
1811.00866 (2018-11)
Efficient Neural Network Robustness Certification with General Activation Functions
spectral_bound 1 other paper
1 dated earlier
1811.00866 (2018-11)
Efficient Neural Network Robustness Certification with General Activation Functions

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

Adversarial training is well-known to produce high-quality neural network models that are empirically robust against adversarial perturbations. Nevertheless, once a model has been adversarially trained, one often desires a certification that the model is truly robust against all future attacks. Unfortunately, when faced with adversarially trained models, all existing approaches have significant trouble making certifications that are strong enough to be practically useful. Linear programming (LP) techniques in particular face a "convex relaxation barrier" that prevent them from making high-quality certifications, even after refinement with mixed-integer linear programming (MILP) and branch-and-bound (BnB) techniques. In this paper, we propose a nonconvex certification technique, based on a lowrank restriction of a semidefinite programming (SDP) relaxation. The nonconvex relaxation makes strong certifications comparable to much more expensive SDP methods, while optimizing over dramatically fewer variables comparable to much weaker LP methods. Despite nonconvexity, we show how off-the-shelf local optimization algorithms can be used to achieve and to certify global optimality in polynomial time. Our experiments find that the nonconvex relaxation almost completely closes the gap towards exact certification of adversarially trained models.

For agents

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

get_harvested_code_for_paper("2211.17244")
get_code_for_paper("2211.17244")
have("2211.17244")

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

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

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

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

Connect an agent — have() is free.