SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1804.10829 · 2018

Formal Security Analysis of Neural Networks using Symbolic Intervals

arXiv · PDF · Open in the Atlas

Code that ran

6 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 6 have no contract verdict; 0 failures of our instrument; 9 no recorded run), measured 2026-11-24; 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/1804.10829.json · badge: /api/ran/1804.10829.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
pauls658/ReluDiff-ICSE2020-Artifact community (classifier label)
classifier basis not recorded on the link
5 ran · 8 no recorded run
rm2pt/veriprune community (classifier label)
classifier basis not recorded on the link
1 ran · 1 no recorded run
FunctionStatusWhere it lives
extract_mean Ran
ran on a synthesized input
pauls658/ReluDiff-ICSE2020-Artifact/eran/tf_verify/read_net_file.py
code served (permissive licence) · get_code("822ae5b5b52798e2")
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 (3,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import re

def extract_mean(text):
    mean = ''
    m = re.search('mean=\\[(.+?)\\]', text)
    if m:
        means = m.group(1)
    mean_str = means.split(',')
    num_means = len(mean_str)
    mean_array = np.zeros(num_means)
    for i in range(num_means):
        mean_array[i] = np.float64(mean_str[i])
    return mean_array

# Create valid test input
text_with_mean = "some config mean=[0.485, 0.456, 0.406] and other stuff"

ARGS = {
    "text": text_with_mean
}
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 1, dtype family float, shape (3,) — shape (3,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
nodePrune_nnet Ran
ran on a synthesized input
rm2pt/veriprune/DiffNN-Code/python/prune_nnet.py
code served (permissive licence) · get_code("411b3e36989e2fcf")
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 numpy as np

# Create a simple neural network dictionary structure
# The function prunes nodes from a 3-layer network
# layerSizes: [input_size, hidden_size, output_size]
# weights: list of weight matrices between layers
# biases: list of bias vectors for each layer

input_size = 4
hidden_size = 5
output_size = 3

nnet = {
    'layerSizes': [input_size, hidden_size, output_size],
    'weights': [
        # weights[0]: from input to hidden (hidden_size x input_size)
        [[0.1 * (i + j) for j in range(input_size)] for i in range(hidden_size)],
        # weights[1]: from hidden to output (output_size x hidden_size)
        [[0.2 * (i + j) for j in range(hidden_size)] for i in range(output_size)]
    ],
    'biases': [
        # biases[0]: for hidden layer (hidden_size,)
        [0.01 * i for i in range(hidden_size)],
        # biases[1]: for output layer (output_size,)
        [0.02 * i for i in range(output_size)]
    ]
}

ARGS = {
    'nnet': nnet
}
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 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
product Ran
ran on a synthesized input
pauls658/ReluDiff-ICSE2020-Artifact/eran/tf_verify/read_net_file.py
code served (permissive licence) · get_code("96cf9fddb9aeb8a0")
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

# The function product(it) iterates over elements in `it` and multiplies them together
# It expects an iterable of numbers

# Create a simple iterable of integers
it = [2, 3, 4, 5]

ARGS = {
    "it": it
}
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
read_csv_file Ran
ran on a synthesized input
pauls658/ReluDiff-ICSE2020-Artifact/DiffNN-Code/python/make_mnist_properties.py
code served (permissive licence) · get_code("0b0a40d002bbc34f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. 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 tempfile
import os

# Create a temporary CSV file for testing
temp_dir = tempfile.mkdtemp()
temp_file = os.path.join(temp_dir, "test.csv")

# Write sample CSV data
with open(temp_file, 'w') as f:
    f.write("name,age,city\n")
    f.write("Alice,30,New York\n")
    f.write("Bob,25,Los Angeles\n")

ARGS = {
    "fileName": temp_file
}
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 list, ndim 2, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
round_nnet_16bit Ran
ran on a synthesized input
pauls658/ReluDiff-ICSE2020-Artifact/DiffNN-Code/python/round_nnet.py
code served (permissive licence) · get_code("c4e78fa7b2f1d238")
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 numpy as np

nnet = {
    'weights': [
        [[1.5, 2.3, 3.7], [4.2, 5.1, 6.9]],
        [[0.5, 1.2], [2.3, 3.4], [4.5, 5.6]],
    ],
    'biases': [
        [0.1, 0.2, 0.3],
        [0.4, 0.5],
    ]
}

ARGS = {
    'nnet': nnet
}
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 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
subtract_nnets Ran
ran on a synthesized input
pauls658/ReluDiff-ICSE2020-Artifact/DiffNN-Code/python/subtract_nnets.py
code served (permissive licence) · get_code("d2fabb9a6d5f04f0")
How it ran

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

import torch
import numpy as np

torch.manual_seed(0)

# Create two neural network dictionaries with matching structures
# The function expects networks to have weights and biases as lists of lists/arrays

nnet1 = {
    'numLayers': 3,
    'inputSize': 4,
    'outputSize': 2,
    'maxLayerSize': 8,
    'layerSizes': [4, 8, 2],
    'isSymmetric': False,
    'minVals': [0.0, 0.0, 0.0, 0.0],
    'maxVals': [1.0, 1.0, 1.0, 1.0],
    'means': [0.5, 0.5, 0.5, 0.5],
    'ranges': [1.0, 1.0, 1.0, 1.0],
    'weights': [
        # First layer: 4 input -> 8 hidden
        [[0.1, 0.2, 0.3, 0.4],
         [0.2, 0.3, 0.4, 0.5],
         [0.3, 0.4, 0.5, 0.6],
         [0.4, 0.5, 0.6, 0.7],
         [0.5, 0.6, 0.7, 0.8],
         [0.6, 0.7, 0.8, 0.9],
         [0.7, 0.8, 0.9, 1.0],
         [0.8, 0.9, 1.0, 1.1]],
        # Second layer: 8 hidden -> 2 output
        [[0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8],
         [0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9]]
    ],
    'biases': [
        # First layer biases (8 units)
        [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8],
        # Second layer biases (2 units)
        [0.5, 0.6]
    ]
}

nnet2 = {
    'numLayers': 3,
    'inputSize': 4,
    'outputSize': 2,
    'maxLayerSize': 8,
    'layerSizes': [4, 8, 2],
    'isSymmetric': False,
    'minVals': [0.0, 0.0, 0.0, 0.0],
    'maxVals': [1.0, 1.0, 1.0, 1.0],
    'means': [0.5, 0.5, 0.5, 0.5],
    'ranges': [1.0, 1.0, 1.0, 1.0],
    'weights': [
        # First layer: 4 input -> 8 hidden
        [[0.05, 0.1, 0.15, 0.2],
         [0.1, 0.15, 0.2, 0.25],
         [0.15, 0.2, 0.25, 0.3],
         [0.2, 0.25, 0.3, 0.35],
         [0.25, 0.3, 0.35, 0.4],
         [0.3, 0.35, 0.4, 0.45],
         [0.35, 0.4, 0.45, 0.5],
         [0.4, 0.45, 0.5, 0.55]],
        # Second layer: 8 hidden -> 2 output
        [[0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4],
         [0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45]]
    ],
    'biases': [
        # First layer biases (8 units)
        [0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4],
        # Second layer biases (2 units)
        [0.25, 0.35]
    ]
}

ARGS = {
    'nnet1': nnet1,
    'nnet2': nnet2,
    'noAffineMode': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
eran_affine Not yet run
unverified (harvested, no recorded run)
pauls658/ReluDiff-ICSE2020-Artifact/eran/tf_verify/eranlayers.py
code served (permissive licence) · get_code("ef0baf6862000da8")
How it ran

no invocation recorded.

eran_conv2d_without_activation Not yet run
unverified (harvested, no recorded run)
pauls658/ReluDiff-ICSE2020-Artifact/eran/tf_verify/eranlayers.py
code served (permissive licence) · get_code("0b4762e13a8c346d")
How it ran

no invocation recorded.

getEps2 Not yet run
unverified (harvested, no recorded run)
pauls658/ReluDiff-ICSE2020-Artifact/eran/tf_verify/diff_analysis_artifact.py
code served (permissive licence) · get_code("ba593c787e773e89")
How it ran

no invocation recorded.

nodePrune_nnet Not yet run
unverified (harvested, no recorded run)
rm2pt/veriprune/DiffNN-Code/python/prune_scale_nnet.py
code served (permissive licence) · get_code("efcc5bf84e113a01")
How it ran

no invocation recorded.

readNNet Not yet run
unverified (harvested, no recorded run)
pauls658/ReluDiff-ICSE2020-Artifact/eran/NNet/utils/readNNet.py
code served (permissive licence) · get_code("d8c6bb8a9ac1500c")
How it ran

no invocation recorded.

read_csv_file Not yet run
unverified (harvested, no recorded run)
pauls658/ReluDiff-ICSE2020-Artifact/DiffNN-Code/python/make_HAR_properties.py
code served (permissive licence) · get_code("1c51a497f30584f0")
How it ran

no invocation recorded.

read_network Not yet run
unverified (harvested, no recorded run)
pauls658/ReluDiff-ICSE2020-Artifact/DiffNN-Code/python/common.py
code served (permissive licence) · get_code("ab8fc8f6b5ce1d25")
How it ran

no invocation recorded.

runRepl Not yet run
unverified (harvested, no recorded run)
pauls658/ReluDiff-ICSE2020-Artifact/eran/tf_verify/read_net_file.py
code served (permissive licence) · get_code("144602513b4d55e3")
How it ran

no invocation recorded.

tensorshape_to_intlist Not yet run
unverified (harvested, no recorded run)
pauls658/ReluDiff-ICSE2020-Artifact/eran/tf_verify/eranlayers.py
code served (permissive licence) · get_code("8966ad509beb7504")
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, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 14 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
runRepl 1 other paper
1 later
2109.00542 (2021-09)
Shared Certificates for Neural Network Verification

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

Repositories linked to this paper

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

Abstract

Due to the increasing deployment of Deep Neural Networks (DNNs) in real-world security-critical domains including autonomous vehicles and collision avoidance systems, formally checking security properties of DNNs, especially under different attacker capabilities, is becoming crucial. Most existing security testing techniques for DNNs try to find adversarial examples without providing any formal security guarantees about the non-existence of such adversarial examples. Recently, several projects have used different types of Satisfiability Modulo Theory (SMT) solvers to formally check security properties of DNNs. However, all of these approaches are limited by the high overhead caused by the solver. In this paper, we present a new direction for formally checking security properties of DNNs without using SMT solvers. Instead, we leverage interval arithmetic to compute rigorous bounds on the DNN outputs. Our approach, unlike existing solver-based approaches, is easily parallelizable. We further present symbolic interval analysis along with several other optimizations to minimize overestimations of output bounds. We design, implement, and evaluate our approach as part of ReluVal, a system for formally checking security properties of Relu-based DNNs. Our extensive empirical results show that ReluVal outperforms Reluplex, a state-of-the-art solver-based system, by 200 times on average. On a single 8-core machine without GPUs, within 4 hours, ReluVal is able to verify a security property that Reluplex deemed inconclusive due to timeout after running for more than 5 days. Our experiments demonstrate that symbolic interval analysis is a promising new direction towards rigorously analyzing different security properties of DNNs.

For agents

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

get_harvested_code_for_paper("1804.10829")
get_code_for_paper("1804.10829")
have("1804.10829")

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

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

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

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

Connect an agent — have() is free.