SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1711.00449 · 2017

Attacking Binarized Neural Networks

arXiv · PDF · Open in the Atlas

Code that ran

5 of 19 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 3 have no contract verdict; 0 failures of our instrument; 14 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/1711.00449.json · badge: /api/ran/1711.00449.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
AngusG/cleverhans-attacking-bnns canonical (classifier label)
classifier basis: census
5 ran · 14 no recorded run
FunctionStatusWhere it lives
batch_indices Ran
ran, honoured the contract we drafted
AngusG/cleverhans-attacking-bnns/cleverhans/utils.py
pointer only (licence: MIT) · get_code("96b581b6ac010981")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, AngusG/cleverhans-attacking-bnns, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

hard_sigmoid Ran
ran on a synthesized input
AngusG/cleverhans-attacking-bnns/cleverhans_tutorials/tutorial_models.py
pointer only (licence: MIT); the stored copy get_code serves, from sancharisen/EMPIR, is pointer only (licence: MIT) · get_code("33ce7291d7174c33")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, AngusG/cleverhans-attacking-bnns, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

model_loss Ran
ran on a synthesized input
AngusG/cleverhans-attacking-bnns/cleverhans/utils_tf.py
pointer only (licence: MIT); the stored copy get_code serves, from sancharisen/EMPIR, is pointer only (licence: MIT) · get_code("24e8cacf2e978687")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, AngusG/cleverhans-attacking-bnns, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

other_classes Ran
ran, honoured the contract we drafted
AngusG/cleverhans-attacking-bnns/cleverhans/utils.py
pointer only (licence: MIT) · get_code("563a92a1c7232061")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, AngusG/cleverhans-attacking-bnns, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

to_categorical Ran
ran on a synthesized input
AngusG/cleverhans-attacking-bnns/cleverhans/utils.py
pointer only (licence: MIT); the stored copy get_code serves, from sancharisen/EMPIR, is pointer only (licence: MIT) · get_code("436b1ff1875d0cc7")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, AngusG/cleverhans-attacking-bnns, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

batch_norm_relu Not yet run
unverified (harvested, no recorded run)
AngusG/cleverhans-attacking-bnns/cleverhans_tutorials/resnet_model.py
pointer only (licence: MIT); the stored copy get_code serves, from MichaelWangfc/distributed-tensorflow-resnet, is pointer only (licence: NONE) · get_code("9a841e39a73659c0")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from MichaelWangfc/distributed-tensorflow-resnet, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

cnn_model Not yet run
unverified (harvested, no recorded run)
AngusG/cleverhans-attacking-bnns/cleverhans/utils_keras.py
pointer only (licence: MIT); the stored copy get_code serves, from sancharisen/EMPIR, is pointer only (licence: MIT) · get_code("69dbec087f603dc2")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, AngusG/cleverhans-attacking-bnns, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

conv_2d Not yet run
unverified (harvested, no recorded run)
AngusG/cleverhans-attacking-bnns/cleverhans/utils_keras.py
pointer only (licence: MIT); the stored copy get_code serves, from sancharisen/EMPIR, is pointer only (licence: MIT) · get_code("4e8d1df070cb5f83")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, AngusG/cleverhans-attacking-bnns, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

data_mnist Not yet run
unverified (harvested, no recorded run)
AngusG/cleverhans-attacking-bnns/cleverhans/utils_mnist.py
pointer only (licence: MIT); the stored copy get_code serves, from sancharisen/EMPIR, is pointer only (licence: MIT) · get_code("5f6a796fa47c9ff8")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, AngusG/cleverhans-attacking-bnns, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

fgm Not yet run
unverified (harvested, no recorded run)
AngusG/cleverhans-attacking-bnns/cleverhans/attacks_tf.py
pointer only (licence: MIT); the stored copy get_code serves, from sancharisen/EMPIR, is pointer only (licence: MIT) · get_code("46c4fbb3b28111b4")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, AngusG/cleverhans-attacking-bnns, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

