SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2308.07163 · 2023

HyperSparse Neural Networks: Shifting Exploration to Exploitation through Adaptive Regularization

arXiv · PDF · Open in the Atlas

Code that ran

10 of 13 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, 1 violated it and 1 has no contract verdict; 7 failures of our instrument; 3 no recorded run), measured 2026-11-24; 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/2308.07163.json · badge: /api/ran/2308.07163.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
greenautoml4fas/hypersparse canonical (classifier label)
classifier basis: census
10 ran · 3 no recorded run
FunctionStatusWhere it lives
accuracy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
greenautoml4fas/hypersparse/utils/metrics.py
code served (permissive licence) · get_code("4740868385958c9a")
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 list, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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

torch.manual_seed(0)

# Tiny batch size of 2, with 4 classes (logits dimension)
batch_size = 2
num_classes = 4

# Create output logits: shape (batch_size, num_classes) = (2, 4)
output = torch.randn(batch_size, num_classes)

# Create target labels: shape (batch_size,) = (2,)
# Labels should be in range [0, num_classes)
target = torch.tensor([1, 3])

# topk parameter - tuple of k values to compute accuracy for
topk = (1, 2)

ARGS = {
    "output": output,
    "target": target,
    "topk": topk,
}
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 list, ndim 2, dtype family float — a list output has no array shape of its own; none is stated
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
conv3x3 Ran
ran; our contract draft was wrong, not the code
greenautoml4fas/hypersparse/models/resnet.py
pointer only (licence: BSD-3-Clause); the stored copy get_code serves, from lixiaotong97/DSU, is pointer only (licence: NONE) · get_code("fac5364e2f53c6db")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (BSD-3-Clause), but get_code serves the stored copy, first harvested from lixiaotong97/DSU, 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.

get_dataset_constants Ran
ran; our contract draft was wrong, not the code
greenautoml4fas/hypersparse/utils/dataloader.py
code served (permissive licence) · get_code("a4be7f6f39feb4fc")
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 Cifar10Constants. 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
from dataclasses import dataclass
from typing import Tuple

torch.manual_seed(0)

@dataclass
class DatasetConstants:
    dataset_size: int
    num_classes: int
    crop_size: int
    channel_means: Tuple[float]
    channel_stds: Tuple[float]

@dataclass
class TinyImageNetConstants(DatasetConstants):
    dataset_size: int = 0
    num_classes: int = 200
    crop_size: int = 64
    channel_means: Tuple[float] = (0.48024578664982126, 0.44807218089384643, 0.3975477478649648)
    channel_stds: Tuple[float] = (0.2769864069088257, 0.26906448510256, 0.282081906210584)

@dataclass
class Cifar10Constants(DatasetConstants):
    dataset_size: int = 50000
    num_classes: int = 10
    crop_size: int = 32
    channel_means: Tuple[float] = (0.4914, 0.4822, 0.4465)
    channel_stds: Tuple[float] = (0.2023, 0.1994, 0.201)

@dataclass
class Cifar100Constants(DatasetConstants):
    dataset_size: int = 50000
    num_classes: int = 100
    crop_size: int = 32
    channel_means: Tuple[float] = (0.5071, 0.4867, 0.4408)
    channel_stds: Tuple[float] = (0.2675, 0.2565, 0.2761)

def get_dataset_constants(dataset: str):
    constants_dict = {'tinyimagenet': TinyImageNetConstants, 'cifar10': Cifar10Constants, 'cifar100': Cifar100Constants}
    if dataset.lower() not in constants_dict:
        raise ValueError(f'Invalid dataset name: {dataset}')
    return constants_dict[dataset.lower()]()

ARGS = {
    'dataset': 'cifar10'
}
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 Cifar10Constants — a Cifar10Constants output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Cifar10Constants 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
get_mean_and_std Ran
ran on a synthesized input
greenautoml4fas/hypersparse/utils/misc.py
pointer only (licence: BSD-3-Clause); the stored copy get_code serves, from KaiSUN1/SeAl, is pointer only (licence: NONE) · get_code("2c92cec199cf12cd")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (BSD-3-Clause), but get_code serves the stored copy, first harvested from KaiSUN1/SeAl, 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.

get_param_from_path Ran
ran; our contract draft was wrong, not the code
greenautoml4fas/hypersparse/utils/misc.py
code served (permissive licence) · get_code("7701a42a5f6cd7c1")
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 dict. 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 re

def get_param_from_path(relPathModel, name_load_model):
    namedParam = [x for x in re.split('/|_', relPathModel) if x not in ['models', '%s.pth.tar' % name_load_model]]
    namedParam = [x for x in namedParam if '=' in x and x.split('=')[0] and x.split('=')[0]]
    dirParam = {x.split('=')[0]: x.split('=')[1] for x in namedParam}
    for name, val in dirParam.items():
        if name == 'alpha':
            dirParam[name] = float(val)
    return dirParam


