SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2201.06776 · 2022

Pruning-aware Sparse Regularization for Network Pruning

arXiv · PDF · Open in the Atlas

Code that ran

11 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, 1 violated it and 10 have no contract verdict; 0 failures of our instrument; 1 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, measured 2026-11-21; 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/2201.06776.json · badge: /api/ran/2201.06776.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
casia-iva-lab/masksparsity canonical (classifier label)
classifier basis not recorded on the link
11 ran · 1 no recorded run
FunctionStatusWhere it lives
is_number Ran
ran, violated the contract we drafted
casia-iva-lab/masksparsity/netslim/prune.py
pointer only (licence: MIT) · get_code("0fe9cf6c00ef56ea")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, casia-iva-lab/masksparsity, 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.

css_thresholding Ran
ran on a synthesized input
casia-iva-lab/masksparsity/netslim/prune.py
pointer only (licence: MIT) · get_code("ecc0b3e3dba89e93")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, casia-iva-lab/masksparsity, 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.

getBNmask Ran
ran on a synthesized input
casia-iva-lab/masksparsity/netslim/display_BN.py
pointer only (licence: MIT) · get_code("394cf43d44b2cc0a")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, casia-iva-lab/masksparsity, 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.

getBNmask_2 Ran
ran on a synthesized input
casia-iva-lab/masksparsity/netslim/display_BN.py
pointer only (licence: MIT) · get_code("cf840cfd140abb9d")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, casia-iva-lab/masksparsity, 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.

get_model_complexity_info Ran
ran on a synthesized input
casia-iva-lab/masksparsity/netslim/flops_counter.py
pointer only (licence: MIT) · get_code("fcc52c28bbf58580")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, casia-iva-lab/masksparsity, 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.

get_model_parameters Ran
ran on a synthesized input
casia-iva-lab/masksparsity/netslim/flops_counter.py
pointer only (licence: MIT) · get_code("e8d5c12b1b5e73d1")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, casia-iva-lab/masksparsity, 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.

get_node_str Ran
ran on a synthesized input
casia-iva-lab/masksparsity/netslim/graph_parser.py
pointer only (licence: MIT) · get_code("e3275daef46a7e57")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, casia-iva-lab/masksparsity, 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.

is_transposed Ran
ran on a synthesized input
casia-iva-lab/masksparsity/netslim/prune.py
pointer only (licence: MIT) · get_code("f8e9003e1b6e70ef")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, casia-iva-lab/masksparsity, 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.

parse_module_name Ran
ran on a synthesized input
casia-iva-lab/masksparsity/netslim/graph_parser.py
pointer only (licence: MIT) · get_code("1a4afb2595c713b1")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, casia-iva-lab/masksparsity, 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.

parse_output_name Ran
ran on a synthesized input
casia-iva-lab/masksparsity/netslim/graph_parser.py
pointer only (licence: MIT) · get_code("b9289e5ca6f7928c")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, casia-iva-lab/masksparsity, 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.

rebuild Ran
ran on a synthesized input
casia-iva-lab/masksparsity/netslim/rebuild.py
pointer only (licence: MIT) · get_code("d885639e3a40c3fd")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, casia-iva-lab/masksparsity, 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.

get_model_flops Not yet run
unverified (harvested, no recorded run)
casia-iva-lab/masksparsity/netslim/flops_counter.py
pointer only (licence: MIT) · get_code("a29e15a313b6243b")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, casia-iva-lab/masksparsity, 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 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 (1 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
is_number 18 other papers
3 dated earlier, 15 later
1807.06756 (2018-07)
SySeVR: A Framework for Using Deep Learning to Detect Software Vulnerabilities
1906.02425 (2019-06)
Uncertainty-guided Continual Learning with Bayesian Neural Networks
2005.00558 (2020-05)
POINTER: Constrained Progressive Text Generation via Insertion-based Generative Pre-training
and 15 more not named here
get_model_flops 4 other papers
4 later
2205.05675 (2022-05)
NTIRE 2022 Challenge on Efficient Super-Resolution: Methods and Results
2207.13784 (2022-07)
AvatarPoser: Articulated Full-Body Pose Tracking from Sparse Motion Sensing
2303.09472 (2023-03)
DiffIR: Efficient Diffusion Model for Image Restoration
and 1 more not named here

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

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Structural neural network pruning aims to remove the redundant channels in the deep convolutional neural networks (CNNs) by pruning the filters of less importance to the final output accuracy. To reduce the degradation of performance after pruning, many methods utilize the loss with sparse regularization to produce structured sparsity. In this paper, we analyze these sparsity-training-based methods and find that the regularization of unpruned channels is unnecessary. Moreover, it restricts the network's capacity, which leads to under-fitting. To solve this problem, we propose a novel pruning method, named MaskSparsity, with pruning-aware sparse regularization. MaskSparsity imposes the fine-grained sparse regularization on the specific filters selected by a pruning mask, rather than all the filters of the model. Before the fine-grained sparse regularization of MaskSparity, we can use many methods to get the pruning mask, such as running the global sparse regularization. MaskSparsity achieves 63.03%-FLOPs reduction on ResNet-110 by removing 60.34% of the parameters, with no top-1 accuracy loss on CIFAR-10. On ILSVRC-2012, MaskSparsity reduces more than 51.07% FLOPs on ResNet-50, with only a loss of 0.76% in the top-1 accuracy. The code is released at https://github.com/CASIA-IVA-Lab/MaskSparsity. Moreover, we have integrated the code of MaskSparity into a PyTorch pruning toolkit, EasyPruner, at https://gitee.com/casia_iva_engineer/easypruner.

For agents

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

get_harvested_code_for_paper("2201.06776")
get_code_for_paper("2201.06776")
have("2201.06776")

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

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

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

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

Connect an agent — have() is free.