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

Machine Learning of Coarse-Grained Molecular Dynamics Force Fields

간접 관련 화학·수지 · (21) 에폭시수지 (6) PEM(고분자전해질막)(11) 배리어 필름(16) CPI(투명 폴리이미드)

기본 정보

저자
  1. Jiang Wang — Department of Chemistry, Rice University, Houston, Texas 77005, United States|||Center for Theoretical Biological Physics, Rice University, Houston, Texas 77005, United States
  2. Simon Olsson — Department of Mathematics and Computer Science, Freie Universität Berlin, Arnimallee 6, 14195 Berlin, Germany
  3. Christoph Wehmeyer — Department of Mathematics and Computer Science, Freie Universität Berlin, Arnimallee 6, 14195 Berlin, Germany
  4. Adrià Pérez — Computational Science Laboratory, Universitat Pompeu Fabra, PRBB, C/Dr Aiguader 88, 08003 Barcelona, Spain
  5. Nicholas E. Charron — Center for Theoretical Biological Physics, Rice University, Houston, Texas 77005, United States|||Department of Physics, Rice University, Houston, Texas 77005, United States
  6. Gianni De Fabritiis — Computational Science Laboratory, Universitat Pompeu Fabra, PRBB, C/Dr Aiguader 88, 08003 Barcelona, Spain|||Institucio Catalana de Recerca i Estudis Avanats (ICREA), Passeig Lluis Companys 23, 08010 Barcelona, Spain
  7. Frank Noé — Department of Chemistry, Rice University, Houston, Texas 77005, United States|||Department of Mathematics and Computer Science, Freie Universität Berlin, Arnimallee 6, 14195 Berlin, Germany|||Center for Theoretical Biological Physics, Rice University, Houston, Texas 77005, United States
  8. Cecilia Clementi — Center for Theoretical Biological Physics, Rice University, Houston, Texas 77005, United States|||Department of Chemistry, Rice University, Houston, Texas 77005, United States|||Department of Mathematics and Computer Science, Freie Universität Berlin, Arnimallee 6, 14195 Berlin, Germany|||Department of Physics, Rice University, Houston, Texas 77005, United States
DOI
10.1021/acscentsci.8b00913
저널
ACS Central Science
발행년도
2019
발행기관
American Chemical Society
피인용수
461
라이선스
publisher-specific-oa
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1021/acscentsci.8b00913
토픽
Fuel Cells and Related Materials
OpenAlex ID
W2901995873

평가 내용

관련도
간접 관련
사업분야
화학·수지 · (21) 에폭시수지
부 분야
(6) PEM(고분자전해질막), (11) 배리어 필름, (16) CPI(투명 폴리이미드)
R&D 측면
분석·모델링
확신도
0.70
근거 용어
Coarse-Grained Molecular Dynamics, Machine Learning, Free Energy Functions, Force-matching scheme, Dimensionality reduction
판단 근거
이 논문은 분자 동역학 시뮬레이션을 위한 머신러닝 기반의 거친 입자(Coarse-Grained) 모델링 기법을 다루고 있습니다. 이는 고분자 소재의 열역학 및 동역학적 특성을 예측하는 범용적인 방법론입니다.
R&D 활용 포인트
에폭시, PEMFC용 이온전도성 고분자, CPI 등 복잡한 고분자 및 복합소재의 미시적 구조와 물성 간의 관계를 효율적으로 예측하고 설계하는 시뮬레이션 기술로 활용 가능합니다.
평가 입력
초록 1,350자

초록

Atomistic or ab initio molecular dynamics simulations are widely used to predict thermodynamics and kinetics and relate them to molecular structure. A common approach to go beyond the time- and length-scales accessible with such computationally expensive simulations is the definition of coarse-grained molecular models. Existing coarse-graining approaches define an effective interaction potential to match defined properties of high-resolution models or experimental data. In this paper, we reformulate coarse-graining as a supervised machine learning problem. We use statistical learning theory to decompose the coarse-graining error and cross-validation to select and compare the performance of different models. We introduce CGnets, a deep learning approach, that learns coarse-grained free energy functions and can be trained by a force-matching scheme. CGnets maintain all physically relevant invariances and allow one to incorporate prior physics knowledge to avoid sampling of unphysical structures. We show that CGnets can capture all-atom explicit-solvent free energy surfaces with models using only a few coarse-grained beads and no solvent, while classical coarse-graining methods fail to capture crucial features of the free energy surface. Thus, CGnets are able to capture multibody terms that emerge from the dimensionality reduction.

본문 97,456자

