Papers › Attacking Binarized Neural Networks

Attacking Binarized Neural Networks

1 Nov 2017ICLR 2018 1arXiv:1711.00449archive 2025-07-28

Angus Galloway, Graham W. Taylor, Medhat Moussa

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

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1711.00449")

Code

Syntology Ran 2 of 19 code samples harvested from 1 repository linked to this paper; 17 have no recorded run. Of those that ran: 2 ran with no contract checked.

By repository: official repository: 19 samples from 1 repository, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

AngusG/cleverhans-attacking-bnns officialmentioned in papertfMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

19 samples harvested; 2 ran; 0 honoured the contract we drafted; 17 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran
17unverified

Licence: 18 of the 19 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from AngusG/cleverhans-attacking-bnns. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

batch_indices AngusG/cleverhans-attacking-bnns/cleverhans/utils.py official repository ran MIT recorded; this copy not marked cleared · pointer only · 96b581b6ac010981 · report
other_classes AngusG/cleverhans-attacking-bnns/cleverhans/utils.py official repository ran fingerprinted MIT recorded; this copy not marked cleared · pointer only · 563a92a1c7232061 · report
batch_norm_relu AngusG/cleverhans-attacking-bnns/cleverhans_tutorials/resnet_model.py official repository unverified MIT (permissive) · 9a841e39a73659c0 · report
cnn_model AngusG/cleverhans-attacking-bnns/cleverhans/utils_keras.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 69dbec087f603dc2 · report
conv_2d AngusG/cleverhans-attacking-bnns/cleverhans/utils_keras.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 4e8d1df070cb5f83 · report
data_mnist AngusG/cleverhans-attacking-bnns/cleverhans/utils_mnist.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 5f6a796fa47c9ff8 · report
fgm AngusG/cleverhans-attacking-bnns/cleverhans/attacks_tf.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 46c4fbb3b28111b4 · report
fgsm AngusG/cleverhans-attacking-bnns/cleverhans/attacks.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 669a4a70d107c4a4 · report
fgsm AngusG/cleverhans-attacking-bnns/cleverhans/attacks_tf.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · ab300465511282c2 · report
hard_sigmoid AngusG/cleverhans-attacking-bnns/cleverhans_tutorials/tutorial_models.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 33ce7291d7174c33 · report
jsma AngusG/cleverhans-attacking-bnns/cleverhans/attacks.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 48e3be63336a0ac5 · report
model_loss AngusG/cleverhans-attacking-bnns/cleverhans/utils_tf.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 24e8cacf2e978687 · report
normalized_sign_changes_op AngusG/cleverhans-attacking-bnns/cleverhans/utils_tf.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 457d5efa3991f205 · report
quantize AngusG/cleverhans-attacking-bnns/cleverhans_tutorials/resnet_model.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · fb9a05da9fb0eb6e · report
quantize_grad AngusG/cleverhans-attacking-bnns/cleverhans_tutorials/resnet_model.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 88e4e6b729fd7669 · report
sign_changes_count_op AngusG/cleverhans-attacking-bnns/cleverhans/utils_tf.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 45a3aac96deaa69d · report
to_categorical AngusG/cleverhans-attacking-bnns/cleverhans/utils.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 436b1ff1875d0cc7 · report
vatm AngusG/cleverhans-attacking-bnns/cleverhans/attacks.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 265a717d9cb4752d · report
vatm AngusG/cleverhans-attacking-bnns/cleverhans/attacks_tf.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 1d76eb5891f63a2f · report

Tasks

Quantization

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections