원시데이터 수집 시스템
선정목록으로

A universal preconditioner for simulating condensed phase materials

간접 관련 화학·수지 · (21) 에폭시수지 (6) PEM(고분자전해질막)(16) CPI(투명 폴리이미드)(23) 컴파운드

기본 정보

저자
  1. David Packwood — University of Warwick 1 Mathematics Institute, , Coventry CV4 7AL, United Kingdom
  2. James Kermode — University of Warwick 2 Warwick Centre for Predictive Modelling, School of Engineering, , Coventry CV4 7AL, United Kingdom
  3. Letif Mones — University of Warwick 1 Mathematics Institute, , Coventry CV4 7AL, United Kingdom|||University of Cambridge 3 Engineering Laboratory, , Trumpington Street, Cambridge CB2 1PZ, United Kingdom
  4. Noam Bernstein — Naval Research Laboratory 4 Center for Materials Physics and Technology, , Washington, DC 20375, USA
  5. John Woolley — University of Warwick 5 Department of Physics, , Coventry CV4 7AL, United Kingdom
  6. Nicholas Gould — STFC-Rutherford Appleton Laboratory Chilton 6 Scientific Computing Department, , Oxfordshire OX11 0QX, United Kingdom
  7. Christoph Ortner — University of Warwick 1 Mathematics Institute, , Coventry CV4 7AL, United Kingdom
  8. Gabor Csanyi — University of Cambridge 3 Engineering Laboratory, , Trumpington Street, Cambridge CB2 1PZ, United Kingdom
DOI
10.1063/1.4947024
저널
The Journal of Chemical Physics
발행년도
2016
발행기관
American Institute of Physics
피인용수
72
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1063/1.4947024
토픽
Electron and X-Ray Spectroscopy Techniques
OpenAlex ID
W2337338982

평가 내용

관련도
간접 관련
사업분야
화학·수지 · (21) 에폭시수지
부 분야
(6) PEM(고분자전해질막), (16) CPI(투명 폴리이미드), (23) 컴파운드
R&D 측면
분석·모델링
확신도
0.70
근거 용어
atomistic simulation, geometry optimisation, potential energy surface, condensed phase materials, interatomic potential
판단 근거
이 논문은 원자 단위의 물질 시뮬레이션(atomistic simulation) 속도를 높이는 수치 해석적 알고리즘(preconditioner)에 관한 연구입니다. 특정 제품을 다루지는 않으나, 고분자(에폭시, 폴리이미드)나 복합소재의 분자 구조 및 물성을 예측하는 계산 과학 R&D에 범용적으로 적용 가능한 방법론을 제시합니다.
R&D 활용 포인트
에폭시 수지, CPI 필름, 컴파운드 등 고분자 및 복합소재의 분자 구조 최적화 및 열역학적 물성 예측 시뮬레이션의 계산 효율을 높이는 데 활용 가능합니다.
평가 입력
본문 41,899자 중 30,032자 발췌

초록

We introduce a universal sparse preconditioner that accelerates geometry optimisation and saddle point search tasks that are common in the atomic scale simulation of materials. Our preconditioner is based on the neighbourhood structure and we demonstrate the gain in computational efficiency in a wide range of materials that include metals, insulators, and molecular solids. The simple structure of the preconditioner means that the gains can be realised in practice not only when using expensive electronic structure models but also for fast empirical potentials. Even for relatively small systems of a few hundred atoms, we observe speedups of a factor of two or more, and the gain grows with system size. An open source Python implementation within the Atomic Simulation Environment is available, offering interfaces to a wide range of atomistic codes.

본문 41,899자

