Papers › Logit Pairing Methods Can Fool Gradient-Based Attacks

Logit Pairing Methods Can Fool Gradient-Based Attacks

29 Oct 2018arXiv:1810.12042archive 2025-07-28

Marius Mosbach, Maksym Andriushchenko, Thomas Trost, Matthias Hein, Dietrich Klakow

Recently, Kannan et al. [2018] proposed several logit regularization methods to improve the adversarial robustness of classifiers. We show that the computationally fast methods they propose - Clean Logit Pairing (CLP) and Logit Squeezing (LSQ) - just make the gradient-based optimization problem of crafting adversarial examples harder without providing actual robustness. We find that Adversarial Logit Pairing (ALP) may indeed provide robustness against adversarial examples, especially when combined with adversarial training, and we examine it in a variety of settings. However, the increase in adversarial accuracy is much smaller than previously claimed. Finally, our results suggest that the evaluation against an iterative PGD attack relies heavily on the parameters used and may result in false conclusions regarding robustness of a model.

PaperPDFCodeCode 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="1810.12042")

Code

Syntology Ran 0 of 24 code samples harvested from 1 repository linked to this paper; 24 have no recorded run.

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

uds-lsv/evaluating-logit-pairing-methods officialmentioned in papermentioned on GitHubtfApache-2.0 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

24 samples harvested; 0 ran; 0 honoured the contract we drafted; 24 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.

24unverified

Licence: 0 of the 24 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 uds-lsv/evaluating-logit-pairing-methods. “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.

adversarial_eval uds-lsv/evaluating-logit-pairing-methods/mnist_cifar10/train_utils.py official repository unverified Apache-2.0 (permissive) · 8d88c7458d12a344 · report
clean_eval uds-lsv/evaluating-logit-pairing-methods/mnist_cifar10/train_utils.py official repository unverified Apache-2.0 (permissive) · 3f622aea1ef8a1a4 · report
create_biases uds-lsv/evaluating-logit-pairing-methods/mnist_cifar10/models.py official repository unverified Apache-2.0 (permissive) · 3da530e14d48c054 · report
create_conv2d_weights uds-lsv/evaluating-logit-pairing-methods/mnist_cifar10/models.py official repository unverified Apache-2.0 (permissive) · 490fa4d25461b72a · report
create_weights uds-lsv/evaluating-logit-pairing-methods/mnist_cifar10/models.py official repository unverified Apache-2.0 (permissive) · 691983021599f82f · report
generate_pgd_common uds-lsv/evaluating-logit-pairing-methods/tiny_imagenet/adversarial_attack.py official repository unverified Apache-2.0 (permissive) · 30f41eaf0970534e · report
generate_pgd_ll uds-lsv/evaluating-logit-pairing-methods/tiny_imagenet/adversarial_attack.py official repository unverified Apache-2.0 (permissive) · 2419474f5f44dcb2 · report
generate_pgd_rand uds-lsv/evaluating-logit-pairing-methods/tiny_imagenet/adversarial_attack.py official repository unverified Apache-2.0 (permissive) · 81e47ab1c6a2da20 · report
get_cifar10 uds-lsv/evaluating-logit-pairing-methods/mnist_cifar10/data_loader.py official repository unverified Apache-2.0 (permissive) · 04ff1339b08bf76e · report
get_lr_schedule uds-lsv/evaluating-logit-pairing-methods/tiny_imagenet/model_lib.py official repository unverified Apache-2.0 (permissive) · b1dbba539c2d86e5 · report
get_mnist uds-lsv/evaluating-logit-pairing-methods/mnist_cifar10/data_loader.py official repository unverified Apache-2.0 (permissive) · 60f00d58b4540401 · report
get_optimizer uds-lsv/evaluating-logit-pairing-methods/tiny_imagenet/model_lib.py official repository unverified Apache-2.0 (permissive) · da769e06be080c23 · report
image_preprocessing uds-lsv/evaluating-logit-pairing-methods/tiny_imagenet/datasets/imagenet_input.py official repository unverified Apache-2.0 (permissive) · fa0d1c2e6ff14096 · report
imagenet_input uds-lsv/evaluating-logit-pairing-methods/tiny_imagenet/datasets/imagenet_input.py official repository unverified Apache-2.0 (permissive) · 5879253ec320b0e2 · report
imagenet_parser uds-lsv/evaluating-logit-pairing-methods/tiny_imagenet/datasets/imagenet_input.py official repository unverified Apache-2.0 (permissive) · d65aec16072659e5 · report
load_cifar10 uds-lsv/evaluating-logit-pairing-methods/mnist_cifar10/utils.py official repository unverified Apache-2.0 (permissive) · 80ab7f0d5badcb2c · report
load_mnist uds-lsv/evaluating-logit-pairing-methods/mnist_cifar10/utils.py official repository unverified Apache-2.0 (permissive) · 4131fcb2c408c901 · report
model_train uds-lsv/evaluating-logit-pairing-methods/mnist_cifar10/train_utils.py official repository unverified Apache-2.0 (permissive) · 69767d95c86f9450 · report
num_examples_per_epoch uds-lsv/evaluating-logit-pairing-methods/tiny_imagenet/datasets/tiny_imagenet_input.py official repository unverified Apache-2.0 (permissive) · 82c2b6eb2545846f · report
read_tiny_imagenet_annotations uds-lsv/evaluating-logit-pairing-methods/tiny_imagenet/tiny_imagenet_converter/converter.py official repository unverified Apache-2.0 (permissive) · 43080682f6ede917 · report
read_training_annotations uds-lsv/evaluating-logit-pairing-methods/tiny_imagenet/tiny_imagenet_converter/converter.py official repository unverified Apache-2.0 (permissive) · 694218061904f78b · report
read_validation_annotations uds-lsv/evaluating-logit-pairing-methods/tiny_imagenet/tiny_imagenet_converter/converter.py official repository unverified Apache-2.0 (permissive) · 427561f788da200e · report
tiny_imagenet_input uds-lsv/evaluating-logit-pairing-methods/tiny_imagenet/datasets/tiny_imagenet_input.py official repository unverified Apache-2.0 (permissive) · d5f94fe48b23242f · report
tiny_imagenet_parser uds-lsv/evaluating-logit-pairing-methods/tiny_imagenet/datasets/tiny_imagenet_input.py official repository unverified Apache-2.0 (permissive) · dc5e94702d782007 · report

Tasks

Adversarial Robustness

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