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

System representation or compute graph should be insensitive to atom pairs with distances greater than cutoff #103

Open
wiederm opened this issue Apr 19, 2024 · 5 comments
Assignees

Comments

@wiederm
Copy link
Member

wiederm commented Apr 19, 2024

As discussed with @jchodera, the assumption that the neighbor list returns atom pairs with distances below the cutoff distance might be violated under specific scenarios. The features produced by the neural networks should be insensitive to these atom pairs.

@wiederm wiederm self-assigned this Apr 19, 2024
@chrisiacovella
Copy link
Member

Can you expand further on what this means? I'm not quite understanding.

@wiederm
Copy link
Member Author

wiederm commented Apr 19, 2024

A given neighbor list implementation might not always return atom pairs with distances strictly below the cutoff distance. Therefore, the system representation of the neural network potential should ignore such atom pairs.

This is already the case for models representing their environment using atom-centered radial symmetry functions: the radial basis function goes to zero as the cutoff is approached. For other representations we need to make sure that a similar cutoff to the representation is applied.

@chrisiacovella
Copy link
Member

Ah, now I understand. The way I implemented the Chiron neighbor list, it returns a mask for the neighbor list (allowing for fixed size of the array) and I use this mask as a pre-factor of the potential energy (i.e., it will multiply anything beyond the cutoff with 0 so it does not contribute to the energy, anything within the cutoff is by 1). I was thinking about how this would translate/be implemented for the NNPs.

@wiederm
Copy link
Member Author

wiederm commented Apr 26, 2024

I think this issue has become more relevant since we realized that some of the neighborlist implementations are not able to compute distances using the minimum image convention.

@jchodera
Copy link
Member

More generally, the issue is that neighborlist implementations may return a variety of valid results, such as

  1. returning only atom pairs that are exactly within cutoff
  2. returning all atom pairs within cutoff + buffer (e.g. Verlet pairlist)
  3. returning all atom pairs using the minimum-image convention (Note: We have to make sure the smallest box dimension is greater than 2*cutoff for this to be valid)

We want to make sure that the potential is computed identically with all three valid pairlists---which properly include everything within the cutoff (but maybe some extra).

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

3 participants