SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2312.13555 · 2023

CR-SAM: Curvature Regularized Sharpness-Aware Minimization

arXiv · PDF · Open in the Atlas

Code that ran

7 of 11 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; 4 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/2312.13555.json · badge: /api/ran/2312.13555.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
trustaiot/cr-sam canonical (classifier label)
classifier basis: census
7 ran · 4 no recorded run
FunctionStatusWhere it lives
WRN28_10 Ran
ran; our contract draft was wrong, not the code
trustaiot/cr-sam/models/wrn_28_10.py
pointer only (licence: NONE) · get_code("1b6b90e1a60dc199")
How it ran

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

grad_norm Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
trustaiot/cr-sam/metrics/metrics.py
pointer only (licence: NONE) · get_code("f019eaa51fe8d809")
How it ran

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

group_add Ran
ran; our contract draft was wrong, not the code
trustaiot/cr-sam/metrics/hessian.py
pointer only (licence: NONE) · get_code("2530e16bed546c6a")
How it ran

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

group_product Ran
ran, honoured the contract we drafted
trustaiot/cr-sam/metrics/hessian.py
pointer only (licence: NONE) · get_code("c35e05b48a3f5b73")
How it ran

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

normalization Ran
ran; our contract draft was wrong, not the code
trustaiot/cr-sam/metrics/hessian.py
pointer only (licence: NONE) · get_code("0e4f4ed57a87f93d")
How it ran

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

shear_x Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
trustaiot/cr-sam/utils/autoaugment.py
pointer only (licence: NONE) · get_code("53613a740588d619")
How it ran

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

transform_matrix_offset_center Ran
ran; our contract draft was wrong, not the code
trustaiot/cr-sam/utils/autoaugment.py
pointer only (licence: NONE) · get_code("3e773c6c5bc796d4")
How it ran

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

ResNet18 Not yet run
unverified (harvested, no recorded run)
trustaiot/cr-sam/models/resnet.py
pointer only (licence: NONE) · get_code("b179c6e8a69a7442")
How it ran

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

ResNet34 Not yet run
unverified (harvested, no recorded run)
trustaiot/cr-sam/models/resnet.py
pointer only (licence: NONE) · get_code("9e5e3e4cd9d178d9")
How it ran

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

ResNet50 Not yet run
unverified (harvested, no recorded run)
trustaiot/cr-sam/models/resnet.py
pointer only (licence: NONE) · get_code("49cfb2b239af503d")
How it ran

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

apply_policy Not yet run
unverified (harvested, no recorded run)
trustaiot/cr-sam/utils/autoaugment.py
pointer only (licence: NONE) · get_code("c7f01b2cafbe5f80")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, trustaiot/cr-sam 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 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 9 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 0 the same month, 4 later) and 2 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
ResNet18 7 other papers
6 dated earlier, 1 later
1807.06906 (2018-07)
Towards Automated Deep Learning: Efficient Joint Neural Architecture and Hyperparameter Search
1905.09747 (2019-05)
Adversarially Robust Distillation
2011.03083 (2020-11)
A Tunable Robust Pruning Framework Through Dynamic Network Rewiring of DNNs
and 4 more not named here
apply_policy 6 other papers
5 dated earlier, 1 later
1805.09501 (2018-05)
AutoAugment: Learning Augmentation Policies from Data
1903.05285 (2019-03)
All You Need is a Few Shifts: Designing Efficient Convolutional Neural Networks for Image Classification
1908.09791 (2019-08)
Once-for-All: Train One Network and Specialize it for Efficient Deployment
and 3 more not named here
transform_matrix_offset_center 6 other papers
5 dated earlier, 1 later
1805.09501 (2018-05)
AutoAugment: Learning Augmentation Policies from Data
1903.05285 (2019-03)
All You Need is a Few Shifts: Designing Efficient Convolutional Neural Networks for Image Classification
1908.09791 (2019-08)
Once-for-All: Train One Network and Specialize it for Efficient Deployment
and 3 more not named here
shear_x 5 other papers
4 dated earlier, 1 later
1805.09501 (2018-05)
AutoAugment: Learning Augmentation Policies from Data
1903.05285 (2019-03)
All You Need is a Few Shifts: Designing Efficient Convolutional Neural Networks for Image Classification
1908.09791 (2019-08)
Once-for-All: Train One Network and Specialize it for Efficient Deployment
and 2 more not named here
ResNet34 3 other papers
3 dated earlier
1807.06906 (2018-07)
Towards Automated Deep Learning: Efficient Joint Neural Architecture and Hyperparameter Search
1905.09747 (2019-05)
Adversarially Robust Distillation
2106.04928 (2021-06)
Reliable Adversarial Distillation with Unreliable Teachers
ResNet50 3 other papers
3 dated earlier
1905.09747 (2019-05)
Adversarially Robust Distillation
2106.04928 (2021-06)
Reliable Adversarial Distillation with Unreliable Teachers
2201.13329 (2022-01)
Can Adversarial Training Be Manipulated By Non-Robust Features?
group_add 2 other papers
2 dated earlier
1912.07145 (2019-12)
PyHessian: Neural Networks Through the Lens of the Hessian
2307.11833 (2023-07)
PINNsFormer: A Transformer-Based Framework For Physics-Informed Neural Networks
group_product 2 other papers
2 dated earlier
1912.07145 (2019-12)
PyHessian: Neural Networks Through the Lens of the Hessian
2307.11833 (2023-07)
PINNsFormer: A Transformer-Based Framework For Physics-Informed Neural Networks
normalization 2 other papers
2 dated earlier
1912.07145 (2019-12)
PyHessian: Neural Networks Through the Lens of the Hessian
2307.11833 (2023-07)
PINNsFormer: A Transformer-Based Framework For Physics-Informed 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

The capacity to generalize to future unseen data stands as one of the utmost crucial attributes of deep neural networks. Sharpness-Aware Minimization (SAM) aims to enhance the generalizability by minimizing worst-case loss using one-step gradient ascent as an approximation. However, as training progresses, the non-linearity of the loss landscape increases, rendering one-step gradient ascent less effective. On the other hand, multi-step gradient ascent will incur higher training cost. In this paper, we introduce a normalized Hessian trace to accurately measure the curvature of loss landscape on {\em both} training and test sets. In particular, to counter excessive non-linearity of loss landscape, we propose Curvature Regularized SAM (CR-SAM), integrating the normalized Hessian trace as a SAM regularizer. Additionally, we present an efficient way to compute the trace via finite differences with parallelism. Our theoretical analysis based on PAC-Bayes bounds establishes the regularizer's efficacy in reducing generalization error. Empirical evaluation on CIFAR and ImageNet datasets shows that CR-SAM consistently enhances classification performance for ResNet and Vision Transformer (ViT) models across various datasets. Our code is available at https://github.com/TrustAIoT/CR-SAM.

For agents

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

get_harvested_code_for_paper("2312.13555")
get_code_for_paper("2312.13555")
have("2312.13555")

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

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

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

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

Connect an agent — have() is free.