fgsm Not yet run
unverified (harvested, no recorded run)
AngusG/cleverhans-attacking-bnns/cleverhans/attacks.py
pointer only (licence: MIT); the stored copy get_code serves, from sancharisen/EMPIR, is pointer only (licence: MIT) · get_code("669a4a70d107c4a4")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, AngusG/cleverhans-attacking-bnns, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

fgsm Not yet run
unverified (harvested, no recorded run)
AngusG/cleverhans-attacking-bnns/cleverhans/attacks_tf.py
pointer only (licence: MIT); the stored copy get_code serves, from sancharisen/EMPIR, is pointer only (licence: MIT) · get_code("ab300465511282c2")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, AngusG/cleverhans-attacking-bnns, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

jsma Not yet run
unverified (harvested, no recorded run)
AngusG/cleverhans-attacking-bnns/cleverhans/attacks.py
pointer only (licence: MIT); the stored copy get_code serves, from sancharisen/EMPIR, is pointer only (licence: MIT) · get_code("48e3be63336a0ac5")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, AngusG/cleverhans-attacking-bnns, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

normalized_sign_changes_op Not yet run
unverified (harvested, no recorded run)
AngusG/cleverhans-attacking-bnns/cleverhans/utils_tf.py
pointer only (licence: MIT); the stored copy get_code serves, from sancharisen/EMPIR, is pointer only (licence: MIT) · get_code("457d5efa3991f205")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, AngusG/cleverhans-attacking-bnns, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

quantize Not yet run
unverified (harvested, no recorded run)
AngusG/cleverhans-attacking-bnns/cleverhans_tutorials/resnet_model.py
pointer only (licence: MIT) · get_code("fb9a05da9fb0eb6e")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, AngusG/cleverhans-attacking-bnns, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

quantize_grad Not yet run
unverified (harvested, no recorded run)
AngusG/cleverhans-attacking-bnns/cleverhans_tutorials/resnet_model.py
pointer only (licence: MIT); the stored copy get_code serves, from sancharisen/EMPIR, is pointer only (licence: MIT) · get_code("88e4e6b729fd7669")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, AngusG/cleverhans-attacking-bnns, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

sign_changes_count_op Not yet run
unverified (harvested, no recorded run)
AngusG/cleverhans-attacking-bnns/cleverhans/utils_tf.py
pointer only (licence: MIT); the stored copy get_code serves, from sancharisen/EMPIR, is pointer only (licence: MIT) · get_code("45a3aac96deaa69d")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, AngusG/cleverhans-attacking-bnns, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

vatm Not yet run
unverified (harvested, no recorded run)
AngusG/cleverhans-attacking-bnns/cleverhans/attacks.py
pointer only (licence: MIT); the stored copy get_code serves, from sancharisen/EMPIR, is pointer only (licence: MIT) · get_code("265a717d9cb4752d")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, AngusG/cleverhans-attacking-bnns, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

