IDEAS home Printed from https://ideas.repec.org/a/spr/joptap/v200y2024i2d10.1007_s10957-023-02345-7.html
   My bibliography  Save this article

On Stochastic Roundoff Errors in Gradient Descent with Low-Precision Computation

Author

Listed:
  • Lu Xia

    (Eindhoven University of Technology)

  • Stefano Massei

    (Università di Pisa)

  • Michiel E. Hochstenbach

    (Eindhoven University of Technology)

  • Barry Koren

    (Eindhoven University of Technology)

Abstract

When implementing the gradient descent method in low precision, the employment of stochastic rounding schemes helps to prevent stagnation of convergence caused by the vanishing gradient effect. Unbiased stochastic rounding yields zero bias by preserving small updates with probabilities proportional to their relative magnitudes. This study provides a theoretical explanation for the stagnation of the gradient descent method in low-precision computation. Additionally, we propose two new stochastic rounding schemes that trade the zero bias property with a larger probability to preserve small gradients. Our methods yield a constant rounding bias that, on average, lies in a descent direction. For convex problems, we prove that the proposed rounding methods typically have a beneficial effect on the convergence rate of gradient descent. We validate our theoretical analysis by comparing the performances of various rounding schemes when optimizing a multinomial logistic regression model and when training a simple neural network with an 8-bit floating-point format.

Suggested Citation

  • Lu Xia & Stefano Massei & Michiel E. Hochstenbach & Barry Koren, 2024. "On Stochastic Roundoff Errors in Gradient Descent with Low-Precision Computation," Journal of Optimization Theory and Applications, Springer, vol. 200(2), pages 634-668, February.
  • Handle: RePEc:spr:joptap:v:200:y:2024:i:2:d:10.1007_s10957-023-02345-7
    DOI: 10.1007/s10957-023-02345-7
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s10957-023-02345-7
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s10957-023-02345-7?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    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:spr:joptap:v:200:y:2024:i:2:d:10.1007_s10957-023-02345-7. 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: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.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.