Equations#
This page defines the attack updates and reported metrics. In every structural
comparison, initial means the pre-attack relaxed reference and final
means either the immediately perturbed or post-relaxation structure,
depending on the evaluation stage.
Attack methods#
FGSM#
FGSM applies one sign-gradient update to the atomic coordinates:
Here, \(J_\theta\) is the configured attack objective and the model parameters \(\theta\) remain fixed.
I-FGSM#
I-FGSM applies repeated sign-gradient updates:
\(\alpha\) is the step size and \(\Pi_\epsilon\) keeps the coordinates inside the permitted perturbation region.
PGD#
PGD applies iterative updates projected into the allowed region:
PGD can use a randomized starting point inside the allowed region.
Normalized epsilon#
The attack budget is normalized by the shortest lattice-vector length:
This is the nominal attack budget, not the final post-relaxation displacement.
Relaxation convergence#
A relaxation converges when the largest atomic force norm satisfies:
The optimizer is limited to 300 steps.
Displacement#
Atomic displacement is the magnitude of the final-minus-initial position:
The pipeline summarizes these per-atom values using the configured mean, median, or maximum.
Delta force#
Delta force is the magnitude of the final-minus-initial force:
This compares two predictions from the same model. It is not a DFT force error.
Delta-force angle#
The force-angle change is:
The implementation clips the cosine to \([-1,1]\) and handles zero-force cases separately.
Relaxation steps#
The recorded step count is limited to 300:
A value of 300 means the configured maximum was reached.
Neighbour-set Jaccard distance#
Let \(E_{\mathrm{initial}}\) and \(E_{\mathrm{final}}\) be the neighbour-edge sets. Their Jaccard distance is:
Zero means identical connectivity; one means that no neighbour edges are shared.
Coordination change#
For coordination number \(z_i\), the per-atom coordination change is:
The pipeline reports the configured mean or maximum across atoms.
RDF L1 distance#
For initial and final radial distribution functions evaluated on the same bins, the RDF L1 distance is:
Zero means the two RDF curves are identical. The value depends on the RDF cutoff, binning, and normalization.
The RDF is generated using ase.geometry.rdf.get_rdf.
Symmetry-operation retention#
The retained fraction of initial symmetry operations is:
The result depends on the symmetry and operation-matching tolerances.
Unique-site change#
The absolute change in the number of crystallographically unique sites is:
The result depends on the symmetry tolerance.
Cross-seed variability#
The random-seed shaded region uses the interquartile range:
Thin lines represent individual available seeds and thick lines represent the available-seed median.