본문 펼치기
## Machine Learning of coarse-grained Molecular Dynamics Force Fields Jiang Wang, <sup>_†_</sup> <sup>,</sup> <sup>_‡_</sup> Simon Olsson, <sup>_¶_</sup> Christoph Wehmeyer, <sup>_¶_</sup> Adrià Pérez, <sup>_§_</sup> Nicholas E. Charron, <sup>_†_</sup> <sup>,</sup> <sup>_∥_</sup> Gianni de Fabritiis, <sup>_§_</sup> <sup>,</sup> <sup>_⊥_</sup> Frank Noé, <sup>_∗_</sup> <sup>,</sup> <sup>_¶_</sup> <sup>,</sup> <sup>_†_</sup> <sup>,</sup> <sup>_‡_</sup> and Cecilia Clementi <sup>_∗_</sup> <sup>,</sup> <sup>_†_</sup> <sup>,</sup> <sup>_‡_</sup> <sup>,</sup> <sup>_∥_</sup> <sup>,</sup> <sup>_¶_</sup> _†Rice_ _University,_ _Center_ _for_ _Theoretical_ _Biological_ _Physics,_ _Houston,_ _Texas_ _77005,_ _United_ _States_ _‡Rice_ _University,_ _Department_ _of_ _Chemistry,_ _Houston,_ _Texas_ _77005,_ _United_ _States_ _¶Freie_ _Universität_ _Berlin,_ _Department_ _of_ _Mathematics_ _and_ _Computer_ _Science,_ _Arnimallee_ _6,_ _14195_ _Berlin,_ _Germany_ _§Computational_ _Science_ _Laboratory,_ _Universitat_ _Pompeu_ _Fabra,_ _PRBB,_ _C/_ _Dr_ _Aiguader_ _88,_ _08003,_ _Barcelona,_ _Spain_ _∥Rice_ _University,_ _Department_ _of_ _Physics,_ _Houston,_ _Texas_ _77005,_ _United_ _States_ _⊥Institucio_ _Catalana_ _de_ _Recerca_ _i_ _Estudis_ _Avanats_ _(ICREA),_ _Passeig_ _Lluis_ _Companys_ _23,_ _Barcelona_ _08010,_ _Spain_ E-mail: frank.noe@fu-berlin.de; cecilia@rice.edu #### Abstract Atomistic or ab-initio molecular dynamics simulations are widely used to predict thermodynamics and kinetics and relate them to molecular structure. A common approach to go beyond the time- and length-scales accessible with such computationally expensive simulations is the definition of coarse-grained molecular models. Existing coarse-graining approaches define an effective interaction potential to match defined properties of high-resolution models or experimental data. In this paper, we reformulate coarse-graining as a supervised machine learning problem. We use statistical learning theory to decompose the coarse-graining error and cross-validation to select and compare the performance of different models. We introduce CGnets, a deep learning approach, that learns coarse-grained free energy functions and can be trained by a force matching scheme. CGnets maintain all physically relevant invariances and allow one to incorporate prior physics knowledge to avoid sampling of unphysical structures. We show that CGnets can capture all-atom explicit-solvent free energy surfaces with models using only a few coarse-grained beads and no solvent, while classical coarse-graining methods fail to capture crucial features of the free energy surface. Thus, CGnets are able to capture multi-body terms that emerge from the dimensionality reduction. #### Introduction Recent technological and methodological advances have made possible to simulate macromolecular systems on biologically relevant timescales <sup>1–3</sup> . For instance, one can simulate binding, folding and conformation changes of small to intermediate-size proteins on timescales of milliseconds, seconds or beyond <sup>4–8</sup> . However, the extensive sampling of large macromolecular complexes on biological timescales at atomistic resolution is still out of reach. For this reason, the design of simplified, yet predictive models is of great interest <sup>9–11</sup>, in particular, to interpret the experimental data that are becoming increasingly accessible in high throughput and resolution. Experimental data provide a partial view of certain aspects of a macromolecular system but do not directly give a full dynamical representation and simulation can help obtain a more comprehensive understanding <sup>12–14</sup> . As it is clear that not every single atom is important in determining the relevant collective features of biomolecular dynamics and function, simplified models could provide more insights into the general physicochemical principles regulating biophysical systems at the molecular level. Here we use recent advances in machine learning to design optimal reduced models to reproduce the equilibrium thermodynamics of a macromolecule. Significant effort has been devoted in the last few years to apply machine learning (e.g., deep neural network or kernel methods) to learn effective models from detailed simulations <sup>15–19</sup>, and specifically to learn potential energy surfaces from quantum mechanical calculations on small molecules <sup>20–36</sup> . In principle a similar philosophy could be used to define models at lower resolutions, that is to learn the effective potential energy of coarse-grained (CG) models from fine-grained (e.g., atomistic) molecular dynamics (MD) simulation data <sup>37–41</sup> . There are however important differences. In the definition of potential energy surfaces from quantum calculations, the relevant quantity to reproduce is the energy, and it is relatively straightforward to design a loss function for a neural network to minimize the difference between the quantum mechanical and classical energy (and forces <sup>25,33</sup> ) over a sample of configurations. In contrast, in the definition of a CG model, the potential energy can not be matched because of the reduction in dimension, and it is important to define what are the properties of the system that need to be preserved by the coarse-graining. The approximation of free-energy surfaces, e.g. from enhanced sampling simulations, is therefore a related problem <sup>42–44</sup> . Several approaches have been proposed to design effective CG energy functions for large molecular systems that either reproduce structural features of atomistic models (bottom-up) <sup>45–50</sup> or reproduce macroscopic properties for one or a range of systems (top-down) <sup>12–14,51–54</sup> . Popular bottom-up approaches choose that the CG model reproduce the canonical configuration distribution determined by the atomistic model. For instance, one may want to be able to represent the different metastable states populated by a protein undergoing large conformational changes. One of the difficulties in the practical application of these methods has been that, in general, a CG potential optimally reproducing selected properties of a macromolecular system includes many-body terms that are not easily modeled in the energy functions. Here, we formulate the well-known force matching procedure for coarse-graining as a supervised machine learning problem. Previously, coarse-graining has been mostly discussed as a fitting procedure, but the aim of machine learning is to find a model that has minimal prediction error on data not used for the training. We use classical statistical learning theory to show that the force matching error can be decomposed into Bias, Variance and Noise terms and explain their physical meaning. We also show that the different CG models can be ranked using their cross-validation score. Second, we discuss a class of neural networks, which we refer to as CGnets, for coarse-graining molecular force systems. CGnets have a lot of similarities with neural networks used to learn potential energy surfaces from quantum data, such as enforcing the relevant invariances (e.g., rotational and translational invariance of the predicted energy, equivariance of the predicted force). In contrast to potential energy networks, CGnets predict a free energy (potential of mean force) and then use the gradient of this free energy with respect to the input coordinates to compute a mean force on the CG coordinates. As the CG free energy is not known initially, only the force information can be used to train the network. Third, CGnets are extended to regularized CGnets. Using a generic function approximator such as a neural network to fit the CG force field from training data only may lead to force predictions that are “catastrophically wrong” for configurations not captured by the training data, i.e., predictions of forces in the direction of increasingly unphysical states that lead to diverging and unrealistic simulation results. We address this problem by adding a prior energy to the free energy network that does not compromise the model accuracy within the training data region, but ensures that the free energy approaches infinity for unphysical states, resulting in a restoring force towards physically meaningful states. Finally, we demonstrate that CGnets succeed in learning the CG mean force and the CG free energy for a 2D toy model, as well as for the coarse-graining of all-atom explicit-solvent simulations of (i) alanine dipeptide to a CG model with 5 particles and no solvent, and (ii) the folding/unfolding of the polypeptide Chignolin to a CG model consisting only of the protein _Cα_ atoms and no solvent. We show explicitly that CGnets achieve a systematically better performance than classical CG approaches which construct the CG free energy as a sum of few-body terms. In the case of the Chignolin protein, the classical few-body model can not reproduce the folding/unfolding dynamics. On the contrary, the inherently multi-body CGnet energy function approximates the all-atom folding/unfolding landscape well and captures all free energy minima. This study highlights the importance of machine learning and generic function approximators in the CG problem. #### Theory and methods Here we introduce the main theoretical concepts and define the machine learning problems involved in coarse-graining using the force matching principle, and introduce CGnets and regularized CGnets. The more practically inclined reader may skip to the Section “CGnets: Learning CG force fields with neural networks”. Coarse-graining with thermodynamic consistency We first define what we mean by coarse-graining and which physical properties shall be preserved in the coarse-grained model. The starting point in the design of a molecular model with resolution coarser than atomistic is the definition of the variables. The choice of the coarse coordinates is usually made by replacing a group of atoms by one effective particle. Because of the modularity of a protein backbone or a DNA molecule, popular models coarse-grain a macromolecule to a few interaction sites per residue or nucleotide, e.g., the _Cα_ and _Cβ_ atoms for a protein <sup>51,54–56</sup> . Alternative schemes have also been proposed for the partitioning of the atoms into coarse-grained coordinates <sup>57,58</sup> . In general, given a high-dimensional atomistic representation of the system r _∈_ R <sup>3</sup> <sup>_N_</sup>, a CG representation is given by a coordinate transformation to a lower-dimensional space: x = _ξ_ ( r ) _∈_ R <sup>3</sup> <sup>_n_</sup> (1) with _n_ _<_ _N_ . Here we assume that _ξ_ is linear, i.e. there is some coarse-graining matrix Ξ _∈_ R <sup>3</sup> <sup>_n×_</sup> <sup>3</sup> <sup>_N_</sup> that clusters atoms to coarse-grained beads: x = Ξ r . The aim is to learn a coarse-grained energy function _U_ ( x ; _θ_ ) that will be used in conjunction with a dynamical model, e.g., Langevin dynamics, to simulate the CG molecule. _θ_ are the parameters of the coarse-grained model in classical CG approaches these are parameters of the potential energy function, such as force constants and partial charges, while here they denote the weights of the neural network. A common objective in coarse-graining methods is to preserve the equilibrium distribution, i.e. the equilibrium distribution of the coarsegrained model shall be as close as possible to the equilibrium distribution of the atomistic model when mapped to the CG coordinates. We will be using a simulation algorithm for the dynamics such that the system’s equilibrium distribution is identical to the Boltzmann distribution of the employed potential _U_ ; therefore this objective can be achieved by enforcing the thermodynamic consistency: _U_ ( x ; _θ_ ) _≡−kBT_ ln _p_ <sup>_CG_</sup> ( x ) + const _,_ (2) where _kBT_ is the thermal energy with Boltzmann constant _kB_ and temperature _T_, and the probability distribution _p_ <sup>_CG_</sup> ( x ) is the equilibrium distribution of the atomistic model, mapped to the CG coordinates: _p_ <sup>_CG_</sup> ( x ) = - _µ_ ( r ) _δ_ ( x _−_ _ξ_ ( r )) _d_ r (3) <u>�</u> _µ_ ( r ) _d_ r and _µ_ ( r ) = exp ( _−V_ ( r ) _/kBT_ ) is the Boltzmann weight associated with the atomistic energy model _V_ ( r ). Note that the additive constant in (2) can be chosen arbitrarily. Therefore this constant will be omitted in the expressions below, which means that it will absorb normalization constants that are not affecting the CG procedure, such as the logarithm of the partition function. Several methods have been proposed for defining a coarse-grained potential _U_ ( x ) that variationally approximates the consistency relation (3) at a particular thermodynamic state (temperature, pressure etc.) Two popular approaches are the multi-scale coarsegraining (force-matching) <sup>48,59</sup> and the relative entropy method <sup>50</sup> (the two approaches are connected <sup>60</sup> ). CG parameter estimation as a machine learning problem Here, we follow the force-matching scheme. It has been shown that thermodynamic consistency (2) is achieved when the CG model predicts the instantaneous CG forces with minimal mean square error <sup>48,59</sup> . We call the instantaneous atomistic forces F ( r ), and the instantaneous force projected on the CG coordinates _ξ_ ( F ( r )). At the same time, the CG model predicts a force _−∇U_ ( x ; _θ_ ) for a CG configuration x . The force matching error is defined as: r <sup>_._</sup> (4) _χ_ <sup>2</sup> ( _θ_ ) = - _∥ξ_ ( F ( r )) + _∇U_ ( _ξ_ ( r ); _θ_ ) _∥_ <sup>2�</sup> where r _|_ x indicates the equilibrium distribution of r constrained to the CG coordinates x, i.e. the ensemble of all atomistic configurations that map to the same CG configuration. Then we can decompose expression (4) as follows (see SI for derivation): _χ_ <sup>2</sup> ( _θ_ ) = PMF error( _θ_ ) + Noise (6) with the terms PMF error( _θ_ ) = _⟨∥_ f ( _ξ_ ( r )) + _∇U_ ( _ξ_ ( r ); _θ_ ) _∥_ <sup>2</sup> _⟩_ r Noise = _⟨∥ξ_ ( F ( r )) _−_ f ( _ξ_ ( r )) _∥_ <sup>2</sup> _⟩_ r _._ (7) This loss function differs from the force matching loss function used in the learning of force fields from quantum data by the Noise term. The Noise term is purely a function of the CG map _ξ_ (and when training with finite simulation data also of the dataset), and it cannot be changed by varying the parameters _θ_ . As a result, the total force matching error cannot be made zero but it is bounded from below by _χ_ <sup>2</sup> ( _θ_ ) _≥_ Noise <sup>59</sup> . On the contrary, when matching force fields from quantum data, the error _χ_ <sup>2</sup> approaches zero for a sufficiently powerful model. Physically, the Noise term arises from the fact that instantaneous forces on the CG coordinates vary in the different atomistic configurations associated with the same CG configuration. Here, we call this term Noise as it corresponds to the noise term known in statistical estimator theory for regression problems <sup>61</sup> . The learning problem is now to find a CG model and its parameters _θ_ that minimizes the PMF error term. In order to obtain a physical interpretation, we apply (1) and write the average purely in CG coordinates: PMF error( _θ_ ) = _⟨∥_ f ( x ) + _∇U_ ( x ; _θ_ ) _∥_ <sup>2</sup> _⟩_ x = _⟨∥_ f ( x ) _−_ <sup>ˆ</sup> f ( x ; _θ_ ) _∥_ <sup>2</sup> _⟩_ x This error term is the matching error between the mean force at the CG coordinates, f ( x ) and the CG forces predicted by the CG potential, ˆ f ( x ; _θ_ ) = _−∇U_ ( x ; _θ_ ) _._ (8) Hence, the machine learning task is to find the The average _⟨·⟩_ r is over the equilibrium distribution of the atomistic model, i.e., r _∼_ _µ_ ( r ). We reiterate a result shown in <sup>59</sup> that has important consequences for using (4) in machine learning. For this, we introduce the mean force: f ( x ) = _⟨ξ_ ( F ( r )) _⟩_ r _|_ x (5) free energy _U_ whose negative derivatives best approximate the mean forces in Eq (5), and _U_ is thus called a potential of mean force (PMF). Eq. (8) implies that the mean force field <sup>ˆ</sup> f is conservative, as it is generated by the free energy _U_ ( x ). Machine learning the CG model is complicated by two aspects: (i) As the PMF error cannot be computed directly, its minimization in practice is accomplished by minimizing the variational bound (6). Thus, to learn f ( x ) accurately, we need to collect enough data “close” to every CG configuration x such that the learning problem is dominated by the variations in the PMFerror term and not by the variations in the Noise term. As a result, machine learning CG models typically requires more data points than force matching for potential energy surfaces; (ii) The free energy _U_ ( x ) is not known a priori, but must be learned. In contrast to fitting potential energy surfaces we can therefore not directly use energies as inputs. For a finite dataset R = ( r 1 _, ...,_ r _M_ ) with _M_ samples, we define the force matching loss function by the direct estimator: _∥ξ_ ( F ( r _i_ )) + _∇U_ ( _ξ_ ( r _i_ ); _θ_ ) _∥_ <sup>2</sup> (9) <u>1</u> _L_ ( _θ_ ; R ) = 3 _Mn_ _M_ _i_ =1 This concept is important in order to be able to select an optimal model, i.e. in order to choose the hyper-parameters of the model, such as the type and number of neurons and layers in a neural network, or even to distinguish between different learning models such as a neural network and a spline model. Statistical estimator theory is the field that studies optimal prediction errors <sup>61</sup> . To compute the prediction error, we perform the following thought experiment: We consider a fixed set of CG configurations X = [ x 1 _, ...,_ x _M_ ] <sup>_⊤_</sup> at which we want to fit the mean forces. We assume that these configurations have been generated by MD or MCMC such that the full atomistic configurations, R = ( r 1 _, ...,_ r _M_ ), are Boltzmann distributions conditioned on the CG configurations, i.e. r _i_ _∼_ r _|_ x _i_ . Now we ask: if we repeat this experiment, i.e. in every iteration we produce a new set of all-atom configurations r _i_ _∼_ r _|_ x _i_, and thereby a new set of instantaneous forces on the CG configurations, what is the expected prediction error, or risk of the force matching error, E [ _L_ ( _θ_ ; R )]? More formally: 1. Given CG coordinates X, generate training set R <sup>train</sup> _∼_ R _|_ X and find _θ_ <sup>ˆ</sup> = arg min _θ_ _L_ ( _θ_ ; R <sup>train</sup> ). 2. Generate test set R <sup>test</sup> _∼_ R _|_ X and compute _L_ ( _θ_ <sup>ˆ</sup> ; R <sup>test</sup> ) where R <sup>train</sup> and R <sup>test</sup> are two independent realizations. Although we cannot execute this thought experiment in practice, we can approximate it by cross-validation, and we can obtain insightful expressions for the form of the expected prediction error. As the loss function in force matching is a least squares regression problem, the form of the expected prediction error is well known (see SI for a short derivation), and can be written as: E [ _L_ ( _θ_ ; R )] = Bias <sup>2</sup> + Var + Noise (11) with the Noise term as given in Eq. (7) and the <u>1</u> = _F_ <sup>_._</sup> 3 _Mn_ <sup>_∥ξ_</sup> <sup>(</sup> <sup>F</sup> <sup>(</sup> <sup>R</sup> <sup>)) +</sup> <sup>_∇U_</sup> <sup>(</sup> <sup>_ξ_</sup> <sup>(</sup> <sup>R</sup> <sup>);</sup> <sup>_θ_</sup> <sup>)</sup> <sup>_∥_</sup> <sup>2</sup> (10) Where _ξ_ ( R ) = [ _ξ_ ( r 1) _, ..., ξ_ ( r _M_ )] <sup>_⊤_</sup> _∈_ R <sup>_M_</sup> <sup>_×_</sup> <sup>3</sup> <sup>_n_</sup> and _ξ_ ( F ( R )) = [ _ξ_ ( F ( r 1)) _, ..., ξ_ ( F ( r _M_ ))] <sup>_⊤_</sup> _∈_ R <sup>_M_</sup> <sup>_×_</sup> <sup>3</sup> <sup>_n_</sup> are data matrices of coarse-grained coordinates and coarse-grained instantaneous forces that serve as an input to the learning method, and _F_ denotes the Frobenius norm. CG hyper-parameter estimation as a machine learning problem While Eq. (9) defines the training method, machine learning is not simply about fitting parameters for a given dataset, but rather about minimizing the expected prediction error (also called “risk”) for data not used for training. bias and variance terms given by: Bias <sup>2</sup> = �� f ( X ) _−_ ¯ f ( X )��2 _F_ (12) Mean prediction error Bias <sup>2</sup> Variance Noise Model complexity Figure 1: Typical bias-variance tradeoff for fixed data set size, indicating the balance between underfitting and overfitting. The noise level is defined by the CG scheme (i.e., which particles are kept and which are discarded) and is the lower bound for the mean prediction error. CGnets: Learning CG force fields with neural networks It is well known that the CG potential _U_ ( x ; _θ_ ) defined by thermodynamic consistency may be a complex multi-body potential even if the underlying atomistic potential has only few-body interactions <sup>59</sup> . To address this problem, we use artificial neural networks (ANNs) to represent _U_ ( x ; _θ_ ) as ANNs can approximate any smooth function on a bounded set of inputs, including multi-body functions <sup>64</sup> . Therefore, we use ANNs to model _U_ ( x ), train them by minimizing the loss (9) and select optimal models by minimizing the cross-validation loss. For the purpose of training CG molecular models, we would like to have the following physical constraints and invariances, which determine parts of the architecture of the neural network: - Differentiable free energy function : In order to train _U_ ( x ; _θ_ ) and simulate the associated dynamics by means of Langevin simulations, it must be continuously differentiable. As the present networks do not need to be very deep, vanishing gradients are not an issue and we select tanh activation functions here. After _D_ nonlinear layers we always add one linear layer to map to one output neuron representing the free energy. - Invariances of the free energy : The energy of molecules that are not subject (13) Var = E ���¯ f ( X ) + _∇U_ ( X )��2 _F_ where ¯ f ( X ) = E [ _−∇U_ ( X )] is the mean estimator, i.e. the average force field learnt when the training is repeated many times for different data realizations. The terms in (12-13) have the following meaning: Eq. (12) is the expected error between the mean forces and the average predicted force field, it is therefore the systematic bias of the machine learning model. The variance (13) is the fluctuation of the individual estimates from single training procedures around the mean estimator and thus represents the estimator’s fluctuation due to finite-sample effects. As the optimal model minimizes the PMF error, it must balance bias and variance. These contributions are typically counteracting: A too simple model (e.g., too small neural network) typically leads to low variance but high bias, and it corresponds to “underfitting” the data. A too complex model (e.g., too large neural network) leads to low bias but large variance, and it corresponds to “overfitting” the data. The behavior of bias, variance and estimator error for a fixed data set size is illustrated in Fig. 1. The optimum at which bias and variance balance depends on the amount of data used, and in the limit of an infinitely large dataset, the variance is zero and the optimal model can be made very complex so as to also make the bias zero. For small datasets, it is often favorable to reduce the model complexity and accept significant bias, in order to avoid large variance. In order to implement model selection, we approximate the “ideal” iteration above by the commonly used cross-validation method <sup>62,63</sup> and then choose the model or hyper-parameter set that has the minimal cross-validation score. In cross-validation, the estimator error (11) is estimated as the validation error, averaged over different segmentations of all available data into training and validation data. to an external field only depends on internal interactions and is invariant with respect to translation or rotation of the entire molecule. The CG free energy may also be invariant with respect to permutation of certain groups of CG particles, e.g. exchange of identical molecules, or certain symmetric groups within molecules. Compared to quantum-mechanical potential energies, permutation invariance is less abundant in CG. For example, permutation invariance does not apply to the _α_ -carbons in a protein backbone (not even for identical amino acids), as they are ordered by the MD bonding topology. CGnets include a transformation: y = _g_ ( x ) from CG Cartesian coordinates x to a set of features that contain all desired invariances, and use the features y as an input to the network that computes the free energy, _U_ ( _g_ ( x ); _θ_ ). This transformation can be chosen in many different ways, e.g. by using local coordinate systems <sup>34</sup>, two- or three-body correlation functions <sup>20</sup>, permutation-invariant distance metrics <sup>65–67</sup>, or by a learned representation <sup>29</sup> . In this work, only translation and rotation invariances are needed, and we hence choose the following features: distances between all pairs of CG atoms, the angles between three consecutive CG atoms, and the _cos_ and _sin_ of torsion angles defined by the CG atoms. - Conservative PMF : The PMF is a conservative force field generated by the free energy (8). As in quantum potential energy learning <sup>25,29</sup>, we enforce this requirement by computing the free energy _U_ with a neural network and then adding a gradient layer to compute the derivatives with respect to the input coordinates: ˆ f ( x ; _θ_ ) = _−∇_ x _U_ ( _g_ ( x ); _θ_ ) _._ Fig. 2a shows the neural network architecture resulting from these choices. The free energy network is _D_ layers deep and each layer is _W_ neurons wide. Additionally, we use L2 Lipschitz regularization <sup>68</sup> in the network, with a tunable parameter _λ_ that regulates the strength of the regularization. Thus, ( _D, W, λ_ ) are the remaining hyper-parameters to be selected (as discussed in the Results section). a) Free x y Energy U( x ) Net f ( x ) f ( x ) b) x y c) x y Prior energy Free Energy Net Prior energy <mark>Spline Unit 1</mark> ##### + + f ( x ) U( x ) U( x ) <mark>Spline Unit n</mark> Single <mark>Spline Unit i</mark> = Feature, yi Net Energy Unit i Term, Ui Figure 2: Neural network schemes. a) CGnet. b) Regularized CGnet with prior energy. c) Spline model representing a standard CG approach, for comparison. Each energy term is a function of only one feature, and the features are defined as all the bonds, angles, dihedrals, and non-bonded pairs of atoms. Simulating the CGnet model Once the neural network has been trained to produce a free energy _U_ ( x ), it can be used to simulate dynamical trajectories of the CG model. Here we use over-damped Langevin dynamics to advance the coordinates of the CG model from x _t_ at time _t_ to x _t_ + _τ_ after a timestep _τ_ : 2 _τD_ _ξ_ (14) x _t_ + _τ_ = x _t −_ _τ_ <sup>_<u>D</u>_</sup> _kBT_ <sup>_∇U_</sup> <sup>(</sup> <sup>x</sup> <sup>_t_</sup> <sup>) +</sup> _√_ that contain no training data. Simulating a network trained only on physically valid training data via Eq. (14) may still produce points x _t_ that enter this “forbidden regime” where bonds are overstretched or atoms start to overlap. At this point the simulation can become unstable if there is no regularizing effect ensuring that the predicted free energy _U_ ( x ; _θ_ ) will increase towards infinity when going deeper into the forbidden regime. Methods to modify a learning problem so as to reduce prediction errors are collectively known as “regularization” methods. <sup>69</sup> In order to avoid the catastrophically wrong prediction problem described above, we introduce regularized CGnets (Fig. 2b). In a regularized CGnet, we define the energy function as _U_ ( x ; _θ_ ) = _U_ 0( x ) + _U_ net( x ; _θ_ ) (15) where _U_ net( x ; _θ_ ) is a neural network free energy as before and _U_ 0( x ) is a baseline energy that contains constraint terms that ensure basic physical behavior. Such baseline energies to regularize a more complex multi-body energy function have also been used in the machine learning of QM potential energy functions <sup>70–72</sup> . Note that (15) can still be used to represent any smooth free energy because _U_ net( x ; _θ_ ) is a universal approximator. The role of _U_ 0( x ) is to enforce _U_ _→∞_ for unphysical states x that are outside the training data. As for many other regularizers, the baseline energy _U_ 0( x ) in Eq. (15) takes the role of a prior distribution in a probabilistic interpretation: The equilibrium distribution generated by (15) becomes: where x _t_ is the CG configuration at time _t_ (e.g., the _x_ coordinate in the toy model, a 15-dimensional vector in the alanine dipeptide, and a 30-dimensional vector in the Chignolin applications presented below). _ξ_ is Gaussian random noise with zero mean and identity as covariance matrix, _τ_ is the integration time step, _D_ is the diffusion constant of the system. In the following, we use reduced energy units, i.e. all energies are in multiples of _kBT_ . Since the implementation of CGnet is vectorized, it is more efficient to compute free energies and mean forces for an entire batch of configurations, rather than a single configuration at a time. Therefore, we run simulations in parallel for the examples shown below. This is done by sampling 100 starting points randomly from atomistic simulations, coarsegraining them and then integrating (14) stepwise. Regularizing the free energy with a baseline energy model Training the free energy with a network as shown in Fig. 2a and subsequently using it in order to simulate the dynamics with Eq. (14) produces trajectories of new CG coordinates x _t_ . When parts of the coordinate space are reached that are very different from any point in the training set, it is possible that the network makes unphysical predictions. In particular, the atomistic force-field used to produce the training data has terms that ensure the energy will go towards infinity when departing from physical states, e.g. when stretching bonds or when moving atoms too close to each other. These regions will not be sampled in the underlying MD simulations, and therefore result in “empty” parts of configuration space Here, _U_ 0( x ) is simply a sum of harmonic and excluded volume terms. For the 2d toy model, a harmonic term in the form _U_ 0( _x_ ) = 2 <sup><u>1</u></sup> <sup>_k_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_−_</sup> <sup>_x_</sup> <sup>0)2</sup> is used, and the parameters _k_ and _x_ 0 are determined by the force matching scheme restricted to the scarcely populated regions defined by the 100 sampled points with highest and the 100 with lowest _x_ -value (see Fig. 3). _p_ <sup>_CG_</sup> ( x ) _∝_ exp ( _−βU_ 0( x )) - �� <u>�</u> prior exp ( _−βUnet_ ( x ; _θ_ )) _._ For alanine dipeptide, we use harmonic terms for the distance between atoms that are adjacent (connected by covalent bonds) and for angles between three consecutive atoms. For each bond _i_, we use _U_ 0 <sup>_bond_</sup> _,i_ <sup>(</sup> <sup>_ri_</sup> <sup>;</sup> <sup>_ri_</sup> <sup>0</sup> <sup>_, kb,i_</sup> <sup>)</sup> <sup>=</sup> <u>12</u> <sup>_kb,i_</sup> <sup>(</sup> <sup>_ri_</sup> <sup>_−_</sup> bond _i_, we use _U_ 0 <sup>_bond_</sup> _,i_ <sup>(</sup> <sup>_ri_</sup> <sup>;</sup> <sup>_ri_</sup> <sup>0</sup> <sup>_, kb,i_</sup> <sup>)</sup> <sup>=</sup> <u>12</u> <sup>_kb,i_</sup> <sup>(</sup> <sup>_ri_</sup> <sup>_−_</sup> _ri_ 0) <sup>2</sup>, where _ri_ is the instantaneous distance between the two consecutive atoms defining the bond, _ri_ 0 is the equilibrium bond length, and _kb,i_ is a constant. Analogously, for each angle _j,_ we use _U_ 0 <sup>_angle_</sup> _,j_ ( _θj_ ; _θj_ 0 _, ka,j_ ) = 2 <sup><u>1</u></sup> <sup>_ka,j_</sup> <sup>(</sup> <sup>_θj_</sup> <sup>_−_</sup> <sup>_θj_</sup> <sup>0)2,</sup> #### Results 2-dimensional toy model As a simple illustration, we first present the results on the coarse-graining of a twodimensional toy model. The potential energy is shown in Fig. 3 and given by the expression: <sup><u>1</u></sup> 50 <sup>(</sup> <sup>_x −_</sup> <sup>4)(</sup> <sup>_x −_</sup> <sup>2)(</sup> <sup>_x_</sup> <sup>+ 2)(</sup> <sup>_x_</sup> <sup>+ 3)+</sup> 0 <sup>_angle_</sup> _,j_ ( _θj_ ; _θj_ 0 _, ka,j_ ) = 2 <sup><u>1</u></sup> _j,_ we use _U_ 0 <sup>_angle_</sup> _,j_ ( _θj_ ; _θj_ 0 _, ka,j_ ) = 2 <sup><u>1</u></sup> <sup>_ka,j_</sup> <sup>(</sup> <sup>_θj_</sup> <sup>_−_</sup> <sup>_θj_</sup> <sup>0)2,</sup> where _θj_ is the instantaneous value of the angle, _θj_ 0 is the equilibrium value for the angle, and _ka,j_ is a constant. When statistically independent, each such term would give rise to a Gaussian equilibrium distribution: _<u>V</u>_ <u>(</u> _<u>x, y</u>_ <u>)</u> <u>(</u> _<u>x, y</u>_ <u>)</u> = <sup><u>1</u></sup> _kBT_ 50 + <sup><u>1</u></sup> (17) 20 <sup>_y_</sup> <sup>2 +</sup> 25 <sup><u>1</u></sup> <sup>sin (3(</sup> <sup>_x_</sup> <sup>+ 5)(</sup> <sup>_y −_</sup> <sup>6))</sup> <sup>_._</sup> _p_ ( _ri_ ) � exp _p_ ( _θj_ ) � exp - _−_ <sup>_<u>kb,i</u>_</sup> <sup><u>(</u></sup> <sup>_<u>ri −</u>_</sup> <sup>_<u>ri</u>_</sup> <sup><u>0)2</u></sup> 2 _kBT_ - _−_ <sup>_<u>ka,j</u>_</sup> <sup><u>(</u></sup> <sup>_<u>θj</u>_</sup> <sup>_<u>−</u>_</sup> <sup>_<u>θj</u>_</sup> <sup><u>0)2</u></sup> 2 _kBT_ with mean _µ_ = _ri_ 0 (or _µ_ = _θj_ 0), and variance _σ_ <sup>2</sup> = _kBT/kb,i_ (or _σ_ <sup>2</sup> = _kBT/ka,j_ ). The prior energy is obtained by assuming independence between these energy terms and estimating these means and variances from the atomistic simulations. For the application of CGnet to the protein Chignolin, an additional term is added to the baseline energy to enforce excluded volume and penalize clashes between non-bonded CG particles. In particular, we add a term _Urep_ ( _r_ ) for each pairwise distances between CG particles that are more distant than two covalent bonds, in the form: The potential corresponds to a double well along the _x_ -axis and a harmonic confinement along the _y_ -axis. The last term in Eq. (17) adds small-scale fluctuations, appearing as small ripples in Fig. 3a. The coarse-graining mapping is given by the projection of the 2-dimensional model onto the _x_ -axis. In this simple toy-model, the coarsegrained free energy (potential of mean force) can be computed exactly (Fig. 3b): _._ _dy_ _<u>U</u>_ <u>(</u> _<u>x</u>_ <u>)</u> _kBT_ <sup>=</sup> <sup>_−_</sup> <sup>ln</sup> �� + _∞_ _−∞_ exp - _−_ <sup>_<u>V</u>_</sup> <sup><u>(</u></sup> <sup>_<u>x, y</u>_</sup> <sup><u>)</u></sup> _kBT_ We generate a long (one million time steps) simulation trajectory of the 2-dimensional model and use the _x_ component of the forces computed along the trajectories in the loss function (9). We report below the resulting CG potential obtained by 1) using a feature regression, i.e. least square regression with a set of feature functions defined in SI Section B, and 2) a CGnet (regularized and unregularized). Cross-validation is used to select the best hyper-parameters for the least square regression and the CGnet architectures. For the feature regression, the same cross-validation procedure as introduced in <sup>1</sup> was used, and returned a linear combination of four basis functions among the selected set (see Fig. S1a and SI for details). For the regularized CGnet, a two stage cross-validation is conducted, first choosing the depth _D_ with a fixed width of _W_ = 50, and then choosing the width _W_ (Figs. S1b and S1c). The minimal prediction error is obtained with _D_ = 1 (one hidden layer) and _W_ = 50. For _Urep_ ( _r_ ) = - _<u>σ</u>_ _r_ - _c_ (16) where the exponent _c_ and effective excluded volume radius _σ_ are two additional hyper-parameters that are optimized by crossvalidation. We note that in general one could use classical CG approaches with predefined energy functions to first define the prior CG energy _U_ 0, then use an ANN to correct it with multi-body terms. Figure 3: Machine-learned coarse-graining of dynamics in a rugged 2D potential. (a) 2D potential used as toy system. (b) Exact free energy along _x_ . c) Instantaneous forces and the learned mean forces using feature regression and CGnet models (regularized and unregularized) compared to the exact forces. The unit of the force is _kBT_, with the unit of length equal to 1. d) Free energy (PMF) along _x_ predicted using least feature regression, and CGnet models compared to the exact free energy. Free energies are also computed from histogramming simulation data directly, using the underlying 2D trajectory, or simulations run with the feature regression and CGnet models (dashed lines). the unregularized CGnet, a similar procedure is performed, and the best hyper-parameters are selected as _D_ = 1 _, W_ = 120. Note that the prediction error cannot become zero, but is bounded from below by the chosen CG scheme (Fig. 1, Eq. 11) – in this case by neglecting the _y_ variable. Fig. 3c,d shows the results of the predicted mean forces and free energies (potentials of mean force) in the _x_ -direction. The instantaneous force fluctuates around the mean, but serves to accurately fit the exact mean force in the _x_ range where sampling is abundant using both feature regression and CGnet (Fig. 3c). At the boundary where few samples are in the training data the predictors start to diverge from the exact mean force and free energy (Fig. 3c, d). This effect is more dramatic for the unregularized CGnet, in particular at large _x_ values the CGnet makes an arbitrary prediction: here the force tends to zero. In the present example, reaching these states is highly improbable. However a CGnet simulation reaching this region can fail dramatically, as the simulation may continue to diffuse away from the low energy regime. As discussed above, this behavior can be avoided by adding a suitable prior energy that ensures that the free energy keeps increasing outside the training data, while not affecting the accuracy of the learned free energy within the training data (Fig. 3c, d). Note that the quantitative mismatch in the lowprobability regimes is not important for equilibrium simulations. The matching mean forces translate into matching free energies (potentials of mean force, Fig. 3d). Finally, we conduct simulations with the learned models and generate trajectories _{xt}_ using Eq. (14). From these, free energies can be computed by _U_ ˜ ( x ) = _−kBT_ ln ˜ _pX_ ( x ) (18) where _p_ ˜ _X_ ( x ) is a histogram estimate of the probability density of x in the simulation trajectories. As shown in Fig. 3d, free energies agree well in the _x_ range that has significant equilibrium probability. a) b) c) 384.0 383.5 383.0 382.5 382.0 381.5 384.0 383.5 383.0 382.5 382.0 381.5 381.0 387.0 386.0 385.0 384.0 383.0 382.0 381.0 4.5 4.0 3.5 3.0 2.5 2.0 1.5 1.0 4.5 4.0 3.5 3.0 2.5 2.0 1.5 1.0 0.5 0.0 10.0 8.0 6.0 4.0 2.0 0.0 10 20 30 40 60 110 160 200 Number of neurons, W S4 C5 <u>1</u> <u>2</u> <u>3</u> <u>4</u> <u>5</u> <u>10</u> <u>100</u> Lipschitz regularization, _λ_ S1 C1 S1 S2 C1 <u>10</u> <u>20</u> <u>30</u> <u>40</u> <u>60</u> <u>110</u> <u>160</u> <u>200</u> Number of neurons, W S4 C5 1 2 3 4 5 10 100 Lipschitz regularization, _λ_ S2 C2 <u>1</u> <u>2</u> <u>3</u> <u>4</u> <u>5</u> <u>6</u> Number of layers, D S3 C3 C4 C2 <u>1</u> <u>2</u> <u>3</u> <u>4</u> <u>5</u> <u>6</u> Number of layers, D S3 C3 C4 d) e) f) # CG Figure 4: Mapping of alanine dipeptide from an allatom solvated model (top) to a CG model consisting of the five central backbone atoms (bottom). Coarse-graining of alanine dipeptide in water We now demonstrate CGnets on the coarsegraining of an all-atom MD simulation of alanine dipeptide in explicit solvent at _T_ = 300 _K_ to a simple model with 5 CG particles located at the five central backbone atoms of the molecule (Fig. 4). One trajectory of length 1 microsecond was generated using the simulation setup described in <sup>74</sup>, coordinates and forces were saved every picosecond, giving rise to one million data points. The CG model has no solvent, therefore the CG procedure must learn the solvation free energy for all CG configurations. We compare two different CG models. The first model, called “spline model”, uses the stateof the art approach established in MD coarsegraining <sup>11,49,59</sup> : to express the CG potential as a sum of few-body interaction terms, similar as in classical MD forcefields. The most flexible amongst these approaches is to fit onedimensional splines for each of the pairwise distance, angle and dihedral terms in order to parametrize two-, three- and four-body interactions <sup>75</sup> . In order to ensure a consistent com Figure 5: (a), (b), (c) Cross-validated force matching error in [ _kcal/_ ( _mol·_ <sup>˚</sup> A)] <sup>2</sup> for the selection of the optimum structure of the network, and (d), (e), (f) difference between the two-dimensional free energy surfaces obtained from the CG models and from the reference all-atom simulations (see Fig. 6) for the regularized CGnet and the spline model of alanine dipeptide. (a) Selection of the number of layers, _D_ . (b) Selection of the number of neurons per layer, _W_ . (c) Selection of the Lipschitz regularization strength, _λ_ . The selected hyper-parameters, corresponding to the smallest cross-validation error are highlighted by orange boxes. Blue dashed lines represent the regularized CGnet, red dashed lines represent the spline model, vertical bars represent the standard error of the mean. Panels (d), (e), and (f) show the difference between the reference all-atom free energy surface and the free energy surfaces corresponding to the choices of hyper-parameters indicated in panels (a), (b), and (c) as (C1, C2, C3, C4, C5) for CGnet, and as (S1, S2, S3, S4) for the spline model. parison, we represent 1D splines with neural networks that map from a single input feature (pairwise distance, angle or dihedral) to a single free energy term, resulting in the spline model network shown in Fig. 2c. We use the same regularization and baseline energy for spline model networks and CGnets. The second model uses a regularized multibody CGnet, i.e., a fully connected neural network shown in Fig. 2b to approximate the CG free energy. The comparison of the results from the two models allows us to evaluate the importance of multi-body interactions that are cap a) <u>All-atom model</u> b) <u>Spline CG model</u> 3 2 1 0 -1 -2 <u>All-atom model</u> b)3 <u>Spline CG model</u> U( x ) / kB0T b) 1 2 <u>3</u> 3 2 1 0 -1 -2 4 5 6 -1 -2 -3 -4 -5 -6 -7 -8 -3 <u>-3</u> <u>-2</u> <u>-1</u> <u>0</u> <u>1</u> <u>2</u> <u>3</u> c) -3 d) <u>-3Unregularized CGnet model-2</u> <u>-1</u> <u>0</u> <u>1</u> <u>2</u> <u>3</u> 3 2 1 0 -1 -2 3 2 1 0 -1 -2 -3 <u>Regularized CGnet model</u> <u>-3</u> <u>-2</u> <u>-1</u> _φ_ <u>0</u> <u>1</u> <u>2</u> <u>3</u> -3 <u>-3</u> <u>-2</u> <u>-1</u> _φ_ <u>0</u> <u>1</u> <u>2</u> <u>3</u> e) 1 2 3 4 5 6 Figure 6: Free energy profiles and simulated structures of alanine dipeptide using all-atom and machinelearned coarse-grained models. (a)Reference free energy as a function of the dihedral angles, as obtained from direct histogram estimation from all-atom simulation. (b) Standard coarse-grained model using a sum of splines of individual internal coordinates. (c) Regularized CGnet as proposed here. (d) Unregularized CGnet. (e) Representative structures in the six free energy minima, from atomistic simulation (ball-and-stick representation) and regularized CGnet simulation (licorice representation). tured by the CGnet but are generally absent in CG models that use interaction terms involving a few atoms only. The hyper-parameters for both models consist of the number of layers (depth, _D_ ), the number of neurons per layer (width, _W_ ) of the network, and the Lipschitz regularization strength ( _λ_ ) <sup>68</sup>, and are optimized by a three-stage crossvalidation. In the first stage, we find the optimal _D_ at fixed _W_ = 30 and _λ_ = _∞_ (no Lipschitz regularization), subsequently we choose _W_ at the optimal _D_, and _λ_ at the optimal _W, D_ . This results in _D_ = 5, _W_ = 160, and _λ_ = 4 _._ 0 for CGnet, and _D_ = 4, _W_ = 30 (for each fea ture), and _λ_ = 10 _._ 0 for the spline model (Fig. 5). The cross-validation error of CGnet is significantly lower than the cross-validation error of the spline model (Fig. 5a-c). We point out that the cross-validation error cannot become zero, but is bounded from below by the chosen CG scheme (Fig. 1, Eq. 11) - in this case by coarse-graining all solvent molecules and all solute atoms except the five central backbone atoms away. Hence, the absolute numbers of the cross-validation error in Fig. 5a-c are not meaningful, only differences matter. CG MD simulations are generated for the selected models by iterating Eq. (14). For each model, one hundred independent simulations starting from structures sampled randomly from the atomistic simulation are performed for 1 million steps each, and the aggregated data are used to produce the free energy as a function of the dihedral coordinates. Fig. 6 compares the free energy computed via (18) from the underlying atomistic MD simulations and the free energy resulting from the selected CG models. Only the regularized CGnet model can correctly reproduce the position of the all main free energy minima (Fig. 6a, c). On the contrary, the spline model is not able to capture the shallow minima corresponding to positive values of the dihedral angle _φ_, and introduces several spurious minima (Fig. 6b). This comparison confirms that selecting CG models by minimal mean force prediction error achieves models that are better from a physical viewpoint. As an _a_ _posteriori_ analysis of the results we have performed MD simulation for the CG models corresponding to different choices of hyper-parameters, both for the spline model and CGnet. For each choice of hyperparameters, we have computed the difference between the free energy as a function of the dihedral angles resulting from the CG simulations and the one from the all-atom models. Differences in free energy were estimated by discretizing the space spanned by the two dihedral angles and computing the mean square difference on all bins. The difference between a given model and CGnet was computed by shifting the free energy of CGnet by a constant value that minimizes the overall mean square difference. The free energy difference for the spline models is always significantly larger than for the CGnet models (Fig. 5d-f). Interestingly, the minima in the difference in free energy correspond to the minima in the cross-validation curves reported in Fig. 5a-c, and the optimal values of hyper-parameters selected by crossvalidation yield the absolute minimum in the free energy difference (indicated in Fig. 5f as C5 for CGnet and S4 for the spline model). This point is illustrated more explicitly in the SI (Section E, Figs. S4, S5), and demonstrates that the cross-validation error of different models are correlated with errors in approximating the two-dimensional free energy surface of alanine dipeptide. For the CGnet, regularization is extremely important: without regularization the free energy only matches near the most pronounced minima and unphysical structures are sampled outside (Fig. 6d and SI Section D). With regularization, these unphysical regimes are avoided, all sampled structures appear chemically valid (Fig. 6e) and the distributions of bonds and angles follow those in the atomistic simulations (SI Section D, Fig. S3). Coarse-graining of Chignolin folding/unfolding in water Finally, we test the CGnet on a much more challenging problem: the folding/unfolding dynamics of the polypeptide Chignolin in water. Chignolin consists of 10 amino acids plus termini and exhibits a clear folding/unfolding transition. The all-atom model contains 1881 water molecules, salt ions and the Chignolin molecule, resulting in nearly 6000 atoms. To focus on the folding/unfolding transition, data was generated at the melting temperature 350 K, mimicking the setup used for the Anton supercomputer simulation in <sup>4</sup> . To obtain a well-converged ground truth, we generated 3742 short MD simulations with an aggregate length of 187.2 _µ_ s on GPUgrid <sup>9</sup> using the ACEMD program <sup>5</sup> . The free energy landscape is computed on the two collective variables describing the slowest processes, computed by the TICA method <sup>17</sup> . Since Figure 7: Free energy landscape of Chignolin for the different models. (a) The free energy as obtained from all-atom simulation, as a function of the first two TICA coordinates. (b) The free energy as obtained from the spline model, as a function of the same two coordinates used in the all-atom model. (c) The free energy as obtained from CGnet, as a function of the same two coordinates. (d) Comparison of the one dimensional free energy as a function of the first TICA coordinate (corresponding to the folding/unfolding transition) for the three models: all-atom (blue), spline (green), and CGnet (red). (e) Representative Chignolin configurations in the three minima from all-atom simulation (a, b, c) and CGnet (a’, b’, c’). the individual MD simulations are too short to reach equilibrium, the equilibrium distribution was recovered by reweighting all data using a Markov state model <sup>12</sup> . See SI for details on the MD simulation and Markov model analysis. Fig. 7a shows the free energy as a function of the first two TICA coordinates. Three minima are clearly identifiable on this free energy landscape: states a (folded), b (unfolded) and c (partially misfolded), ordered alphabetically from most to least populated. Representative configurations in these minima as shown in Fig. 7e. As a result, the first TICA mode is a folding-unfolding coordinate, while the second is a misfolding coordinate. Using a regularized CGnet, we coarse-grain the 6000-atom system to 10 CG beads representing the _α_ -carbons of Chignolin. Thus, not only the polypeptide is coarse-grained, but also the solvation free energy is implicitly included in the CG model. Similar to what was done for alanine dipeptide, roto-translational invariance of the energy was implemented by using a CGnet featurization layer that maps the _Cα_ Cartesian coordinates to all pairwise distances between CG beads, all angles defined by three adjacent CG beads, and the _cos_ and _sin_ of all the dihedral angles defined by four CG adjacent beads. The regularizing baseline energy includes a harmonic term for each bond and angle, and an excluded volume term for each pairwise distance between CG particles that are separated by more than two bonds. Similar to the case of alanine dipeptide, a classical few-body spline model was defined for comparison whose CG potential is a sum of bonded and non-bonded terms, where each term is a nonlinear function of a single feature (pairwise distances, angles, dihedrals). Both CGnet and spline model are optimized through a five-stage cross-validation search for the hyper-parameters, in the following order: Depth _D_, Width _W_, exponent of the excluded volume term _c_, radius of the excluded volume term _σ_, and Lipschitz regularization strength _λ._ The results of the cross-validation are shown in Fig. S8. This optimization resulted in the hyper-parameter values _D_ = 5, _W_ = 250, _c_ = 6, _σ_ = 5 _._ 5 and _λ_ = 4 _._ 0. For the spline model, the optimal values of the hyper-parameters are _D_ = 3, _W_ = 12 (for each feature), _c_ = 10, _σ_ = 4 _._ 0, and _λ_ = 5 _._ 0 (Fig. S8). The potential resulting from CGnet and the spline model is then used to run long simulations with Eq. (14). One hundred simulations of 1 million steps each were generated using randomly sampled configurations from the training data as starting points. For comparison, the aggregated data are projected on the TICA coordinates obtained from all-atom simulations and free energy landscapes are computed directly using Eq. (18) (Fig. 7b, c). For a more quantitative comparison, the free energies are also reported along the first TICA coordinate that indicates folding / unfolding (Fig. 7d). These figures clearly show that the spline model cannot reproduce the folding/unfolding dynamics of Chignolin, as the folded and unfolded states are not well defined (Fig. 7b, d). On the contrary, CGnet not only can consistently fold and unfold the protein but also correctly identifies three well defined minima: the folded (a’), unfolded (b’), and partially misfolded (c’) ensembles corresponding to the minima a, b, and c in the all-atom fully solvated model (Fig. 7c,d). Representative structures in the three minima are shown in Fig. 7e: the structures obtained from the CGnet simulations are remarkably similar to the ones obtained in the all-atom simulations. These results reinforce what has been already observed for alanine dipeptide above: the multi-body interactions captured by CGnet are essentialy for correct reproduction of the free energy landscape for the protein Chignolin. The absence of such interactions in the spline model dramatically alters the corresponding free energy landscape to the point that the model can not reproduce the folding/unfolding behavior of the protein. #### Conclusions Here we have formulated coarse-graining based on the force-matching principle as a machine learning method. An important consequence of this formulation is that coarse-graining is a supervised learning problem whose loss function can be decomposed into the standard terms of statistical estimator theory: Bias, Variance and Noise. These terms have well-defined physical meanings and can be used in conjunction with cross-validation in order to select model hyper-parameters and rank the quality of different coarse-graining models. We have also introduced CGnets, a class of neural networks that can be trained with the force matching principle and can encode all physically relevant invariances and constraints: (1) invariance of the free energy and mean force with respect to translation of the molecule, (2) invariance of the free energy and equivariance of the mean force with respect to rotation of the molecule, (3) the mean force is a conservative force field generated by the free energy, and (4) a prior energy can be applied in order to prevent the simulations with CGnets to diverge into unphysical state space regions outside the training data, such as states with overstretched bonds or clashing atoms. Future CGnets may include additional invariances, such as permutational invariance of identical CG particles, e.g. permutation of identical particles in symmetric rings. The results presented above show that CGnet can be used to define effective energies for CG models that optimally reproduce the equilibrium distribution of a target atomistic model. CGnet provides a better approximation than functional forms commonly used for CG models as it automatically includes multi-body effects and non-linearities. The work presented here provides a proof of principle for this approach on relatively small solutes, but already demonstrates that the complex solvation free energy involved in the folding/unfolding of a polypeptide such as Chignolin can be encoded in a CGnet consisting of only the _Cα_ atoms. The extension to larger and more complex molecules presents additional challenges and may require to include additional terms to enforce physical constraints. Additionally, the CG model considered here is designed _ad_ _hoc_ for a specific molecule and is not transferable to the study of different systems. Transferability remains an outstanding issue in the design of coarse grained models <sup>11</sup> and its requirement may decrease the ability to reproduce faithfully properties of specific systems <sup>49,81–84</sup> . In principle, transferable potentials can be obtained by designing input features for CGnet imposing a dependence of the energy function on the CG particle types and their environment <sup>82</sup>, similarly to what is done in the learning of potential energy functions from quantum mechanics data (see e.g. <sup>20,24,27,33,66</sup> ). This approach may be able to define transferable functions if enough data are used in the training <sup>27,33</sup> . We leave the investigation on the trade-off between transferability and accuracy for future studies. It is also important to note that the formulation used here to define an optimal CG poten tial aims at reproducing structural properties of the system, but it does not determine the equations for its dynamical evolution. If one is interested in designing CG models that can reproduce molecular dynamical mechanisms, e.g. to reproduce the slow dynamical processes of the fine-grained model, alternative approaches need to be investigated. Acknowledgement We thank Alex Kluber, Justin Chen, Lorenzo Boninsegna, Eugen Hruska, and Feliks Nüske for comments on the manuscript. This work was supported by the National Science Foundation (CHE-1265929, CHE-1738990, and PHY-1427654), the Welch Foundation (C-1570), the MATH+ excellence cluster (AA1-6, EF1-2), the Deutsche Forschungsgemeinschaft (SFB 1114/C03, SFB 958/A04, TRR 186/A12), the European Commission (ERC CoG 772230 “ScaleCell”), the Einstein Foundation Berlin (Einstein Visiting Fellowship to CC), and the Alexander von Humboldt foundation (Postdoctoral fellowship to SO). Simulations have been performed on the computer clusters of the Center for Research Computing at Rice University, supported in part by the Big-Data Private-Cloud Research Cyberinfrastructure MRI-award (NSF grant CNS-1338099), and on the clusters of the Department of Mathematics and Computer Science at Freie Universität, Berlin. GDF acknowledges support from MINECO (Unidad de Excelencia María de Maeztu MDM-20140370 and BIO2017-82628-P) and FEDER. This project has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No 675451 (CompBioMed project). We thank the GPUGRID donors for their compute time. #### Supporting Information Avail- able The following files are available free of charge. Supporting Information is available providing: - A derivation of equation (6) - Cross-validation for all the models pre sented in the manuscript - Additional details on the training of the models - Distribution of bonds and angles for the different models of alanine dipeptide - Changes in the free energy of alanine dipeptide with different hyper-parameters - Energy decomposition for the CGnet model of alanine dipeptide - Details on Chignolin setup and simulation - Markov State Model analysis of Chignolin all-atom simulations #### References (1) Lindorff-Larsen, K.; Piana, S.; Dror, R. O.; Shaw, D. E. How FastFolding Proteins Fold. _Science_ 2011, _334_, 517–520. (2) Buch, I.; Harvey, M. J.; Giorgino, T.; Anderson, D. P.; De Fabritiis, G. Highthroughput all-atom molecular dynamics simulations using distributed computing. _J._ _Chem._ _Inf._ _Model._ 2010, _50_, 397–403. (3) Shirts, M.; Pande, V. S. Screen Savers of the World Unite! _Science_ 2000, _290_, 1903–1904. (4) Dror, R. O.; Pan, A. C.; Arlow, D. H.; Borhani, D. W.; Maragakis, P.; Shan, Y.; Xu, H.; Shaw, D. E. Pathway and mechanism of drug binding to G-protein-coupled receptors. _Proc._ _Natl._ _Acad._ _Sci._ _USA_ 2011, _108_, 13118–13123. (5) Shukla, D.; Meng, Y.; Roux, B.; Pande, V. S. Activation pathway of Src kinase reveals intermediate states as targets for drug design. _Nat._ _Commun._ 2014, _5_, 3397. (6) Plattner, N.; Noé, F. Protein conforma tional plasticity and complex ligand binding kinetics explored by atomistic simulations and Markov models. _Nat._ _Commun._ 2015, _6_, 7653. (7) Plattner, N.; Doerr, S.; Fabritiis, G. D.; Noé, F. Protein-protein association and binding mechanism resolved in atomic detail. _Nat._ _Chem._ 2017, _9_, 1005–1011. (8) Paul, F.; Wehmeyer, C.; Abualrous, E. T.; Wu, H.; Crabtree, M. D.; Schöneberg, J.; Clarke, J.; Freund, C.; Weikl, T. R.; Noé, F. Protein-ligand kinetics on the seconds timescale from atomistic simulations. _Nat._ _Commun._ 2017, _8_, 1095. (9) Clementi, C. Coarse-grained models of protein folding: Toy-models or predictive tools? _Curr. Opin. Struct. Biol._ 2008, _18_, 10–15. (10) Saunders, M. G.; Voth, G. A. Coarse Graining Methods for Computational Biology. _Annu._ _Rev._ _Biophys._ 2013, _42_, 73– 93. (11) Noid, W. G. Perspective: Coarse-grained models for biomolecular systems. _J._ _Chem._ _Phys._ 2013, _139_, 090901. (12) Matysiak, S.; Clementi, C. Optimal Com bination of Theory and Experiment for the Characterization of the Protein Folding Landscape of S6: How Far Can a Minimalist Model Go? _J._ _Mol._ _Biol._ 2004, _343_, 235–248. (13) Matysiak, S.; Clementi, C. Minimalist protein model as a diagnostic tool for misfolding and aggregation. _J._ _Mol._ _Biol._ 2006, _363_, 297–308. (14) Chen, J.; Chen, J.; Pinamonti, G.; Clementi, C. Learning Effective Molecular Models from Experimental Observables. _J. Chem. Theory Comput._ 2018, _14_, 3849–3858. (15) Mardt, A.; Pasquali, L.; Wu, H.; Noé, F. VAMPnets: Deep learning of molecular kinetics. _Nat._ _Commun._ 2018, _9_, 5. (16) Wu, H.; Mardt, A.; Pasquali, L.; Noé, F. Deep Generative Markov State Models. _NIPS_ _(in_ _press)._ _Preprint:_ _arXiv:1805.07601_ 2018, (17) Wehmeyer, C.; Noé, F. Time-lagged au toencoders: Deep learning of slow collective variables for molecular kinetics. _J._ _Chem._ _Phys._ 2018, _148_, 241703. (18) Hernández, C. X.; Wayment-Steele, H. K.; Sultan, M. M.; Husic, B. E.; Pande, V. S. Variational Encoding of Complex Dynamics. _arXiv:1711.08576_ 2017, (19) Ribeiro, J. M. L.; Bravo, P.; Wang, Y.; Tiwary, P. Reweighted autoencoded variational Bayes for enhanced sampling (RAVE). _J._ _Chem._ _Phys._ 2018, _149_, 072301. (20) Behler, J.; Parrinello, M. Generalized Neural-Network Representation of HighDimensional Potential-Energy Surfaces. _Phys._ _Rev._ _Lett._ 2007, _98_, 146401. (21) Bartók, A. P.; Payne, M. C.; Kondor, R.; Csányi, G. Gaussian Approximation Potentials: The Accuracy of Quantum Mechanics, without the Electrons. _Phys. Rev._ _Lett._ 2010, _104_, 136403. (22) Rupp, M.; Tkatchenko, A.; Müller, K.-R.; von Lilienfeld, O. A. Fast and Accurate Modeling of Molecular Atomization Energies with Machine Learning. _Phys._ _Rev._ _Lett._ 2012, _108_, 058301. (23) Bartók, A. P.; Gillan, M. J.; Manby, F. R.; Csányi, G. Machine-learning approach for one- and two-body corrections to density functional theory: Applications to molecular and condensed water. _Phys._ _Rev._ _B_ 2013, _88_, 054104. (24) Smith, J. S.; Isayev, O.; Roitberg, A. E. ANI-1: an extensible neural network potential with DFT accuracy at force field computational cost. _Chem._ _Sci._ 2017, _8_, 3192–3203. (25) Chmiela, S.; Tkatchenko, A.; Sauceda, H. E.; Poltavsky, I.; Schütt, K. T.; Müller, K.-R. Machine learning of accurate energy-conserving molecular force fields. _Sci._ _Adv._ 2017, _3_, e1603015. (26) Bartók, A. P.; De, S.; Poelking, C.; Bern stein, N.; Kermode, J. R.; Csányi, G.; Ceriotti, M. Machine learning unifies the modeling of materials and molecules. _Sci._ _Adv._ 2017, _3_, e1701816. (27) Schütt, K. T.; Arbabzadah, F.; Chmiela, S.; Müller, K. R.; Tkatchenko, A. Quantum-chemical insights from deep tensor neural networks. _Nat._ _Commun._ 2017, _8_, 13890. (28) Smith, J. S.; Nebgen, B.; Lubbers, N.; Isayev, O.; Roitberg, A. E. Less is more: Sampling chemical space with active learning. _J._ _Chem._ _Phys._ 2018, _148_, 241733. (29) Schütt, K. T.; Sauceda, H. E.; Kinder mans, P.-J.; Tkatchenko, A.; Müller, K.-R. SchNet - A deep learning architecture for molecules and materials. _J._ _Chem._ _Phys._ 2018, _148_, 241722. (30) Grisafi, A.; Wilkins, D. M.; Csányi, G.; Ceriotti, M. Symmetry-Adapted Machine Learning for Tensorial Properties of Atomistic Systems. _Phys._ _Rev._ _Lett._ 2018, _120_, 036002. (31) Imbalzano, G.; Anelli, A.; Giofré, D.; Klees, S.; Behler, J.; Ceriotti, M. Automatic selection of atomic fingerprints and reference configurations for machinelearning potentials. _J._ _Chem._ _Phys._ 2018, _148_, 241730. (32) Nguyen, T. T.; Székely, E.; Imbalzano, G.; Behler, J.; Csányi, G.; Ceriotti, M.; Götz, A. W.; Paesani, F. Comparison of permutationally invariant polynomials, neural networks, and Gaussian approximation potentials in representing water interactions through many-body expansions. _J._ _Chem._ _Phys._ 2018, _148_, 241725. (33) Zhang, L.; Han, J.; Wang, H.; Saidi, W. A.; Car, R.; E, W. Endto-end Symmetry Preserving Inter-atomic Potential Energy Model for Finite and Extended Systems. _arXiv:1805.09003_ 2018, (34) Zhang, L.; Han, J.; Wang, H.; Car, R.; E, W. Deep potential molecular dynamics: a scalable model with the accuracy of quantum mechanics. _Phys._ _Rev._ _Lett._ 2018, _120_, 143001. (35) Bereau, T.; DiStasio, R. A.; Tkatchenko, A.; Lilienfeld, O. A. V. Non-covalent interactions across organic and biological subsets of chemical space: Physics-based potentials parametrized from machine learning. _J._ _Chem._ _Phys._ 2018, _148_, 241706. (36) Wang, H.; Yang, W. Toward Building Protein Force Fields by Residue-Based Systematic Molecular Fragmentation and Neural Network. _J._ _Chem._ _Theory_ _Com-_ _put._ 2019, _15_, 1409–1417. (37) John, S. T.; Csányi, G. Many-Body Coarse-Grained Interactions Using Gaussian Approximation Potentials. _J._ _Phys._ _Chem._ _B_ 2017, _121_, 10934–10949. (38) Zhang, L.; Han, J.; Wang, H.; Car, R.; E, W. DeePCG: constructing coarsegrained models via deep neural networks. _arXiv:1802.08549_ 2018, (39) Chan, H.; Cherukara, M. J.; Narayanan, B.; Loeffler, T. D.; Benmore, C.; Gray, S. K.; Sankaranarayanan, S. K. R. S. Machine learning coarse grained models for water. _Nat._ _Commun._ 2019, _10_, 379. (40) Lemke, T.; Peter, C. Neural Network Based Prediction of Conformational Free Energies - A New Route toward CoarseGrained Simulation Models. _J._ _Chem._ _Theory_ _Comput._ 2017, _13_, 6213–6221. (41) Bejagam, K. K.; Singh, S.; An, Y.; Desh mukh, S. A. Machine-Learned CoarseGrained Models. _J._ _Phys._ _Chem._ _Lett._ 2018, _9_, 4667–4672, PMID: 30024761. (42) Stecher, T.; Bernstein, N.; Csányi, G. Free Energy Surface Reconstruction from Umbrella Samples Using Gaussian Process Regression. _J._ _Chem._ _Theory_ _Com-_ _put._ 2014, _10_, 4079–4097. (43) Schneider, E.; Dai, L.; Topper, R. Q.; Drechsel-Grau, C.; Tuckerman, M. E. Stochastic neural network approach for learning high-dimensional free energy surfaces. _Phys._ _Rev._ _Lett._ 2017, _119_, 150601. (44) Sidky, H.; Whitmer, J. K. Learning free energy landscapes using artificial neural networks. _J._ _Chem._ _Phys._ 2018, _148_, 104111. (45) Lyubartsev, A. P.; Laaksonen, A. Cal culation of effective interaction potentials from radial distribution functions: A reverse Monte Carlo approach. _Phys._ _Rev._ _E_ 1995, _52_, 3730–3737. (46) Müller-Plathe, F. Coarse-Graining in Polymer Simulation: From the Atomistic to the Mesoscopic Scale and Back. _ChemPhysChem_ 2002, _3_, 754–769. (47) Praprotnik, M.; Site, L. D.; Kremer, K. Multiscale Simulation of Soft Matter: From Scale Bridging to Adaptive Resolution. _Ann._ _Rev._ _Phys._ _Chem._ 2008, _59_, 545–571. (48) Izvekov, S.; Voth, G. A. A Multiscale Coarse-Graining Method for Biomolecular Systems. _J._ _Phys._ _Chem._ _B_ 2005, _109_, 2469–2473. (49) Wang, Y.; Noid, W. G.; Liu, P.; Voth, G. A. Effective force coarsegraining. _Phys. Chem. Chem. Phys._ 2009, _11_, 2002. (50) Shell, M. S. The relative entropy is funda mental to multiscale and inverse thermodynamic problems. _J._ _Phys._ _Chem._ 2008, _129_, 144108. (51) Clementi, C.; Nymeyer, H.; Onuchic, J. N. Topological and energetic factors: what determines the structural details of the transition state ensemble and “en-route” intermediates for protein folding? Investigation for small globular proteins. _J._ _Mol._ _Biol._ 2000, _298_, 937–953. (52) Nielsen, S. O.; Lopez, C. F.; Srinivas, G.; Klein, M. L. A coarse grain model for nalkanes parameterized from surface tension data. _J._ _Chem._ _Phys._ 2003, _119_, 7043–7049. (53) Marrink, S. J.; de Vries, A. H.; Mark, A. E. Coarse Grained Model for Semiquantitative Lipid Simulations. _J._ _Phys._ _Chem._ _B_ 2004, _108_, 750–760. (54) Davtyan, A.; Schafer, N. P.; Zheng, W.; Clementi, C.; Wolynes, P. G.; Papoian, G. A. AWSEM-MD: Protein Structure Prediction Using Coarse-Grained Physical Potentials and Bioinformatically Based Local Structure Biasing. _J._ _Phys._ _Chem._ _B_ 2012, _116_, 8494–8503. (55) Voth, G. A. _Coarse-graining_ _of_ _condensed_ _phase_ _and_ _biomolecular_ _systems_ ; CRC press, 2008. (56) Monticelli, L.; Kandasamy, S. K.; Peri ole, X.; Larson, R. G.; Tieleman, D. P.; Marrink, S.-J. The MARTINI CoarseGrained Force Field: Extension to Proteins. _J._ _Chem._ _Theory_ _Comput._ 2008, _4_, 819–834. (57) Sinitskiy, A. V.; Saunders, M. G.; Voth, G. A. Optimal number of coarsegrained sites in different components of large biomolecular complexes. _J._ _Phys._ _Chem._ _B_ 2012, _116_, 8363–8374. (58) Boninsegna, L.; Banisch, R.; Clementi, C. A Data-Driven Perspective on the Hierarchical Assembly of Molecular Structures. _J._ _Chem._ _Theory_ _Comput._ 2018, _14_, 453– 460. (59) Noid, W. G.; Chu, J.-W.; Ayton, G. S.; Krishna, V.; Izvekov, S.; Voth, G. A.; Das, A.; Andersen, H. C. The multiscale coarse-graining method. I. A rigorous bridge between atomistic and coarsegrained models. _J._ _Chem._ _Phys._ 2008, _128_, 244114. (60) Rudzinski, J. F.; Noid, W. G. Coarse graining entropy, forces, and structures. _J._ _Phys._ _Chem._ 2011, _135_, 214101. (61) Vapnik, V. N. An Overview of Statistical Learning Theory. _IEEE_ _Trans._ _Neur._ _Net._ 1999, _10_, 988–999. (62) Devijver, P. A.; Kittler, J. _Pattern_ _Recog-_ _nition:_ _A_ _Statistical_ _Approach_ ; PrenticeHall, London, 1982. (63) Kohavi, R. A study of cross-validation and bootstrap for accuracy estimation and model selection. Proceedings of the Fourteenth International Joint Conference on Artificial Intelligence San Mateo, CA. 1995; pp 1137–1143. (64) Hornik, K. Approximation Capabilities of Multilayer Feedforward Networks. _Neural_ _Networks_ 1991, _4_, 251–257. (65) Hansen, K.; Montavon, G.; Biegler, F.; Fazli, S.; Rupp, M.; Scheffler, M.; Lilienfeld, O. A. V.; Tkatchenko, A.; Müller, K.R. Assessment and validation of machine learning methods for predicting molecular atomization energies. _J._ _Chem._ _Theory_ _Comput._ 2013, _9_, 3404–3419. (66) Bartók, A. P.; Kondor, R.; Csányi, G. On representing chemical environments. _Phys._ _Rev._ _B_ 2013, _87_, 184115. (67) Chmiela, S.; Sauceda, H. E.; Müller, K. R.; Tkatchenko, A. Towards exact molecular dynamics simulations with machinelearned force fields. _Nature_ _Commun._ 2018, _9_, 3887. (68) Gouk, H.; Frank, E.; Pfahringer, B.; Cree, M. Regularisation of Neural Networks by Enforcing Lipschitz Continuity. _arXiv:1804.04368_ 2018, (69) Goodfellow, I.; Bengio, Y.; Courville, A. _Deep_ _Learning_ ; MIT Press, 2016. (70) Shapeev, A. V. Moment Tensor Poten tials: a class of systematically improvable interatomic potentials. _Multiscale_ _Model._ _Simul._ 2016, _14_, 1153. (71) Dolgirev, P. E.; Kruglov, I. A.; Oganov, A. R. Machine learning scheme for fast extraction of chemically interpretable interatomic potentials. _AIP_ _Adv._ 2016, _6_, 085318. (72) Deringer, V. L.; Csányi, G. Machine learn ing based interatomic potential for amorphous carbon. _Phys._ _Rev._ _B_ 2017, _95_, 094203. (1) Boninsegna, L.; Nüske, F.; Clementi, C. Sparse learning of stochastic dynamical equations. _J._ _Chem._ _Phys._ 2018, _148_, 241723. (74) Nüske, F.; Wu, H.; Wehmeyer, C.; Clementi, C.; Noé, F. Markov State Models from short non-Equilibrium Simulations - Analysis and Correction of Estimation Bias. _J._ _Chem._ _Phys._ 2017, _146_, 094104. (75) Dunn, N. J. H.; Lebold, K. M.; DeL yser, M. R.; Rudzinski, J. F.; Noid, W. BOCS: Bottom-up Open-source Coarsegraining Software. _J._ _Phys._ _Chem._ _B_ 2017, _122_, 3363–3377. (4) Lindorff-Larsen, K.; Piana, S.; Dror, R. O.; Shaw, D. E. How fastfolding proteins fold. _Science_ 2011, _334_, 517–20. (9) Buch, I.; Harvey, M. J.; Giorgino, T.; Anderson, D. P.; De Fabritiis, G. Highthroughput all-atom molecular dynamics simulations using distributed computing. _J._ _Chem._ _Inf._ _Model._ 2010, _50_, 397–403. (5) Harvey, M. J.; Giupponi, G.; De Fabri tiis, G. ACEMD: Accelerating biomolecular dynamics in the microsecond time scale. _J._ _Chem._ _Theory_ _Comput._ 2009, _5_, 1632–1639. (17) Perez-Hernandez, G.; Paul, F.; Giorgino, T.; D Fabritiis, G.; Noé, F. Identification of slow molecular order parameters for Markov model construction. _J._ _Chem._ _Phys._ 2013, _139_, 015102. (12) Prinz, J.-H.; Wu, H.; Sarich, M.; Keller, B. G.; Senne, M.; Held, M.; Chodera, J. D.; Schütte, C.; Noé, F. Markov models of molecular kinetics: Generation and Validation. _J._ _Chem._ _Phys._ 2011, _134_, 174105. (81) Johnson, M. E.; Head-Gordon, T.; Louis, A. A. Representability problems for coarse-grained water potentials. _J._ _Chem._ _Phys._ 2007, _126_, 144509. (82) Mullinax, J. W.; Noid, W. G. Extended ensemble approach for deriving transferable coarse-grained potentials. _J._ _Chem._ _Phys._ 2009, _131_, 104110. (83) Thorpe, I. F.; Goldenberg, D. P.; Voth, G. A. Exploration of Transferability in Multiscale Coarse-Grained Peptide Models. _J._ _Phys._ _Chem._ _B_ 2011, _115_, 11911–11926. (84) Allen, E. C.; Rutledge, G. C. Evaluat ing the transferability of coarse-grained, density-dependent implicit solvent models to mixtures and chains. _J._ _Chem._ _Phys._ 2009, _130_, 034904. #### Supplementary Material Decomposition of the force matching error The decomposition of the force matching error (4) can be achieved by adding and subtracting the mean force (5) and splitting the norm: _χ_ <sup>2</sup> [ _U_ ( x )] = �� _∥ξ_ ( F ( r )) _−_ f ( x ) + f ( x ) + _∇U_ ( x ) _∥_ <sup>2�</sup> r _|_ x x = �� _∥ξ_ ( F ( r )) _−_ f ( x ) _∥_ <sup>2�</sup> - - _∥_ f ( x ) + _∇U_ ( x <sup>+</sup> �� _∥ξ_ ( F ( r )) _−_ f ( x ) _∥_ <sup>2�</sup> r _|_ x x - _∥_ f ( x ) + _∇U_ ( x ) _∥_ <sup>2�</sup> x <sup>+</sup> ��( _ξ_ ( F ( r )) _−_ f ( x )) <sup>_⊤_</sup> ( f ( x ) + _∇U_ ( x ))� ��( _ξ_ ( F ( r )) _−_ f ( x )) <sup>_⊤_</sup> ( f ( x ) + _∇U_ ( x )) r _|_ x x <sup>_._</sup> +2 This expression is equivalent to Eq. (6). as the mixed term is zero: ��( _ξ_ ( F ( r )) _−_ f ( x )) <sup>_⊤_</sup> ( f ( x ) + _∇U_ ( x ))� r _|_ x x = - f ( x ) <sup>_⊤_</sup> f ( x )� x <sup>+</sup> - f ( x ) <sup>_⊤_</sup> _∇U_ ( x )� - f ( x ) <sup>_⊤_</sup> f ( x ) x <sup>+</sup> - f ( x ) <sup>_⊤_</sup> _∇U_ ( x )� x <sup>+</sup> x _−_ - f ( x ) <sup>_⊤_</sup> f ( x )� x <sup>_−_</sup> - f ( x ) <sup>_⊤_</sup> _∇U_ ( x ) - f ( x ) <sup>_⊤_</sup> f ( x ) x <sup>_−_</sup> - f ( x ) <sup>_⊤_</sup> _∇U_ ( x ) x = 0 The decomposition of the expected prediction error in the form of Eq. (11) can be achieved by adding and subtracting the mean estimator <sup>¯</sup> f ( X ) = E [ _−∇U_ ( X ; _θ_ )]: - _∥_ f ( X ) + _∇U_ ( X ; _θ_ ) _∥_ <sup>2</sup> _F_ E [ _L_ ( _θ_ ; R )] = E R _|_ X - + Noise   + Noise 2  ������ _F_ + = E = E - _∥A∥_ <sup>2</sup> _F_ - _∥A∥_ <sup>2</sup> _F_ ������ - + E �¯ f ( X ) + _∇U_ ( X ; _θ_ )� - <u>��</u> <u>�</u> _B_  - f ( X ) _−_ <sup>¯</sup> f ( X ) <u>�</u> <u>��</u> <u>�</u> _A_ - _∥B∥_ <sup>2</sup> _F_ - _∥B∥_ <sup>2</sup> _F_ - + 2E �� _i,j_ ( _A ∗_ _B_ ) _i,j_ + Noise _,_ where _∗_ is the element-wise product. We follow standard results for regression. For the mixed term we can use ( _A ∗_ _B_ ) _i,j_ = _i,j_ (E [ _A ∗_ _B_ ]) _i,j_ - ( _A ∗_ _B_ ) _i,j_ = E _i,j_ E �� _i,j_ and this expectation value disappears: E [ _A ∗_ _B_ ] = E �� f ( X ) _−_ <sup>¯</sup> f ( X )� _∗_ �¯ f ( X ) + _∇U_ ( X ; _θ_ )�� = E [ f ( X )] _∗_ <sup>¯</sup> f ( X ) + E [ f ( X ) _∗∇U_ ( X ; _θ_ )] _−_ E �¯ f ( X ) _∗_ ¯ f ( X )� _−_ <sup>¯</sup> f ( X ) _∗_ E [ _∇U_ ( X ; _θ_ )] = f ( X ) _∗_ <sup>¯</sup> f ( X ) _−_ f ( X ) _∗_ <sup>¯</sup> f ( X ) _−_ <sup>¯</sup> f ( X ) _∗_ <sup>¯</sup> f ( X ) + <sup>¯</sup> f ( X ) _∗_ <sup>¯</sup> f ( X ) = 0 _._ The remaining terms define bias and variance. Cross-validation for the coarse-graining of the 2d toy model We report here the results from cross-validation for the choice of hyper-parameters for the coarsegraining of the 2d toy model discussed in the main text. The feature regression for the coarse-graining of the 2 dimensional toy model is performed with the twenty basis functions listed in Table S1 selected as features. Cross-validation is performed with the Stepwise Sparse Regressor introduced in <sup>1</sup> . The minimum cross-validation error is obtained when the first four functions are used as features, as shown in Fig. S1. Table S1: Twenty elementary basis functions. <u>function</u> <u>ID</u> <u>function,</u> _<u>f</u>_ <u>(</u> _<u>x</u>_ <u>)</u> <u>function</u> <u>ID</u> <u>function,</u> _<u>f</u>_ <u>(</u> _<u>x</u>_ <u>)</u> <u>1</u> <u>1</u> <u>11</u> _<u>x</u>_ <sup><u>10</u></sup> <u>2</u> _<u>x</u>_ <u>12</u> _<u>sin</u>_ <u>(</u> _<u>x</u>_ <u>)</u> <u>3</u> _<u>x</u>_ <sup><u>2</u></sup> <u>13</u> _<u>cos</u>_ <u>(</u> _<u>x</u>_ <u>)</u> <u>4</u> _<u>x</u>_ <sup><u>3</u></sup> <u>14</u> _<u>sin</u>_ <u>(6</u> _<u>x</u>_ <u>)</u> <u>5</u> _<u>x</u>_ <sup><u>4</u></sup> <u>15</u> _<u>cos</u>_ <u>(6</u> _<u>x</u>_ <u>)</u> <u>6</u> _<u>x</u>_ <sup><u>5</u></sup> <u>16</u> _<u>sin</u>_ <u>(11</u> _<u>x</u>_ <u>)</u> <u>7</u> _<u>x</u>_ <sup><u>6</u></sup> <u>17</u> _<u>cos</u>_ <u>(11</u> _<u>x</u>_ <u>)</u> <u>8</u> _<u>x</u>_ <sup><u>7</u></sup> <u>18</u> _<u>tanh</u>_ <u>(10</u> _<u>x</u>_ <u>)</u> <u>9</u> _<u>x</u>_ <sup><u>8</u></sup> <u>19</u> _<u>tanh</u>_ <sup><u>2</u></sup> <u>(10</u> _<u>x</u>_ <u>)</u> <u>10</u> _<u>x</u>_ <sup>9</sup> <u>20</u> _<u>e</u>_ <sup>_−_</sup> <sup>50</sup> <sup>_x_</sup> <sup><u>2</u></sup> The results from the cross-validation of the CGnet for the toy 2 dimensional system are reported in Tables S2 and Fig. S1. Table S2: Hyper-parameter optimization for unregularized CGnet of two-dimensional model system. _D_ : network depth, _W_ : network width. The unit of the cross-validation error is ( _kBT_ ) <sup>2</sup>, with the unit of length equal to 1. _<u>D</u>_ <u>(</u> _<u>W</u>_ <u>= 20)</u> <u>Cross-validation</u> <u>error</u> <u>1</u> <u>0.3785</u> _<u>±</u>_ <u>0.0024</u> <u>2</u> <u>0.5457</u> _<u>±</u>_ <u>0.0973</u> <u>3</u> <u>0.7339</u> _<u>±</u>_ <u>0.0298</u> <u>4</u> <u>0.5695</u> _<u>±</u>_ <u>0.0172</u> <u>5</u> <u>0.8543</u> _<u>±</u>_ <u>0.1227</u> _<u>W</u>_ <u>(</u> _<u>D</u>_ <u>= 1)</u> <u>Cross-validation</u> <u>error</u> <u>5</u> <u>0.5674</u> _<u>±</u>_ <u>0.0044</u> <u>10</u> <u>0.8762</u> _<u>±</u>_ <u>0.0048</u> <u>20</u> <u>0.3785</u> _<u>±</u>_ <u>0.0024</u> <u>40</u> <u>0.3729</u> _<u>±</u>_ <u>0.0017</u> <u>60</u> <u>0.3703</u> _<u>±</u>_ <u>0.0013</u> <u>80</u> <u>0.3682</u> _<u>±</u>_ <u>0.0013</u> <u>100</u> <u>0.3671</u> _<u>±</u>_ <u>0.0013</u> <u>120</u> <u>0.3661</u> _<u>±</u>_ <u>0.0012</u> <u>150</u> <u>0.3661</u> _<u>±</u>_ <u>0.0012</u> ##### a) b) c) 1.2 1.0 0.8 0.6 0.4 0.374 0.372 0.370 0.368 0.366 1.6 1.4 1.2 1.0 0.8 0.6 0.4 Number of features, n Number of layers, D Number of neurons, W Figure S1: Model selection for CG model of 2D system using cross-validation. a) Choice of the set of feature functions for feature regression. b) First stage of regularized CGnet hyper-parameter selection: the optimal number of layers, _D_ . c). Second stage of regularized CGnet hyperparameter selection: the optimal number of neurons per layer, _W_ . Red dashed lines indicate the minimal cross-validation error. Error bars represent the standard error of the mean cross-validation error over five cross-validation folds, in panels a) and c) the error bars are invisible as they are smaller than the marker. The unit of the cross-validation error is ( _kBT_ ) <sup>2</sup>, with the unit of length equal to 1. Training CG models Networks were optimized using the Adam adaptive stochastic gradient descent method <sup>2</sup> with default settings using the PyTorch program. The batch-size was 128 for the 2D model and 512 for alanine dipeptide. The convergence of the training error and validation error for the 2d toy model and alanine dipeptide is shown in Fig. S2 below. #### a) b) 1.4 1.2 1.0 0.8 0.6 0.4 0.2 0 1 2 3 4 5 ###### Steps 6 × 10 4 0 1 2 3 4 5 6 7 8 ###### Steps ~~×~~ 10 <sup>3</sup> 0.44 0.43 0.42 0.41 0.40 0.39 0.38 0.37 0.36 0 1 2 3 4 5 6 ~~×~~ 10 <sup>4</sup> Figure S2: Training error and validation error for (a) the 2D model and (b) alanine dipeptide. In (a), the model is the regularized CGnet, in (b), the model is the regularized CGnet and the spline model, which is also regularized. All errors are averaged over 200000 points - for the training error this is done by averaging over the most recent batches, while the validation error is shown for a fixed validation set. Note that the hyper-parameter choices are made via cross-validation. The unit of the error is ( _kBT_ ) <sup>2</sup> in (a) and [ _kcal/_ ( _mol·_ <sup>˚</sup> A)] <sup>2</sup> in (b). Distribution of bond distances and angles for the different models of alanine dipeptide a) b) c) d) e) f) bond1 / Å bond2 / Å bond3 / Å g) All-atom model Regularized CGnet model Unregularized CGnet model Spline CG model bond4 / Å Figure S3: Probability density distribution for three angles a)- c), and four bonds d)-g) for the alanine dipeptide models. Each panel contains the distribution from four models: All-atom model (blue), regularized CGnet model (red), unregularized CGnet model (cyan), spline CG model (green). The distribution for regularized CGnet and spline model (with regularization) agree with the true all-atom one. The distribution for the unregularized CGnet has a wide range, which makes the distributions for the other models appear very narrow in d)-g). The insets in d)-g) present zoomed views of the distributions in the correct range. Changes in the free energy of alanine dipeptide with different hyperparameters In order to show how the free energy is approximating the atomistic free energy as the hyperparameters gradually reach the optimal values, we select five hyper-parameters for CGnet (C1, C2, C3, C4, C5) and four for the Spline model (S1, S2, S3, S4), as indicated in Fig. 5 in the manuscript. For each of these combinations of hyper-parameters, we report the corresponding two dimensional free energy profiles in Fig. S4 and Fig. S5 (in addition to the free energy profile for the global optima reported in Fig. 6). The figures show that as the hyper-parameters get closer to the optimal values the model free energy landscape becomes closer to the atomistic free energy landscape. a)3 <u>C1</u> b)3 <u>C2</u> U( x ) / kB0T 3 2 1 0 -1 -2 b) -3 -3 -2 -1 0 1 2 3 d) 3 3 2 1 0 ~~-1~~ ~~-2~~ -3 -1 -2 -3 -4 -5 -6 -7 -8 -3 -2 -1 0 1 2 3 c) 3 2 1 0 <u>C3</u> d) <u>C4</u> -3 -2 -1 0 1 2 3 _φ_ -1 -2 -3 e) -3 -2 -1 0 1 2 3 _φ_ 2 1 0 -1 -2 -3 Index Figure S4: Comparison of the free energy profiles of CGnet models of alanine dipeptide with different choices of hyper-parameters. (a)-(d) Free energy profiles with hyperparameters corresponding to the combination indicated as C1, C2, C3, C4 in Fig. 5. The choice of hyperparameters C5 correspond to the global optimum and is reported in Fig. 6c. (e) Comparison between the cross validation error (in [ _kcal/_ ( _mol·_ <sup>˚</sup> A)] <sup>2</sup> ) and mean square free energy difference (in [ _kBT_ ] <sup>2</sup> ) for the five selected hyperparameters. The value of 381 is subtracted from the cross validation error to obtain values in the similar range as the free energy differences. a)3 <u>S1</u> b)3 <u>S2</u> U( x ) / kB0T 3 2 1 0 -1 -2 b) -3 <u>-3</u> <u>-2</u> <u>-1</u> <u>0</u> <u>1</u> <u>2</u> <u>3</u> d) 3 3 2 1 0 ~~-1~~ ~~-2~~ -3 -1 -2 -3 -4 -5 -6 -7 -8 <u>-3</u> <u>-2</u> <u>-1</u> <u>0</u> <u>1</u> <u>2</u> <u>3</u> c) 3 2 1 0 <u>S3</u> d) <u>S4</u> <u>-3</u> <u>-2</u> <u>-1</u> <u>0</u> <u>1</u> <u>2</u> <u>3</u> _φ_ -1 -2 -3 e) -3 -2 -1 0 1 2 3 _φ_ 2 1 0 -1 -2 -3 Index Figure S5: Comparison of the free energy profiles of the spline models of alanine dipeptide with different choices of hyper-parameters. (a)-(d) Free energy profiles with hyperparameters corresponding to the combination indicated as S1, S2, S3, S4 in Fig. 5. The choice of hyperparameters S4 correspond to the global optimum and is also reported in Fig. 6b. (e) Comparison between the cross validation error (in [ _kcal/_ ( _mol·_ <sup>˚</sup> A)] <sup>2</sup> ) and mean square free energy difference (in [ _kBT_ ] <sup>2</sup> ) for the five selected hyperparameters. The value of 380 is subtracted from the cross validation error to obtain values in the similar range as the free energy differences. Energy decomposition for the CGnet model of alanine dipeptide. As discussed in the main text, the use of a baseline energy to enforce physical constraints plays an important role in the CGnet model. Here we report the decomposition of the total CGnet energy into the contribution of the baseline (prior) energy and the energy of the neural network. Figs. S6a-c report the decomposition for each point sampled in the simulations performed with CGnet. Fig. S6d-f report the same quantity averaged over different bins in the space spanned by the dihedral angles. The figures show that the network energy captures the overall features of the free energy landscape for this molecule, while the prior energy seems to play an important role to enforce physical constraints mostly at the edges of the populated regions in the landscape. This is in agreement with the intuition that the prior energy term makes the system avoid high energy regions not visited in the training data. a) Total energy U( x ) / kBT b) Network energy U( x ) / kBT c) U( x ) / kBT b) Network energy U( x ) / kBT c) Prior energy U( x ) / kBT Total energy U( x ) / kBT b) Network energy U( x ) / kBT c) Prior energy d) Average total energy U( x ) / kBT e) Average network energy U( x ) / kBT f) Average total energy U( x ) / kBT e) Average network energy U( x ) / kBT f) Average prior energy U( x ) / kBT e) Average network energy U( x ) / kBT f) Average prior energy U( x ) / kBT Figure S6: CGnet energy decomposition for the alanine dipeptide. In each simulated point, the total CGnet energy (a) is decomposed in the energy contribution from the dense net (b), and the baseline (or prior) energy (c). In each bin in the dihedral angles space, the average total total energy (d) is decomposed into the average dense net energy (e), and average prior energy (f). Chignolin setup and simulation The initial structure of Chignolin was generated starting from the cln025 peptide <sup>3</sup>, with sequence TYR-TYR-ASP-PRO-GLU-THR-GLY-THR-TRP-TYR. The structure was solvated in a cubic box of 40 ÃĚ, containing 1881 water molecules and two Na <sup>+</sup> ions to neutralize the peptide’s negative charge, as described in <sup>4</sup> . MD simulations were performed with ACEMD <sup>5</sup>, using CHARMM22* <sup>6</sup> force field and TIP3P <sup>7</sup> water model at 350K temperature. A Langevin integrator was used with a damping constant of 0.1 ps <sup>_−_</sup> <sup>1</sup> . Integration time step was set to 4 fs, with heavy hydrogen atoms (scaled up to four times the hydrogen mass) and holonomic constrains on all hydrogen-heavy atom bond terms <sup>8</sup> . Electrostatics were computed using Particle Mesh Ewald with a cutoff distance of 9 ÃĚ and grid spacing of 1 ÃĚ. Ten NVT simulations of 1 ns length were carried out, with a dielectric constant of 80 and temperature of 350K to generate ten different starting conformations for the production runs. Production simulations consisted of 3744 independent simulations of 50 ns, for a total aggregate time of 187.2 _µ_ s. All the simulations were run using the GPUGRID <sup>9</sup> distributed computing platform. The first 1000 simulations were spawned from the 10 conformations obtained previously. The remaining 2744 simulations were spawned using the adaptive sampling <sup>10</sup> protocol implemented in HTMD <sup>11</sup> . In adaptive sampling, multiple rounds of simulations are performed, and each round the available trajectories are analyzed to select the initial coordinates for the next round of simulations. Each round was done every 10 to 20 simulations, respawning an equivalent amount of new simulations. Initial coordinates for the respawned simulations were selected proportionally to the inverse of the number of frames per macrostate as explained in <sup>11</sup> . The Markov State Model <sup>12–16</sup> constructed during the analysis was done using atom distances as projected metric, TICA <sup>17,18</sup> for dimensionality reduction method and k-Centers for clustering. Force data used for training CGnet was obtained from the MD simulation trajectories. ACEMD was used to read the Chignolin trajectories and compute forces for all atoms for each simulation frame, using the same parameters used for the MD simulations. Markov State Model analysis of Chignolin all-atom simulations MD simulation data of Chignolin from GPUGrid was featurized into all pairwise C _α_ distances excluding pairs of nearest neighbors residues (a total of 45 distances). Time-lagged independent component analysis (TICA) <sup>17,18</sup> was carried out with a lag _τ_ = 25 ns. By using kinetic-map <sup>19,20</sup> and a kinetic variance cutoff of 95%, 4 TICs were retained for further analysis. The 4 TICs were clustered into 350 discrete states using the _k_ -means algorithm. All MD data was mapped onto their discrete states and used for Markov state model (MSM) estimation. The implied-timescales, _ti_ = _−_ log _<u>τ |λi|</u>_ <sup>,</sup> <sup>become</sup> <sup>constant</sup> <sup>as</sup> <sup>a</sup> <sup>function</sup> <sup>of</sup> <sup>lag-time</sup> <sup>(</sup> <sup>_τ_</sup> <sup>)</sup> <sup>within</sup> <sup>statistical</sup> <sup>uncertainty</sup> <sup>for</sup> <sup>lag-</sup> times above approximately 20 ns. Spectral analysis of a Markov state model estimated at a lagtime _τ_ = 37 _._ 5 ns reveal a spectral gap after the third implied-timescale suggesting 4 meta-stable states (Fig. S7). Plotting the populations of the meta-stable states as function of lag-time show that these are stable for _τ_ _>_ 10 ns, and that three of the four meta-stable states have significant probability mass _>_ 1%. These three most stable meta-stable states were used as reference states a, b and c, ordered alphabetically from most to least populated (shown in Fig. 7a). To account for the nonequilibrium nature of the multiple short molecular dynamics trajectories, we used the estimated MSM ( _τ_ = 37 _._ 5 ns) to reweighed data prior to calculating the reference free energy profiles. These analyses were carried out using the PyEMMA <sup>21</sup> and MDTraj <sup>22</sup> software packages. 10 1 10 2 10 <sup>2</sup> 10 <sup>1</sup> 10 <sup>0</sup> 10 20 30 lag time / ns Figure S7: Validation of a convergence of the Chignolin all-atom Markov model, which is estimated at _τ_ = 37 _._ 5 ns. Top: Stationary probabilities of metastable states. Bottom: MSM implied time scales. Hyper-parameter optimization for Chignolin CG models a) b) Number of layers, D c) d) Number of neurons, W Exponent, _c_ <u>4</u> <u>6</u> <u>8</u> <u>10</u> <u>12</u> <u>14</u> Number of neurons/feature, W e) f) <u>3.0</u> <u>3.5</u> <u>4.0</u> <u>4.5</u> <u>5.0</u> <u>5.5</u> <u>6.0</u> Excluded volume radius, _σ_ Lipschitz regularization, _λ_ Figure S8: Five-stage cross-validation of the hyper-parameters for the CG models of Chignolin. (a) Selection of the number of layers, D. (b) and (c) Selection of the number of neurons per layer, W. (d) Selection of the exponent of the excluded volume term, c. (d) Selection of the effective excluded volume radius, _σ_ . (f) Selection of of the Lipschitz regularization strength, _λ_ . The optimal values are indicated by orange squares and are used to generate the results reported in Fig. 7. #### References (1) L. Boninsegna, F. Nüske, and C. Clementi. Sparse learning of stochastic dynamical equations. _J._ _Chem._ _Phys._, 148(24):241723, 2018. (2) D. P. Kingma and J. Ba. Adam: A method for stochastic optimization. _arXiv:1412.6980_, 2014. (3) S. Honda, T. Akiba, Y. S. Kato, Y. Sawada, M. Sekijima, M. Ishimura, A. Ooishi, H. Watan abe, T. Odahara, and K. Harata. Crystal structure of a ten-amino acid protein. _J. Am. Chem._ _Soc._, 130(46):15327–15331, 2008. (4) K. Lindorff-Larsen, S. Piana, R. O. Dror, and D. E. Shaw. How fast-folding proteins fold. _Science_, 334(6055):517–20, 2011. (5) M. J. Harvey, G. Giupponi, and G. De Fabritiis. ACEMD: Accelerating biomolecular dynamics in the microsecond time scale. _J._ _Chem._ _Theory_ _Comput._, 5(6):1632–1639, 2009. (6) S. Piana, K. Lindorff-Larsen, and D. E. Shaw. How robust are protein folding simulations with respect to force field parameterization? _Biophys._ _J._, 100(9):L47–L49, 2011. (7) W. L. Jorgensen, J. Chandrasekhar, J. D. Madura, R. W. Impey, and M. L. Klein. Comparison of simple potential functions for simulating liquid water. _J. Chem. Phys._, 79(2):926–935, 1983. (8) K. A. Feenstra, B. Hess, and H. J. Berendsen. Improving efficiency of large time-scale molecular dynamics simulations of hydrogen-rich systems. _J._ _Comput._ _Chem._, 20(8):786–798, 1999. (9) I. Buch, M. J. Harvey, T. Giorgino, D. P. Anderson, and G. De Fabritiis. High-throughput all-atom molecular dynamics simulations using distributed computing. _J._ _Chem._ _Inf._ _Model._, 50(3):397–403, 2010. (10) S. Doerr and G. De Fabritiis. On-the-Fly Learning and Sampling of Ligand Binding by High Throughput Molecular Simulations. _J._ _Chem._ _Theory_ _Comput._, 10(5):2064–2069, 2014. (11) S. Doerr, M. J. Harvey, F. Noé, and G. De Fabritiis. HTMD: High-Throughput Molecular Dynamics for Molecular Discovery. _J._ _Chem._ _Theory_ _Comput._, 12(4):1845–1852, 2016. (12) J.-H. Prinz, H. Wu, M. Sarich, B. G. Keller, M. Senne, M. Held, J. D. Chodera, C. Schütte, and F. Noé. Markov models of molecular kinetics: Generation and validation. _J. Chem. Phys._, 134:174105, 2011. (13) W. C. Swope, J. W. Pitera, and F. Suits. Describing protein folding kinetics by molecular dynamics simulations: 1. Theory. _J._ _Phys._ _Chem._ _B_, 108:6571–6581, 2004. (14) J. D. Chodera, K. A. Dill, N. Singhal, V. S. Pande, W. C. Swope, and J. W. Pitera. Auto matic discovery of metastable states for the construction of Markov models of macromolecular conformational dynamics. _J._ _Chem._ _Phys._, 126:155101, 2007. (15) F. Noé, I. Horenko, C. Schütte, and J. C. Smith. Hierarchical Analysis of Conformational Dynamics in Biomolecules: Transition Networks of Metastable States. _J._ _Chem._ _Phys._, 126:155102, 2007. (16) N. V. Buchete and G. Hummer. Coarse Master Equations for Peptide Folding Dynamics. _J._ _Phys._ _Chem._ _B_, 112:6057–6069, 2008. (17) G. Perez-Hernandez, F. Paul, T. Giorgino, G. D Fabritiis, and F. Noé. Identification of slow molecular order parameters for markov model construction. _J. Chem. Phys._, 139:015102, 2013. (18) C. R. Schwantes and V. S. Pande. Improvements in markov state model construction reveal many non-native interactions in the folding of ntl9. _J._ _Chem._ _Theory_ _Comput._, 9:2000–2009, 2013. (19) F. Noé and C. Clementi. Kinetic distance and kinetic maps from molecular dynamics simula tion. _J._ _Chem._ _Theory_ _Comput._, 11:5002–5011, 2015. (20) F. Noé, R. Banisch, and C. Clementi. Commute maps: separating slowly-mixing molecular configurations for kinetic modeling. _J._ _Chem._ _Theory_ _Comput._, 12:5620–5630, 2016. (21) M. K. Scherer, B. Trendelkamp-Schroer, F. Paul, G. Perez-Hernandez, M. Hoffmann, N. Plat tner, C. Wehmeyer, J.-H. Prinz, and F. Noé. PyEMMA 2: A software package for estimation, validation and analysis of Markov models. _J._ _Chem._ _Theory_ _Comput._, 11:5525–5542, 2015. (22) R. T. McGibbon, K. A. Beauchamp, M. P. Harrigan, C. Klein, J. M. Swails, C. X. Hernández, C. R. Schwantes, L. P. Wang, T. J. Lane, and V. S. Pande. Mdtraj: A modern open library for the analysis of molecular dynamics trajectories. _Biophys_ _J._, 109:1528–1532, 2015.

