LaTex2Web logo

Documents Live, a web authoring and publishing system

If you see this, something is wrong

Table of contents

First published on Tuesday, Jul 7, 2026 and last modified on Tuesday, Jul 7, 2026 by François Chaplais.

Like what you see? Register!
Mixed precision Newton’s method for optimization

Nicolas Brisebarre CNRS, ENS de Lyon, Inria, Université Claude Bernard Lyon 1, LIP, UMR 5668, Lyon, France Email

Giuseppe Carrino ENS de Lyon, CNRS, Inria, Université Claude Bernard Lyon 1, LIP, UMR 5668, Lyon, France Email

Theo Mary Sorbonne Université, CNRS, LIP6, F-75005 Paris, France Email

Elisa Riccietti ENS de Lyon, CNRS, Inria, Université Claude Bernard Lyon 1, LIP, UMR 5668, Lyon, France Email

Keywords: Newton's method, mixed precision, error analysis, floating-point arithmetic, inexact Newton, quasi-Newton.

Abstract

1 Introduction

2 Mixed precision Newton’s method for optimization

3 Newton’s approximations



Algorithm 1 Mixed precision Newton
1.for \( i = 0, 1, …\) until convergence do
2.Compute \( g_i = g(x_i)\) in precision with unit roundoff \( u_g\)
3.Solve \( H(x_i) d_i = -g_i\) in precision with unit roundoff \( u_H\) \State Update \( x_{i+1} =x_i + d_i\) in precision with unit roundoff \( u\)
4.end for
5.return \( x_{i+1}\)

\[ \text{minimize } f(x) \text{ w.r.t. } x \in \mathbb{R}^n\text{, with } f(x)=\frac{1}{2}\lVert r(x) \rVert ^2, \]
\[ \epsilon_i^H=\frac{\|S(\widehat{x}_i)\|_2}{\|H(\widehat{x}_i)\|_2} < \frac{1}{\kappa(H(\widehat{x}_i))}=\frac{1}{\|H(\widehat{x}_i)\|_2\|H(\widehat{x}_i)^{-1}\|_2}, \]
\[ \|S(\widehat{x}_i)\|_2 < \frac{1}{\|H(\widehat{x}_i)^{-1}\|_2}=\; \lambda_{\min}(H(\widehat{x}_i)). \]
\[ \lambda_{\min}(H(x))\geq \lambda_{\min}(J(x)^TJ(x))+ \lambda_{\min}(S(x))\geq \lambda_{\min}(J(x)^TJ(x)). \]
\[ \alpha_i\approx\frac{\|J(x^*)\|_2L_J}{\lambda_{\min}(J(x^*)^TJ(x^*))}, ~~ \beta_i\approx \frac{\sigma}{\lambda_{\min}(J(x^*)^TJ(x^*))}, \]
\[ \begin{align*} \alpha_i&\approx \frac{L_H}{2} \|H(\widehat{x}_i)^{-1}\|_2\leq \frac{L_H}{2\lambda_{\min}(J(\widehat{x}_i)^TJ(\widehat{x}_i))}\leq \frac{2\sup_x\|J(x)\|_2L_J+L_S}{2\lambda_{\min}(J(\widehat{x}_i)^TJ(\widehat{x}_i))},\\ \beta_i&\approx \|S(\widehat{x}_i)\|_2\|H(\widehat{x}_i)^{-1}\|_2=\frac{\|S(\widehat{x}_i)\|_2}{\lambda_{\min}(H(\widehat{x}_i))}\leq\frac{\|S(\widehat{x}_i)\|_2}{ \lambda_{\min}(J(\widehat{x}_i)^TJ(\widehat{x}_i))}. \end{align*} \]

4 Numerical Experiments

