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

Lu Xia (Corresponding author), Stefano Massei, Michiel E. Hochstenbach, Barry Koren

Onderzoeksoutput: Bijdrage aan tijdschriftTijdschriftartikelAcademicpeer review

36 Downloads (Pure)

Samenvatting

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.

Originele taal-2Engels
Pagina's (van-tot)634-668
Aantal pagina's35
TijdschriftJournal of Optimization Theory and Applications
Volume200
Nummer van het tijdschrift2
Vroegere onlinedatum20 dec. 2023
DOI's
StatusGepubliceerd - feb. 2024

Financiering

We thank the reviewers for their constructive comments and the editor for the handling of this paper. This research was funded by the EU ECSEL Joint Undertaking under Grant agreement No. 826452 (project Arrowhead Tools).

FinanciersFinanciernummer
Electronic Components and Systems for European Leadership826452

    Vingerafdruk

    Duik in de onderzoeksthema's van 'On Stochastic Roundoff Errors in Gradient Descent with Low-Precision Computation'. Samen vormen ze een unieke vingerafdruk.

    Citeer dit