섹션 본문 66문단 · 44,648자

(제목 없음)

1Atomistic or ab initio molecular dynamics simulations are widely used to predict thermodynamics and kinetics and relate them to molecular structure. A common approach to go beyond the time-and length-scales accessible with such computationally expensive simulations is the definition of coarse-grained molecular models. Existing coarse-graining approaches define an effective interaction potential to match defined properties of high-resolution models or experimental data. In this paper, we reformulate coarse-graining as a supervised machine learning problem. We use statistical learning theory to decompose the coarse-graining error and crossvalidation to select and compare the performance of different models. We introduce CGnets, a deep learning approach, that learns coarse-grained free energy functions and can be trained by a force-matching scheme. CGnets maintain all physically relevant invariances and allow one to incorporate prior physics knowledge to avoid sampling of unphysical structures. We show that CGnets can capture all-atom explicit-solvent free energy surfaces with models using only a few coarse-grained beads and no solvent, while classical coarse-graining methods fail to capture crucial features of the free energy surface. Thus, CGnets are able to capture multibody terms that emerge from the dimensionality reduction.

■ INTRODUCTION

2Recent technological and methodological advances have made possible to simulate macromolecular systems on biologically relevant time-scales. 1−3 For instance, one can simulate binding, folding, and conformation changes of small to intermediate proteins on time-scales of milliseconds, seconds, or beyond. 4−8 However, the extensive sampling of large macromolecular complexes on biological time-scales at atomistic resolution is still out of reach. For this reason, the design of simplified, yet predictive, models is of great interest, 9−11 in particular, to interpret the experimental data that are becoming increasingly accessible in high throughput and resolution. Experimental data provide a partial view of certain aspects of a macromolecular system but do not directly give a full dynamical representation, and simulation can help obtain a more comprehensive understanding. 12−14 As it is clear that not every single atom is important in determining the relevant collective features of biomolecular dynamics and function, simplified models could provide more insights into the general physicochemical principles regulating biophysical systems at the molecular level. Here we use recent advances in machine learning to design optimal reduced models to reproduce the equilibrium thermodynamics of a macromolecule.

