Machine-Learning Interatomic Potentials
Quantum accuracy on-the-fly
Seminar for the course
“Computing Methods for Physics”,
14 Dec. 2023, Sapienza - University of Rome.
Image credits: [1]
Flavio Giuliani
2nd-year PhD student in
Theoretical Condensed Matter Physics.
Outline
Detailed outline
Disordered materials in applications: PCMs
Our group focuses on the theoretical study of Phase-change materials (PCMs) made of chalcogenide elements (Ge,Sb,Te,...).
Applications:
1
Phase-change principle
Legend:
Top figures: Ge2Sb2Te5 (GST). Ge, Sb, and Te atoms are rendered as white, yellow, and blue balls, respectively.
Bottom graph: resistance vs. SET/RESET cycle for Sc0.2Sb2Te3 (SST).
2
Phase-change principle
SET/RESET through an intense light or current pulse.
READ through a weak light or current pulse.
3
Advantages of PCM storage memory
PCM has an ideal combination of:
4
Crystallization/Amorphization dynamics
determines PCM features
Blue: crystal phase
Yellow: amorphous phase
Interaction between experiments and theoretical modelling is needed to improve device performance.
5
Atomistic simulations: space & time scales
6
Image modified from:
Ozboyaci et al., Quart. Rev. of Biophys. 49. (2016).
DFT applications are limited to:
〜 100 ps,
〜 10 nm
〜 100 atoms/cell
Beyond these scales, approximations are needed.
Atomistic simulation of disordered systems
💎 Crystal symmetries ⇒ reduction to unit cell.
7
~ 1 - 100 atoms
Simple cubic crystal.
~ 0.1 - 10 nm
Atomistic simulation of disordered systems
💎 Crystal symmetries ⇒ reduction to unit cell.
7
Crystal growth in disordered bulk antimony.
Dragoni et al., Nanoscale (2021).
🌊 Amorphous/disordered systems
(liquids, glasses, biomolecules, complex systems, …)
⇒ need of large space- and time-scales.
10-102 nm, 103-106 atoms
Ab-Initio Molecular Dynamics (AIMD)
Born-Oppenheimer adiabatic approximation
Electronic+nuclear (e+n) Schrödinger equation:
with:
8
Coulomb interaction between systems a,b.
Kinetic energy of system a.
Legend
Number of electrons/nuclei.
Spatial coordinates.
separation of energy/time scales
separate the wavefunction:
Electron problem & Nuclear problem
2) Solve the nuclear problem, using the ground state electronic energy as an effective interatomic potential:
9
10
You just learned how to solve it, using DFT software:
INPUT:
OUTPUT:
2) Nuclear problem
The ground state electronic energy U acts as an effective interatomic potential:
U is also known as Potential Energy Surface (PES) of the nuclei.
11
Trivial example:
isolated diatomic molecule
U
2) Nuclear problem
The ground state electronic energy U acts as an effective interatomic potential:
U is also known as Potential Energy Surface (PES) of the nuclei.
11
Trivial example:
isolated diatomic molecule
System with many atoms
U
Configuration rN
U
Classical dynamics of the nuclei
12
Classical dynamics is described by Hamilton (Newton) equations:
Effective Hamiltonian for the nuclei:
Classical approximation:
As a rule of thumb, if λDeBroglie<< dtypical
then quantum effects are negligible
(e.g. high temperature T>TDebye, heavy nuclei, ….)
Ergodic hypothesis
13
Central idea of equilibrium statistical mechanics.
For an ergodic system at equilibrium:
Average of observables A over a trajectory {rN(t),pN(t)} which solves the equations of motion
Average of observables A over an ensemble probability distribution f(rN,pN)
Molecular Dynamics approach for sampling observables.
Monte Carlo approach for sampling observables.
Classical Molecular Dynamics algorithm
14
Solving classical MD on a computer:
Start by selecting:
Then, for each iteration:
Frenkel, Smit, Understanding Molecular Simulations. (1996 textbook).
Classical Molecular Dynamics algorithm
15
Solving classical MD on a computer:
Bottleneck:
Computation of DFT forces at each step:
Methods for computing the Interatomic Potential
16
or Potential Energy Surface (PES)
Image adapted from:
Unke et al., Chem. Rev., 121, 16, 10142–10186 (2021).
U
Configuration rN
❌ Slow implementation.
✅ Accurate PES.
✅ Dynamical chemical bonds.
Examples: DFT, Coupled Cluster method, other quantum-based methods.
Methods for computing the Interaction Potential
16
❌ Slow implementation.
✅ Accurate PES.
✅ Dynamical chemical bonds.
Examples: DFT, Coupled Cluster method, other quantum-based methods.
✅ Fast implementation.
❌ Inaccurate PES.
❌ Static chemical bonds.
Examples: harmonic bonds, rigid bonds, Lennard-Jones, other empirical parametrizations.
Image adapted from:
Unke et al., Chem. Rev., 121, 16, 10142–10186 (2021).
or Potential Energy Surface (PES)
U
Configuration rN
Methods for computing the Interaction Potential
16
❌ Slow implementation.
✅ Accurate PES.
✅ Dynamical chemical bonds.
✅ Fast implementation.
❌ Inaccurate PES.
❌ Static chemical bonds.
Image adapted from:
Unke et al., Chem. Rev., 121, 16, 10142–10186 (2021).
or Potential Energy Surface (PES)
U
Configuration rN
Machine Learning
ML is the development of statistical algorithms that, after being “trained” on a set of tasks, can generalize to solve new tasks without being explicitly programmed to solve them.
Side note: these categories often overlap.
17
Image source:
http://machinelearningintro.uwesterr.de , Chapter 8
Machine Learning
ML is the development of statistical algorithms that, after being “trained” on a set of tasks, can generalize to solve new tasks without being explicitly programmed to solve them.
Side note: these categories often overlap.
The task of ML Interatomic Potentials:
ML
PES U(rN),
forces {Fi}
Given an atomic configuration, compute the DFT interaction potential and its first derivatives w.r.t. positions (forces).
17
Machine Learning
ML is the development of statistical algorithms that, after being “trained” on a set of tasks, can generalize to solve new tasks without being explicitly programmed to solve them.
Side note: these categories often overlap.
The task of ML Interatomic Potentials:
ML
PES U(rN),
forces {Fi}
Given an atomic configuration, compute the DFT interaction potential and its first derivatives w.r.t. positions (forces).
⇒ Supervised learning
17
How to construct a MLIP
18
0
Define the task
How to construct a MLIP
18
0
Define the task
0) Task definition
A universal MLIP is not possible with current methods.
One must keep in mind the tasks for which the MLIP will be used and the key material’s features that it has to capture to do so:
19
rN = {r1,...,rN}
The database should:
AIMD sampling: save uncorrelated configurations along trajectories under different conditions.
Crystal structure prediction: explore diversified PES minima at different pressures.
Random small distortions: sample small energy deviations above known PES points.
20
2) Representation of atomic structure
Variety of MLIP representations
Selection criteria:
21
Image adapted from:
Musil et al., Chemical Reviews 121 (16), 9759-9815 (2021).
3) Regression (nonlinear fitting)
Compare the new structure to the ones in the dataset, and interpolate linearly between their energies.
Universal approximator based on consecutive matrix-vector multiplications and nonlinear activation functions; efficient GPU implementation.
How to find the optimal fitting parameters w in the nonlinear case?
22
Simple models for a neuron
Basic introduction to Artificial NNs
Biological neuron
23
Simple models for a neuron
Basic introduction to Artificial NNs
Biological neuron
McCulloch & Pitts (1943) model
Binary input/output with a sum threshold θ
θ
23
Simple models for a neuron
Basic introduction to Artificial NNs
Biological neuron
Rosenblatt's Perceptron (1958) model
Key ingredients:
Linear mapping & non-linear threshold Θ.
(Smoother thresholds: tanh, sigmoid, …)
23
Perceptron
non-linear activation function σ
(e.g. tanh, sigmoid, …)
linear mapping with weights (w,b)
The decision boundary is a hyperplane:
Supervised learning task:
“Find the optimal parameters (w, b) to linearly classify x”
has two possible interpretations:
Find the hyperplane which creates the best separation between the two classes.
Find the hyperplane which fits best to the boundary between the two classes.
x1
x2
x1
x2
24
Non-linear Regression with Multi-Layer Perceptrons
x
y
Single Layer
More dimensions:
x,y,b are vectors, W is a matrix.
25
Non-linear Regression with Multi-Layer Perceptrons
x
y
Single Layer
x
y
Multi-Layer
Universal approximation theorem:
A Multi-Layer Perceptron is a universal approximator, if deep enough.
25
Neural-Network Interatomic Potential
Summary
N nuclear positions
N local structures
N represen-
tations
N local energies
Total energy U = sum of local energies
U is invariant to particle permutations and independent of system size.
26
How to validate a MLIP
Test the predictions on both training data and independent data.
27
How to validate a MLIP
Example: benchmark for Silicon on an independent melt-quench MD simulation
28
Behler-Parrinello method (2007)
2) Representation of atomic structure:
2-body (distances) and 3-body (distances+angles) symmetry functions with manually-tuned parameters:
with
3) A Neural Network regressor for each species, each with 2 hidden layers of ~40 nodes.
Example architecture for a 3-species system.
29
Behler-Parrinello method (2007)
Example architecture for a 3-species system.
Good results on disordered Silicon
using 48 symmetry functions
Predicted Radial pair correlation (red)
compares well with the DFT one (black).
Energy error: ~ 5 meV/atom
Force error: ~ 0.2 eV/Å
29
2) Representation of atomic structure:
2-body (distances) and 3-body (distances+angles) symmetry functions with manually-tuned parameters.
3) A Neural Network regressor for each species, each with 2 hidden layers of ~40 nodes.
512 atoms
105 atoms
Structural transitions in dense disordered silicon
Deringer et al., Nature 589, 59–64 (2021).
“GAP” method.
30
Phase diagram of water
Red: MLIP (“DeepMD” method trained on SCAN DFT data).
Grey: experiment.
Blue: TIP4P/2005 model.
Zhang, Wang, Car, Weinan, Phys. Rev. Lett. 126, 23 (2021).
“DeepMD” method.
31
MLIP for phase-change materials: GeTe
Sosso et al., Phys. Rev. B 85, 17 (2012).
“Behler-Parrinello” method.
Good description of both crystal and liquid phase
32
Radial distribution
Angular distribution
Device-scale modelling of PCMs
Crystallization from the disordered bulk phase.
Dragoni et al., Nanoscale (2021).
“Behler-Parrinello” method for Sb.
Zhou et al., Nat Electron (2023).
“GAP” method for Ge2Sb2Te5.
33
Conclusion
Main references
Thanks for your attention!
Quantum Materials Modelling group:
Prof.ssa Lilia Boeri,
lilia.boeri@uniroma1.it , room F407.
Ph.D. Simone Di Cataldo,
simone.dicataldo@uniroma1.it .
Alessio Cucciari,
alessio.cucciari@uniroma1.it , room F414.
Contacts
Phase-Change Materials group:
Prof. Riccardo Mazzarello,
riccardo.mazzarello@uniroma1.it , room M119.
Ph.D. Riccardo Piombo,
riccardo.piombo@uniroma1.it , room M121.
Yuhan Chen,
yuhan.chen@uniroma1.it , room M127.
Simone Ritarossi,
simone.ritarossi@uniroma1.it , room M127.
Flavio Giuliani, flavio.giuliani@uniroma1.it , room M301.