Description
We are currently implementing and benchmarking TorchSim workflows within atomate2 to enable batching for elastic and phonon properties. While production-grade models (like mace-medium) show excellent agreement between the ASE and TorchSim backends, we have encountered a significant divergence in relaxed structures and elastic constants when using a smaller toy/test MACE model (MACE.model from the atomate2 test suite).
Both backends use the Frechet cell filter and FixSymmetry constaint.
The whole discussion can be found here: materialsproject/atomate2#1505
Currently, I suspect this could be due to subtle differences in:
- Internal line-search or backtracking implementations under noisy/spurious force gradients.
- The exact coupling of strain and atomic positions during the optimization step within the cell filter.
Any help would be appreciated!
Reproduction Data
System: Silicon primitive cell (Si2)
- Initial lattice parameter $a$:
3.866975 Å
1. Optimized Lattice Parameters
-
ASE (test model): $a =$
3.801120 Å
-
TorchSim (test model): $a =$
3.851698 Å
-
ASE (mace-medium): $a =$
3.866058 Å
-
TorchSim (mace-medium): $a =$
3.865821 Å
2. Computed Elastic Constants (GPa)
| Backend & Model |
$C_{11}$ |
$C_{12}$ |
$C_{44}$ |
|
ASE (mace test) |
9.703 |
9.699 |
0.002 |
|
TorchSim (mace test) |
7.650 |
7.647 |
0.334 |
|
ASE (mace medium) |
126.967 |
65.841 |
67.297 |
|
TorchSim (mace medium) |
127.030 |
65.890 |
67.330 |
Description
We are currently implementing and benchmarking TorchSim workflows within
atomate2to enable batching for elastic and phonon properties. While production-grade models (likemace-medium) show excellent agreement between the ASE and TorchSim backends, we have encountered a significant divergence in relaxed structures and elastic constants when using a smaller toy/test MACE model (MACE.modelfrom theatomate2test suite).Both backends use the Frechet cell filter and FixSymmetry constaint.
The whole discussion can be found here: materialsproject/atomate2#1505
Currently, I suspect this could be due to subtle differences in:
Any help would be appreciated!
Reproduction Data
System: Silicon primitive cell (
Si2)3.866975 Å1. Optimized Lattice Parameters
3.801120 Å3.851698 Å3.866058 Å3.865821 Å2. Computed Elastic Constants (GPa)