3Significant effort has been devoted in the past few years to apply machine learning (e.g., deep neural network or kernel methods) to learn effective models from detailed simulations 15−19 and specifically to learn potential energy surfaces from quantum-mechanical calculations on small molecules. 20−36 In principle a similar philosophy could be used to define models at lower resolutions, that is, to learn the effective potential energy of coarse-grained (CG) models from finegrained (e.g., atomistic) molecular dynamics (MD) simulation data. 37−41 There are however important differences. In the definition of potential energy surfaces from quantum calculations, the relevant quantity to reproduce is the energy, and it is relatively straightforward to design a loss function for a neural network to minimize the difference between the quantum-mechanical and classical energy (and forces 25,33 ) over a sample of configurations. In contrast, in the definition of a CG model, the potential energy can not be matched because of the reduction in dimension, and it is important to define what are the properties of the system that need to be preserved by the coarse-graining. The approximation of free energy surfaces, e.g., from enhanced sampling simulations, is therefore a related problem. 42−44 Several approaches have been proposed to design effective CG energy functions for large molecular systems that either reproduce structural features of atomistic models (bottomup) 45−50 or reproduce macroscopic properties for one or a range of systems. 12−14,51−54 Popular bottom-up approaches choose that the CG model reproduce the canonical configuration distribution determined by the atomistic model. For instance, one may want to be able to represent the different metastable states populated by a protein undergoing large conformational changes. One of the difficulties in the practical application of these methods has been that, in general, a CG potential optimally reproducing selected properties of a macromolecular system includes manybody terms that are not easily modeled in the energy functions.

