Suppose we have difficult peak fitting problems where the the users wish to fit asymmetric peaks to their experimental data by the least squares method. One such function is illustrated below:
Here
- $a_0$ = peak area,
- $a_1$ = peak center,
- $a_2$ = peak width,
- $a_3$ = kurtosis, and finally
- $a_4$ = skew.
As one can see, the function contains absolute value terms and Heaviside theta (step) functions, which can lead to discontinuities in the gradient based optimization method. Since this function is available in a commercial peak fitting software, I contacted the software author as to which algorithm handles these least squares problems. The author informed that Levenberg-Marquardt (LM) is used for solving this least squares with starting from good guesses for the variables.
One might assume this would cause problems for optimization methods relying on gradient information, such as the Levenberg-Marquardt algorithm and he stated that in 30 years LM never gave a problem provided we start with a good guess solution i.e. good guesses for $a_0$ to $a_4$. Now this is purely from a numerical point of view.
In numerical optimization, there are several strategies for handling such cases:
Using algorithms that can handle discontinuities in the gradient, such as genetic algorithm. In my experience with MATLAB this is quite slow when the number of data points are > 5000, and it may take hours without a solution.
Using finite difference approximations to estimate gradients, even if they are not smooth, which are employed in LM.
Given this background, my question as a non-mathematician is: Is using finite differences for gradient estimation "good enough" for handling the absolute value derivative in the context of the Levenberg-Marquardt algorithm? Given small step size, it might be as good as a smooth approximation such those obtained from logistic functions.
If so, what might be the theoretical justifications for this apparent robustness of LM? Are there particular conditions or characteristics of the peak fitting problem that make finite differences adequate despite the non-smooth nature of the peak functions?
I would appreciate any insights or practical references to relevant literature that could clarify why this approach works effectively in practice, even if it seems problematic from a theoretical standpoint.