vatm Not yet run
unverified (harvested, no recorded run)
AngusG/cleverhans-attacking-bnns/cleverhans/attacks_tf.py
pointer only (licence: MIT); the stored copy get_code serves, from sancharisen/EMPIR, is pointer only (licence: MIT) · get_code("1d76eb5891f63a2f")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, AngusG/cleverhans-attacking-bnns, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 19 samples lifted from this paper's linked repositories, 19 carry a function identity and 0 do not. Of the 19 distinct functions with an identity, 18 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 17 later) and 1 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
batch_indices 4 other papers
1 dated earlier, 3 later
1610.00768 (2016-10)
Technical Report on the CleverHans v2.1.0 Adversarial Examples Library
2004.10162 (2020-04)
EMPIR: Ensembles of Mixed Precision Deep Networks for Increased Robustness against Adversarial Attacks
2006.16375 (2020-06)
Improving Calibration through the Relationship with Adversarial Robustness
and 1 more not named here
other_classes 4 other papers
1 dated earlier, 3 later
1610.00768 (2016-10)
Technical Report on the CleverHans v2.1.0 Adversarial Examples Library
2004.10162 (2020-04)
EMPIR: Ensembles of Mixed Precision Deep Networks for Increased Robustness against Adversarial Attacks
2006.16375 (2020-06)
Improving Calibration through the Relationship with Adversarial Robustness
and 1 more not named here
cnn_model 2 other papers
1 dated earlier, 1 later
1610.00768 (2016-10)
Technical Report on the CleverHans v2.1.0 Adversarial Examples Library
2004.10162 (2020-04)
EMPIR: Ensembles of Mixed Precision Deep Networks for Increased Robustness against Adversarial Attacks
conv_2d 2 other papers
1 dated earlier, 1 later
1610.00768 (2016-10)
Technical Report on the CleverHans v2.1.0 Adversarial Examples Library
2004.10162 (2020-04)
EMPIR: Ensembles of Mixed Precision Deep Networks for Increased Robustness against Adversarial Attacks
batch_norm_relu 1 other paper
1 dated earlier
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
data_mnist 1 other paper
1 later
2004.10162 (2020-04)
EMPIR: Ensembles of Mixed Precision Deep Networks for Increased Robustness against Adversarial Attacks
fgm 1 other paper
1 later
2004.10162 (2020-04)
EMPIR: Ensembles of Mixed Precision Deep Networks for Increased Robustness against Adversarial Attacks
fgsm 1 other paper
1 later
2004.10162 (2020-04)
EMPIR: Ensembles of Mixed Precision Deep Networks for Increased Robustness against Adversarial Attacks
fgsm 1 other paper
1 later
2004.10162 (2020-04)
EMPIR: Ensembles of Mixed Precision Deep Networks for Increased Robustness against Adversarial Attacks
hard_sigmoid 1 other paper
1 later
2004.10162 (2020-04)
EMPIR: Ensembles of Mixed Precision Deep Networks for Increased Robustness against Adversarial Attacks
jsma 1 other paper
1 later
2004.10162 (2020-04)
EMPIR: Ensembles of Mixed Precision Deep Networks for Increased Robustness against Adversarial Attacks
model_loss 1 other paper
1 later
2004.10162 (2020-04)
EMPIR: Ensembles of Mixed Precision Deep Networks for Increased Robustness against Adversarial Attacks
normalized_sign_changes_op 1 other paper
1 later
2004.10162 (2020-04)
EMPIR: Ensembles of Mixed Precision Deep Networks for Increased Robustness against Adversarial Attacks
quantize_grad 1 other paper
1 later
2004.10162 (2020-04)
EMPIR: Ensembles of Mixed Precision Deep Networks for Increased Robustness against Adversarial Attacks
sign_changes_count_op 1 other paper
1 later
2004.10162 (2020-04)
EMPIR: Ensembles of Mixed Precision Deep Networks for Increased Robustness against Adversarial Attacks
to_categorical 1 other paper
1 later
2004.10162 (2020-04)
EMPIR: Ensembles of Mixed Precision Deep Networks for Increased Robustness against Adversarial Attacks
vatm 1 other paper
1 later
2004.10162 (2020-04)
EMPIR: Ensembles of Mixed Precision Deep Networks for Increased Robustness against Adversarial Attacks
vatm 1 other paper
1 later
2004.10162 (2020-04)
EMPIR: Ensembles of Mixed Precision Deep Networks for Increased Robustness against Adversarial Attacks

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

Neural networks with low-precision weights and activations offer compelling efficiency advantages over their full-precision equivalents. The two most frequently discussed benefits of quantization are reduced memory consumption, and a faster forward pass when implemented with efficient bitwise operations. We propose a third benefit of very low-precision neural networks: improved robustness against some adversarial attacks, and in the worst case, performance that is on par with full-precision models. We focus on the very low-precision case where weights and activations are both quantized to $\pm$1, and note that stochastically quantizing weights in just one layer can sharply reduce the impact of iterative attacks. We observe that non-scaled binary neural networks exhibit a similar effect to the original defensive distillation procedure that led to gradient masking, and a false notion of security. We address this by conducting both black-box and white-box experiments with binary models that do not artificially mask gradients.

For agents

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

get_harvested_code_for_paper("1711.00449")
get_code_for_paper("1711.00449")
have("1711.00449")

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

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

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

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

Connect an agent — have() is free.