4Here, we formulate the well-known force-matching procedure for coarse-graining as a supervised machine learning problem. Previously, coarse-graining has been mostly discussed as a fitting procedure, but the aim of machine learning is to find a model that has minimal prediction error on data not used for the training. We use classical statistical learning theory to show that the force-matching error can be decomposed into Bias, Variance, and Noise terms and explain their physical meaning. We also show that the different CG models can be ranked using their cross-validation score.

5Second, we discuss a class of neural networks, which we refer to as CGnets, for coarse-graining molecular force systems. CGnets have a lot of similarities with neural networks used to learn potential energy surfaces from quantum data, such as enforcing the relevant invariances (e.g., rotational and translational invariance of the predicted energy, equivariance of the predicted force). In contrast to potential energy networks, CGnets predict a free energy (potential of mean force) and then use the gradient of this free energy with respect to the input coordinates to compute a mean force on the CG coordinates. As the CG free energy is not known initially, only the force information can be used to train the network.

6Third, CGnets are extended to regularized CGnets. Using a generic function approximator such as a neural network to fit the CG force field from training data only may lead to force predictions that are "catastrophically wrong" for configurations not captured by the training data, i.e., predictions of forces in the direction of increasingly unphysical states that lead to diverging and unrealistic simulation results. We address this problem by adding a prior energy to the free energy network that does not compromise the model accuracy within the training data region, but ensures that the free energy approaches infinity for unphysical states, resulting in a restoring force toward physically meaningful states.

