# GCSAM: Gradient Centralized Sharpness Aware Minimization

**Authors:** MOHAMED HASSAN, ALEKSANDAR VAKANSKI, BOYU ZHANG, MIN XIAN

PMC · DOI: 10.1109/access.2025.3624332 · IEEE access : practical innovations, open solutions · 2025-11-11

## TL;DR

This paper introduces GCSAM, an improved optimization method that enhances the generalization and efficiency of deep learning models, especially in medical imaging.

## Contribution

GCSAM integrates Gradient Centralization with Sharpness-Aware Minimization to reduce noise and improve training stability.

## Key findings

- GCSAM outperforms SAM and Adam in generalization on vision and medical imaging datasets.
- Gradient Centralization stabilizes training and reduces computational overhead.
- Results show consistent improvements in robustness and efficiency for critical applications like medical image analysis.

## Abstract

The generalization performance of deep neural networks (DNNs) is a critical factor in achieving robust model behavior on unseen data. Recent studies have highlighted the importance of sharpness-based measures in promoting generalization by encouraging convergence to flatter minima. Among these approaches, Sharpness-Aware Minimization (SAM) has emerged as an effective optimization technique for reducing the sharpness of the loss landscape, thereby improving generalization. However, SAM’s computational overhead and sensitivity to noisy gradients limit its scalability and efficiency. To address these challenges, we propose Gradient-Centralized Sharpness-Aware Minimization (GCSAM), which incorporates Gradient Centralization (GC) to stabilize gradients and accelerate convergence. GCSAM normalizes gradients before the ascent step, reducing noise and variance, and improving stability during training. Our evaluations on both general vision benchmarks (CIFAR-10, CIFAR-100) and critical medical imaging datasets (breast ultrasound and COVID-19 chest X-rays) demonstrate that GCSAM consistently outperforms SAM and the Adam optimizer in terms of generalization and computational efficiency. These results highlight GCSAM’s potential for improving reliability in domains where robust generalization is essential, particularly in medical image analysis. Our code is available at https://github.com/mhassann22/GCSAM

## Linked entities

- **Diseases:** breast cancer (MONDO:0004989), COVID-19 (MONDO:0100096)

## Full-text entities

- **Diseases:** COVID-19 (MESH:D000086382)

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12599882/full.md

## Figures

8 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12599882/full.md

## References

55 references — full list in the complete paper: https://tomesphere.com/paper/PMC12599882/full.md

---
Source: https://tomesphere.com/paper/PMC12599882