Features (or descriptors) characterize the local atomic environment and must preserve translational, rotational, and permutational symmetry. They are commonly used as inputs to regressors such as linear models and neural networks, which predict atomic energies and forces. Because the features are differentiable functions of spatial coordinates, forces can be calculated as
Fi=−dRidEtot=−j,α∑∂Gj,α∂Ej∂Ri∂Gj,α
where j indexes neighboring atoms within the cutoff radius and α indexes the features.
2-b and 3-b features with piecewise cosine functions (feature 1 & 2)
For a given central atom, piecewise cosine functions are used to describe its local environment. The following diagram illustrates the basic idea.
We first define piecewise cosine functions for the two-body and three-body features. Given inner and outer cutoffs Rinner and Router, basis order M, segment width h, and interatomic distance Rij between central atom i and neighboring atom j, the basis function is
where ∑m and ∑m,n denote sums over all atoms within the cutoff radius Router of central atom i, respectively.
These two features are usually used together.
Reference:
Huang, Y., Kang, J., Goddard, W. A. & Wang, L.-W. Density functional theory based neural network force fields from energy decompositions. Phys. Rev. B 99, 064103 (2019)
These features were first used in the Behler–Parrinello neural network. Given cutoff radius Rc and interatomic distance Rij between central atom i and neighboring atom j, the cutoff function fc is defined as
J. Behler and M. Parrinello, Generalized Neural-Network Representation of High Dimensional Potential-Energy Surfaces. Phys. Rev. Lett. 98, 146401 (2007)
In MTP, the local environment of central atom i is defined by
ni=(zi,zj,rij)
where zi is the atom type of the central atom, zj is the atom type of a neighbor, and rij is the relative coordinate of that neighbor. The energy contribution of each atom is then expanded as
Ei(ni)=α∑cαBα(ni)
where Bα is a user-selected basis function and cα is a parameter to be fitted.
To construct the basis functions, we introduce the moment tensor Mμν:
Mμν(ni)=j∑fμ(∣rij∣,zi,zj)ν⨂rij
These moment tensors contain radial and angular components. The radial component can be expanded as
fμ(∣rij∣,zi,zj)=β∑cμ,zi,zj(β)Q(β)(∣rij∣)
where Q(β)(∣rij∣) is a radial basis function. Specifically,
where ϕ(β) is a polynomial, such as a Chebyshev polynomial, defined on [Rmin,Rcut].
The angular component is given by ⨂νrij, the ν-fold tensor product of rij, and contains the angular information of neighborhood ni. The value of ν determines the rank of the moment tensor: ν=0 gives a constant scalar, ν=1 a vector (rank-1 tensor), ν=2 a matrix (rank-2 tensor), and so on.
Finally, the level of a moment tensor is defined as
lev(Mμν)=2+4μ+ν
This is an empirical formula.
Reference:
I.S. Novikov, etal, The MLIP package: moment tensor potential with MPI and active learning. Mach. Learn.: Sci. Technol, 2, 025002 (2021)
SNAP does not use Gaussian basis functions, so it does not calculate distances or kernel functions between two atomic-environment maps. Instead, it first defines a local atomic environment and expands it in spherical harmonics—or on a 4D hypersphere using rotation matrices. A bispectrum is then used to enforce rotational invariance. In this sense, SNAP resembles MTP, but uses a specialized contraction of directional indices to achieve rotational invariance. It is commonly paired with linear regression.
First, the local environment around the neighbors of central atom i at r is defined as a sum of δ functions in three-dimensional space:
ρ(r)=δ(r)+rki<RC∑fC(rki)ωkδ(r−rki)
where rki is the position of the k-th neighbor of atom i, ωk is its weight, and radial function fC(rki) ensures that each neighbor's contribution smoothly approaches zero near cutoff radius RC:
fC(r)=0.5[cos(RCπr)+1]
The angular component of this local-environment function can be expanded in spherical harmonics defined for l=0,1,2,... and m=−l,−l+1,...,l−1,l. A radial distribution is normally represented by a set of radial basis functions. Here, however, radial information r is mapped to the 4D hyperspherical function Umm′j(θ0,θ,ϕ), where all points (neighboring atoms) lie on a 3D sphere embedded in 4D space and orientation is represented by three angles:
r≡xyz→ϕ=arctan(y/x)θ=arccos(z/r)θ0=43πr/rc
The local-environment function can therefore be expanded in these 4D hyperspherical functions Umm′j(θ0,θ,ϕ) with coefficients umm′j:
where k indexes neighboring atoms and θ0(k),θ(k),ϕ(k) are the three angles of the position vector of atom i's k-th neighbor. Because of the indices m and m′, umm′j is direction dependent. Three such terms can be contracted using
Here, Cj1m1j2m2jmCj1m1′j2m2′jm are Clebsch–Gordan coefficients, and the final scalar feature is F(j1,j2,j). Different choices of j1,j2,j produce different features. These features have no radial-function index; instead, they contain three angular-momentum indices because radial-distance information has been transformed into the third angular coordinate on the 3D sphere.
Here, RC2 is a smooth cutoff parameter that allows the components of ri to approach zero smoothly at the boundary of the local region defined by RC. This smoothing function is more elaborate than the one used previously. S(rji) reduces the weight of atoms farther from central atom i. We then define radial function gM(s) using Chebyshev polynomial CM for the Deep Potential Chebyshev feature:
gM(s)=CM(2RminS−1)
Here, Rmin is the minimum input value of r.
To construct this feature, we first calculate a four-component vector:
TM(k)=rji<RC∑X^ji(k)S(rji)gM(S(rji))
Here, k=0,1,2,3 indexes the four components: the usual x,y,z components plus an S component:
{xji,yji,zji}→{S(rji),x^ji,y^ji,z^ji}
Here, x^ji=rjixji,y^ji=rjiyji,z^ji=rjizji are the components of the unit vector along rji.
The component indices of these 4D vectors can then be contracted to obtain a scalar feature:
F(M1,M2)=k=0∑3TM1(k)TM2(k)
In addition to the Chebyshev order, M1 also encodes the atom type. Therefore, if the maximum Chebyshev order is M, the number of features is M⋅ntype⋅(M⋅ntype+1)/2. Different values of M produce different feature sets.
This feature is similar to DP-Chebyshev, but replaces the Chebyshev polynomials with Gaussian functions whose position and width parameters are specified by the user.
As in DP-Chebyshev, the 4D vector is constructed as follows:
In addition to the Gaussian-function index, M1 also encodes the atom type. Therefore, if the maximum basis order is M, the number of features is M⋅ntype⋅(M⋅ntype+1)/2. Different values of M produce different feature sets.