SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1810.02340 · 2018

SNIP: Single-shot Network Pruning based on Connection Sensitivity

Philip Torr, Namhoon Lee, Thalaiyasingam Ajanthan

arXiv · PDF · Open in the Atlas

Code that ran

5 of 12 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 1 has no contract verdict; 4 failures of our instrument; 7 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/1810.02340.json · badge: /api/ran/1810.02340.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
jeong-tae/SNIP-filter-level-pytorch community
Papers with Code archive
3 ran · 2 no recorded run
junhyukso/SNIP-tf community
Papers with Code archive
1 ran · 1 no recorded run
Hoonyyhoon/Comparison-of-Synflow_SNIP_GraSP community
Papers with Code archive
1 ran · 0 no recorded run
JingtongSu/sanity-checking-pruning community
Papers with Code archive
0 ran · 2 no recorded run
ganguli-lab/Synaptic-Flow community
Papers with Code archive
0 ran · 1 no recorded run
namhoonlee/snip-public marked official in Papers with Code
Papers with Code archive
0 ran · 1 no recorded run
FunctionStatusWhere it lives
SNIP Ran
ran on a synthesized input
Hoonyyhoon/Comparison-of-Synflow_SNIP_GraSP/pruning_method/SNIP.py
pointer only (licence: NONE) · get_code("5a26d6d67aa62743")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Hoonyyhoon/Comparison-of-Synflow_SNIP_GraSP 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.

is_same_tensor Ran
ran; our contract draft was wrong, not the code
jeong-tae/SNIP-filter-level-pytorch/models/snip.py
pointer only (licence: NONE) · get_code("33999af856630256")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jeong-tae/SNIP-filter-level-pytorch 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.

make_prune_callback Ran
ran; our contract draft was wrong, not the code
junhyukso/SNIP-tf/SNIPtf/prune.py
code served (permissive licence) · get_code("fa39074a9a0ab455")
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 Prune_Callback. 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 tensorflow as tf
import numpy as np

# Create a simple model
model = tf.keras.Sequential([
    tf.keras.layers.Dense(3, input_shape=(4,), activation='relu'),
    tf.keras.layers.Dense(2)
])

# Compile the model with a loss function
model.compile(
    optimizer='adam',
    loss=tf.keras.losses.MeanSquaredError()
)

# Create small dummy data
x = tf.constant(np.random.randn(2, 4).astype(np.float32))
y = tf.constant(np.random.randn(2, 2).astype(np.float32))

# Set sparsity level
sparsity = 0.5

ARGS = {
    'model': model,
    'sparsity': sparsity,
    'x': x,
    'y': y
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Prune_Callback — a Prune_Callback output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Prune_Callback 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
snip_forward_conv2d Ran
ran; our contract draft was wrong, not the code
jeong-tae/SNIP-filter-level-pytorch/models/snip.py
pointer only (licence: NONE) · get_code("12d59cf9ada8b41a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jeong-tae/SNIP-filter-level-pytorch 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.

snip_forward_linear Ran
ran; our contract draft was wrong, not the code
jeong-tae/SNIP-filter-level-pytorch/models/snip.py
pointer only (licence: NONE) · get_code("94eeaaa88bd57941")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jeong-tae/SNIP-filter-level-pytorch 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.

Prune_Callback Not yet run
unverified (harvested, no recorded run)
junhyukso/SNIP-tf/SNIPtf/prune.py
code served (permissive licence) · get_code("bf17eee67cefa70a")
How it ran

no invocation recorded.

SNIP Not yet run
unverified (harvested, no recorded run)
JingtongSu/sanity-checking-pruning/pruner/SNIP.py
code served (permissive licence) · get_code("ad3f82eac9b98587")
How it ran

no invocation recorded.

SNIP Not yet run
unverified (harvested, no recorded run)
jeong-tae/SNIP-filter-level-pytorch/models/snip.py
pointer only (licence: NONE) · get_code("34c6cbbc302db073")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jeong-tae/SNIP-filter-level-pytorch 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.

SNIP Not yet run
unverified (harvested, no recorded run)
ganguli-lab/Synaptic-Flow/Pruners/pruners.py
pointer only (licence: NONE) · get_code("c151af1e8de0959e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ganguli-lab/Synaptic-Flow 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.

SNIP_fetch_data Not yet run
unverified (harvested, no recorded run)
JingtongSu/sanity-checking-pruning/pruner/SNIP.py
code served (permissive licence) · get_code("f0ba2ece3e08248b")
How it ran

no invocation recorded.

_remove_sequential Not yet run
unverified (harvested, no recorded run)
jeong-tae/SNIP-filter-level-pytorch/models/snip.py
pointer only (licence: NONE) · get_code("a79ba7432308de9a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jeong-tae/SNIP-filter-level-pytorch 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.

prune Not yet run
unverified (harvested, no recorded run)
namhoonlee/snip-public/snip/prune.py
code served (permissive licence) · get_code("1bdb1c27633e3a80")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 2 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 2 later) and 10 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
snip_forward_conv2d
brick of this paper's assembly: model
1 other paper
1 later
2306.12230 (2023-06)
Fantastic Weights and How to Find Them: Where to Prune in Dynamic Sparse Training
snip_forward_linear
brick of this paper's assembly: model
1 other paper
1 later
2306.12230 (2023-06)
Fantastic Weights and How to Find Them: Where to Prune in Dynamic Sparse Training

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

Pruning large neural networks while maintaining their performance is often desirable due to the reduced space and time complexity. In existing methods, pruning is done within an iterative optimization procedure with either heuristically designed pruning schedules or additional hyperparameters, undermining their utility. In this work, we present a new approach that prunes a given network once at initialization prior to training. To achieve this, we introduce a saliency criterion based on connection sensitivity that identifies structurally important connections in the network for the given task. This eliminates the need for both pretraining and the complex pruning schedule while making it robust to architecture variations. After pruning, the sparse network is trained in the standard way. Our method obtains extremely sparse networks with virtually the same accuracy as the reference network on the MNIST, CIFAR-10, and Tiny-ImageNet classification tasks and is broadly applicable to various architectures including convolutional, residual and recurrent networks. Unlike existing methods, our approach enables us to demonstrate that the retained connections are indeed relevant to the given task.

For agents

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

get_harvested_code_for_paper("1810.02340")
get_code_for_paper("1810.02340")
have("1810.02340")

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

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

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

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

Connect an agent — have() is free.