-
Notifications
You must be signed in to change notification settings - Fork 158
Can MEGNet be made end-to-end differentiable wrt atomic positions of atoms? #301
Comments
link to #170 |
@CompRhys For the pymatgen part, i have done the function you described. Try get_neighbor_list method of Structure. End-to-end is definitely doable by starting from atom positions. |
For the idea on BOWS, what you described is correct. I think this is definitely worth trying by including the force regularization. Please keep me posted, thanks! |
Am mostly a |
@chc273 did you implement this in order to run the phonon calcs with m3gnet? |
@CompRhys Do you mean energy derivative to calculate the forces? Yes. m3gnet will be a new codebase though |
Yep, will await new codebase and see if it can be back ported. Is new code also TF based? |
@CompRhys thanks. Yes, the code is in TF. |
How hard would it be to change the construction of the local environment graph to be end-to-end differentiable? This would involve the neighbour list function inside pymatgen being refactored to include a sub-function that returns the index and image index allowing the distances to be computed from TF tensors of the atom positions?
Thinking about BOWSR there would be some benefit to regularising the force predictions of the MEGNet surrogate model to be ~0 given that it is trained on the relaxed structures in MP. As far as I understand the model is not currently given any signal about these structures being local minima.
The text was updated successfully, but these errors were encountered: