On Gradient Descent with Stochastic Rounding on Fixed-Point Grids for Quadratic Objectives
Anonymous authors
ICLR 2027
Abstract. We study gradient descent on quadratic objectives whose iterates are constrained to a fixed-point grid with spacing via stochastic rounding, by analyzing the hitting time to reach a grid minimizer, i.e., a minimizer over the grid. We first consider objectives whose minimizer lies on the grid and show that unlike gradient descent over the reals, the hitting time is not determined by the spectrum of the Hessian. Specifically, for a Hessian with a fixed spectrum and a random eigenbasis, the hitting time is in the dimension with high probability, and the Hamming distance to the grid minimizer and the optimization error remain of order and , respectively, e.g., for Gaussian least squares with samples. In contrast, a diagonal Hessian with the same spectrum gives an hitting time, which we generalize to a sufficient condition satisfied by diagonally dominant Hessians and by Gaussian least squares with . This logarithmic upper bound matches an lower bound that holds for all Hessians with a unique grid minimizer when the initial Hamming distance is . However, a large Hamming distance does not always imply a large optimization error: for a class of rank-deficient Hessians, e.g., Gaussian least squares with , the optimization error drops to within iterations while the Hamming distance remains of order for a number of iterations polynomial in . Finally, if the minimizer of the objective lies off the grid, the exponential lower bound can persist, whereas the location of the minimizer alone can change the hitting time from logarithmic to exponential.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
ICLR 2027
Under review · 3 reviews · OpenReview
Updated 25 Nov 2026, 10:37 UTC.
- Rating
- 3/4(+1)
- Confidence
- 3/4
- Soundness
- 2/3
- Presentation
- 2/3
- Informativeness
- 2/3
Read review
Summary
This paper investigates the convergence behavior of gradient descent with stochastic rounding (SR-GD) for quadratic optimization problems over fixed-point grids. Unlike classical gradient descent over continuous domains, where convergence is largely characterized by the eigenvalues of the Hessian, the authors demonstrate that the convergence behavior of SR-GD depends critically on the eigenbasis of the Hessian and the location of the minimizer relative to the grid. The paper establishes several theoretical results. First, for positive definite Hessians with a fixed spectrum and a randomly rotated eigenbasis, SR-GD can require exponentially many iterations in the dimension to reach the grid minimizer, even when the condition number is bounded. In contrast, diagonal and certain diagonally dominant Hessians admit logarithmic hitting times. Second, the authors characterize different convergence regimes for Gaussian least-squares problems, showing how the number of samples affects the hitting time. Third, for rank-deficient Hessians, they demonstrate that the optimization error can become small while the iterates remain far from the grid minimizer in Hamming distance. Finally, the paper extends the analysis to off-grid minimizers and shows that the location of the continuous minimizer can fundamentally change the hitting-time complexity. Overall, the paper provides a theoretical investigation of how stochastic rounding changes the optimization dynamics of gradient descent, highlighting phenomena that are not captured by classical spectral convergence analysis.
Strengths
The authors proposed a novel and interesting theoretical perspective in this submission. The paper identifies a fundamental distinction between classical gradient descent and stochastic-rounding gradient descent. In particular, the result that two Hessians with identical eigenvalues can exhibit logarithmic versus exponential hitting times is interesting and provides insight into the limitations of spectral convergence analysis in finite-precision optimization. These are strong theoretical contributions. The paper develops several nontrivial convergence results, including exponential lower bounds, logarithmic upper bounds, and matching bounds in important regimes. Theorem 1 establishes exponential hitting times for randomly rotated Hessians, while Theorem 2 shows that this exponential dependence is tight up to constants in the exponent. Theorem 6 further establishes a logarithmic lower bound for initializations with large Hamming distance.
The authors also presented comprehensive analysis of different problem settings. The authors consider positive definite, rank-deficient, and off-grid quadratic optimization problems. These different settings help distinguish convergence in optimization error from convergence to an exact grid minimizer. The results for Gaussian least squares also provide concrete examples illustrating the theoretical phenomena. The authors provided insightful characterization of the role of Hessian structure. The sufficient contraction conditions in Section 3.2 provide a useful explanation of why some Hessians lead to fast convergence despite stochastic rounding. The comparison between the conditions $|J|_2<14 and is particularly informative because it highlights how coordinate-wise rounding makes the orientation of the Hessian relevant.
Finally, this submission has clear organization with substantial mathematical analysis. The paper is logically structured, with the main theoretical contributions presented in Sections 3 and 4 and supporting proofs provided in the appendices. The use of Hamming distance, hitting-time analysis, and potential functions provides a coherent framework for studying the stochastic optimization dynamics.
Weaknesses
The most significant weakness of this submission is the lack of numerical experiments to validate the theoretical findings. The paper is entirely theoretical and does not provide numerical experiments illustrating the proposed convergence phenomena. Although the theoretical results are interesting, empirical validation would strengthen the paper significantly. In particular, experiments comparing diagonal Hessians, randomly rotated Hessians, and Gaussian least-squares problems would help demonstrate the predicted logarithmic and exponential hitting-time regimes. Furthermore, numerical experiments could investigate whether the theoretical bounds accurately characterize practical convergence behavior at moderate dimensions.
Moreover, the analysis on pure quadratic optimization problems has limited applications. The theoretical analysis focuses exclusively on convex quadratic objectives with constant Hessians. While this setting is mathematically convenient and allows precise characterization of stochastic rounding, practical machine learning problems generally involve nonlinear and non-convex objectives. It remains unclear whether the exponential hitting-time phenomena persist for more general strongly convex smooth functions or for non-convex optimization problems. The paper would benefit from discussing potential extensions and the main technical difficulties involved.
Also, the practical significance of hitting-time complexity needs further justification. The primary convergence measure is the hitting time to an exact grid minimizer. However, in practical machine learning, optimization algorithms are typically evaluated according to their objective values, gradient norms, or predictive performance rather than the time required to reach an exact minimizer. In particular, Theorem 8 demonstrates that optimization error can become small even when the hitting time is large. This raises an important question about whether exponential hitting times necessarily indicate poor optimization performance. The authors should more explicitly distinguish between the complexity of reaching an exact grid minimizer and the complexity of achieving an approximately optimal objective value. Moreover, some assumptions are restrictive. Several main results require specific assumptions on the Hessian, including Haar-random eigenbases, bounded condition numbers, and prescribed eigenvalue variance. The logarithmic upper bounds also rely on particular contraction conditions. Although these assumptions are mathematically meaningful, their prevalence in practical optimization problems is unclear. A discussion of how frequently these conditions arise in real machine learning applications would strengthen the significance of the results.
Questions for the authors
Can the exponential hitting-time lower bound in Theorem 1 be extended to general strongly convex and smooth functions? Would Hessian Lipschitz continuity be sufficient for establishing analogous results locally?
6 comments
We then examine whether our main observations extend beyond the assumptions of our theory. Here, our main observations from theory are that (a) the hitting time of SR-GD depends on the eigenbasis of the Hessian, not only on its spectrum, (b) even from an initializer that differs from the minimizer in a single coordinate, the optimization error can increase and persist, and (c) the hitting time also depends on the location of the minimizer relative to the grid. We observe that they extend to the following settings.
- Floating-point grids (Appendix H.8). We repeat the experiments on the eigenbasis and on the location of the minimizer, where each coordinate is stochastically rounded to the values representable in FP8, FP16, or FP32, whose spacing varies with the magnitude. Here, the hitting time still depends on both (a) the eigenbasis and (c) the location of the minimizer.
- Smooth non-quadratic objectives (Appendix H.9). We consider , where is a logistic or Cauchy loss with and , half of the coefficients are and the others are , and is a Haar-random orthogonal matrix or the identity matrix. Here, the logistic loss with and and the Cauchy loss with give convex, strongly convex, and nonconvex objectives, respectively, which are not quadratic in any neighborhood of their minimizer . For both eigenbases, is the unique grid minimizer, and the Hessian at has the same eigenvalues . We run SR-GD from an initializer that differs from in every coordinate. For (a), SR-GD is slow for the Haar-random eigenbasis and fast for the identity eigenbasis, as for quadratic objectives. Since the strongly convex and nonconvex objectives, which have the same Hessian at the minimizer, behave similarly, the behavior of SR-GD depends on the Hessian at the minimizer rather than on convexity. For (b), the optimization error of the Haar-random eigenbasis persists at the order of for large , whereas GD decreases it rapidly. For (c), translating the objective by a quarter of the grid spacing in every coordinate makes SR-GD slow for the identity eigenbasis, as in Case (ii) of Theorem 12.
- Non-quadratic objectives on real data (Appendix H.10). We consider three models with -regularization: logistic regression on the Gisette dataset (), softmax regression on the MNIST dataset (), and a two-layer network with hidden units and activations that learns a teacher model on MNIST images (). Here, objectives and gradients are computed in FP32. For each model, we first compute a stationary point numerically. We then compare the original grid with the aligned grid , where the columns of are the eigenvectors of the Hessian at . That is, the aligned grid makes the Hessian at diagonal in the grid coordinates, as for the diagonal Hessian in Section 3.2. We also translate both grids slightly, so that lies off the grid. SR-GD starts from initializers that differ from by the grid spacing in a single coordinate, by the grid spacing in many coordinates, or by random multiples of the grid spacing. For (a), on the original grid, SR-GD from initializers that differ from in many coordinates does not reach it within our time horizon, whereas on the aligned grid, SR-GD reaches from every initializer. For (b), on the original grid, even from initializers that differ in a single coordinate, the Hamming distance spreads to many coordinates, and for logistic and softmax regression, the optimization error increases. For (c), the translation of the aligned grid slows down SR-GD.
We refer to Appendix H for the full details of the setup and the detailed discussions of each experiment.
C2. Extensions beyond quadratic objectives (e.g., to general strongly convex and smooth functions, or under Hessian Lipschitz continuity) and the main technical difficulties.
R2. We thank the reviewer for this valuable comment. We would like to note that, as a worst-case lower bound, our result in Theorem 1 already holds for the classes of strongly convex, convex, and smooth (possibly nonconvex) functions, since the quadratic objectives in Theorem 1 belong to these classes. Furthermore, our lower bounds extend to the following non-quadratic objectives, which we added to the revised draft (the paragraph "Extensions to non-quadratic objectives" in Section 3.1 and Appendix G).
- Locally quadratic objectives. Consider an objective that coincides with a quadratic objective satisfying the assumptions of Theorem 1 in a ball of radius around an interior grid point for a sufficiently large constant , while it can be any differentiable function outside the ball, convex or nonconvex. We show that SR-GD initialized in this ball does not leave it for iterations with high probability, due to the contraction of GD and the bounded rounding noise. Since the objective coincides with the quadratic objective inside the ball, the same lower bounds hold, where need not be a global minimizer (Corollary 59).
- Separable perturbations. Consider an objective , where is a quadratic objective satisfying the assumptions of Theorem 1 and each is differentiable with , , and for a constant , e.g., the Cauchy penalty with . With the Cauchy penalty, this objective is not quadratic in any neighborhood of its minimizer. However, since , the added term does not change the gradient on the coordinates that already match the minimizer, and hence, the mechanism creating new coordinate errors (Proposition 3) is unchanged. Hence, the same lower bounds hold with (Corollary 60). For the Cauchy penalty, the objective is strongly convex if , convex but not strongly convex if , and nonconvex otherwise.
For more general objectives, the main technical difficulty is to preserve the spreading of coordinate errors in Proposition 3. Our proof of Theorem 1 relies on the linearity of the gradient. In particular, the spreading condition in Proposition 3 is homogeneous in the displacement , and hence it suffices to verify it once, uniformly over sparse displacements, regardless of their magnitudes. However, for non-quadratic objectives, the gradient on the coordinates that match the minimizer depends nonlinearly on both the direction and the magnitude of . Hence, the nonlinear terms can reduce the spreading, e.g., when the gradient at becomes nearly parallel to at some scale, in which case it nearly vanishes on the coordinates that match the minimizer. We think that a natural next step is rotated separable objectives with smooth and a Haar-random orthogonal matrix , which reduce to Theorem 1 when each is quadratic. We observe similar behaviors for such objectives with logistic and Cauchy losses in our experiments (Appendix H.9; see also our response to C1).
For the Hessian Lipschitz continuity, we think that it is not sufficient for an analogous local result if the Lipschitz constant does not depend on . That is, the iterates stay at distance of order from the minimizer, where the nonlinear part of the gradient need not be small. Nevertheless, we expect that our argument for locally quadratic objectives can be extended if the nonlinear part of the gradient is sufficiently small. Specifically, suppose that an objective has a minimizer in the interior of the grid such that satisfies the assumptions of Theorem 1 and is -Lipschitz in a ball of radius around . Then, with in the ball. Hence, we believe that the same lower bound holds for SR-GD initialized in the ball if , i.e., , is sufficiently small.
- Rating
- 4/4
- Confidence
- 2/4
- Soundness
- 3/3
- Presentation
- 3/3
- Informativeness
- 3/3
Read review
Summary
The paper studies gradient descent with stochastic rounding on fixed-point grids for convex quadratic objectives, focusing primarily on the hitting time to reach a grid minimizer. The main result shows that convergence depends strongly on the eigenbasis of the Hessian, rather than only its spectrum as in standard gradient descent. For identical eigenvalues, a diagonal Hessian yields an hitting time, whereas a randomly rotated Hessian can lead to an hitting time. The authors also establish that the optimization error can remain for exponentially many iterations. Additional results cover Gaussian least squares, rank-deficient Hessians, where optimization error and hitting time can behave differently, and the case where the continuous minimizer is off-grid. The paper is theoretical, with proofs provided in the appendices.
Strengths
-
Strong eigenbasis dependence: The main contribution is the striking separation between logarithmic and exponential hitting times for Hessians with identical eigenvalues and bounded condition numbers. This contrasts with standard gradient descent, whose convergence rate depends on the spectrum. The exponential lower bound is also matched by an upper bound, making the result tight in the exponent.
-
Persistent optimization error: The phenomenon extends beyond the exact hitting time. Starting from a single incorrect coordinate, stochastic rounding can produce incorrect coordinates, with an optimization error of persisting for exponentially many iterations. The extensions to Gaussian least squares and rank-deficient Hessians, where objective error and Hamming distance can exhibit different behaviors, further strengthen the theoretical contribution.
Weaknesses
-
Unclear practical relevance: The analysis focuses on quadratic objectives with exact gradients, constant stepsizes, fixed-point grids, and independent coordinate-wise rounding. It remains unclear whether the exponential hitting times arise at practically relevant dimensions and numerical precisions. The absence of numerical experiments also makes it difficult to assess the practical implications, although the paper is primarily theoretical.
-
Some claims require qualification: The comparison with Li et al. (2017) is not entirely precise. The authors suggest that their persistent error establishes the tightness of previous upper bounds, but Li et al. analyze averaged iterates with decreasing stepsizes, rather than individual iterates with constant stepsizes. Thus, the lower bound does not directly establish tightness of those guarantees. Similarly, the off-grid upper bound stated in Section 4 appears more general than Proposition 45, which assumes that lies within the grid's bounding box. These issues do not undermine the main result but call for more precise statements.
Questions for the authors
-
Theorem 1 establishes a persistent error for individual iterates, whereas Li et al. (2017) consider averaged iterates with decreasing stepsizes. In what sense does this lower bound establish the tightness of their upper bounds?
-
Section 4 states an upper bound for the off-grid case, but Proposition 45 assumes that lies within the grid's bounding box. Does the bound also hold when the minimizer lies outside this box, or should the statement be restricted?
5 comments
We thank the reviewer for their positive evaluation and valuable feedback. We address the reviewer's comments below and revised our draft accordingly, where all the updates are colored in blue.
C1. Unclear practical relevance.
R1. Following the reviewer's comment, we added numerical experiments in Appendix H of the revised draft. In our basic setup, we run SR-GD on the 8-bit fixed-point grid on , i.e., and , with the step size (Appendix H.1). We then extend this setup to fixed-point grids with , , , and bits, to floating-point grids in the FP8, FP16, and FP32 formats, and to non-quadratic objectives, including logistic regression on the Gisette dataset, softmax regression on the MNIST dataset, and a two-layer network that learns a teacher model on MNIST images. For each experiment, we run multiple trajectories, i.e., independent runs of SR-GD, which differ in the stochastic rounding. For a random Hessian, we sample multiple Hessians and run multiple trajectories for each of them.
Our main observations from theory are that (a) the hitting time of SR-GD depends on the eigenbasis of the Hessian, not only on its spectrum, (b) even from an initializer that differs from the minimizer in a single coordinate, the optimization error can increase and persist, and (c) the hitting time also depends on the location of the minimizer relative to the grid. We observe that they already appear at moderate dimensions (up to ) and extend to other precisions and to non-quadratic objectives as follows.
- Dimensions (Appendices H.3, H.4, and H.6). For (a), for the same spectrum, the median hitting time of a Haar-random eigenbasis increases rapidly with and exceeds our time horizon for , whereas SR-GD reaches the grid minimizer within a few iterations for the diagonal Hessian. For (b), even from an initializer that differs from the grid minimizer in a single coordinate, almost every trajectory keeps a Hamming distance of order and an optimization error of order for large , as in Theorem 1. We observe the same for Gaussian least squares with a sample size proportional to , as in Theorem 4. For (c), for , moving the minimizer away from the grid by a quarter of the grid spacing in every coordinate makes the hitting time increase rapidly with , as in Case (ii) of Theorem 12. That is, these phenomena already arise at dimensions much smaller than those of practical models.
- Precisions (Appendices H.7 and H.8). All of (a)–(c) hold at every tested precision, i.e., for , , , and bits, as our results hold for every . We also repeat the experiments on the eigenbasis and on the location of the minimizer, where each coordinate is stochastically rounded to the values representable in FP8, FP16, or FP32, whose spacing varies with the magnitude. Here, the hitting time still depends on both (a) the eigenbasis and (c) the location of the minimizer.
- Smooth non-quadratic objectives (Appendix H.9). We consider , where is a logistic or Cauchy loss with and , half of the coefficients are and the others are , and is a Haar-random orthogonal matrix or the identity matrix. Here, the logistic loss with and and the Cauchy loss with give convex, strongly convex, and nonconvex objectives, respectively, which are not quadratic in any neighborhood of their minimizer . For both eigenbases, is the unique grid minimizer, and the Hessian at has the same eigenvalues . We run SR-GD from an initializer that differs from in every coordinate. For (a), SR-GD is slow for the Haar-random eigenbasis and fast for the identity eigenbasis. For (b), the optimization error of the Haar-random eigenbasis persists at the order of for large , whereas GD decreases it rapidly. For (c), translating the objective by a quarter of the grid spacing in every coordinate makes SR-GD slow for the identity eigenbasis.
- Non-quadratic objectives on real data (Appendix H.10). We consider three models with -regularization: logistic regression on the Gisette dataset (), softmax regression on the MNIST dataset (), and a two-layer network with hidden units and activations that learns a teacher model on MNIST images (). Here, objectives and gradients are computed in FP32. For each model, we first compute a stationary point numerically. We then compare the original grid with the aligned grid , where the columns of are the eigenvectors of the Hessian at . That is, the aligned grid makes the Hessian at diagonal in the grid coordinates. We also translate both grids slightly, so that lies off the grid. SR-GD starts from initializers that differ from by the grid spacing in a single coordinate, by the grid spacing in many coordinates, or by random multiples of the grid spacing. For (a), on the original grid, SR-GD from initializers that differ from in many coordinates does not reach it within our time horizon, whereas on the aligned grid, SR-GD reaches from every initializer. For (b), on the original grid, even from initializers that differ in a single coordinate, the Hamming distance spreads to many coordinates, and for logistic and softmax regression, the optimization error increases. For (c), the translation of the aligned grid slows down SR-GD.
These results suggest that, in low-precision training with stochastic rounding, the convergence can depend on how the eigenbasis of the Hessian is aligned with the coordinate grid and where the minimizer lies relative to the grid, not only on the spectrum of the Hessian. We refer to Appendix H for the full details of the setup and the detailed discussions of each experiment.
C2. The comparison with Li et al. (2017) is not entirely precise. In what sense does this lower bound establish the tightness of their upper bounds?
R2. We thank the reviewer for pointing this out. As the reviewer mentioned, Li et al. (2017) consider averaged iterates with decreasing step sizes, and hence our lower bound does not establish the tightness of their bound. On the other hand, Li and De Sa (2019) consider a uniformly selected iterate with a constant step size. In our setting with exact gradients and a sufficiently small constant step size, their upper bound becomes , while Theorem 1 shows that, with high probability, the optimization error is from iterations up to iterations. Hence, their bound is tight up to a constant factor for every horizon with , even though the minimizer lies on the grid. We note that this is not the case as , since the on-grid minimizer is absorbing and SR-GD reaches it within iterations with high probability (Theorem 2).
Following the reviewer's comment, we revised the corresponding statements in the introduction and Section 3.1 as follows.
- Introduction.
- Original: "Hence, even from an initial Hamming distance of , the optimization error increases from to and stays there over this horizon, i.e., the error in the existing upper bounds of Li et al. (2017) and Li and De Sa (2019) can be attained."
- Revised: "Hence, even from an initial Hamming distance of , the optimization error increases from to and stays there over this horizon. In particular, for a small constant step size, the error in the upper bound of Li and De Sa (2019) for a uniformly selected iterate is tight up to a constant factor over this horizon."
- Section 3.1.
- Original: "This shows that the error in the upper bounds of Li et al. (2017) and Li and De Sa (2019) can be attained and persist for exponentially many iterations."
- Revised: "In particular, for a small constant step size and exact gradients, the bound of Li and De Sa (2019, Theorem 1) on a uniformly selected iterate is . Hence, it is tight up to a constant factor for every horizon with , even though the minimizer lies on the grid. We note that Li et al. (2017) also give an upper bound of the same order, but for averaged iterates with decreasing step sizes."
C3. The off-grid upper bound stated in Section 4 appears more general than Proposition 45.
R3. We thank the reviewer for pointing this out. The reviewer is correct, and the statement in Section 4 should be restricted, since Proposition 45 assumes in addition to . Following the reviewer's comment, we revised Section 4 as follows.
- Original: "The upper bound in Theorem 2 also extends up to a logarithmic factor in the exponent: with probability at least over rounding (Proposition 45 in Appendix)."
- Revised: "The upper bound in Theorem 2 also extends up to a logarithmic factor in the exponent: for , with probability at least over rounding (Proposition 45 in Appendix)."
We would be happy to clarify any concerns or answer any questions that may come up during the discussion period.
[Li et al., 2017] Hao Li, Soham De, Zheng Xu, Christoph Studer, Hanan Samet, and Tom Goldstein. Training quantized nets: A deeper understanding. NeurIPS, 2017.
[Li and De Sa, 2019] Zheng Li and Christopher De Sa. Dimension-free bounds for low-precision training. NeurIPS, 2019.
- Rating
- 4/4(+2)
- Confidence
- 3/4
- Soundness
- 3/3
- Presentation
- 3/3
- Informativeness
- 2/3
Read review
Summary
This paper investigates the convergence behavior of gradient descent with stochastic rounding (SR-GD) when iterates are constrained to a finite fixed-point grid. The analysis focuses on convex quadratic objectives
with a fixed step size , where .
Rather than studying the usual convergence rate in function values, the authors investigate the hitting time: the first iteration at which SR-GD reaches a minimizer of the objective over the discrete grid.
The contributions of the paper are theoretical ones : exponential hitting times are proven on a discrete gris, as well as fast convergence for strctured Hessians.
Strengths
The mathematical analysis of the paper seems to be correct (at least all the proofs I checked are correct). Tight lower and upper bounds are given.
Weaknesses
Is the hitting time a relevant convergence criterion? The authors even show in Theorem 8 that the optimization error may become small much eerlier than the hitting time. This questions the interest/relevance of such a convergence criterion.
The setting of the paper is very limited (quadratic functions), and there is no numercial study. I am not convinced that such a paper will have much interest among ICLR attendees.
Questions for the authors
The authors should comment about their choice of convergence criterion. Could they also provide some numerical experiments to show that their theoretical findings can be enlarged to functions beyond the quadratic case ?
7 comments
We thank the reviewer for their valuable comments. We address the reviewer's comments below and revised our draft accordingly, where all the updates are colored in blue.
C1. Is the hitting time a relevant convergence criterion?
R1. We would like to clarify that our hitting time analysis follows the classical convergence analysis in convex optimization. Specifically, it is often said that the iterates of an optimization algorithm converge if the following condition holds (with high probability):
where is the optimal objective value. Here, the upper and lower bounds on as functions of , the dimension, etc. determine the speed of convergence.
In our setting, the iterates lie on the grid, and hence is replaced by the minimum objective value over the grid. Since the gap between the smallest and the second smallest objective values on the grid is strictly positive, the above condition reduces to
where is the set of grid minimizers. That is, SR-GD converges if and only if it hits a grid minimizer, and for sufficiently small , the number of iterations required to achieve is exactly the hitting time. In this sense, the hitting time determines the speed of convergence in our setting, and understanding it is the primary objective of our paper.
C2. In Theorem 8, the optimization error may become small much earlier than the hitting time.
R2. Following our response to C1, the hitting time is the number of iterations required to reach the exact minimum on the grid, i.e., to achieve an optimization error smaller than the gap between the smallest and the second smallest objective values on the grid. Hence, the hitting time characterizes the speed of convergence only for such small , and the number of iterations required to achieve a moderately small can be much smaller. Theorem 8 shows this difference: for and an initial Hamming distance , SR-GD achieves an optimization error of within iterations, while reaching the exact minimum, i.e., achieving an optimization error smaller than the gap, requires more than iterations for any constant with probability . Following the reviewer's comment, we revised our draft to clearly distinguish these two notions (the paragraph "Hitting time, Hamming distance, and optimization error" in Section 2).
This phenomenon is analogous to the distance to the optimum in gradient descent on ill-conditioned quadratic objectives over the reals. In this case, the objective lower bounds the squared distance to the optimum only up to the smallest eigenvalue of the Hessian, i.e., . Hence, if the smallest eigenvalue is very small, the objective can become small quickly while the iterate stays far from the optimum for a long time. On the grid, Eq. (3) plays the same role, where the distance to the optimum and the smallest eigenvalue are replaced by the Hamming distance and the restricted eigenvalue , respectively. If the restricted eigenvalue is bounded below, a large Hamming distance implies a large optimization error. For example, in Theorem 1, if the initial Hamming distance is , the optimization error itself stays for exponentially many iterations, i.e., even a moderately small requires exponentially many iterations. On the other hand, in Theorem 8, SR-GD achieves an optimization error of while the Hamming distance stays . Hence, by Eq. (3), the restricted eigenvalue is . We added this discussion in Section 3.3 of the revised draft.
C3. The setting of the paper is very limited (quadratic functions).
R3. We believe that our results are of interest to the ICLR community. Low-precision training reduces the memory and computation costs of large models, and stochastic rounding is widely used when updates are applied in low precision (see Section 1). However, since existing analyses of stochastic rounding provide only upper bounds, it was unclear whether the intuition from GD over the reals, e.g., that the spectrum of the Hessian determines the convergence speed, remains valid. Our results show that it does not, even for quadratic objectives, which are often considered one of the easiest cases: for a bounded condition number and an eigenvalue variance bounded below, the hitting time is exponential in for most Hessians with a given spectrum (Theorem 1), and also for Gaussian least squares with a sample size proportional to (Theorem 4). In contrast, it is for the diagonal Hessian with the same spectrum (Section 3.2). That is, the hitting time depends on the eigenbasis of the Hessian.
Furthermore, although our results are shown for quadratic objectives, they also apply to broader classes of objectives, including convex and nonconvex ones. In optimization theory, upper bounds are usually shown for all objectives in a class, while lower bounds are usually shown by specific hard examples. This is because a lower bound on the worst case over a class of interest (e.g., smooth objectives) only requires hard examples in the class, which typically contains both easy examples (e.g., strongly convex objectives for GD) and hard examples (e.g., Nesterov, 2013; Du et al., 2017). Our main results, i.e., the lower bounds on the hitting time and the dependence of the hitting time on the eigenbasis, are shown in the same way, but for a large class of quadratic objectives rather than a few specific examples. This class is contained in many classes of interest. For example, since the quadratic objectives in Theorem 1 are strongly convex and smooth, our results directly hold for the classes of strongly convex, convex, and smooth (possibly nonconvex) objectives.
Finally, our hard examples can also be extended to non-quadratic objectives. Following the reviewer's comment, we added the following results to the revised draft (the paragraph "Extensions to non-quadratic objectives" in Section 3.1 and Appendix G).
- Locally quadratic objectives (Corollary 59). If an objective coincides with a quadratic objective satisfying the assumptions of Theorem 1 in a ball of radius around an interior grid point for a sufficiently large constant , then SR-GD initialized in the ball stays there for iterations with high probability, and the same lower bounds hold. Outside the ball, the objective can be any differentiable function, convex or nonconvex.
- Separable perturbations (Corollary 60). For , where is a quadratic objective satisfying the assumptions of Theorem 1 and each is differentiable with , , and for a constant , the same lower bounds hold with . For example, with the Cauchy penalty , this objective is not quadratic in any neighborhood of its minimizer, and it is strongly convex, convex, or nonconvex depending on .
C4. On numerical experiments.
R4. Following the reviewer's comment, we added numerical experiments in Appendix H of the revised draft. In our basic setup, we run SR-GD on the 8-bit fixed-point grid on , i.e., and , with the step size (Appendix H.1). For each experiment, we run multiple trajectories, i.e., independent runs of SR-GD, which differ in the stochastic rounding. For a random Hessian, we sample multiple Hessians and run multiple trajectories for each of them.
We first examine whether our main observations extend beyond the quadratic case. Here, our main observations from theory are that (a) the hitting time of SR-GD depends on the eigenbasis of the Hessian, not only on its spectrum, (b) even from an initializer that differs from the minimizer in a single coordinate, the optimization error can increase and persist, and (c) the hitting time also depends on the location of the minimizer relative to the grid. We observe that they extend to the following non-quadratic objectives.
- Smooth non-quadratic objectives (Appendix H.9). We consider , where is a logistic or Cauchy loss with and , half of the coefficients are and the others are , and is a Haar-random orthogonal matrix or the identity matrix. Here, the logistic loss with and and the Cauchy loss with give convex, strongly convex, and nonconvex objectives, respectively, which are not quadratic in any neighborhood of their minimizer . For both eigenbases, is the unique grid minimizer, and the Hessian at has the same eigenvalues . We run SR-GD from an initializer that differs from in every coordinate. For (a), SR-GD is slow for the Haar-random eigenbasis and fast for the identity eigenbasis, as for quadratic objectives. In particular, the median hitting time of the Haar-random eigenbasis increases rapidly with . Since the strongly convex and nonconvex objectives, which have the same Hessian at the minimizer, behave similarly, the behavior of SR-GD depends on the Hessian at the minimizer rather than on convexity. For (b), the optimization error of the Haar-random eigenbasis persists at the order of for large , whereas GD decreases it rapidly. For (c), translating the objective by a quarter of the grid spacing in every coordinate makes SR-GD slow for the identity eigenbasis, as in Case (ii) of Theorem 12.
- Non-quadratic objectives on real data (Appendix H.10). We consider three models with -regularization: logistic regression on the Gisette dataset (), softmax regression on the MNIST dataset (), and a two-layer network with hidden units and activations that learns a teacher model on MNIST images (). Here, objectives and gradients are computed in FP32. For each model, we first compute a stationary point numerically. We then compare the original grid with the aligned grid , where the columns of are the eigenvectors of the Hessian at . That is, the aligned grid makes the Hessian at diagonal in the grid coordinates, as for the diagonal Hessian in Section 3.2. We also translate both grids slightly, so that lies off the grid. SR-GD starts from initializers that differ from by the grid spacing in a single coordinate, by the grid spacing in many coordinates, or by random multiples of the grid spacing. For (a), on the original grid, SR-GD from initializers that differ from in many coordinates does not reach it within our time horizon, whereas on the aligned grid, SR-GD reaches from every initializer. For (b), on the original grid, even from initializers that differ in a single coordinate, the Hamming distance spreads to many coordinates, and for logistic and softmax regression, the optimization error increases. For (c), the translation of the aligned grid slows down SR-GD.
We note that these objectives are not covered by our extensions in our response to C3 (Corollaries 59 and 60). That is, our experiments suggest that our main observations extend to broader classes of non-quadratic objectives, including nonconvex ones and those on real data.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
We thank the reviewer for their valuable comments. We address the reviewer's comments below and revised our draft accordingly, where all the updates are colored in blue.
C1. Numerical experiments.
R1. Following the reviewer's comment, we added numerical experiments in Appendix H of the revised draft. In our basic setup, we run SR-GD on the 8-bit fixed-point grid on [−4,4], i.e., M=127 and Δ=4/127, with the step size η=0.8/λmax(A) (Appendix H.1). We then extend this setup to fixed-point grids with 4, 8, 16, and 32 bits and to floating-point grids in the FP8, FP16, and FP32 formats. We consider three classes of objectives.
For each experiment, we run multiple trajectories, i.e., independent runs of SR-GD, which differ in the stochastic rounding. For a random Hessian, we sample multiple Hessians and run multiple trajectories for each of them. We report the hitting time, the Hamming distance, and the optimization error over these trajectories. These include pathwise statistics, which show how many trajectories satisfy the high-probability events in our theorems.
We first observe our theoretical results on quadratic objectives, using the settings of the corresponding theorems. In all these experiments, SR-GD behaves as our theory predicts, already at moderate dimensions (up to d=1024).