Page 1 of 1

how the force field traning works in VASP

Posted: Mon Jul 01, 2024 10:00 pm
by exk301
Hello!!!

I'm trying to understand how machine learning force field works in vasp.

I thought the energy, forces, stress tensor and their uncertainties are computed by bayseian inteference during MD simulation.
However, after I fitted Force field, i saw the energy discrepancy is always constant between first principles calculation and force field energy.
I was wondering if the training procedure give more weights to forces, rather than energies or other properties? Then, it makes sense that the energy is always off by a constant value.

Thank you in advance!!!

Re: how the force field traning works in VASP

Posted: Tue Jul 02, 2024 10:41 am
by alexey.tal
Hello,

I didn't quite understand what energies you are trying to compare. Is it ab-initio MD simulation vs. FF MD simulation? Could you attach the relevant files according to the forum guidelines?

Re: how the force field traning works in VASP

Posted: Thu Jul 04, 2024 12:29 am
by exk301
Hello Alexey,

Thank you for your response and asking for clarifications!

I wanted to compare single point energies beetween DFT and trained force field for different configurations. I have observed that the discrepancy between these two energies(DFT vs trained MLFF) are almost always similar in the fact that MLFF energies are always underestimated compared to DFT energies by roughly the same difference.
I wanted to understand why this trend is happening.

I assume this is because in the FF training code, the DFT is called only above threshold of forces only.
I just wanted to know if the discrepancy results from the threshold of forces. I have attached the relvant files I have used.

Re: how the force field traning works in VASP

Posted: Thu Jul 04, 2024 7:53 am
by alexey.tal
Thank you for providing the input files. Could you also attach the output files from one of such comparisons (DFT and MLFF)?

Re: how the force field traning works in VASP

Posted: Fri Jul 05, 2024 9:03 pm
by exk301
Thanks Alexey!
Attachment is an example preliminary result I have organized. (I also included the input files I have used in VASP, also with the relevant output file).

Please let me know if you have any idea or suggestion regarding my question earlier! Thanks a lot, alexey.

Re: how the force field traning works in VASP

Posted: Tue Jul 09, 2024 8:37 am
by alexey.tal
Thank you for providing the files.
However, after I fitted Force field, i saw the energy discrepancy is always constant between first principles calculation and force field energy.
From the plots you provided I don't see that the energy difference is always constant. Indeed, the FF energies are lower than the ab-initio one. You can try to refit your FF with ML_MODE=reft and increase the weight of the potential energy ML_WTOTEN=30. This should bring the FF energy closer to the ab-initio one.

Re: how the force field traning works in VASP

Posted: Tue Jul 09, 2024 9:03 pm
by exk301
Hi Alexey!

Thanks a lot for continuous answers and advice!
I didn't know the tag ML_WTOTEN so far.

Thank you, again!!