Summary
add an option to choose logarithm loss function for deep potential training
Detailed Description
Dear developers,
We are working on the development of metal fuel (boron) potentials using the deepmdkit and dpgen. During the dpgen process, the model performance worsens after some iterations. By checking the structures produced by "model_devi", we found there are some atoms with very short distances (~0.6 A for B-O bond). The below figure shows the DFT calculation for these structures, where the largest atomic force is > 300 eV/A! But the force deviation predict by the four deep potentials is within the range of 0.1-0.3 ( when model_devi_f_avg_relative==true). Therefore, these extremely high-energy structures are added to our training dataset and the model performance worsens.
We have manually deleted these extremely high-energy structures from our training dataset, and we found the model to become better. We think these structures might have very large errors in the current linear loss function, and result in the model worsening. Could you please add some options to add a logarithm function to the loss function? We believe such a function would help the potential development for high-energy systems in combustion and explosion fields.

Further Information, Files, and Links
No response
Summary
add an option to choose logarithm loss function for deep potential training
Detailed Description
Dear developers,
We are working on the development of metal fuel (boron) potentials using the deepmdkit and dpgen. During the dpgen process, the model performance worsens after some iterations. By checking the structures produced by "model_devi", we found there are some atoms with very short distances (~0.6 A for B-O bond). The below figure shows the DFT calculation for these structures, where the largest atomic force is > 300 eV/A! But the force deviation predict by the four deep potentials is within the range of 0.1-0.3 ( when model_devi_f_avg_relative==true). Therefore, these extremely high-energy structures are added to our training dataset and the model performance worsens.

We have manually deleted these extremely high-energy structures from our training dataset, and we found the model to become better. We think these structures might have very large errors in the current linear loss function, and result in the model worsening. Could you please add some options to add a logarithm function to the loss function? We believe such a function would help the potential development for high-energy systems in combustion and explosion fields.
Further Information, Files, and Links
No response