Skip to main navigation Skip to search Skip to main content

CR-SAM: Curvature Regularized Sharpness-Aware Minimization: Curvature Regularized Sharpness-Aware Minimization

Research output: Contribution to journalConference articlepeer-review

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

Original languageAmerican English
Pages (from-to)6144-6152
Number of pages9
JournalProceedings of the AAAI Conference on Artificial Intelligence
Volume38
Issue number6
DOIs
StatePublished - Mar 25 2024
Event38th AAAI Conference on Artificial Intelligence, AAAI 2024 - Vancouver, Canada
Duration: Feb 20 2024Feb 27 2024

ASJC Scopus Subject Areas

  • Artificial Intelligence

Disciplines

  • Computer Sciences
  • Electrical and Computer Engineering

Fingerprint

Dive into the research topics of 'CR-SAM: Curvature Regularized Sharpness-Aware Minimization: Curvature Regularized Sharpness-Aware Minimization'. Together they form a unique fingerprint.

Cite this