본문 펼치기
## A universal preconditioner for simulating condensed phase materials David Packwood, <sup>1</sup> James Kermode, <sup>2, a)</sup> Letif Mones, <sup>3, 1</sup> Noam Bernstein, <sup>4</sup> John Woolley, <sup>5</sup> Nicholas Gould, <sup>6</sup> Christoph Ortner, <sup>1, b)</sup> and G´abor Cs´anyi <sup>3, c)</sup> 1)Mathematics Institute, University of Warwick, Coventry CV4 7AL, United Kingdom 2)Warwick Centre for Predictive Modelling, School of Engineering, University of Warwick, Coventry CV4 7AL, United Kingdom 3)Engineering Laboratory, University of Cambridge, Trumpington Street, Cambridge, CB2 1PZ, United Kingdom 4)Center for Materials Physics and Technology, Naval Research Laboratory, Washington DC 20375, USA 5)Department of Physics, University of Warwick, Coventry CV4 7AL, United Kingdom 6)Scientific Computing Department, STFC-Rutherford Appleton Laboratory Chilton, Oxfordshire OX11 0QX, United Kingdom (Dated: 10 September 2018) We introduce a universal sparse preconditioner that accelerates geometry optimisation and saddle point search tasks that are common in the atomic scale simulation of materials. Our preconditioner is based on the neighbourhood structure and we demonstrate the gain in computational efficiency in a wide range of materials that include metals, insulators and molecular solids. The simple structure of the preconditioner means that the gains can be realised in practice not only when using expensive electronic structure models but also for fast empirical potentials. Even for relatively small systems of a few hundred atoms, we observe speedups of a factor of two or more, and the gain grows with system size. An open source Python implementation within the Atomic Simulation Environment is available, offering interfaces to a wide range of atomistic codes. I. INTRODUCTION Geometry optimisation, i.e. finding a nearby local minimum of the potential energy surface is the most common routine task of atomistic modelling, not only used for finding the equilibrium geometries of molecules and crystals but also as a fundamental building block of more complex algorithms for global optimisation, <sup>1</sup> structure prediction by random search <sup>2</sup> and sampling. <sup>3</sup> The closely related task of finding saddle points is also used for finding transition states of reactions, global optimisation, and accelerated sampling. It is well recognised in the optimisation community how important preconditioners are in creating efficient algorithms. An example familiar in the electronic structure community is using the kinetic energy operator as a preconditioner when solving the electronic energy minimisation problem in plane wave pseudopotential density functional theory (DFT) codes. <sup>4</sup> Preconditioning in linear algebra and numerical PDE problems is well established, but “universal” preconditioners do not work particularly well, and most practitioners advocate constructing preconditioners specifically designed to suit each problem. <sup>5</sup> There is a middle ground, which is to reduce the domain enough to be able to give a good preconditioner, but keep it general enough that many problems that need solving fall into it. The hallmark of a good preconditioner is that it captures some aspects of the local curvature of the potential a)Electronic mail: [j.r.kermode@warwick.ac.uk](mailto:j.r.kermode@warwick.ac.uk) b)Electronic mail: [c.ortner@warwick.ac.uk](mailto:c.ortner@warwick.ac.uk) c)Electronic mail: [gc121@cam.ac.uk](mailto:gc121@cam.ac.uk) energy landscape, e.g. some of the directions in which the minimum is much shallower than in other directions. In this way, using the preconditioner enhances the convergence by reducing the condition number (see (2)). For example, it was recognised by many that geometry optimisation with a computationally expensive electronic structure model can be preconditioned using cheap empirical interatomic model. This approach is clearly not feasible for large scale problems in which the modeling method itself is a relatively cheap interatomic model. A universal goal in preconditioning of condensed phase atomistic systems is to take account of the long wavelength vibrational modes, whose energies tend towards zero as the system size increases, while the eigenvalues corresponding to the high frequency optical modes stay constant. In order to capture this geometry, due to the intrinsic locality of the interaction Hamiltonian, it is enough to build a model that is aware of the neighbourhood structure of the constituent atoms or molecules. In this work we use the simplest preconditioner that is capable of capturing this structure, the adjacency matrix of the atoms, or a smoothed variant using a distance cutoff. The only requirement of the cutoff is that it is chosen such that all atoms are assigned some neighbours. We choose example systems of current interest which have a wide range of system sizes. For a steepest descent (SD) or nonlinear conjugate gradient (CG) scheme with preconditioner P one expects that the number nP of iterations required to reach a relative residual τ is <sup>6</sup> where κP is the condition number of the preconditioned nP ∼| log τ | × κP (SD) (1) �√κP (CG), Hessian at equilibrium, κP = λmax/λmin, (2) and λmax = max u λmin = min u u <sup>T</sup> Hu (3) u <sup>T</sup> Pu u <sup>T</sup> Hu (4) u <sup>T</sup> Pu are the largest and smallest eigenvalues. For a material system with a diameter of R atomic spacings, without preconditioning (i.e. P ≡ I), one exispectsindependentκI ∼ R whileof Rour. Thereforepreconditionerthe expectedachievesefficiencythat κP gain is nP nI ≈ R <sup>−1</sup> (SD) (5) �R <sup>−1/2</sup> (CG). The theory of the most commonly used BroydenFletcher-Goldfarb-Shanno (BFGS) and similar quasiNewton type schemes is less clear, but numerical evidence suggests that a similar conclusion as in the CG case can be drawn. II. METHODS A. Geometry Optimisation Throughout, we let f (x) denote the energy for a configuration x. If xk is an iterate of an optimization algorithm then we denote the gradient and Hessian at xk, by gk = ∇f (xk) and Hk = ∇ <sup>2</sup> f (xk), respectively. The most basic geometry optimisation schemes are steepest descent and (undamped) Newton’s method, xk+1 = xk − αkgk, (6) xk+1 = xk − Hk <sup>−1</sup> k <sup>−1gk.</sup> (7) The most common way to construct Pk is via a quasiNewton approach, typically (L)BFGS. This works poorly for large systems since many iterations are required to “learn the Hessian” to a useful degree of accuracy. Physical intuition and mathematical analysis can been used to develop an improved initial guess for the Hessian to speed up convergence. <sup>7</sup> An alternative approach (sometimes used in the electronic structure community <sup>8</sup> ) is to take Pk = ∇ <sup>2 ˜</sup> f (xk) to be the Hessian of a surrogate interatomic potential model f˜. This has considerable potential for performance gains if a good surrogate model f <sup>˜</sup> can be found. Downsides of this approach are (i) the challenge of finding or constructing such a surrogate model; (ii) indefiniteness of the surrogate Hessian in the nonlinear regime (and potentially even in the asymptotic regime); (iii) lack of transferability of the preconditioner: changing the system requires the construction of a new surrogate model. B. Metric preconditioning Assume, for the moment, that we use the same precon(8).ditionerAn throughout thealternative pointoptimizationof view, whichprocess,is commonPk ≡ P inin the numerical linear algebra and nonlinear optimisation communities, is to think of P as defining a metric on the space of configurations. To see this note that calling −gk = −∇f (xk) the direction of steepest descent is with is a direction in configuration space). If we measure disreference to the ℓ <sup>2</sup> -norm ∥u∥I := ( <sup>�</sup> |ui| <sup>2</sup> ) <sup>1/2</sup> (where u tances in configuration space with respect to the P -norm, ∥u∥P = (u <sup>T</sup> Pu) <sup>1/2</sup>, then the direction of steepest descent becomes arg min (9) ∥u∥P =1 <sup>uT ∇f</sup> <sup>(x) ∝−P −1∇f</sup> <sup>(x).</sup> That is, (8) is the natural steepest descent scheme with respect to the metric Pk. The advantage of this point of view is that it frees us from the constraint of aiming to approximate the Hessian. Instead we are now searching for an alternative notion of distance in configuration space, which is a more general concept and a fixed choice of metric may exist that is suitable for a wide range of atomistic systems. Equivalently, we may think of (8) in terms of a change of coordinates. Let x˜k := P <sup>1/2</sup> xk, and F (˜x) = f (P <sup>−1/2</sup> x˜), then the “standard” gradient descent scheme x˜k+1 = x˜k − αk∇F (˜xk) is equivalent to (8). Since ∇ <sup>2</sup> F (˜x) = P <sup>−1/2</sup> ∇ <sup>2</sup> f (P <sup>−1/2</sup> x˜)P <sup>−1/2</sup> it follows that the rate of convergence xk → x of (8) to a limit x is given by <sup>9</sup> While the former suffers from slow convergence to equilibrium due to ill-conditioning of the energy-landscape, the latter is usually impractical since (i) analytical Hessians are typically unavailable for complex interatomic potentials and electronic structure methods and (ii) are expensive to invert. Line search is an essential part of all the above gradient descent algorithms, and preconditioning the line search (as opposed to preconditioning the Newton step) can be thought of as a middle ground, replacing Hk with an approximate Hessian Pk, xk+1 = xk − αkPk <sup>−1gk.</sup> (8) The usual requirements on Pk are that it is (1) cheap to build; (2) cheap to invert; and (3) positive definite to ensure descent in energy. where κP is the condition number of P <sup>−1/2</sup> HP <sup>−1/2</sup> . The latter can be computed from the generalised eigenvalue �k∥x0 − x∥P, ∥xk − x∥P ≲ κP +1 - κP −1 problem Hv = λPv. (10) While approximating the Hessian would lead us to aim for P such that κP ≈ 1, we shall be content with a good notion of distance which will lead to a P such that κP is bounded by some moderate constant for a wide range of systems of interest. Our final remark in this abstract context is that while the discussion of convergence rates applies strictly to the asymptotic regime of the iteration, preconditioning also improves performance in the pre-asymptotic regime: a moderate upper bound on κP implies, loosely speaking, that (8) relaxes all wavelength modes simultaneously rather than focusing on short wavelength modes first. C. Preconditioned LBFGS The usage of a preconditioner is not restricted to the steepest descent method, but it can be readily applied to improved optimisation algorithms such as nonlinear conjugate gradients. It is particularly effective when combined with the LBFGS scheme <sup>6</sup>, for which we briefly outline the implementation. Using sk = xk − xk−1, yk = ∇f (xk) −∇f (xk−1), ρk = 1/yk <sup>T</sup> <sup>sk</sup> <sup>then</sup> <sup>the</sup> <sup>action</sup> <sup>of</sup> <sup>the</sup> <sup>inverse</sup> <sup>Hessian</sup> <sup>can</sup> <sup>be</sup> efficiently approximated, input q = ∇f (xk) output z ≈∇ <sup>2</sup> f (xk) <sup>−1</sup> ∇f (xk) change in bond-length. Motivated by this observation we propose the following preconditioner for materials systems: given parameters rcut, rnn, A, µ (we will discuss below how to choose these automatically) we define P via the quadratic form rrnnij <sup>−</sup> <sup>1</sup> u <sup>T</sup> Pu = µ cij |ui − uj| <sup>2</sup>, 0<|rij |<rcut ij | �� cij = exp or, written in matrix form - A Pij = −µcij, |rij | < rcut - 0, |rij | ≥ rcut (13) ij, |rij | < rcut 0, |rij | ≥ rcut <sup>,</sup> Pii = − j̸=i j̸=i Pij. for i = k, . . ., k − m αi = ρis <sup>T</sup> i αi = ρis <sup>T</sup> i <sup>q</sup> q = q − αiyi (11) Default parameters are discussed in section II E. Remarks. (i) The exponential form of cij is for convenience, and has no deeper physical meaning; A = 0 corresponds to using the adjacency matrix with a hard cutoff. (ii) We use this metric even for multi-component systems, however, if the interaction strength and/or distances between different components varies significantly, then it would be straightforward to generalise it by distinguishing different types of bonds. (iii) As shown in the Appendix, for Bravais lattices, phonon stability is equivalent to the lower bound u <sup>T</sup> Hu ≥ cu <sup>T</sup> Pu for some constant c > 0. Together with the generic and elementary upper bound u <sup>T</sup> Hu ≤ Cu <sup>T</sup> Pu and equations (2)-(4) we obtain that for finite periodic supercells in a Bravais lattice state, the condition number κP for the preconditioned system is bounded above by C/c independently of the system size. In the presence of defects (crystal surfaces, point defects, dislocation lines) or even disorder partial results in this direction likely still hold because P contains the nearest neighbour bonds that dominate in H. E. Default Parameters The parameters A and rcut are user inputs, however P is fairly insensitive to their choice, provided their interdependency illustrated in Figure 1 is taken into account. Hence, we suggest generic default parameters below. The parameters µ and rnn are computed in a preprocessing step from the initial configuration of the optimisation. 1. The nearest-neighbour distance rnn is obtained as the maximum of nearest neighbour bond-lengths: if rnn <sup>(i)</sup> <sup>= min</sup> j̸=i <sup>r</sup> ij <sup>then</sup> <sup>r</sup> nn <sup>= max</sup> i <sup>r</sup> nn <sup>(i).</sup> 2. The exponent A should be large enough to ensure that nearest neighbours dominate, but not so large that small changes in the configuration lead to large changes in P . All our tests are performed with A = 0 and A = 3; with A = 3 giving slightly better performance. z = Pk <sup>−1q</sup> for i = k − m, . . ., k βi = ρiyi <sup>T</sup> βi = ρiyi <sup>T</sup> <sup>z</sup> z = z + (αi − βi)si This formulation of LBFGS does not require the approximate Hessian itself to be stored, only the positions and gradients at previous iterates. For the initial iterate we simply obtain z = P0 <sup>−1</sup> ∇f (x0). The boxed step is the only modification needed to the standard algorithm to achieve preconditioning. After obtaining the output pk = z from (11), the LBFGS step takes the form xk+1 = xk + αkpk, (12) for a suitable choice of step length αk. D. A simple and general metric for materials Changes in energy of atomistic systems occur through changes in bonding, for which the simplest measure is preconditoner when the maximum atomic displacement since the last update exceeds rnn/2. Line search. Irrespective of the choice of the search direction used (e.g., SD (8), CG <sup>6</sup> or LBFGS (12)) a line search algorithm must be implemented to choose the length of the step, αk. The standard choice is a bracketing algorithm which enforces sufficient decrease and approximate orthogonality between subsequent directions (Wolfe conditions). We observed in our tests that a backtracking algorithm imposing only sufficient decrease (Armijo condition), although less robust in theory, was more efficient in practise. We give the details of our implementation, and additional discussion, in Appendix A. Robust energy differences. The computation of the energy differences and inner products in the Wolfe conditions (A1, A2) must be performed with a high degree of accuracy, since the optimization algorithm relies on robustly detecting the change in energy. A common difficulty in implementing a line search strategy based on (A1, A2) is the numerical round-off error that arises for large numbers of atoms (typically 10 <sup>5</sup> or higher). Numerically robust inner products are equally important in the inversion of the preconditioner and in the LBFGS algorithm. Numerically robust evaluation of energy differences and inner products may, for example, be implemented using compensated summation algorithms. <sup>11</sup> A simpler strategy which proved sufficient in our case is to use 128 bit floating point numbers for these steps. Stabilisation. If the system contains clamped atoms then the preconditioner defined in (13) is strictly positive definite but in order to improve its conditioning and ensure positive definiteness for cases where there are no clamped atoms, we stabilize the preconditioner by adding a diagonal term, _r_ cut = 1.2 _r_ cut = 2.5 _r_ cut = 5.1 _r_ cut = 2.5 _r_ cut = 5.1 _r_ cut = 1.2 _r_ cut = 2.5 _r_ cut = 5.1 _r_ cut = 2.5 _r_ cut = 5. ~~1~~ FIG. 1. Spectra of the Lennard-Jones Hessian in the fcc ground state and of the preconditioner with A ∈{0, 3} and rcut ∈{1.2, 2.5, 5.1}rnn (top to bottom, with increasing line thickness). The graphs for A = 0, 3 with rcut = 1.2 overlap. Left panel: (1, 1, 0) direction, Right panel: (2.7, 4.2, 3.0) direction. 3. The cut-off rcut should be larger than rnn, however, then exponential decay of the preconditioner entries ensures that additional entries have a small influence. For A = 0 we choose rcut = 1.1rnn and when A = 3 we use rcut = 2rnn. The latter choice is intuitively preferable since it accommodates the possibility of significant bond stretching. 4. Finally, the energy-scale µ is chosen to ensure that the LBFGS algorithm can choose the unit step-length as the default. We achieve this by equating −µc0 ij |rij | < rcut - |rij | ≥ rcut µc0 ij |rij | < rcut |rij | ≥ rcut <sup>,</sup> (16) Pij = Pii = − v <sup>T</sup> P <sup>�</sup> µ = µv <sup>T</sup> Pµ=1v, (14) µ = 1 and v is a test ∇E(x0 + v) −∇E(x0) j̸=i j̸=i where Pµ=1 is the metric with µ = 1 and v is a test displacement of the form Pij + µCstab. In all our results we choose Cstab = 0.1. Even when there are clamped atoms, we find that setting Cstab = 0.1 improves overall performance. Variable cell optimisation. We confirmed that our preconditoner also gives good performance when degrees of freedom associated with the periodic unit cell are included as well as the atomic positions. Following the approach of Tadmor et al. <sup>12</sup>, we consider a combined objective function Φ(x, D) = f (Dx) with 3N + 9 degrees of freedom: 3N for the atomic positions x and 9 components of the deformation tensor D, which is with respect to the original undeformed unit cell. The combined gradient is then given by v(x, y, z) = M - sin(x/Lx), sin(y/Ly), sin(z/Lz) lengths of the periodic lattice �, (15) vectors where Li are the lengths of the periodic lattice vectors and M is a user-defined matrix with default value M = 10 <sup>−2</sup> rnnI. F. Implementation details Preconditioner application. It is important that the cost of applying the preconditioner does not dominate the cost of the calculation over the evaluation of energy and gradient. For inexpensive models (LennardJones, EAM, Stillinger–Weber, etc) the choice of method to solve z = Pk <sup>−1q</sup> <sup>in</sup> <sup>(11)</sup> <sup>is</sup> <sup>crucial.</sup> Our implemen tation uses a smoothed aggregation algebraic multigrid method <sup>10</sup> . As a further optimisation we only rebuild the where V is the cell volume and σ the stress tensor, and we have introduced an additional preconditioner parameter ∇x,D Φ(x, D) = D∇xf (x), µ <sup>V</sup> c σ �D <sup>−1�T �</sup> (17) µc to set the energy scale for the cell degrees of freedom. µc can be pre-computed at the same time as µ for no additional cost by including a trial perturbation of the cell in (15), with default v(xc) = M/rnn = 10 <sup>−2</sup> I. III. RESULTS We have selected a broad range of materials examples to test our preconditioner. The first is a 160 Si atom 1 × 1 × 20 supercell of the cubic diamond structure cell in a slab geometry, with periodic boundary conditions along x and y and free boundaries in z, simulated with the Stillinger-Weber interatomic potential. <sup>13</sup> The two halves of the cell (along z) are uniformly displaced toward each other by 0.5 <sup>˚</sup> A, creating a large but very localized strain in the center of the slab. The problem is ill-conditioned because the initial strain is localized, but reaching the relaxed geometry requires all the slab atoms to move out towards the free surfaces. As shown in Fig. 2, both the A = 0 and A = 3 preconditioners dramatically reduce the computational cost of the minimization, by a factor of about 6 compared to the non-preconditioned minimizer. Results using the Pfrommer et al. <sup>7</sup> block-diagonal approximation to the initial inverse Hessian are also shown for comparison. Note that even for this relatively fast interatomic potential the computational cost of applying the preconditioner is nearly negligible, so the reduction in computational time is nearly equal to the reduction in number of energy evaluations. Next we consider a 33,696-atom Si model of the (111)[11 <sup>¯</sup> 2] cleavage system (Fig. 3) in a quasi-twodimensional thin strip geometry with dimensions 717 × 242 × 3.84 <sup>˚</sup> A <sup>3</sup> . The applied strain was chosen so that the crack is lattice trapped <sup>14</sup>, leading to a stable ground state with the Stillinger-Weber <sup>13</sup> interatomic potential. Strong coupling between length scales makes this a difficult system to optimize and hence a good test of our preconditioner. A complex trade off between local chemical cost and long-range elastic relaxation makes it favourable for a 5–7 crack tip reconstruction to form via a bond rotation. <sup>15</sup> Here, we find that both the A = 0 and A = 3 preconditioners lead to a significant speed up over both unpreconditoned LBFGS and the approach of Pfrommer et al. <sup>7</sup> . Fig. 3 also includes a comparison between the Armijo and Wolfe line searches. As noted above, enforcing only the Armijo condition leads to a further increase in performance. To investigate whether the theoretical independence of the cost of preconditioned minimisations from system size (Eq. 5) is achieved in real systems, we carried out tests in a series of N × 1 × 1 Si supercells, again using the Stillinger-Weber potential. The atomic positions were perturbed by random displacements of magnitude 0.1 <sup>˚</sup> A and also subjected to a compressive strain of 0.5% to introduce a long-wavelength deformation. The results shown in Fig. 4 indicate that our preconditioner achieves convergence after an approximately constant number of 10 <sup>1</sup> 10 <sup>0</sup> 10 <sup>−1</sup> 10 <sup>−2</sup> P = I (no preconditioning) A = 0, rcut = 1.1rnn A = 3, rcut = 2.0rnn Pfrommer et al. 10 <sup>−3</sup> 0 50 100 150 200 <u>Number of energy evaluations</u> 10 <sup>1</sup> 10 <sup>0</sup> 10 <sup>−1</sup> 10 <sup>−2</sup> P = I (no preconditioning) A = 0, rcut = 1.1rnn A = 3, rcut = 2.0rnn Pfrommer et al. 10 <sup>−3</sup> 0 2 4 6 8 10 Walltime / s FIG. 2. Convergence of the geometry optimisation of a 160atom silicon slab using the Stillinger-Weber potential in fixed unit cell. The parameters of the preconditioner (or not using a preconditioner) are given in the legend. The lower panel shows the time required to solve the problem in each case, indicating that the overhead of constructing and applying the preconditioner is minimal in comparison to the cost of computing forces with the interatomic potential. force evaluations as the system is made larger, in contrast to not using a preconditioner or to the approach of Pfrommer et al. <sup>7</sup> which does not use connectivity information. Our new method is therefore expected to be particularily useful for very large systems. Since large systems inherently have a wide range of displacement wavelengths and corresponding stiffnesses, it is not obvious a priori how much preconditioning will help for a smaller system, for example one that can feasibly be simulated using density functional theory. We therefore simulated a perovskite structure oxide, LaAlO3, in a 220atom slab geometry with periodic boundary conditions in-plane and free surfaces separated by a vacuum region in the normal direction. Energy and force evaluations used DFT with the PBE exchange correlation functional, projector-augmented waves (PAW) with a 282.8 eV cutoff plane-wave basis, and a 2 × 2 × 1 Monkhorst-Pack k-point sampling, evaluated using the QUIP interface to the VASP software. <sup>16–18</sup> In this system, as shown in Fig. 5, we find that the preconditioning still significantly reduces the computational cost, but the improvement is not as dramatic as for the larger systems discussed above. With our convergence criterion the reduction is about a factor of two, although the non-preconditioned minimization stagnates just before reaching convergence, and with a slightly looser criterion the reduction would only be a factor of 1.6. Note that the computational cost of the DFT energy and force evaluations is so large that the application of the preconditioner is completely negligible 10 <sup>0</sup> 10 <sup>−1</sup> 10 <sup>−2</sup> Armijo P = I (no preconditioning) Armijo A = 0, rcut = 1.1rnn Armijo A = 3, rcut = 2.0rnn Armijo Pfrommer et al. Wolfe P = I (no preconditioning) Wolfe A = 0, rcut = 1.1rnn Wolfe A = 3, rcut = 2.0rnn Wolfe Pfrommer et al. 10 <sup>0</sup> 10 <sup>−1</sup> 10 <sup>−2</sup> P = I (no preconditioning) A = 0, rcut = 1.1rnn A = 3, rcut = 2.0rnn Pfrommer et al. 10 <sup>−3</sup> 0 500 1000 1500 2000 Number of energy evaluations FIG. 3. Convergence of the geometry optimisation of a silicon crack using the Stillinger-Weber potential in a fixed unit cell with 33,696 atoms. Solid and dashed lines correspond to using line searches enforcing Armijo and Wolfe conditions, respectively. The parameters of the preconditioner (or not using a preconditioner) are given in the legend. 500 10 <sup>−3</sup> 0 20 40 60 80 100 120 Number of energy evaluations FIG. 5. Convergence of the geometry optimisation of a 220atom LaAlO3 slab using DFT in a fixed unit cell. The parameters of the preconditioner (or not using a preconditioner) are given in the legend. 10 <sup>0</sup> Variable cell P = I (no preconditioning) Variable cell A = 0, rcut = 1.1rnn Variable cell A = 3, rcut = 2.0rnn Variable cell Pfrommer et al. 10 <sup>−1</sup> 10 <sup>−2</sup> 10 <sup>−3</sup> 0 20 40 60 80 100 120 140 Number of energy evaluations FIG. 6. Convergence of the geometry optimisation of a 106atom γ-Al2O3 system in a variable cell. The parameters of the preconditioner (or not using a preconditioner) are given in the legend. minimizer fails to make progress at several points during the relaxation, both our new preconditioners allow the LBFGS minimizer to rapidly and steadily reduce the gradient until convergence. Here, the approach of Pfrommer et al. <sup>7</sup> actually results in slightly worse performance than unpreconditioned LBFGS. This could perhaps be improved by careful tuning of the bulk modulus and optical phonon frequency parameters used to construct the approximation to the inverse Hessian; however, we note that our new preconditioner does not require any user input as all parameters are computed automatically. The addition of the cell degrees of freedom, which are preconditioned in magnitude but not coupled to the positional degrees of freedom, do not reduce the effectiveness of our preconditioners. Finally we tested the new preconditioner for a molec 400 300 200 100 0 P = I (no preconditioning) A = 3, rcut = 2.0rnn Pfrommer et al. 32 64 128 256 512 Number of atoms FIG. 4. Scaling with system size for geometry optimisations in N × 1 × 1 Si supercells containing from 32 to 512 atoms with the Stillinger-Weber potential, using unpreconditioned LBFGS (red), the inverse Hessian approximation of Pfrommer et al. (magenta), and our new preconditioner (blue). in comparison. In this case the approach of Pfrommer et al. <sup>7</sup> does not make a significant improvemenet over not using a preconditioner. For a test of the relaxation of both atomic positions and unit cell size and shape we used a 1 × 1 × 2 supercell of a γ-Al2O3 structure, with methods similar to those described above for LaAlO3, except for a 530 eV plane wave cutoff and a Γ-centered k-point mesh. For this system, plotted in Fig. 6, the reduction in computations for both preconditioners is about a factor of 5, a very significant improvement. While the non-preconditioned 10 <sup>0</sup> 10 <sup>−1</sup> 10 <sup>−2</sup> N = 255, P = I (no preconditioning) N = 255, A = 3 N = 3999, P = I (no preconditioning) N = 3999, A = 3 0 100 200 300 400 500 Number of force evaluations P = I (no preconditioning) A = 0, rcut = 2.25 A <sup>˚</sup> A = 3, rcut = 2.0rnn Variable cell P = I (no preconditioning) Variable cell A = 0, rcut = 2.25 A <sup>˚</sup> Variable cell A = 3, rcut = 2.0rnn 10 <sup>1</sup> 10 <sup>0</sup> 10 <sup>−1</sup> 10 <sup>−2</sup> 10 <sup>−3</sup> 10 <sup>−3</sup> 0 50 100 150 200 250 300 Number of energy evaluations FIG. 7. Convergence of the geometry optimisation of a 432atom ice VIII system with fixed (solid lines) and variable (dashed lines) unit cells. The parameters of the preconditioner (or not using a preconditioner) are given in the legend. ular system, ice VIII. The system contained 432 atoms with an initial cell dimension of 13.65 × 13.65 × 13.16 ˚A <sup>3</sup> . A DFT potential with BLYP exchange-correlation functional was used with DZVP basis set and GTH pseudopotentials. Calculations were performed by the CP2K program package using the QUIP interface. <sup>16,19,20</sup> Fig. 7 shows the number of energy evaluations of the different optimisations for fixed and variable cells using a maximum force threshold of 10 <sup>−3</sup> eV <sup>˚</sup> A <sup>−1</sup> . Similarly to previous systems, the Armijo condition performed better than Wolfe so we present here only the results with the former line search. In the A = 0 case we slightly increased the default cutoff parameter (rcut = 2.25 <sup>˚</sup> A) to include hydrogen bonded neighbours too. For both the fixed and variable cells the computational costs compared to the unpreconditioned optimisation were reduced by 3 and 4 times using A = 0 and A = 3, respectively. IV. SADDLE SEARCH To demonstrate the transferability of our preconditioner not only across problem classes but also across algorithms, we apply it to the dimer saddle search algorithm. <sup>21,22</sup> A modified variant of the algorithm proposed in Ref. <sup>22</sup> reads FIG. 8. Performance of the preconditioned dimer method for a vacancy in a Lennard-Jones fcc crystal (solid lines), and without a preconditioner (dashed lines), for two system sizes. a finite-difference approximation of ∇ <sup>2</sup> f (xk)v. Interestingly, naive preconditioning of the orientation steps led to poorer performance in our tests. We test this preconditioned dimer algorithm by computing the saddle configuration of a vacancy in a Lennard-Jones fcc crystal, with a cubic computational cell. Given two states x <sup>(0)</sup>, x <sup>(1)</sup> which have two neighbouring lattice sites removed, we choose the starting con step-sizes are chosen by hand-optimising for a small setupfiguration x0 = 3 <sup>1</sup> <sup>x(0) +</sup> 3 <sup>2</sup> <sup>x(1)</sup> <sup>and</sup> <sup>v0</sup> <sup>∝</sup> <sup>x(1)</sup> <sup>−</sup> <sup>x(0).</sup> <sup>The</sup> with 3 <sup>3</sup> unit cells: α = 0.01, β = 0.005 for the unpreconditioned variant (Pk = I) and α = 0.5, β = 0.01 for our preconditioner with parameters A = 3.0, rrcut = 2rnn. For both variants we chose h = 10 <sup>−2</sup> . The results are displayed in Figure 8, demonstrating analogous improvements to the energy minimisation examples. V. CONCLUSIONS In summary, we have presented a simple preconditioner for geometry optimisation and saddle search that is universally applicable in a wide range of atomistic and molecular condensed phase systems, offering at least a factor of two in performance gain in our examples of small systems, and up to factor of ten in systems of tens of thousands of atoms. The extra cost of using the preconditioner is small enough that it is worth using even with inexpensive interatomic potentials, while the performance gain is expected to scale as the square root of the system size. A Python implementation within the Atomic Simulation Environment <sup>23</sup> is available at [https://gitlab.com/jameskermode/ase,](https://gitlab.com/jameskermode/ase) offering interfaces to a wide range of atomistic codes such as VASP <sup>17</sup>, CASTEP <sup>24</sup>, CP2K <sup>19</sup>, LAMMPS <sup>25</sup>, and many others. k xk+1 = xk − α k <sup>−1</sup> k - 2vkv <sup>T</sup> k 2, - ∇f (xk+hv2kh)+∇f (xk−hvk, ) v <sup>′</sup> Pk <sup>−1</sup> I k <sup>′</sup> +1 <sup>= vk</sup> <sup>−</sup> <sup>β</sup> k <sup>′</sup> +1 <sup>∥P</sup> k+1 <sup>.</sup> 2h, - ∇f (xk+hvk)−∇f (xk−hvk) vk+1 = v <sup>′</sup> <sup>′</sup> k+1 <sup>/∥v</sup> k <sup>′</sup> k �I - Pkvkv <sup>T</sup> <sup>v</sup> k <sup>′</sup> +1 <sup>∥P</sup> k+1 <sup>.</sup> The translation step is obtained as coordinate transformation of the standard dimer step with the variables x˜k = Pk <sup>1/2</sup> k <sup>1/2</sup> xk, ˜vk = Pk <sup>1/2</sup> x˜k = Pk <sup>1/2</sup> xk, ˜vk = Pk <sup>1/2</sup> vk (cf. §II B). The orientation step is an ℓ <sup>2</sup> -steepest descent step (without preconditioning) for the Rayleigh-quotient v <sup>T</sup> ∇ <sup>2</sup> f (xk)v/v <sup>T</sup> Pkv, with ACKNOWLEDGMENTS This work was supported by the Engineering and Physical Sciences Research Council (EPSRC) under grant numbers EP/J022055/1, EP/L014742/1, EP/L027682/1, EP/J010847/1 and EP/J021377/1. An award of computer time was provided by the Innovative and Novel Computational Impact on Theory and Experiment (INCITE) program. This research used resources of the Argonne Leadership Computing Facility, which is a DOE Office of Science User Facility supported under Contract DE-AC02-06CH11357. Additional computing facilities were provided by the Centre for Scientific Computing of the University of Warwick with support from the Science Research Investment Fund. The work of N. B. was supported by the Office of Naval Research through the Naval Research Laboratory’s basic research program. The work of C. O. and L. M. was also supported by ERC Starting Grant 335120. We thank C. S. Hellberg and M. D. Johannes for the LaAlO3 and γ-Al2O3 atomic configurations. Appendix A: Linesearch We present the details of our line search algorithm. The standard requirement for the LBFGS and CG methods is that the step-size, α, satisfies the Wolfe conditions Unlike for a bracketing line-search, the only additional evaluations required during line search are energy evaluations at the end-point of the search interval, which reduces computational cost in the pre-asymptotic regime of the optimisation. In the asymptotic regime, the step-length αk = 1 is always accepted, and will satisfy both Wolfe conditions (A1) and (A2) provided that c1 < 1/2. Since, through the use of our proposed preconditioner, we substantially reduce the number of iterations, it is unlikely that the potential instabilities associated with Armijo line search for the LBFGS direction will be observed. Moreover, in our implementation, if the Armijo linesearch fails we simply reset the LBFGS Hessian history and repeat the linesearch, which removes any concern about robustness. Appendix B: Phonon Stability Consider a d-dimensional Bravais lattice Λ = AZ <sup>d</sup>, where Z is the set of integers and the columns of A are the lattice directions, which is the ground state for some material system under a potential energy f . Let H = ∇ <sup>2</sup> f denote the Hessian of the potential energy in the ground state. For displacements ur of each atom r ∈ Λ we can write Hrsus, (B1) s∈Λ f (xk + αpk) ≤ f (xk) + c1α∇fk <sup>T</sup> [Hu]r = |∇f (xk + αpk) <sup>T</sup> pk| ≤ c2|∇fk <sup>T</sup> k <sup>T</sup> <sup>pk,</sup> (A1) (A2) k <sup>T</sup> <sup>pk|,</sup> whereclaim Hthatrs ∈phononR <sup>d×d</sup> are the blocks ofstability is equivalent H. We now prove theto the bound u <sup>T</sup> Hu ≥ u <sup>T</sup> Pu, where P is the preconditioner defined in (13), for all displacements of the lattice. The discrete translation invariance of the lattice, Λ + r = Λ for all r ∈ Λ, implies that Hrs = H0,s−r =: hs−r where h ∈ R <sup>d×d</sup> . For any virtual displacement u = (ur) with compact support we have where 0 < c2 < c1 < 1. Line search methods that guarantee (A1) and (A2) employ a bracketing strategy, which often requires several additional energy and force evaluations at each iteration. For the steepest descent method it is theoretically sufficient to impose only the Armijo condition (A1). We have observed that this was also sufficient in all our tests to ensure convergence of the LBFGS method and leads to a consistent performance improvement. Our implementation minimises the quadratic interpolating fk, ∇fk <sup>T</sup> <sup>pk</sup> and f (xk + αpk), iterating until (A1) is satisfied. For c1 < 1/2 this yields a backtracking guarantee and hence ensures that the line search terminates after finitely many steps. Our default parameter is c1 = 0.1. The initial estimate on the step-length is α˜ = 1.0. u <sup>T</sup> Hu = uˆ <sup>∗</sup> h <sup>ˆ</sup> u dk,ˆ (B2) BZ input x, ˜α > 0, c1 ∈ (0, 1/2), p s.t. ∇f (x) · p < 0. output α.˜ while f (x + αp˜ ) > f (x) + c1α˜∇f (x) · p (A3) where uˆ and h <sup>ˆ</sup> denote the Fourier transforms of u and h, respectively and the integration is over the first Brillouin zone. Phonon stability means that the natural frequencies are positive and linear near the origin. In terms of hˆ, this translates to ˆh(k) ≥ cH |k| <sup>2</sup> I for some constant cH - 0. The upper bound h <sup>ˆ</sup> (k) ≤ CH |k| <sup>2</sup> I follows from the boundedness of the phonon band width. (A sufficient r∈Λ <sup>|hr||r|2</sup> <sup>< ∞.)</sup> conditionblocksLet Pofrstheis=thatpreconditionerps− <sup>�</sup> r ∈ R <sup>d×d</sup> operator.denote theThecorrespondingupper bound conditionblocksLet Pofrstheis=thatpreconditionerps− <sup>�</sup> r ∈ R <sup>d×d</sup> operator.denote theThecorrespondingupper bound ditioner has a finite interaction range.pˆ ≤ CP |k| <sup>2</sup> I follows simply from the fact that the precon-This upper bound r∈Λ <sup>|hr||r|2</sup> <sup>< ∞.)</sup> - 2 <sup>1</sup> f (x+˜αp)− α˜ <sup>′</sup> ← 2 <sup>1</sup> <sup>α˜∇f</sup> <sup>(x) · p</sup> f (x+˜αp)−f (x) )−f (x) α˜ −∇f (x) · p α˜ ← max(˜α <sup>′</sup>, ˜α/10) and phonon stability of H imply u <sup>T</sup> Hu ≥ cH BZ |k| <sup>2</sup> |uˆ| <sup>2</sup> dk uˆ <sup>∗</sup> pˆuˆ ≥ C <sup>cH</sup> P = <sup>cH</sup> CP BZ CP u <sup>T</sup> Pu. Conversely, if u <sup>T</sup> Hu ≥ cu <sup>T</sup> Pu, then phonon stability of P implies phonon stability of H. But the former is an immediate consequence of the fact that the coefficients in the definition of P are positive. <sup>26</sup> 1D. Wales, Energy landscapes: Applications to clusters, biomolecules and glasses (Cambridge University Press, 2003). 2C. J. Pickard and R. J. Needs, J. Phys. Condens. Matter 23, 053201 (2011). 3A. Voter, Phys. Rev. Lett. 78, 3908 (1997). 4M. C. Payne, M. P. Teter, D. C. Allan, T. A. Arias, and J. D. Joannopoulos, Rev. Mod. Phys. 64, 1045 (1992). 5H. C. Elman, D. J. Silvester, and A. J. Wathen, Finite elements and fast iterative solvers: with applications in incompressible fluid dynamics (Oxford University Press, 2014). 6J. Nocedal and S. J. Wright, Numerical Optimisation, Springer Series in Operations Research and Financial Engineering (Springer New York, 2006). 7B. G. Pfrommer, M. Cˆot´e, S. G. Louie, and M. L. Cohen, J. Comput. [Phys.](http://dx.doi.org/10.1006/jcph.1996.5612) 131, 233 (1997). 8M. V. Fernandex-Serra, E. Artacho, and J. M. Soler, Phys. Rev. B 67, 100101 (2013). 9D. P. Bertsekas, Nonlinear Programming 2nd Edition (Athena Scientific, 1999). 10W. N. Bell, L. N. Olson, and J. B. Schroder, “PyAMG: Algebraic [multigrid](http://www.pyamg.org) solvers in Python v2.0,” (2011), release 2.0. 11N. Higham, Accuracy and Stability of Numerical Algorithms (SIAM, 2002). 12E. B. Tadmor, G. S. Smith, N. Bernstein, and E. Kaxiras, Phys. Rev. B Condens. Matter 59, 235 (1999). 13F. H. Stillinger and T. A. Weber, Phys. Rev. B Condens. Matter 31, 5262 (1985). 14R. Thomson, C. Hsieh, and V. Rana, J. Appl. Phys. 42, 3154 (1971). 15J. R. Kermode, T. Albaret, D. Sherman, N. Bernstein, P. Gumbsch, M. C. Payne, G. Cs´anyi, and A. De Vita, Nature 455, 1224 (2008). 16G. Cs´anyi, S. Winfield, J. Kermode, A. De Vita, A. Comisso, N. Bernstein, and M. Payne, IoP Comput. Phys. [Newsl.](http://www.libatoms.org) Spring 2007 (2007). 17G. Kresse and J. Hafner, Phys. Rev. B Condens. Matter 49, 14251 (1994). 18G. Kresse and J. Furthm¨uller, Phys. Rev. B Condens. Matter 54, 11169 (1996). 19J. VandeVondele, M. Krack, F. Mohamed, M. Parrinello, T. Chassaing, and J. Hutter, Comput. Phys. Commun. 167, 103 (2005). 20J. Hutter, M. Iannuzzi, F. Schiffmann, and J. VandeVondele, Wiley Interdiscip. Rev. Comput. Mol. Sci. 4, 15 (2014). 21G. Henkelman and H. J´onsson, Journal of Chemical [Physics](http://dx.doi.org/10.1063/1.480097) 111, 7010 (1999). 22N. Gould, C. Ortner, and D. Packwood, “An efficient dimer method with preconditioning and linesearch,” Arxiv:1407.2817, to appear in Math. Comp. 23S. R. Bahn and K. W. Jacobsen, Comput. Sci. Eng. 4, 56 (2002). 24S. J. Clark, M. D. Segall, C. J. Pickard, P. J. Hasnip, M. I. J. Probert, K. Refson, and M. C. Payne, Z. Kristallogr. 220, 567 (2005). 25S. Plimpton, J. Comp. Phys. 117, 1 (1995). 26M. Born and K. Huang, Dynamical Theory of Crystal Lattices (Clarendon Press, 1998).

