Skip to content

Relaxation discrepency with ASE when using small MACE model #582

Description

@akwarii

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:

  1. Internal line-search or backtracking implementations under noisy/spurious force gradients.
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions