torch_numopt.curvature#
Curvature estimators for second-order optimization.
This package provides classes that approximate or compute the Hessian matrix (and its products) in various ways:
Exact Hessian (full or block-diagonal)
Gauss-Newton approximation (full or block)
Hutchinson diagonal approximation (via random projections)
Identity (no curvature)
All estimators inherit from CurvatureEstimator and implement the
scaling_matrix, hvp, and quadratic_form methods.
Modules
Block-diagonal exact Hessian. |
|
Exact Hessian computation using |
|
Gauss-Newton approximation of the Hessian. |
|
Block-diagonal Gauss-Newton approximation. |
|
Hutchinson diagonal Hessian approximation. |
|
Identity curvature estimator (no curvature). |