SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.10683 · NeurIPS · 2024

SAMPa: Sharpness-aware Minimization Parallelized

Thomas Pethick, Wanyun Xie

arXiv · PDF · Open in the Atlas

Code that ran

13 of 15 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 0 have no contract verdict; 13 failures of our instrument; 2 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/2410.10683.json · badge: /api/ran/2410.10683.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
LIONS-EPFL/SAMPa canonical (classifier label)
classifier basis: census
13 ran · 2 no recorded run
FunctionStatusWhere it lives
DenseNet121 Ran
ran; our contract draft was wrong, not the code
LIONS-EPFL/SAMPa/model/densenet.py
pointer only (licence: NONE) · get_code("dfb395bae3d07d76")
How it ran

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

DenseNet169 Ran
ran; our contract draft was wrong, not the code
LIONS-EPFL/SAMPa/model/densenet.py
pointer only (licence: NONE) · get_code("f295fe3c209ecf78")
How it ran

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

DenseNet201 Ran
ran; our contract draft was wrong, not the code
LIONS-EPFL/SAMPa/model/densenet.py
pointer only (licence: NONE) · get_code("6383aee1c940e7a5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, LIONS-EPFL/SAMPa 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_layers Ran
ran; our contract draft was wrong, not the code
LIONS-EPFL/SAMPa/model/vgg.py
pointer only (licence: NONE) · get_code("ac62432dc5134b0d")
How it ran

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

perturbation_loss_log Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
LIONS-EPFL/SAMPa/model/smooth_cross_entropy.py
pointer only (licence: NONE) · get_code("a51802083eb2dcec")
How it ran

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

resnet20 Ran
ran; our contract draft was wrong, not the code
LIONS-EPFL/SAMPa/model/resnet.py
pointer only (licence: NONE) · get_code("a10d10e7bcf4cb4a")
How it ran

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

resnet32 Ran
ran; our contract draft was wrong, not the code
LIONS-EPFL/SAMPa/model/resnet.py
pointer only (licence: NONE) · get_code("85364deb653f2cf6")
How it ran

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

resnet44 Ran
ran; our contract draft was wrong, not the code
LIONS-EPFL/SAMPa/model/resnet.py
pointer only (licence: NONE) · get_code("cd8b7f0a3a1b23f4")
How it ran

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

smooth_crossentropy Ran
ran; our contract draft was wrong, not the code
LIONS-EPFL/SAMPa/model/smooth_cross_entropy.py
pointer only (licence: NONE) · get_code("8ba7b4a94a39f790")
How it ran

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

smooth_crossentropy Ran
ran; our contract draft was wrong, not the code
LIONS-EPFL/SAMPa/utility.py
pointer only (licence: NONE) · get_code("f86df65986410c1d")
How it ran

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

unflatten Ran
ran; our contract draft was wrong, not the code
LIONS-EPFL/SAMPa/utility.py
pointer only (licence: NONE) · get_code("c1ad6496b7bd2b05")
How it ran

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

vgg11 Ran
ran; our contract draft was wrong, not the code
LIONS-EPFL/SAMPa/model/vgg.py
pointer only (licence: NONE) · get_code("d61c738bf16ec3c0")
How it ran

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

vgg11_bn Ran
ran; our contract draft was wrong, not the code
LIONS-EPFL/SAMPa/model/vgg.py
pointer only (licence: NONE) · get_code("09c336c3ecb596a3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, LIONS-EPFL/SAMPa 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 Not yet run
unverified (harvested, no recorded run)
LIONS-EPFL/SAMPa/get_dataset.py
pointer only (licence: NONE) · get_code("caf601cac7f2ec8c")
How it ran

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

perturbation_loss_tanh Not yet run
unverified (harvested, no recorded run)
LIONS-EPFL/SAMPa/model/smooth_cross_entropy.py
pointer only (licence: NONE) · get_code("be5e295a85a5ce89")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, LIONS-EPFL/SAMPa 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 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 11 are also present in other papers whose code we hold (11 with at least one paper dated earlier, 1 the same month, 2 later) and 4 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
make_layers 59 other papers
51 dated earlier, 1 the same month, 5 later, 2 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
DenseNet121 11 other papers
11 dated earlier
2006.15815 (2020-06)
Adaptive Inertia: Disentangling the Effects of Adaptive Learning Rate and Momentum
2105.13937 (2021-05)
Polygonal Unadjusted Langevin Algorithms: Creating stable and efficient adaptive algorithms for neural networks
2108.09976 (2021-08)
Revealing the Distributional Vulnerability of Discriminators by Implicit Generators
and 8 more not named here
DenseNet169 9 other papers
9 dated earlier
2006.15815 (2020-06)
Adaptive Inertia: Disentangling the Effects of Adaptive Learning Rate and Momentum
2108.09976 (2021-08)
Revealing the Distributional Vulnerability of Discriminators by Implicit Generators
2201.13329 (2022-01)
Can Adversarial Training Be Manipulated By Non-Robust Features?
and 6 more not named here
DenseNet201 9 other papers
9 dated earlier
2006.15815 (2020-06)
Adaptive Inertia: Disentangling the Effects of Adaptive Learning Rate and Momentum
2108.09976 (2021-08)
Revealing the Distributional Vulnerability of Discriminators by Implicit Generators
2201.13329 (2022-01)
Can Adversarial Training Be Manipulated By Non-Robust Features?
and 6 more not named here
resnet32 6 other papers
6 dated earlier
1511.00561 (2015-11)
SegNet: A Deep Convolutional Encoder-Decoder Architecture for Image Segmentation
1911.03809 (2019-11)
Meta Label Correction for Noisy Label Learning
2006.12557 (2020-06)
Just How Toxic is Data Poisoning? A Unified Benchmark for Backdoor and Data Poisoning Attacks
and 3 more not named here
resnet20 4 other papers
3 dated earlier, 1 later
1511.00561 (2015-11)
SegNet: A Deep Convolutional Encoder-Decoder Architecture for Image Segmentation
2211.16274 (2022-11)
NCTV: Neural Clamping Toolkit and Visualization for Neural Network Calibration
2407.12543 (2024-07)
Abstraction Alignment: Comparing Model-Learned and Human-Encoded Conceptual Relationships
and 1 more not named here
resnet44 2 other papers
2 dated earlier
2211.16274 (2022-11)
NCTV: Neural Clamping Toolkit and Visualization for Neural Network Calibration
2407.12543 (2024-07)
Abstraction Alignment: Comparing Model-Learned and Human-Encoded Conceptual Relationships
vgg11_bn 2 other papers
2 dated earlier
2105.13937 (2021-05)
Polygonal Unadjusted Langevin Algorithms: Creating stable and efficient adaptive algorithms for neural networks
2206.13190 (2022-06)
An Empirical Study of Personalized Federated Learning
perturbation_loss_tanh 1 other paper
1 dated earlier
2407.12993 (2024-07)
Improving SAM Requires Rethinking its Optimization Formulation
smooth_crossentropy 1 other paper
1 dated earlier
2407.12993 (2024-07)
Improving SAM Requires Rethinking its Optimization Formulation
vgg11 1 other paper
1 dated earlier
2105.13937 (2021-05)
Polygonal Unadjusted Langevin Algorithms: Creating stable and efficient adaptive algorithms for neural networks

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

Sharpness-aware minimization (SAM) has been shown to improve the generalization of neural networks. However, each SAM update requires sequentially computing two gradients, effectively doubling the per-iteration cost compared to base optimizers like SGD. We propose a simple modification of SAM, termed SAMPa, which allows us to fully parallelize the two gradient computations. SAMPa achieves a twofold speedup of SAM under the assumption that communication costs between devices are negligible. Empirical results show that SAMPa ranks among the most efficient variants of SAM in terms of computational time. Additionally, our method consistently outperforms SAM across both vision and language tasks. Notably, SAMPa theoretically maintains convergence guarantees even for fixed perturbation sizes, which is established through a novel Lyapunov function. We in fact arrive at SAMPa by treating this convergence guarantee as a hard requirement-an approach we believe is promising for developing SAM-based methods in general. Our code is available at https://github.com/LIONS-EPFL/SAMPa.

For agents

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

get_harvested_code_for_paper("2410.10683")
get_code_for_paper("2410.10683")
have("2410.10683")

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

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

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

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

Connect an agent — have() is free.