ARGS = {
    'relPathModel': 'models/alpha=0.5/beta=test/model_checkpoint.pth.tar',
    'name_load_model': 'model_checkpoint'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict 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
get_train_transforms Ran
ran; our contract draft was wrong, not the code
greenautoml4fas/hypersparse/utils/dataloader.py
code served (permissive licence) · get_code("61a4d7b1734fc18c")
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 Compose. 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 torchvision.transforms as transforms
from dataclasses import dataclass
from typing import Tuple

torch.manual_seed(0)

@dataclass
class DatasetConstants:
    dataset_size: int
    num_classes: int
    crop_size: int
    channel_means: Tuple[float]
    channel_stds: Tuple[float]

@dataclass
class TinyImageNetConstants(DatasetConstants):
    dataset_size: int = 0
    num_classes: int = 200
    crop_size: int = 64
    channel_means: Tuple[float] = (0.48024578664982126, 0.44807218089384643, 0.3975477478649648)
    channel_stds: Tuple[float] = (0.2769864069088257, 0.26906448510256, 0.282081906210584)

@dataclass
class Cifar10Constants(DatasetConstants):
    dataset_size: int = 50000
    num_classes: int = 10
    crop_size: int = 32
    channel_means: Tuple[float] = (0.4914, 0.4822, 0.4465)
    channel_stds: Tuple[float] = (0.2023, 0.1994, 0.201)

@dataclass
class Cifar100Constants(DatasetConstants):
    dataset_size: int = 50000
    num_classes: int = 100
    crop_size: int = 32
    channel_means: Tuple[float] = (0.5071, 0.4867, 0.4408)
    channel_stds: Tuple[float] = (0.2675, 0.2565, 0.2761)

def get_dataset_constants(dataset: str):
    constants_dict = {'tinyimagenet': TinyImageNetConstants, 'cifar10': Cifar10Constants, 'cifar100': Cifar100Constants}
    if dataset.lower() not in constants_dict:
        raise ValueError(f'Invalid dataset name: {dataset}')
    return constants_dict[dataset.lower()]()

def get_train_transforms(args):
    constants = get_dataset_constants(args.dataset)
    trans = [transforms.RandomCrop(constants.crop_size, padding=4), transforms.RandomHorizontalFlip(), transforms.ToTensor(), transforms.Normalize(constants.channel_means, constants.channel_stds)]
    return transforms.Compose(trans)

class Args:
    def __init__(self, dataset: str):
        self.dataset = dataset

ARGS = {
    'args': Args(dataset='cifar10')
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Compose — a Compose output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Compose 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
get_val_transforms Ran
ran; our contract draft was wrong, not the code
greenautoml4fas/hypersparse/utils/dataloader.py
code served (permissive licence) · get_code("e32d7c61b1f96c03")
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 Compose. 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 torchvision.transforms as transforms
from dataclasses import dataclass
from typing import Tuple

torch.manual_seed(0)

@dataclass
class DatasetConstants:
    dataset_size: int
    num_classes: int
    crop_size: int
    channel_means: Tuple[float]
    channel_stds: Tuple[float]

@dataclass
class TinyImageNetConstants(DatasetConstants):
    dataset_size: int = 0
    num_classes: int = 200
    crop_size: int = 64
    channel_means: Tuple[float] = (0.48024578664982126, 0.44807218089384643, 0.3975477478649648)
    channel_stds: Tuple[float] = (0.2769864069088257, 0.26906448510256, 0.282081906210584)

@dataclass
class Cifar10Constants(DatasetConstants):
    dataset_size: int = 50000
    num_classes: int = 10
    crop_size: int = 32
    channel_means: Tuple[float] = (0.4914, 0.4822, 0.4465)
    channel_stds: Tuple[float] = (0.2023, 0.1994, 0.201)

@dataclass
class Cifar100Constants(DatasetConstants):
    dataset_size: int = 50000
    num_classes: int = 100
    crop_size: int = 32
    channel_means: Tuple[float] = (0.5071, 0.4867, 0.4408)
    channel_stds: Tuple[float] = (0.2675, 0.2565, 0.2761)

def get_dataset_constants(dataset: str):
    constants_dict = {'tinyimagenet': TinyImageNetConstants, 'cifar10': Cifar10Constants, 'cifar100': Cifar100Constants}
    if dataset.lower() not in constants_dict:
        raise ValueError(f'Invalid dataset name: {dataset}')
    return constants_dict[dataset.lower()]()

def get_val_transforms(args):
    constants = get_dataset_constants(args.dataset)
    trans = [transforms.ToTensor(), transforms.Normalize(mean=constants.channel_means, std=constants.channel_stds)]
    return transforms.Compose(trans)

class Args:
    def __init__(self, dataset: str):
        self.dataset = dataset

ARGS = {
    'args': Args(dataset='cifar10')
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Compose — a Compose output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Compose 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
get_zero_param Ran
ran, honoured the contract we drafted
greenautoml4fas/hypersparse/utils/misc.py
code served (permissive licence) · get_code("8619a971d0a789a4")
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 0, dtype family int, 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 torch.nn as nn

torch.manual_seed(0)

# Build a small model with Conv2d and Linear layers
# The function iterates through all modules and counts zero parameters
class SimpleModel(nn.Module):
    def __init__(self):
        super(SimpleModel, self).__init__()
        # Conv2d layer: in_channels=3, out_channels=4, kernel_size=3
        self.conv1 = nn.Conv2d(3, 4, kernel_size=3)
        # Linear layer: in_features=5, out_features=2
        self.linear1 = nn.Linear(5, 2)
    
    def forward(self, x):
        return x

model = SimpleModel()

# Optionally set some weights to zero to have non-trivial output
model.conv1.weight.data[0, 0, 0, 0] = 0
model.linear1.weight.data[0, 0] = 0

ARGS = {
    "model": model
}
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 Tensor, ndim 0, dtype family int, 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
is_prunable_module Ran
ran, violated the contract we drafted
greenautoml4fas/hypersparse/utils/arg.py
code served (permissive licence) · get_code("881ad7ec8a7de985")
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 bool, 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 torch.nn as nn

torch.manual_seed(0)

# Test with Conv2d module
conv_module = nn.Conv2d(3, 16, kernel_size=3)

ARGS = {
    "m": conv_module
}
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 bool, 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
make_layers Ran
ran; our contract draft was wrong, not the code
greenautoml4fas/hypersparse/models/vgg.py
pointer only (licence: BSD-3-Clause); the stored copy get_code serves, from jingtongsu/robust_neural_collapse, is pointer only (licence: NONE) · get_code("8683f9fa7a0e16c9")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (BSD-3-Clause), but get_code serves the stored copy, first harvested from jingtongsu/robust_neural_collapse, 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.

applyMask Not yet run
unverified (harvested, no recorded run)
greenautoml4fas/hypersparse/utils/pruner.py
code served (permissive licence) · get_code("d311717a59044479")
How it ran

no invocation recorded.

get_prune_mask Not yet run
unverified (harvested, no recorded run)
greenautoml4fas/hypersparse/utils/pruner.py
code served (permissive licence) · get_code("2efafcf8148e9457")
How it ran

no invocation recorded.

mag_prune Not yet run
unverified (harvested, no recorded run)
greenautoml4fas/hypersparse/utils/pruner.py
code served (permissive licence) · get_code("6767b6ddeb17cdc3")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 4 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 1 the same month, 4 later) and 9 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
conv3x3 686 other papers
498 dated earlier, 12 the same month, 169 later, 7 same year, order not determinable · 31 only as an assembly brick
1406.2661 (2014-06)
Generative Adversarial Networks
1409.0575 (2014-09)
ImageNet Large Scale Visual Recognition Challenge
1412.6572 (2014-12)
Explaining and Harnessing Adversarial Examples
and 683 more not named here
make_layers 59 other papers
39 dated earlier, 19 later, 1 same year, order not determinable
1411.4038 (2014-11)
Fully Convolutional Networks for Semantic Segmentation
1511.00561 (2015-11)
SegNet: A Deep Convolutional Encoder-Decoder Architecture for Image Segmentation
1511.05950 (2015-11)
Staleness-aware Async-SGD for Distributed Deep Learning
and 56 more not named here
get_mean_and_std 21 other papers
18 dated earlier, 3 later
1805.07925 (2018-05)
Batch-Instance Normalization for Adaptively Style-Invariant Neural Networks
1806.04606 (2018-06)
Knowledge Distillation by On-the-Fly Native Ensemble
1811.05850 (2018-11)
Drop-Activation: Implicit Parameter Reduction and Harmonic Regularization
and 18 more not named here
accuracy 2 other papers
1 later, 1 same year, order not determinable
Wang_Practical_Network_Acceleration_With_Tiny_Sets_CVPR_2023_paper (2023 (year only))
Practical Network Acceleration with Tiny Sets
2602.03824 (2026-02)
Quantifying Avian Morphological Evolution through Deep Representation Learning

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

Repositories linked to this paper

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

Abstract

Sparse neural networks are a key factor in developing resource-efficient machine learning applications. We propose the novel and powerful sparse learning method Adaptive Regularized Training (ART) to compress dense into sparse networks. Instead of the commonly used binary mask during training to reduce the number of model weights, we inherently shrink weights close to zero in an iterative manner with increasing weight regularization. Our method compresses the pre-trained model knowledge into the weights of highest magnitude. Therefore, we introduce a novel regularization loss named HyperSparse that exploits the highest weights while conserving the ability of weight exploration. Extensive experiments on CIFAR and TinyImageNet show that our method leads to notable performance gains compared to other sparsification methods, especially in extremely high sparsity regimes up to 99.8 percent model sparsity. Additional investigations provide new insights into the patterns that are encoded in weights with high magnitudes.

For agents

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

get_harvested_code_for_paper("2308.07163")
get_code_for_paper("2308.07163")
have("2308.07163")

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

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

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

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

Connect an agent — have() is free.