Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How is allegro trained with forces? And are there available weights for running full scale MD simulations? #51

Open
JSLJ23 opened this issue Jul 6, 2023 · 1 comment

Comments

@JSLJ23
Copy link

JSLJ23 commented Jul 6, 2023

Hi developers of Allegro,

I have two questions namely on the methodology behind allegro and it's applications:

  1. In the Nature communications publication, the model's architecture is depicted as such where the energies of the atoms are summed to get the energies of the system. I can see how the loss function with energy can be differentiated with this through the rest of the model, but I don't quite understand how you can include the force labels in the training data... A number of examples from the sGDML datasets have forces in the XYZ but how are these actually included in the loss function if the model predicts energy?

  2. Also from the more recent preprint, you guys have also shown the ability to run full scale MD simulations on proteins. I was wondering are weights available for these versions of the models for end users to run MD simulations with?

Thank you for the time to address my queries.

@Linux-cpp-lisp
Copy link
Collaborator

Linux-cpp-lisp commented Jul 11, 2023

Hi @JSLJ23 ,

The forces are computed using auto-differentiation from the predicted energy, and are then included in the loss function as well. Thus the gradients of the loss with regard to the weights end up including 2nd derivatives (computed analytically using autodifferentiation) of the network's predictions. Force and energy predictions are thus not independent, but correctly reflect the underlying physics as two "views" of the same potential energy surface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants