backpack icon indicating copy to clipboard operation
backpack copied to clipboard

[Feature Request] Levenberg Marquardt

Open mizu-bai opened this issue 3 years ago • 1 comments

Feature

Implementation of Levenberg Marquardt optimizer.

Motivation

In MATLAB, the feedforwardnet supports many optimizers, and some are not implemented in PyTorch, such as trainlm (Levenberg Marquardt). From tests from our gourp and others, Levenberg Marquardt performs much better and needs less epochs to coverage than first-order optimizers (Adam, SGD with Momentum) on regression model. Some issues in PyTorch issue list hope for a implementation of Levenverg Marquardt algorithm, but there are no more reponse. It will be helpful to implement the Levenberg Marquardt optimizer and I am willing to help test.

Addition

Here are some helpful information and codes.

mizu-bai avatar Nov 17 '22 01:11 mizu-bai

Hi,

interesting suggestion. Do you have a specific use case where first-order methods don't work for example? BackPACK certainly provides the functionality to implement such an optimizer, and I would be happy to help out in case of issues.

f-dangel avatar Nov 17 '22 17:11 f-dangel