SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2210.04311 · 2022

Pruning Adversarially Robust Neural Networks without Adversarial Examples

arXiv · PDF · Open in the Atlas

Code that ran

6 of 14 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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 8 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/2210.04311.json · badge: /api/ran/2210.04311.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
neu-spiral/pwoa canonical (classifier label)
classifier basis not recorded on the link
6 ran · 8 no recorded run
FunctionStatusWhere it lives
conv_layer Ran
ran; our contract draft was wrong, not the code
neu-spiral/pwoa/source/hsicbt/model/vgg.py
code served (permissive licence) · get_code("4aaf1bfa9b5dd486")
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 Sequential. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "chann_in": 3,
    "chann_out": 16,
    "k_size": 3,
    "p_size": 1
}
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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
distmat Ran
ran, honoured the contract we drafted
neu-spiral/pwoa/source/hsicbt/math/hsic.py
pointer only (licence: MIT); the stored copy get_code serves, from sjyucnel/cauchy-schwarz-information-bottleneck, is pointer only (licence: NONE) · get_code("ca565da6831e8ade")
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 sjyucnel/cauchy-schwarz-information-bottleneck, 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. A run is recorded.

kernelmat Ran
ran; our contract draft was wrong, not the code
neu-spiral/pwoa/source/hsicbt/math/hsic.py
code served (permissive licence) · get_code("882769c04ee627eb")
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 Tensor, ndim 2, dtype family float, shape (2, 2) 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)

# Create a small tensor input
# The function expects a 2D tensor of shape (batch_size, features)
X = torch.randn(2, 4)  # 2 samples, 4 features

# Test with sigma=None (will trigger sigma_estimation)
sigma = None

# Test with k_type='gaussian'
k_type = 'gaussian'

ARGS = {
    'X': X,
    'sigma': sigma,
    'k_type': k_type
}
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 Tensor, ndim 2, dtype family float, shape (2, 2) — shape (2, 2) 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
sigma_estimation Ran
ran; our contract draft was wrong, not the code
neu-spiral/pwoa/source/hsicbt/math/hsic.py
code served (permissive licence) · get_code("9cb35dd6de9569b7")
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) and returned float32, 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)

# Create small sample tensors
# X: shape (2, 4) - 2 samples, 4 dimensions
X = torch.randn(2, 4)

# Y: shape (3, 4) - 3 samples, 4 dimensions (different from X to make shapes distinct)
Y = torch.randn(3, 4)

ARGS = {
    "X": X,
    "Y": Y,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float32, 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
vgg_conv_block Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
neu-spiral/pwoa/source/hsicbt/model/vgg.py
code served (permissive licence) · get_code("a912b0f0007d76e5")
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 Sequential. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "in_list": [3, 64, 128],
    "out_list": [64, 128, 256],
    "k_list": [3, 3, 3],
    "p_list": [1, 1, 1],
    "pooling_k": 2,
    "pooling_s": 2,
}
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 Sequential — a Sequential 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
vgg_fc_layer Ran
ran; our contract draft was wrong, not the code
neu-spiral/pwoa/source/hsicbt/model/vgg.py
code served (permissive licence) · get_code("d28a2414aed5b400")
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 Sequential. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "size_in": 64,
    "size_out": 128,
}
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 Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 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
L1_pruning Not yet run
unverified (harvested, no recorded run)
neu-spiral/pwoa/source/hsicbt/math/admm.py
code served (permissive licence) · get_code("8c6c6e7ad6a13f4b")
How it ran

no invocation recorded.

activations_extraction Not yet run
unverified (harvested, no recorded run)
neu-spiral/pwoa/source/hsicbt/core/train_misc.py
code served (permissive licence) · get_code("36113cd19ffcf229")
How it ran

no invocation recorded.

hsic_objective Not yet run
unverified (harvested, no recorded run)
neu-spiral/pwoa/source/hsicbt/core/train_misc.py
code served (permissive licence) · get_code("bfffabcb63821aaf")
How it ran

no invocation recorded.

random_pruning Not yet run
unverified (harvested, no recorded run)
neu-spiral/pwoa/source/hsicbt/math/admm.py
code served (permissive licence) · get_code("e9abb1fd0f40cc11")
How it ran

no invocation recorded.

set_optimizer Not yet run
unverified (harvested, no recorded run)
neu-spiral/pwoa/source/hsicbt/core/train_misc.py
code served (permissive licence) · get_code("60f9636984fa3cae")
How it ran