7Finally, we demonstrate that CGnets succeed in learning the CG mean force and the CG free energy for a 2D toy model, as well as for the coarse-graining of all-atom explicit-solvent simulations of (i) alanine dipeptide to a CG model with 5 particles and no solvent and (ii) the folding/unfolding of the polypeptide Chignolin to a CG model consisting only of the protein C α atoms and no solvent. We show explicitly that CGnets achieve a systematically better performance than classical CG approaches which construct the CG free energy as a sum of few-body terms. In the case of the Chignolin protein, the classical few-body model can not reproduce the folding/ unfolding dynamics. On the contrary, the inherently multibody CGnet energy function approximates the all-atom folding/ unfolding landscape well and captures all free energy minima. This study highlights the importance of machine learning and generic function approximators in the CG problem.

■ THEORY AND METHODS

8Here we introduce the main theoretical concepts and define the machine learning problems involved in coarse-graining using the force-matching principle and introduce CGnets and regularized CGnets. The more practically inclined reader may skip to the CGnets: Learning CG Force Fields with Neural Networks section.

9Coarse-Graining with Thermodynamic Consistency. We first define what we mean by coarse-graining and which physical properties shall be preserved in the coarse-grained model.

10The starting point in the design of a molecular model with resolution coarser than atomistic is the definition of the variables. The choice of the coarse coordinates is usually made by replacing a group of atoms by one effective particle. Because of the modularity of a protein backbone or a DNA molecule, popular models coarse-grain a macromolecule to a few interaction sites per residue or nucleotide, e.g., the C α and C β atoms for a protein. 51,54−56 Alternative schemes have also been proposed for the partitioning of the atoms into coarsegrained coordinates. 57,58 In general, given a high-dimensional atomistic representation of the system r ∈  3N , a CG representation is given by a coordinate transformation to a lower-dimensional space:

11with n < N. Here we assume that ξ is linear; i.e., there is some coarse-graining matrix Ξ ∈  3n×3N that clusters atoms to coarse-grained beads: x = Ξr.

12The aim is to learn a coarse-grained energy function U(x; θ) that will be used in conjunction with a dynamical model, e.g., Langevin dynamics, to simulate the CG molecule. θ is the parameters of the coarse-grained modelin classical CG approaches these are parameters of the potential energy function, such as force constants and partial charges, while here they denote the weights of the neural network.

13A common objective in coarse-graining methods is to preserve the equilibrium distribution; i.e., the equilibrium distribution of the coarse-grained model shall be as close as possible to the equilibrium distribution of the atomistic model when mapped to the CG coordinates. We will be using a simulation algorithm for the dynamics such that the system's equilibrium distribution is identical to the Boltzmann distribution of the employed potential U; therefore this objective can be achieved by enforcing the thermodynamic consistency:

14where k B T is the thermal energy with Boltzmann constant k B and temperature T, the probability distribution p CG (x) is the equilibrium distribution of the atomistic model, mapped to the CG coordinates

15and μ(r) = exp(−V(r)/k B T) is the Boltzmann weight associated with the atomistic energy model V(r). Note that the additive constant in eq 2 can be chosen arbitrarily. Therefore, this constant will be omitted in the expressions below, which means that it will absorb normalization constants that are not affecting the CG procedure, such as the logarithm of the partition function. Several methods have been proposed for defining a coarsegrained potential U(x) that variationally approximates the consistency relation 3 at a particular thermodynamic state (temperature, pressure etc.) Two popular approaches are the multiscale coarse-graining (force-matching) 48,59 and the relative entropy method 50 (the two approaches are connected 60 ).

16CG Parameter Estimation as a Machine Learning Problem. Here, we follow the force-matching scheme. It has been shown that thermodynamic consistency (eq 2) is achieved when the CG model predicts the instantaneous CG forces with minimal mean square error. 48,59 We call the instantaneous atomistic forces F(r) and the instantaneous force projected on the CG coordinates ξ(F(r)). At the same time, the CG model predicts a force −∇U(x; θ) for a CG configuration x. The force-matching error is defined as

17The average ⟨·⟩ r is over the equilibrium distribution of the atomistic model, i.e., r ∼ μ(r).

18We reiterate a result shown in ref 59 that has important consequences for using eq 4 in machine learning. For this, we introduce the mean force:

19where r|x indicates the equilibrium distribution of r constrained to the CG coordinates x, i.e., the ensemble of all atomistic configurations that map to the same CG configuration. Then we can decompose expression 4 as follows (see the SI for derivation): (6) with the terms

20This loss function differs from the force-matching loss function used in the learning of force fields from quantum data by the Noise term. The Noise term is purely a function of the CG map ξ (and when training with finite simulation data also of the data set), and it cannot be changed by varying the parameters θ. As a result, the total force-matching error cannot be made zero, but it is bounded from below by χ 2 (θ) ≥ Noise. 59 On the contrary, when matching force fields from quantum data, the error χ 2 approaches zero for a sufficiently powerful model. Physically, the Noise term arises from the fact that instantaneous forces on the CG coordinates vary in the different atomistic configurations associated with the same CG configuration. Here, we call this term Noise as it corresponds to the noise term known in statistical estimator theory for regression problems. 61 The learning problem is now to find a CG model and its parameters θ that minimizes the potential of mean force (PMF) error term. To obtain a physical interpretation, we apply eq 1 and write the average purely in CG coordinates:

21This error term is the matching error between the mean force at the CG coordinates, f(x), and the CG forces predicted by the CG potential