섹션 본문

섹션 본문이 없습니다.

참고문헌 19건

  1. <i>Ab initio</i>random structure searching Journal of Physics Condensed Matter · IOP Publishing · 2011 10.1088/0953-8984/23/5/053201
  2. Hyperdynamics: Accelerated Molecular Dynamics of Infrequent Events Physical Review Letters · American Physical Society · 1997 10.1103/physrevlett.78.3908
  3. Iterative minimization techniques for<i>ab initio</i>total-energy calculations: molecular dynamics and conjugate gradients Reviews of Modern Physics · American Physical Society · 1992 10.1103/revmodphys.64.1045
  4. Relaxation of Crystals with the Quasi-Newton Method Journal of Computational Physics · Elsevier BV · 1997 10.1006/jcph.1996.5612
  5. Model Hessian for accelerating first-principles structure optimizations Physical review. B, Condensed matter · American Physical Society · 2003 10.1103/physrevb.67.100101
  6. Mixed finite element and atomistic formulation for complex crystals Physical review. B, Condensed matter · American Physical Society · 1999 10.1103/physrevb.59.235
  7. Computer simulation of local order in condensed phases of silicon Physical review. B, Condensed matter · American Physical Society · 1985 10.1103/physrevb.31.5262
  8. Lattice Trapping of Fracture Cracks Journal of Applied Physics · American Institute of Physics · 1971 10.1063/1.1660699
  9. Low-speed fracture instabilities in a brittle crystal Nature · Nature Portfolio · 2008 10.1038/nature07297
  10. Expressive Programming for Computational Physics in Fortran 950 2007
  11. <i>Ab initio</i>molecular-dynamics simulation of the liquid-metal–amorphous-semiconductor transition in germanium Physical review. B, Condensed matter · American Physical Society · 1994 10.1103/physrevb.49.14251
  12. Efficient iterative schemes for<i>ab initio</i>total-energy calculations using a plane-wave basis set Physical review. B, Condensed matter · American Physical Society · 1996 10.1103/physrevb.54.11169
  13. Quickstep: Fast and accurate density functional calculations using a mixed Gaussian and plane waves approach Computer Physics Communications · Elsevier BV · 2005 10.1016/j.cpc.2004.12.014
  14. <scp>cp2k:</scp> atomistic simulations of condensed matter systems Wiley Interdisciplinary Reviews Computational Molecular Science · Wiley · 2013 10.1002/wcms.1159
  15. A dimer method for finding saddle points on high dimensional potential surfaces using only first derivatives The Journal of Chemical Physics · American Institute of Physics · 1999 10.1063/1.480097
  16. An Efficient Dimer Method With Preconditioning And Linesearch arXiv (Cornell University) · Cornell University · 2014 10.48550/arxiv.1407.2817
  17. An object-oriented scripting interface to a legacy electronic structure code Computing in Science & Engineering · AIP Publishing · 2002 10.1109/5992.998641
  18. First principles methods using CASTEP Zeitschrift für Kristallographie - Crystalline Materials · De Gruyter · 2005 10.1524/zkri.220.5.567.65075
  19. Fast Parallel Algorithms for Short-Range Molecular Dynamics Journal of Computational Physics · Elsevier BV · 1995 10.1006/jcph.1995.1039