no invocation recorded.

training_hsic_prune Not yet run
unverified (harvested, no recorded run)
neu-spiral/pwoa/source/hsicbt/core/engine.py
code served (permissive licence) · get_code("fc259fbd461d739e")
How it ran

no invocation recorded.

training_standard Not yet run
unverified (harvested, no recorded run)
neu-spiral/pwoa/source/hsicbt/core/engine.py
code served (permissive licence) · get_code("d658a923c90c237a")
How it ran

no invocation recorded.

weight_pruning Not yet run
unverified (harvested, no recorded run)
neu-spiral/pwoa/source/hsicbt/math/admm.py
code served (permissive licence) · get_code("29119d7db33e57bf")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 8 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 0 the same month, 6 later) and 6 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
sigma_estimation 11 other papers
3 dated earlier, 8 later
1908.01580 (2019-08)
The HSIC Bottleneck: Deep Learning without Back-Propagation
2106.01939 (2021-06)
Causal Effect Inference for Structured Treatments
2106.02734 (2021-06)
Revisiting Hilbert-Schmidt Information Bottleneck for Adversarial Robustness
and 8 more not named here
distmat 8 other papers
3 dated earlier, 5 later · 1 only as an assembly brick
1908.01580 (2019-08)
The HSIC Bottleneck: Deep Learning without Back-Propagation
2106.01939 (2021-06)
Causal Effect Inference for Structured Treatments
2106.02734 (2021-06)
Revisiting Hilbert-Schmidt Information Bottleneck for Adversarial Robustness
and 5 more not named here
kernelmat 3 other papers
1 dated earlier, 2 later
2106.02734 (2021-06)
Revisiting Hilbert-Schmidt Information Bottleneck for Adversarial Robustness
2510.20627 (2025-10)
H-SPLID: HSIC-based Saliency Preserving Latent Information Decomposition
2606.19679 (2026-06)
LOKI: Memory-Free Null-Space Constrained Lifelong Knowledge Editing
activations_extraction 2 other papers
2 dated earlier
1908.01580 (2019-08)
The HSIC Bottleneck: Deep Learning without Back-Propagation
2106.02734 (2021-06)
Revisiting Hilbert-Schmidt Information Bottleneck for Adversarial Robustness
conv_layer 2 other papers
1 dated earlier, 1 later
2106.02734 (2021-06)
Revisiting Hilbert-Schmidt Information Bottleneck for Adversarial Robustness
2510.07664 (2025-10)
FedQS: Optimizing Gradient and Model Aggregation for Semi-Asynchronous Federated Learning
vgg_conv_block 2 other papers
1 dated earlier, 1 later
2106.02734 (2021-06)
Revisiting Hilbert-Schmidt Information Bottleneck for Adversarial Robustness
2510.07664 (2025-10)
FedQS: Optimizing Gradient and Model Aggregation for Semi-Asynchronous Federated Learning
vgg_fc_layer 2 other papers
1 dated earlier, 1 later
2106.02734 (2021-06)
Revisiting Hilbert-Schmidt Information Bottleneck for Adversarial Robustness
2510.07664 (2025-10)
FedQS: Optimizing Gradient and Model Aggregation for Semi-Asynchronous Federated Learning
hsic_objective 1 other paper
1 dated earlier
2106.02734 (2021-06)
Revisiting Hilbert-Schmidt Information Bottleneck for Adversarial Robustness

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 pruning compresses models while preserving robustness. Current methods require access to adversarial examples during pruning. This significantly hampers training efficiency. Moreover, as new adversarial attacks and training methods develop at a rapid rate, adversarial pruning methods need to be modified accordingly to keep up. In this work, we propose a novel framework to prune a previously trained robust neural network while maintaining adversarial robustness, without further generating adversarial examples. We leverage concurrent self-distillation and pruning to preserve knowledge in the original model as well as regularizing the pruned model via the Hilbert-Schmidt Information Bottleneck. We comprehensively evaluate our proposed framework and show its superior performance in terms of both adversarial robustness and efficiency when pruning architectures trained on the MNIST, CIFAR-10, and CIFAR-100 datasets against five state-of-the-art attacks. Code is available at https://github.com/neu-spiral/PwoA/.

For agents

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

get_harvested_code_for_paper("2210.04311")
get_code_for_paper("2210.04311")
have("2210.04311")

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

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

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

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

Connect an agent — have() is free.