22Hence, the machine learning task is to find the free energy U whose negative derivatives best approximate the mean forces in eq 5, and U is thus called a potential of mean force (PMF). Equation 8 implies that the mean force field f̂is conservative, as it is generated by the free energy U(x).

23Machine learning the CG model is complicated by two aspects: (i) As the PMF error cannot be computed directly, its minimization in practice is accomplished by minimizing the variational bound eq 6. Thus, to learn f(x) accurately, we need to collect enough data "close" to every CG configuration x such that the learning problem is dominated by the variations in the PMF error term and not by the variations in the Noise term. As a result, machine learning CG models typically require more data points than force-matching for potential energy surfaces. (ii) The free energy U(x) is not known a priori but must be learned. In contrast to fitting potential energy surfaces we can therefore not directly use energies as inputs.

24For a finite data set R = (r 1 , ..., r M ) with M samples, we define the force-matching loss function by the direct estimator:

25where ξ(R) = [ξ(r 1 ), ..., ξ(r M )] Τ ∈  M×3n and ξ(F(R)) = [ξ(F(r 1 )), ..., ξ(F(r M ))] Τ ∈  M×3n are data matrices of coarsegrained coordinates and coarse-grained instantaneous forces that serve as an input to the learning method, and F denotes the Frobenius norm. CG Hyperparameter Estimation as a Machine Learning Problem. While eq 9 defines the training method, machine learning is not simply about fitting parameters for a given data set but rather about minimizing the expected prediction error (also called "risk") for data not used for training. This concept is important to be able to select an optimal model, i.e., to choose the hyperparameters of the model, such as the type and number of neurons and layers in a neural network, or even to distinguish between different learning models such as a neural network and a spline model.

26Statistical estimator theory is the field that studies optimal prediction errors. 61 To compute the prediction error, we perform the following thought experiment: We consider a fixed set of CG configurations X = [x 1 , ..., x M ] Τ at which we want to fit the mean forces. We assume that these configurations have been generated by MD or MCMC such that the full atomistic configurations, R = (r 1 , ..., r M ), are Boltzmann distributions conditioned on the CG configurations, i.e., r i ∼ r|x i . Now we ask if we repeat this experiment, i.e., in every iteration we produce a new set of all-atom configurations r i ∼ r|x i , and thereby a new set of instantaneous forces on the CG configurations, what is the expected prediction error, or risk of the force-matching error, θ [ ]  L R ( ; ) ? More formally, the following is performed:

271. given CG coordinates X, generate training set R train ∼ R| X and find θ̂= arg min θ L(θ; R train ); 2. generate test set R test ∼ R|X and compute L(θ; R test ) where R train and R test are two independent realizations. Although we cannot execute this thought experiment in practice, we can approximate it by cross-validation, and we can obtain insightful expressions for the form of the expected prediction error. As the loss function in force-matching is a least-squares regression problem, the form of the expected prediction error is well-known (see the SI for a short derivation) and can be written as

28with the Noise term as given in eq 7 and the bias and variance terms given by

29is the mean estimator, i.e., the average force field learnt when the training is repeated many times for different data realizations. The terms in eqs 12 and 13 have the following meaning: Equation 12 is the expected error between the mean forces and the average predicted force field. It is therefore the systematic bias of the machine learning model. The variance (eq 13) is the fluctuation of the individual estimates from single training procedures around the mean estimator and thus represents the estimator's fluctuation due to finite-sample effects. As the optimal model minimizes the PMF error, it must balance bias and variance. These contributions are typically counteracting: A too simple model (e.g., too small neural network) typically leads to low variance but high bias, and it corresponds to "underfitting" the data. A too complex model (e.g., too large neural network) leads to low bias but large variance, and it corresponds to "overfitting" the data. The behavior of bias, variance, and estimator error for a fixed data set size is illustrated in Figure 1.

30The optimum at which bias and variance balance depends on the amount of data used, and in the limit of an infinitely large data set, the variance is zero, and the optimal model can be made very complex to also make the bias zero. For small data sets, it is often favorable to reduce the model complexity and accept significant bias, to avoid large variance.

31To implement model selection, we approximate the "ideal" iteration above by the commonly used cross-validation method 62,63 and then choose the model or hyperparameter set that has the minimal cross-validation score. In crossvalidation, the estimator error (eq 11) is estimated as the validation error, averaged over different segmentations of all available data into training and validation data.

32CGnets: Learning CG Force Fields with Neural Networks. It is well-known that the CG potential U(x; θ) defined by thermodynamic consistency may be a complex multibody potential even if the underlying atomistic potential has only few-body interactions. 59 To address this problem, we use artificial neural networks (ANNs) to represent U(x; θ) as ANNs can approximate any smooth function on a bounded set of inputs, including multibody functions. 64 Therefore, we use ANNs to model U(x), train them by minimizing the loss (eq 9), and select optimal models by minimizing the cross-validation error. For the purpose of training CG molecular models, we would like to have the following physical constraints and invariances, which determine parts of the architecture of the neural network.

33• Differentiable free energy function: To train U(x; θ) and simulate the associated dynamics by means of Langevin simulations, it must be continuously differentiable. As the present networks do not need to be very deep, vanishing gradients are not an issue, and we select tanh activation functions here. After D nonlinear layers we always add one linear layer to map to one output neuron representing the free energy. • Invariances of the free energy: The energy of molecules that are not subject to an external field only depends on internal interactions and is invariant with respect to translation or rotation of the entire molecule. The CG free energy may also be invariant with respect to permutation of certain groups of CG particles, e.g., exchange of identical molecules, or certain symmetric groups within molecules. Compared to quantummechanical potential energies, permutation invariance is less abundant in CG. For example, permutation invariance does not apply to the α-carbons in a protein backbone (not even for identical amino acids), as they are ordered by the MD bonding topology. CGnets include a transformation = g y x ( ) from CG Cartesian coordinates x to a set of features that contain all desired invariances, and use the features y as an input to the network that computes the free energy, U(g(x); θ). This transformation can be chosen in many different ways, e.g., by using local coordinate systems, 34 two-or three-body correlation functions, 20 permutationinvariant distance metrics, 65−67 or by a learned representation. 29 In this work, only translation and Figure 1. Typical bias−variance trade-off for fixed data set size, indicating the balance between underfitting and overfitting. The noise level is defined by the CG scheme (i.e., which particles are kept and which are discarded) and is the lower bound for the mean prediction error. rotation invariances are needed, and we hence choose the following features: distances between all pairs of CG atoms, the angles between three consecutive CG atoms, and the cos and sin of torsion angles defined by the CG atoms.

34• Conservative PMF: The PMF is a conservative force field generated by the free energy (eq 8). As in quantum potential energy learning, 25,29 we enforce this requirement by computing the free energy U with a neural network and then adding a gradient layer to compute the derivatives with respect to the input coordinates: Figure 2a shows the neural network architecture resulting from these choices. The free energy network is D layers deep, and each layer is W neurons wide. Additionally, we use L2 Lipschitz regularization 68 in the network, with a tunable parameter λ that regulates the strength of the regularization.

35Thus, (D, W, λ) are the remaining hyperparameters to be selected (as discussed in the Results section).

36Simulating the CGnet Model. Once the neural network has been trained to produce a free energy U(x), it can be used to simulate dynamical trajectories of the CG model. Here we use overdamped Langevin dynamics to advance the coordinates of the CG model from x t at time t to x t+τ after a time-step τ: 14) where x t is the CG configuration at time t (e.g., the x coordinate in the toy model, a 15-dimensional vector in the alanine dipeptide, and a 30-dimensional vector in the Chignolin applications presented below), ξ is Gaussian random noise with zero mean and identity as covariance matrix, τ is the integration time-step, and D is the diffusion constant of the system. In the following, we use reduced energy units; i.e., all energies are in multiples of k B T.

37Since the implementation of CGnet is vectorized, it is more efficient to compute free energies and mean forces for an entire batch of configurations rather than a single configuration at a time. Therefore, we run simulations in parallel for the examples shown below. This is done by sampling 100 starting points randomly from atomistic simulations, coarse-graining them, and then integrating eq 14 stepwise.

38Regularizing the Free Energy with a Baseline Energy Model. Training the free energy with a network as shown in Figure 2a and subsequently using it to simulate the dynamics with eq 14 produces trajectories of new CG coordinates x t . When parts of the coordinate space are reached that are very different from any point in the training set, it is possible that the network makes unphysical predictions.

39In particular, the atomistic force field used to produce the training data has terms that ensure the energy will go toward infinity when departing from physical states, e.g., when stretching bonds or when moving atoms too close to each other. These regions will not be sampled in the underlying MD simulations, and therefore result in "empty" parts of configuration space that contain no training data. Simulating a network trained only on physically valid training data via eq 14 may still produce points x t that enter this "forbidden regime" where bonds are overstretched or atoms start to overlap. At this point the simulation can become unstable if there is no regularizing effect ensuring that the predicted free energy U(x; θ) will increase toward infinity when going deeper into the forbidden regime.

40Methods to modify a learning problem to reduce prediction errors are collectively known as "regularization" methods. 69 To avoid the catastrophically wrong prediction problem described above, we introduce regularized CGnets (Figure 2b). In a regularized CGnet, we define the energy function as

41where U net (x; θ) is a neural network free energy as before, and U 0 (x) is a baseline energy that contains constraint terms that ensure basic physical behavior. Such baseline energies to regularize a more complex multibody energy function have also been used in the machine learning of QM potential energy functions. 70−72 Note that eq 15 can still be used to represent any smooth free energy because U net (x; θ) is a universal approximator. The role of U 0 (x) is to enforce U → ∞ for unphysical states x that are outside the training data. As for many other regularizers, the baseline energy U 0 (x) in eq 15 takes the role of a prior distribution in a probabilistic interpretation: The equilibrium distribution generated by eq 15 becomes with mean μ = r i0 (or μ = θ j0 ), and variance σ 2 = k B T/k b,i (or σ 2 = k B T/k a,j ). The prior energy is obtained by assuming independence between these energy terms and estimating these means and variances from the atomistic simulations. For the application of CGnet to the protein Chignolin, an additional term is added to the baseline energy to enforce excluded volume and penalize clashes between nonbonded CG particles. In particular, we add a term U rep (r) for each pairwise distances between CG particles that are more distant than two covalent bonds, in the form (16) where the exponent c and effective excluded volume radius σ are two additional hyperparameters that are optimized by cross-validation.

42We note that in general one could use classical CG approaches with predefined energy functions to first define the prior CG energy U 0 and then use an ANN to correct it with multibody terms.

■ RESULTS

43Two-Dimensional Toy Model. As a simple illustration, we first present the results on the coarse-graining of a two-dimensional toy model. The potential energy is shown in Figure 3 and given by the expression The potential corresponds to a double well along the x-axis and a harmonic confinement along the y-axis. The last term in eq 17 adds small-scale fluctuations, appearing as small ripples in Figure 3a.

44The coarse-graining mapping is given by the projection of the 2-dimensional model onto the x-axis. In this simple toy model, the coarse-grained free energy (potential of mean force) can be computed exactly (Figure 3b):

45We generate a long (one million time-steps) simulation trajectory of the 2-dimensional model and use the x component of the forces computed along the trajectories in the loss function (eq 9). We report below the resulting CG potential obtained by (1) using a feature regression, i.e., leastsquares regression with a set of feature functions defined in the SI, Section B, and (2) a CGnet (regularized and unregularized).

46Cross-validation is used to select the best hyperparameters for the least-squares regression and the CGnet architectures. For the feature regression, the same cross-validation procedure as introduced in ref 73 was used and returned a linear combination of four basis functions among the selected set (see Figure S1a and the Supporting Information for details). For the regularized CGnet, a two-stage cross-validation is conducted, first choosing the depth D with a fixed width of W = 50, and then choosing the width W ( Figure S1b,c). The minimal prediction error is obtained with D = 1 (one hidden layer) and W = 50. For the unregularized CGnet, a similar procedure is performed, and the best hyperparameters are selected as D = 1, W = 120. Note that the prediction error cannot become zero, but is bounded from below by the chosen CG scheme (Figure 1, eq 11)in this case by neglecting the y variable. Figure 3c,d shows the results of the predicted mean forces and free energies (potentials of mean force) in the x-direction. The instantaneous force fluctuates around the mean but serves to accurately fit the exact mean force in the x range where sampling is abundant using both feature regression and CGnet (Figure 3c). At the boundary where few samples are in the training data, the predictors start to diverge from the exact mean force and free energy (Figure 3c,d). This effect is more dramatic for the unregularized CGnet; in particular, at large x values, the CGnet makes an arbitrary prediction: here the force tends to zero. In the present example, reaching these states is highly improbable. However, a CGnet simulation reaching this region can fail dramatically, as the simulation may continue to diffuse away from the low energy regime. As discussed above, this behavior can be avoided by adding a suitable prior energy that ensures that the free energy keeps increasing outside the training data, while not affecting the accuracy of the learned free energy within the training data (Figure 3c,d). Note that the quantitative mismatch in the low-probability regimes is not important for equilibrium simulations.

47The matching mean forces translate into matching free energies (potentials of mean force, Figure 3d). Finally, we conduct simulations with the learned models and generate trajectories {x t } using eq 14. From these trajectories, free energies can be computed bỹ

48where pX(x) is a histogram estimate of the probability density of x in the simulation trajectories. As shown in Figure 3d, free energies agree well in the x range that has significant equilibrium probability.

49Coarse-Graining of Alanine Dipeptide in Water. We now demonstrate CGnets on the coarse-graining of an all-atom MD simulation of alanine dipeptide in explicit solvent at T = 300 K to a simple model with 5 CG particles located at the five central backbone atoms of the molecule (Figure 4). One trajectory of length 1 μs was generated using the simulation setup described in ref 74; coordinates and forces were saved every picosecond, giving rise to one million data points. The CG model has no solvent; therefore, the CG procedure must learn the solvation free energy for all CG configurations.

50We compare two different CG models. The first model, called "spline model", uses the state-of the art approach established in MD coarse-graining: 11,49,59 to express the CG potential as a sum of few-body interaction terms, similar as in classical MD force fields. The most flexible among these approaches is to fit one-dimensional splines for each of the pairwise distance, angle, and dihedral terms to parametrize two-, three-, and four-body interactions. 75 To ensure a consistent comparison, we represent 1D splines with neural networks that map from a single input feature (pairwise distance, angle, or dihedral) to a single free energy term, resulting in the spline model network shown in Figure 2c. We use the same regularization and baseline energy for spline model networks and CGnets.

51The second model uses a regularized multibody CGnet, i.e., a fully connected neural network shown in Figure 2b, to approximate the CG free energy. The comparison of the results from the two models allows us to evaluate the importance of multibody interactions that are captured by the CGnet but are generally absent in CG models that use interaction terms involving a few atoms only.

52The hyperparameters for both models consist of the number of layers (depth, D), the number of neurons per layer (width, W) of the network, and the Lipschitz regularization strength (λ) 68 and are optimized by a three-stage cross-validation. In the first stage, we find the optimal D at fixed W = 30 and λ = ∞ (no Lipschitz regularization); subsequently, we choose W at the optimal D, and λ at the optimal W, D. This results in D = 5, W = 160, and λ = 4.0 for CGnet and D = 4, W = 30 (for each feature), and λ = 10.0 for the spline model ( Figure 5). The cross-validation error of CGnet is significantly lower than the cross-validation error of the spline model (Figure 5a−c). We point out that the cross-validation error cannot become zero but is bounded from below by the chosen CG scheme ( Figure 1, eq 11)in this case by coarse-graining all solvent molecules and all solute atoms except the five central backbone atoms away. Hence, the absolute values of the cross-validation error in Figure 5a−c are not meaningful and only differences matter.

53CG MD simulations are generated for the selected models by iterating eq 14. For each model, one hundred independent simulations starting from structures sampled randomly from the atomistic simulation are performed for 1 million steps each, and the aggregated data are used to produce the free energy as a function of the dihedral coordinates. Figure 6 compares the free energy computed via eq 18 from the underlying atomistic MD simulations and the free energy resulting from the selected CG models. Only the regularized CGnet model can correctly reproduce the position of the all main free energy minima (Figure 6a,c). On the contrary, the spline model is not able to capture the shallow minima corresponding to positive values of the dihedral angle ϕ, and introduces several spurious minima (Figure 6b). This comparison confirms that selecting CG models by minimal mean force prediction error achieves models that are better from a physical viewpoint.

54As an a posteriori analysis of the results, we have performed MD simulation for the CG models corresponding to different choices of hyperparameters, both for the spline model and CGnet. For each choice of hyperparameters, we have computed the difference between the free energy as a function of the dihedral angles resulting from the CG simulations and the one from the all-atom models. Differences in free energy were estimated by discretizing the space spanned by the two dihedral angles and computing the mean square difference on all bins. The difference between a given model and CGnet was computed by shifting the free energy of CGnet by a constant value that minimizes the overall mean square difference. The free energy difference for the spline models is always significantly larger than for the CGnet models (Figure 5d− f). Interestingly, the minima in the difference in free energy correspond to the minima in the cross-validation curves reported in Figure 5a−c, and the optimal values of hyperparameters selected by cross-validation yield the absolute minimum in the free energy difference (indicated in Figure 5f as C5 for CGnet and S4 for the spline model). This point is illustrated more explicitly in the SI (Section E, Figures S4 and S5), and demonstrates that the cross-validation error of different models is correlated with errors in approximating the two-dimensional free energy surface of alanine dipeptide.

55For the CGnet, regularization is extremely important: without regularization, the free energy only matches near the most pronounced minima, and unphysical structures are sampled outside (Figure 6d and the SI, Section D). With regularization, these unphysical regimes are avoided; all sampled structures appear chemically valid (Figure 6e), and the distributions of bonds and angles follow those in the atomistic simulations (SI, Section D and Figure S3).

56Coarse-Graining of Chignolin Folding/Unfolding in Water. Finally, we test the CGnet on a much more challenging problem: the folding/unfolding dynamics of the polypeptide Chignolin in water. Chignolin consists of 10 amino acids plus termini and exhibits a clear folding/unfolding transition. The all-atom model contains 1881 water molecules, salt ions, and the Chignolin molecule, resulting in nearly 6000 atoms. To focus on the folding/unfolding transition, data were generated at the melting temperature 350 K, mimicking the setup used for the Anton supercomputer simulation in ref 76. To obtain a well-converged ground truth, we generated 3742 short MD simulations with an aggregate length of 187.2 μs on GPUgrid 77 using the ACEMD program. 78 The free energy landscape is computed on the two collective variables describing the slowest processes, computed by the TICA method. 79 Since the individual MD simulations are too short to reach equilibrium, the equilibrium distribution was recovered by reweighting all data using a Markov state model. 80 See the SI for details on the MD simulation and Markov model analysis. Figure 7a shows the free energy as a function of the first two TICA coordinates. Three minima are clearly identifiable on this free energy landscape: states a (folded), b (unfolded), and c (partially misfolded), ordered alphabetically from most to least populated. Representative configurations in these minima are as shown in Figure 7e. As a result, the first TICA mode is a folding/unfolding coordinate, while the second is a misfolding coordinate.