Figure 1. Convergence of mixed precision Newton in relative error (left) and gradient norm (right), for different precision sets with unit roundoffs \( (u_g,u,u_H)\) , on the SINREG problem with \( n=4\) and \( x_0 = \bar{x}^* + 10^{-1}\) . The purple curves mostly overlap the blue ones, and the orange curves mostly overlap the green ones.
Figure 4. Convergence of mixed precision Newton in relative error (left) and gradient norm (right), for different precision sets with unit roundoffs \( (u_g,u,u_H)\) , on the SINREG problem with \( n=8\) and \( x_0 = \bar{x}^* + 10^{-1}\) .
\[ g(x) \approx \left(\frac{f(x + he_k) - f(x)}{h}\right)_{k=0,\ldots,n-1}, \]
Figure 8. \( (u_g,u,u_H) \equiv\) (fp64, fp32, fp32), optimal \( h\approx10^{-8}\) .
Figure 9. \( (u_g,u,u_H) \equiv\) (fp32, fp32, fp32), optimal \( h\approx10^{-3}\) .
Figure 7. Convergence of mixed precision Newton in relative error (left) and gradient norm (right) on the ENGVAL1 problem, using either the true gradient or one approximated by finite differences (FD), with different steps \( h\) and precision sets.
Figure 11. Mixed precision inexact Newton on the ENGVAL1 problem. Panel (a) reports the number of nonlinear iterations required for convergence as a function of the CG stopping tolerance \( \eta\) for several precision sets \( (u_g,u,u_H)\) ; the purple and blue curves overlap. Panels (b)–(d) show the convergence in relative error for \( \eta=10^{-10}\) for three representative precision sets. The three terms of the theoretical bound are also displayed separately whenever the assumptions of Theorem 1 are satisfied.
Figure 16. Relative error (left) and number of linear CG iterations (right) for mixed precision inexact Newton, using precisions (fp64, fp32, fp32) with different CG stopping conditions. The problem is SINREG1 with \( n = 8\) and \( x_0 = \bar{x}^* + 10^{-1}\) . The vertical dotted lines in the right plot indicate the iteration at which the corresponding algorithm reached the limiting accuracy.
Figure 19. Convergence of mixed precision Newton and Gauss–Newton in gradient norm for different precision sets with unit roundoffs \( (u_g,u,u_H)\) , on the SINREG problem with \( n=4\) , \( x_0 = \bar{x}^* + 10^{-1}\) , and \( \delta = 5\) .
Figure 22. Iterations needed to converge to limiting gradient for mixed precision Newton and Gauss–Newton, for different precision sets with unit roundoffs \( (u_g,u,u_H)\) , on the SINREG problem with \( n=4\) , \( x_0 = \bar{x}^* + 10^{-1}\) , and varying noise size \( \delta\) .

5 Conclusion

Acknowledgments

Appendix

A Proofs

References

[1] Jorge Nocedal and Stephen J. Wright. Numerical optimization. Springer Series in Operations Research and Financial Engineering. Springer Nature, 2006. doi:10.1007/978-0-387-40065-5 .

[2] Stephen Boyd and Lieven Vandenberghe. Convex Optimization. Cambridge University Press, 2004.

[3] José Mario Martínez. Practical quasi-newton methods for solving nonlinear systems. J. Comput. Appl. Math., 124(1-2):97–121, December 2000. doi:10.1016/S0377-0427(00)00434-9 .

[4] Ron S. Dembo, Stanley C. Eisenstat, and Trond Steihaug. Inexact Newton methods. SIAM J. Numer. Anal., 19(2):400–408, 1982. doi:10.1137/0719025 .

[5] Cuda ptx isa. nvidia, may 2024. release 8.5.

[6] Nicholas J. Higham and Theo Mary. Mixed precision algorithms in numerical linear algebra. Acta Numer., 31:347–414, 2022. doi:10.1017/S0962492922000022 .

[7] Coralia Cartis, Nicholas IM Gould, and Philippe L Toint. Evaluation Complexity of Algorithms for Nonconvex Optimization: Theory, Computation and Perspectives. SIAM, 2022.

[8] Stefania Bellavia, Serge Gratton, and Elisa Riccietti. A Levenberg–Marquardt method for large nonlinear least-squares problems with dynamic accuracy in functions and gradients. Numer. Math., 140(3):791–825, November 2018. doi:10.1007/s00211-018-0977-z .

[9] A. S. Bandeira, K. Scheinberg, and L. N. Vicente. Convergence of trust-region methods based on probabilistic models. SIAM J. Optim., 24(3):1238–1264, 2014. doi:10.1137/130915984 .

[10] R. Chen, M. Menickelly, and K. Scheinberg. Stochastic optimization using a trust-region method and random models. Math. Program., 169(2):447–487, June 2018. doi:10.1007/s10107-017-1141-8 .

[11] Peng Xu, Fred Roosta, and Michael W. Mahoney. Newton-type methods for non-convex optimization under inexact Hessian information. Mathematical Programming, 184(1):35–70, November 2020. doi:10.1007/s10107-019-01405-z .

[12] Stefania Bellavia, Greta Malaspina, and Benedetta Morini. Inexact Newton methods with matrix approximation by sampling for nonlinear least-squares and systems, August 2023. URL: https://optimization-online.org/?p=24079 .

[13] Stefania Bellavia, Nataša Krejić, and Nataša Krklec Jerinkić. Subsampled inexact Newton methods for minimizing large sums of convex functions. IMA J. Numer. Anal., 40(4):2309–2341, 10 2020. doi:10.1093/imanum/drz027 .

[14] Farbod Roosta-Khorasani and Michael W. Mahoney. Sub-sampled Newton methods. Math. Program., 174(1-2):293–326, March 2019. doi:10.1007/s10107-018-1346-5 .

[15] El Houcine Bergou, Youssef Diouane, Vyacheslav Kungurtsev, and Clément W. Royer. A stochastic Levenberg–Marquardt method using random models with complexity results. SIAM-ASA J. Uncertain. Quantif., 10(1):507–536, 2022. doi:10.1137/20M1366253 .

[16] Z. Yao, Peng Xu, Fred Roosta, Stephen J. Wright, and Michael W. Mahoney. Inexact Newton-CG algorithms with complexity guarantees. IMA J. Numer. Anal., 2021. doi:10.1093/imanum/drac043 .

