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

[Feature Request] Support parameter optimization for dynamic properties based on trajectory #88

Open
ice-hanbin opened this issue Feb 21, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@ice-hanbin
Copy link

ice-hanbin commented Feb 21, 2023

Summary

Expand the function of parameter optimization in DMFF for dynamic properties, such as diffusion coefficient, viscosity, etc. This feature requests,

  1. An efficient algorithm for evaluating the gradient.
  2. A robust optimization strategy.
  3. A general interface for computing all kinds of dynamic properties.

Motivation

In v0.2.0, DMFF already support parameter optimization for some thermodynamic properties, such as free energy, RDF, etc. However, for more complicated dynamic properties, DMFF can't get the gradient from the trajectory. Expanding the function of parameter optimization for dynamic properties helps DMFF to be a more powerful engine to accelerate forcefield development in real applications.

Suggested Solutions

Many dynamic properties can be generally evaluated using time-correlation function, which utilizes the information of every state in the trajectory. If we simply use jax.grad on the whole trajectory, the memory may be a huge problem. Inspired by Neural ODE, we can evaluate the gradient in backpropagation process , which utilizes the time reversibility of NVE trajectory. As we get the gradient, we can use modern AI optimization algorithm to fit the dynamic properties.

Any suggestions and comments on this solution are welcomed !

Further Information, Files, and Links

No response

@ice-hanbin ice-hanbin added the enhancement New feature or request label Feb 21, 2023
@Chenghao-Wu
Copy link

Great project.

Here is some information may be relevant:
https://arxiv.org/abs/2003.00868
https://frankschae.github.io/post/shadowing/

basically, the automatic differentiation through a trajectory generated by a stiff differential equation (MD simulations can be considered as this kind), chaos can not be avoided which causing the gradient becoming useless. It gives huge difficulty to optimize parameters based on MD trajectory.

Another thing can be done is probably to add stochastic terms (langevin thermostat) in the MD system, some tests can be found in this paper https://arxiv.org/abs/2301.03480.

@ice-hanbin
Copy link
Author

Thanks for your sharing !!!
I am currently dealing with this problem, and I will pay attention to these works. Hope I can discuss with you when I have some thoughts on this.

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

No branches or pull requests

2 participants