57Using a regularized CGnet, we coarse-grain the 6000-atom system to 10 CG beads representing the α-carbons of Chignolin. Thus, not only is the polypeptide coarse-grained, but also the solvation free energy is implicitly included in the CG model. Similar to what was done for alanine dipeptide, roto-translational invariance of the energy was implemented by using a CGnet featurization layer that maps the C α Cartesian coordinates to all pairwise distances between CG beads, all angles defined by three adjacent CG beads, and the cos and sin of all the dihedral angles defined by four CG adjacent beads. The regularizing baseline energy includes a harmonic term for each bond and angle and an excluded volume term for each pairwise distance between CG particles that are separated by more than two bonds.

58Similar to the case of alanine dipeptide, a classical few-body spline model was defined for comparison whose CG potential is a sum of bonded and nonbonded terms, where each term is a nonlinear function of a single feature (pairwise distances, angles, dihedrals).

59Both the CGnet and spline model are optimized through a five-stage cross-validation search for the hyperparameters in the following order: depth D, width W, exponent of the excluded volume term c, radius of the excluded volume term σ, and Lipschitz regularization strength λ. The results of the cross-validation are shown in Figure S8. This optimization resulted in the hyperparameter values D = 5, W = 250, c = 6, σ = 5.5, and λ = 4.0. For the spline model, the optimal values of the hyperparameters are D = 3, W = 12 (for each feature), c = 10, σ = 4.0, and λ = 5.0 ( Figure S8). The potential resulting from CGnet and the spline model is then used to run long simulations with eq 14. One hundred simulations of 1 million steps each were generated using randomly sampled configurations from the training data as starting points. For comparison, the aggregated data are projected onto the TICA coordinates obtained from all-atom simulations, and free energy landscapes are computed directly using eq 18 (Figure 7b,c). For a more quantitative comparison, the free energies are also reported along the first TICA coordinate that indicates folding/unfolding (Figure 7d). These figures clearly show that the spline model cannot reproduce the folding/unfolding dynamics of Chignolin, as the folded and unfolded states are not well-defined (Figure 7b,d). On the contrary, CGnet not only can consistently fold and unfold the protein but also correctly identifies three welldefined minima: the folded (a′), unfolded (b′), and partially misfolded (c′) ensembles corresponding to the minima a, b, and c in the all-atom fully solvated model (Figure 7c,d). Representative structures in the three minima are shown in Figure 7e: the structures obtained from the CGnet simulations are remarkably similar to the ones obtained in the all-atom simulations. These results reinforce what has been already observed for alanine dipeptide above: the multibody interactions captured by CGnet are essential for correct reproduction of the free energy landscape for the protein Chignolin. The absence of such interactions in the spline model dramatically alters the corresponding free energy landscape to the point that the model can not reproduce the folding/unfolding behavior of the protein.

■ CONCLUSIONS

60Here we have formulated coarse-graining based on the forcematching principle as a machine learning method. An important consequence of this formulation is that coarsegraining is a supervised learning problem whose loss function can be decomposed into the standard terms of statistical estimator theory: Bias, Variance, and Noise. These terms have well-defined physical meanings and can be used in conjunction with cross-validation to select model hyperparameters and rank the quality of different coarse-graining models.

61We have also introduced CGnets, a class of neural networks that can be trained with the force-matching principle and can encode all physically relevant invariances and constraints: (1) invariance of the free energy and mean force with respect to translation of the molecule, (2) invariance of the free energy and equivariance of the mean force with respect to rotation of the molecule, (3) the mean force being a conservative force field generated by the free energy, and (4) a prior energy able to be applied to prevent the simulations with CGnets to diverge into unphysical state space regions outside the training data, such as states with overstretched bonds or clashing atoms. Future CGnets may include additional invariances, such as permutational invariance of identical CG particles, e.g., permutation of identical particles in symmetric rings.

62The results presented above show that CGnet can be used to define effective energies for CG models that optimally reproduce the equilibrium distribution of a target atomistic model. CGnet provides a better approximation than functional forms commonly used for CG models as it automatically includes multibody effects and nonlinearities. The work presented here provides a proof of principle for this approach on relatively small solutes, but already demonstrates that the complex solvation free energy involved in the folding/ unfolding of a polypeptide such as Chignolin can be encoded in a CGnet consisting of only the C α atoms. The extension to larger and more complex molecules presents additional challenges and may require to include additional terms to enforce physical constraints.

63Additionally, the CG model considered here is designed ad hoc for a specific molecule and is not transferable to the study of different systems. Transferability remains an outstanding issue in the design of coarse-grained models, 11 and its requirement may decrease the ability to reproduce faithfully properties of specific systems. 49,81−84 In principle, transferable potentials can be obtained by designing input features for CGnet imposing a dependence of the energy function on the CG particle types and their environment, 82 similarly to what is done in the learning of potential energy functions from quantum mechanics data (see, e.g., refs 20, 24, 27, 33, and 66). This approach may be able to define transferable functions if enough data are used in the training. 27,33 We leave the investigation on the trade-off between transferability and accuracy for future studies.

64It is also important to note that the formulation used here to define an optimal CG potential aims at reproducing structural properties of the system, but it does not determine the equations for its dynamical evolution. If one is interested in designing CG models that can reproduce molecular dynamical mechanisms, e.g., to reproduce the slow dynamical processes of the fine-grained model, alternative approaches need to be investigated.

* S Supporting Information

65The Supporting Information is available free of charge on the ACS Publications website at DOI: 10.1021/acscentsci.8b00913.

66Derivation of eq 6, cross-validation for all the models presented in the manuscript, additional details on the training of the models, distribution of bonds and angles for the different models of alanine dipeptide, changes in the free energy of alanine dipeptide with different hyperparameters, energy decomposition for the

참고문헌 85건

  1. Structure-Based Coarse- and Fine-Graining in Soft Matter Simulations KOPS (University of Konstanz) · University of Konstanz · 2008
  2. Pattern recognition : a statistical approach Prentice-Hall International eBooks · Prentice-Hall International · 1982
  3. A study of cross-validation and bootstrap for accuracy estimation and model selection International Joint Conference on Artificial Intelligence · 1995
  4. Screen Savers of the World Unite! Science · American Association for the Advancement of Science · 2000 10.1126/science.290.5498.1903
  5. Machine-learning approach for one- and two-body corrections to density functional theory: Applications to molecular and condensed water Physical Review B · American Physical Society · 2013 10.1103/physrevb.88.054104
  6. Activation pathway of Src kinase reveals intermediate states as targets for drug design Nature Communications · Nature Portfolio · 2014 10.1038/ncomms4397
  7. Coarse-graining entropy, forces, and structures The Journal of Chemical Physics · American Institute of Physics · 2011 10.1063/1.3663709
  8. The multiscale coarse-graining method. I. A rigorous bridge between atomistic and coarse-grained models The Journal of Chemical Physics · American Institute of Physics · 2008 10.1063/1.2938860
  9. Approximation capabilities of multilayer feedforward networks Neural Networks · Elsevier BV · 1991 10.1016/0893-6080(91)90009-t
  10. Representability problems for coarse-grained water potentials The Journal of Chemical Physics · American Institute of Physics · 2007 10.1063/1.2715953
  11. AWSEM-MD: Protein Structure Prediction Using Coarse-Grained Physical Potentials and Bioinformatically Based Local Structure Biasing The Journal of Physical Chemistry B · American Chemical Society · 2012 10.1021/jp212541y
  12. Assessment and Validation of Machine Learning Methods for Predicting Molecular Atomization Energies Journal of Chemical Theory and Computation · American Chemical Society · 2013 10.1021/ct400195d
  13. Minimalist Protein Model as a Diagnostic Tool for Misfolding and Aggregation Journal of Molecular Biology · Elsevier BV · 2006 10.1016/j.jmb.2006.07.088
  14. A coarse grain model for <i>n</i>-alkanes parameterized from surface tension data The Journal of Chemical Physics · American Institute of Physics · 2003 10.1063/1.1607955
  15. Extended ensemble approach for deriving transferable coarse-grained potentials The Journal of Chemical Physics · American Institute of Physics · 2009 10.1063/1.3220627
  16. Generalized Neural-Network Representation of High-Dimensional Potential-Energy Surfaces Physical Review Letters · American Physical Society · 2007 10.1103/physrevlett.98.146401
  17. Perspective: Coarse-grained models for biomolecular systems The Journal of Chemical Physics · American Institute of Physics · 2013 10.1063/1.4818908
  18. On representing chemical environments Physical Review B · American Physical Society · 2013 10.1103/physrevb.87.184115
  19. Coarse-grained models of protein folding: toy models or predictive tools? Current Opinion in Structural Biology · Elsevier BV · 2007 10.1016/j.sbi.2007.10.005
  20. Optimal Combination of Theory and Experiment for the Characterization of the Protein Folding Landscape of S6: How Far Can a Minimalist Model Go? Journal of Molecular Biology · Elsevier BV · 2004 10.1016/j.jmb.2004.08.006
  21. Coarse Grained Model for Semiquantitative Lipid Simulations The Journal of Physical Chemistry B · American Chemical Society · 2003 10.1021/jp036508g
  22. High-Throughput All-Atom Molecular Dynamics Simulations Using Distributed Computing Journal of Chemical Information and Modeling · American Chemical Society · 2010 10.1021/ci900455r
  23. Pathway and mechanism of drug binding to G-protein-coupled receptors Proceedings of the National Academy of Sciences · National Academy of Sciences · 2011 10.1073/pnas.1104614108
  24. The MARTINI Coarse-Grained Force Field: Extension to Proteins Journal of Chemical Theory and Computation · American Chemical Society · 2008 10.1021/ct700324x
  25. The relative entropy is fundamental to multiscale and inverse thermodynamic problems The Journal of Chemical Physics · American Institute of Physics · 2008 10.1063/1.2992060
  26. A Multiscale Coarse-Graining Method for Biomolecular Systems The Journal of Physical Chemistry B · American Chemical Society · 2005 10.1021/jp044629q
  27. Topological and energetic factors: what determines the structural details of the transition state ensemble and “en-route” intermediates for protein folding? an investigation for small globular proteins Journal of Molecular Biology · Elsevier BV · 2000 10.1006/jmbi.2000.3693
  28. How Fast-Folding Proteins Fold Science · American Association for the Advancement of Science · 2011 10.1126/science.1208351
  29. Evaluating the transferability of coarse-grained, density-dependent implicit solvent models to mixtures and chains The Journal of Chemical Physics · American Institute of Physics · 2009 10.1063/1.3055594
  30. ACEMD: Accelerating Biomolecular Dynamics in the Microsecond Time Scale Journal of Chemical Theory and Computation · American Chemical Society · 2009 10.1021/ct9000685
  31. Gaussian Approximation Potentials: The Accuracy of Quantum Mechanics, without the Electrons Physical Review Letters · American Physical Society · 2010 10.1103/physrevlett.104.136403
  32. Markov models of molecular kinetics: Generation and validation The Journal of Chemical Physics · American Institute of Physics · 2011 10.1063/1.3565032
  33. Coarse-Graining in Polymer Simulation: From the Atomistic to the Mesoscopic Scale and Back ChemPhysChem · Wiley · 2002 10.1002/1439-7641(20020916)3:9<754::aid-cphc754>3.0.co;2-u
  34. Calculation of effective interaction potentials from radial distribution functions: A reverse Monte Carlo approach Physical review. E, Statistical physics, plasmas, fluids, and related interdisciplinary topics · American Physical Society · 1995 10.1103/physreve.52.3730
  35. Fast and Accurate Modeling of Molecular Atomization Energies with Machine Learning Physical Review Letters · American Physical Society · 2012 10.1103/physrevlett.108.058301
  36. Multiscale Simulation of Soft Matter: From Scale Bridging to Adaptive Resolution Annual Review of Physical Chemistry · Annual Reviews · 2007 10.1146/annurev.physchem.59.032607.093707
  37. Identification of slow molecular order parameters for Markov model construction The Journal of Chemical Physics · American Institute of Physics · 2013 10.1063/1.4811489
  38. An overview of statistical learning theory IEEE Transactions on Neural Networks · Institute of Electrical and Electronics Engineers · 1999 10.1109/72.788640
  39. Effective force coarse-graining Physical Chemistry Chemical Physics · Royal Society of Chemistry · 2009 10.1039/b819182d
  40. Coarse-Graining Methods for Computational Biology Annual Review of Biophysics · Annual Reviews · 2013 10.1146/annurev-biophys-083012-130348
  41. Moment Tensor Potentials: A Class of Systematically Improvable Interatomic Potentials Multiscale Modeling and Simulation · Society for Industrial and Applied Mathematics · 2016 10.1137/15m1054183
  42. Protein conformational plasticity and complex ligand-binding kinetics explored by atomistic simulations and Markov models Nature Communications · Nature Portfolio · 2015 10.1038/ncomms8653
  43. Optimal Number of Coarse-Grained Sites in Different Components of Large Biomolecular Complexes The Journal of Physical Chemistry B · American Chemical Society · 2012 10.1021/jp2108895
  44. Exploration of Transferability in Multiscale Coarse-Grained Peptide Models The Journal of Physical Chemistry B · American Chemical Society · 2011 10.1021/jp204455g
  45. Machine learning scheme for fast extraction of chemically interpretable interatomic potentials AIP Advances · American Institute of Physics · 2016 10.1063/1.4961886
  46. Quantum-chemical insights from deep tensor neural networks Nature Communications · Nature Portfolio · 2017 10.1038/ncomms13890
  47. ANI-1: an extensible neural network potential with DFT accuracy at force field computational cost Chemical Science · Royal Society of Chemistry · 2017 10.1039/c6sc05720a
  48. Many-Body Coarse-Grained Interactions Using Gaussian Approximation Potentials The Journal of Physical Chemistry B · American Chemical Society · 2017 10.1021/acs.jpcb.7b09636
  49. Machine learning based interatomic potential for amorphous carbon Physical review. B./Physical review. B · American Physical Society · 2017 10.1103/physrevb.95.094203
  50. Markov state models from short non-equilibrium simulations—Analysis and correction of estimation bias The Journal of Chemical Physics · American Institute of Physics · 2017 10.1063/1.4976518
  51. Machine learning of accurate energy-conserving molecular force fields Science Advances · American Association for the Advancement of Science · 2017 10.1126/sciadv.1603015
  52. Machine learning unifies the modeling of materials and molecules Science Advances · American Association for the Advancement of Science · 2017 10.1126/sciadv.1701816
  53. Complete protein–protein association kinetics in atomic detail revealed by molecular dynamics simulations and Markov modelling Nature Chemistry · Nature Portfolio · 2017 10.1038/nchem.2785
  54. Deep Potential Molecular Dynamics: A Scalable Model with the Accuracy of Quantum Mechanics Physical Review Letters · American Physical Society · 2018 10.1103/physrevlett.120.143001
  55. Symmetry-Adapted Machine Learning for Tensorial Properties of Atomistic Systems Physical Review Letters · American Physical Society · 2018 10.1103/physrevlett.120.036002
  56. Stochastic Neural Network Approach for Learning High-Dimensional Free Energy Surfaces Physical Review Letters · American Physical Society · 2017 10.1103/physrevlett.119.150601
  57. Protein-peptide association kinetics beyond the seconds timescale from atomistic simulations Nature Communications · Nature Portfolio · 2017 10.1038/s41467-017-01163-6
  58. Time-lagged autoencoders: Deep learning of slow collective variables for molecular kinetics The Journal of Chemical Physics · American Institute of Physics · 2018 10.1063/1.5011399
  59. Neural Network Based Prediction of Conformational Free Energies - A New Route toward Coarse-Grained Simulation Models Journal of Chemical Theory and Computation · American Chemical Society · 2017 10.1021/acs.jctc.7b00864
  60. Variational encoding of complex dynamics Physical review. E · American Physical Society · 2018 10.1103/physreve.97.062412
  61. BOCS: Bottom-up Open-source Coarse-graining Software The Journal of Physical Chemistry B · American Chemical Society · 2017 10.1021/acs.jpcb.7b09993
  62. A Data-Driven Perspective on the Hierarchical Assembly of Molecular Structures Journal of Chemical Theory and Computation · American Chemical Society · 2017 10.1021/acs.jctc.7b00990
  63. Learning free energy landscapes using artificial neural networks The Journal of Chemical Physics · American Institute of Physics · 2018 10.1063/1.5018708
  64. SchNet – A deep learning architecture for molecules and materials The Journal of Chemical Physics · American Institute of Physics · 2018 10.1063/1.5019779
  65. Less is more: Sampling chemical space with active learning The Journal of Chemical Physics · American Institute of Physics · 2018 10.1063/1.5023802
  66. Regularisation of neural networks by enforcing Lipschitz continuity Machine Learning · Springer Science+Business Media · 2020 10.1007/s10994-020-05929-w
  67. Deep Generative Markov State Models arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1805.07601
  68. Learning Effective Molecular Models from Experimental Observables Journal of Chemical Theory and Computation · American Chemical Society · 2018 10.1021/acs.jctc.8b00187
  69. Machine-Learned Coarse-Grained Models The Journal of Physical Chemistry Letters · American Chemical Society · 2018 10.1021/acs.jpclett.8b01416
  70. Toward Building Protein Force Fields by Residue-Based Systematic Molecular Fragmentation and Neural Network Journal of Chemical Theory and Computation · American Chemical Society · 2018 10.1021/acs.jctc.8b00895
  71. Machine learning coarse grained models for water Nature Communications · Nature Portfolio · 2019 10.1038/s41467-018-08222-6
  72. Topological and energetic factors: what determines the structural details of the transition state ensemble and "on-route" intermediates for protein folding? An investigation for small globular proteins arXiv (Cornell University) · Cornell University · 2000 10.48550/arxiv.cond-mat/0003460
  73. Reweighted autoencoded variational Bayes for enhanced sampling (RAVE) The Journal of Chemical Physics · American Institute of Physics · 2018 10.1063/1.5025487
  74. Moment Tensor Potentials arXiv (Cornell University) · Cornell University · 2016
  75. Pathway and Mechanism of Drug Binding to G-Protein-Coupled Receptors Biophysical Journal · Elsevier BV · 2012 10.1016/j.bpj.2011.11.2241
  76. Free Energy Surface Reconstruction from Umbrella Samples Using Gaussian Process Regression Journal of Chemical Theory and Computation · American Chemical Society · 2014 10.1021/ct500438v
  77. VAMPnets for deep learning of molecular kinetics Nature Communications · Nature Portfolio · 2017 10.1038/s41467-017-02388-1
  78. Non-covalent interactions across organic and biological subsets of chemical space: Physics-based potentials parametrized from machine learning The Journal of Chemical Physics · American Institute of Physics · 2018 10.1063/1.5009502
  79. Comparison of permutationally invariant polynomials, neural networks, and Gaussian approximation potentials in representing water interactions through many-body expansions The Journal of Chemical Physics · American Institute of Physics · 2018 10.1063/1.5024577
  80. Identification of slow molecular order parameters for Markov model construction 2013
  81. DeePCG: Constructing coarse-grained models via deep neural networks The Journal of Chemical Physics · American Institute of Physics · 2018 10.1063/1.5027645
  82. Sparse learning of stochastic dynamical equations The Journal of Chemical Physics · American Institute of Physics · 2018 10.1063/1.5018409
  83. Automatic selection of atomic fingerprints and reference configurations for machine-learning potentials The Journal of Chemical Physics · American Institute of Physics · 2018 10.1063/1.5024611
  84. Towards exact molecular dynamics simulations with machine-learned force fields Nature Communications · Nature Portfolio · 2018 10.1038/s41467-018-06169-2
  85. Coarse-Graining of Condensed Phase and Biomolecular Systems 2008 10.1201/9781420059564