IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v13y2025i8p1259-d1632862.html
   My bibliography  Save this article

Exploring Flatter Loss Landscape Surface via Sharpness-Aware Minimization with Linear Mode Connectivity

Author

Listed:
  • Hailun Liang

    (School of Computer Science and Engineering, Macau University of Science and Technology, Macau 999078, China)

  • Haowen Zheng

    (School of Computer Science and Engineering, Macau University of Science and Technology, Macau 999078, China)

  • Hao Wang

    (School of Computer Science and Engineering, Macau University of Science and Technology, Macau 999078, China)

  • Liu He

    (School of Computer Science and Engineering, Macau University of Science and Technology, Macau 999078, China)

  • Haoyi Lin

    (School of Computer Science and Engineering, Macau University of Science and Technology, Macau 999078, China)

  • Yanyan Liang

    (School of Computer Science and Engineering, Macau University of Science and Technology, Macau 999078, China)

Abstract

The Sharpness-Aware Minimization (SAM) optimizer connects flatness and generalization, suggesting that loss basins with lower sharpness are correlated with better generalization. However, SAM requires manually tuning the open ball radius, which complicates its practical application. To address this, we propose a method inspired by linear connectivity, using two models initialized differently as endpoints to automatically determine the optimal open ball radius. Specifically, we introduce distance regularization between the two models during training, which encourages them to approach each other, thus dynamically adjusting the open ball radius. We design an optimization algorithm called ’Twin Stars Entwined’ (TSE), where the stopping condition is defined by the models’ linear connectivity, i.e., when they converge to a region of sufficiently low distance. As the models iteratively reduce their distance, they converge to a flatter region of the loss landscape. Our approach complements SAM by dynamically identifying flatter regions and exploring the geometric properties of multiple connected loss basins. Instead of searching for a single large-radius basin, we identify a group of connected basins as potential optimization targets. Experiments conducted across multiple models and in varied noise environments showed that our method achieved a performance on par with state-of-the-art techniques.

Suggested Citation

  • Hailun Liang & Haowen Zheng & Hao Wang & Liu He & Haoyi Lin & Yanyan Liang, 2025. "Exploring Flatter Loss Landscape Surface via Sharpness-Aware Minimization with Linear Mode Connectivity," Mathematics, MDPI, vol. 13(8), pages 1-26, April.
  • Handle: RePEc:gam:jmathe:v:13:y:2025:i:8:p:1259-:d:1632862
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/13/8/1259/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/13/8/1259/
    Download Restriction: no
    ---><---

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:13:y:2025:i:8:p:1259-:d:1632862. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.