SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2406.05927 · 2024

MeanSparse: Post-Training Robustness Enhancement Through Mean-Centered Feature Sparsification

arXiv · PDF · Open in the Atlas

Code that ran

7 of 9 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; 6 failures of our instrument; 2 no recorded run), measured 2026-11-22; 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/2406.05927.json · badge: /api/ran/2406.05927.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
spin-umass/meansparse canonical (classifier label)
classifier basis: census
7 ran · 2 no recorded run
FunctionStatusWhere it lives
accuracy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
spin-umass/meansparse/CIFAR100_Linfinity/utils_sparse.py
pointer only (licence: NONE) · get_code("085a09050f4f41dc")
How it ran

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

convert_to_serializable Ran
ran; our contract draft was wrong, not the code
spin-umass/meansparse/CIFAR100_Linfinity/utils_sparse.py
pointer only (licence: NONE) · get_code("8cc714ce3f931a36")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, spin-umass/meansparse 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_relative_position_index Ran
ran, honoured the contract we drafted
spin-umass/meansparse/ImageNet_Linfinity/Swin_L/MeanSparse_swin_transformer.py
pointer only (licence: NONE) · get_code("45d4a3ecd310054b")
How it ran

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

normalize_fn Ran
ran; our contract draft was wrong, not the code
spin-umass/meansparse/CIFAR10_Linfinity/RaWRN-70-16/MeanSparse_robustarch_wide_resnet.py
pointer only (licence: NONE) · get_code("0e0f66ffb7a61530")
How it ran

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

read_list_with_json Ran
ran; our contract draft was wrong, not the code
spin-umass/meansparse/CIFAR100_Linfinity/utils_sparse.py
pointer only (licence: NONE) · get_code("132734a4ce8711e3")
How it ran

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

window_partition Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
spin-umass/meansparse/ImageNet_Linfinity/Swin_L/MeanSparse_swin_transformer.py
pointer only (licence: NONE) · get_code("0a394d15da3f8f82")
How it ran

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

window_reverse Ran
ran; our contract draft was wrong, not the code
spin-umass/meansparse/ImageNet_Linfinity/Swin_L/MeanSparse_swin_transformer.py
pointer only (licence: NONE) · get_code("e301d79cca7897cf")
How it ran

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

load_cifar10 Not yet run
unverified (harvested, no recorded run)
spin-umass/meansparse/CIFAR100_Linfinity/data.py
pointer only (licence: NONE) · get_code("2ea97919e65e55d9")
How it ran

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

load_cifar100 Not yet run
unverified (harvested, no recorded run)
spin-umass/meansparse/CIFAR100_Linfinity/data.py
pointer only (licence: NONE) · get_code("2775934904810b7e")
How it ran

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

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 2 later) and 7 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
accuracy 13 other papers
11 dated earlier, 2 later
1706.02677 (2017-06)
Accurate, Large Minibatch SGD: Training ImageNet in 1 Hour
1911.00068 (2019-11)
Confident Learning: Estimating Uncertainty in Dataset Labels
2011.09157 (2020-11)
Dense Contrastive Learning for Self-Supervised Visual Pre-Training
and 10 more not named here
normalize_fn 7 other papers
6 dated earlier, 1 later
1910.00033 (2019-10)
Hidden Trigger Backdoor Attacks
2007.09271 (2020-07)
OnlineAugment: Online Data Augmentation with Less Domain Knowledge
2010.09080 (2020-10)
Poisoned classifiers are not only backdoored, they are fundamentally broken
and 4 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-22.

Repositories linked to this paper

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

Abstract

We present a simple yet effective method to improve the robustness of both Convolutional and attention-based Neural Networks against adversarial examples by post-processing an adversarially trained model. Our technique, MeanSparse, cascades the activation functions of a trained model with novel operators that sparsify mean-centered feature vectors. This is equivalent to reducing feature variations around the mean, and we show that such reduced variations merely affect the model's utility, yet they strongly attenuate the adversarial perturbations and decrease the attacker's success rate. Our experiments show that, when applied to the top models in the RobustBench leaderboard, MeanSparse achieves a new robustness record of 75.28% (from 73.71%), 44.78% (from 42.67%) and 62.12% (from 59.56%) on CIFAR-10, CIFAR-100 and ImageNet, respectively, in terms of AutoAttack accuracy. Code is available at https://github.com/SPIN-UMass/MeanSparse

For agents

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

get_harvested_code_for_paper("2406.05927")
get_code_for_paper("2406.05927")
have("2406.05927")

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

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

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

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

Connect an agent — have() is free.