how the force field traning works in VASP

Queries about input and output files, running specific calculations, etc.


Moderators: Global Moderator, Moderator

Post Reply
Message
Author
exk301
Newbie
Newbie
Posts: 17
Joined: Thu Jan 28, 2021 12:46 am

how the force field traning works in VASP

#1 Post by exk301 » Mon Jul 01, 2024 10:00 pm

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!!!

alexey.tal
Global Moderator
Global Moderator
Posts: 314
Joined: Mon Sep 13, 2021 12:45 pm

Re: how the force field traning works in VASP

#2 Post by alexey.tal » Tue Jul 02, 2024 10:41 am

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?

exk301
Newbie
Newbie
Posts: 17
Joined: Thu Jan 28, 2021 12:46 am

Re: how the force field traning works in VASP

#3 Post by exk301 » Thu Jul 04, 2024 12:29 am

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.
You do not have the required permissions to view the files attached to this post.

alexey.tal
Global Moderator
Global Moderator
Posts: 314
Joined: Mon Sep 13, 2021 12:45 pm

Re: how the force field traning works in VASP

#4 Post by alexey.tal » Thu Jul 04, 2024 7:53 am

Thank you for providing the input files. Could you also attach the output files from one of such comparisons (DFT and MLFF)?

exk301
Newbie
Newbie
Posts: 17
Joined: Thu Jan 28, 2021 12:46 am

Re: how the force field traning works in VASP

#5 Post by exk301 » Fri Jul 05, 2024 9:03 pm

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.
You do not have the required permissions to view the files attached to this post.

alexey.tal
Global Moderator
Global Moderator
Posts: 314
Joined: Mon Sep 13, 2021 12:45 pm

Re: how the force field traning works in VASP

#6 Post by alexey.tal » Tue Jul 09, 2024 8:37 am

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.

exk301
Newbie
Newbie
Posts: 17
Joined: Thu Jan 28, 2021 12:46 am

Re: how the force field traning works in VASP

#7 Post by exk301 » Tue Jul 09, 2024 9:03 pm

Hi Alexey!

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

Thank you, again!!

Post Reply