[17] Stefania Bellavia, Gianmarco Gurioli, and Benedetta Morini. Adaptive cubic regularization methods with dynamic inexact hessian information and applications to finite-sum minimization. IMA J. Numer. Anal., 41(1):764–799, 01 2021. doi:10.1093/imanum/drz076 .

[18] Zhewei Yao, Peng Xu, Fred Roosta, and Michael W Mahoney. Inexact nonconvex Newton-type methods. INFORMS J. Optim., 3(2):154–182, 2021. doi:10.1287/ijoo.2019.0043 .

[19] J. E. Dennis, Jr. and Robert B. Schnabel. Numerical methods for unconstrained optimization and nonlinear equations, volume 16 of Classics in Applied Mathematics. Society for Industrial and Applied Mathematics, Philadelphia, PA, 1996. Corrected reprint of the 1983 original. doi:10.1137/1.9781611971200 .

[20] P. Lancaster. Error analysis for the Newton-Raphson method. Numer. Math., 9(1):55–68, November 1966. doi:10.1007/BF02165230 .

[21] H. Woźniakowski. Numerical stability for solving nonlinear equations. Numer. Math., 27(4):373–390, December 1977. doi:10.1007/BF01399601 .

[22] T. J. Ypma. The effect of rounding errors on Newton-like methods. IMA J. Numer. Anal., 1983. doi:10.1093/imanum/3.1.109 .

[23] T. J. Ypma. Local convergence of inexact newton methods. SIAM J. Numer. Anal., 21(3):583–590, 1984. doi:10.1137/0721040 .

[24] Françoise Tisseur. Newton's method in floating point arithmetic and iterative refinement of generalized eigenvalue problems. SIAM J. Matrix Anal. Appl., 22(4):1038–1057, 2001. doi:10.1137/S0895479899359837 .

[25] C. T. Kelley. Newton's method in mixed precision. SIAM Rev., 64(1):191–211, 2022. doi:10.1137/20M1342902 .

[26] C. T. Kelley. Newton's method in three precisions. Pac. J. Optim., 20(3):461–474, 2024. URL: https://arxiv.org/abs/2307.16051 .

[27] Dominique Monnet and Dominique Orban. A multi-precision quadratic regularization method for unconstrained optimization with rounding error analysis. Comput. Optim. Appl., 91(3):997–1031, 2025. doi:10.1007/s10589-025-00676-x .

[28] Artem Vasin and Alexander Gasnikov. Lower and upper bounds of the convergence rate of gradient methods with composite noise in gradient, 2026. arXiv:2603.12376 .

[29] S. Gratton and Ph. L. Toint. A note on solving nonlinear optimization problems in variable precision. Comput. Optim. Appl., 76(3):917–933, 2020. doi:10.1007/s10589-020-00190-2 .

[30] IEEE standard for floating-point arithmetic. IEEE Std 754-2019 (Revision of IEEE 754-2008), pages 1–84, July 2019. doi:10.1109/IEEESTD.2019.8766229 .

[31] Nicholas J. Higham. Accuracy and Stability of Numerical Algorithms. Society for Industrial and Applied Mathematics, Philadelphia, PA, USA, second edition, 2002. doi:10.1137/1.9780898718027 .

[32] Nicholas J. Higham and Theo Mary. A new approach to probabilistic rounding error analysis. SIAM J. Sci. Comput., 41(5):A2815–A2835, 2019. doi:10.1137/18M1226312 .

[33] Magnus R. Hestenes and Eduard Stiefel. Methods of conjugate gradients for solving linear systems. J. Research Nat. Bur. Standards, 49:409–436, 1952. URL: https://nvlpubs.nist.gov/nistpubs/jres/049/jresv49n6p409_A1b.pdf .

[34] Thomas Bake, Erin Carson, and Yuxin Ma. Forward and backward error bounds for a mixed precision preconditioned conjugate gradient algorithm, 2025. arXiv:2510.11379 .

[35] Roger A. Horn and Charles R. Johnson. Matrix Analysis. Cambridge University Press, 1985.

[36] S. Gratton and Ph. L. Toint. S2MPJ and CUTEst optimization problems for Matlab, Python and Julia. Optim. Methods Softw., 40(4):871–903, 2025. doi:10.1080/10556788.2025.2490640 .

[37] Marco Rando, Cesare Molinari, Lorenzo Rosasco, and Silvia Villa. A structured tour of optimization with finite differences, 2025. arXiv:2505.19720 .

[38] Elizabeth D. Dolan and Jorge J. Moré. Benchmarking optimization software with performance profiles. Math. Program., 91(2):201–213, January 2002. doi:10.1007/s101070100263 .

[39] R. H. Byrd, S. L. Hansen, Jorge Nocedal, and Y. Singer. A stochastic quasi-Newton method for large-scale optimization. SIAM J. Optim., 26(2):1008–1031, 2016. doi:10.1137/140954362 .