Skip to text

2 Theory of macroscopic exit rates

In the following, a consistent theory about macroscopic quantities based on a membership function χ:Ω→[0,1] is derived. More precisely, the following quantities of interest are discussed:

Note that computing reaction directions r is possible for sets S, too, as described in the introduction. However, for sets we do not get this simple gradient form −∇χ. The theory in this section is largely based on [20], [3]. We will extend the theory with statements about consistency and use it to support of the interpretation of χ as macro states, as explained in the introduction. The computation of χ will play an important role in our bio-molecular example; see Section 4.

2.1 Defining macro states via membership functions

The starting point in the introduction is that pχ=χe−c1t would be a way to define holding times of macro states from a conceptual point of view to be able to interpret c1 as an exit rate. The choice of χ is not arbitrary, but motivated by the necessity of an invariant subspace projection leading to (4.4). At this point, it is not yet shown that pχ when using the solution χ of (4.4) is consistent with the stochastic meaning of a holding probability. We will now demonstrate that it converges to the established definition if χ becomes the indicator function of a set.

We start by recalling some basic definitions. Let the state space Ω of a molecular system comprising N atoms be given as Ω=R3N where the position of each individual atom is described by three Cartesian coordinates. Let ρ(x,t):Ω×R→[0,1] denote the probability density distribution of states of the nonlinear stochastic dynamics at time t. More precisely, the dynamics is given as a Markov process for which an infinitesimal generator L∗:L1(Ω)→L1(Ω) (a differential operator, e. g., the Fokker–Planck operator) can be constructed that captures this time-dependent stochastic process. This operator is linear and describes the infinitesimal propagation of ρ(x,t):

(4.5)(L∗ρ)(x,t)=ddtρ(x,t).

It also gives rise to its adjoint generator L:L∞(Ω)→L∞(Ω), which propagates observables instead of state densities. The partial differential equation (4.4) defining χ is formulated in terms of this adjoint. In this regard, χ can also be interpreted as an observable, that is, the measurement of the macro state. To allow for their interpretation as holding probability, we are interested in solutions χ(x):Ω→[0,1] with corresponding constants c1>0,c2>0.

Assume such χ and c1,c2 are given. We then define the χ-holding probability as

(4.6)pχ(x,t):=χ(x)e−c1t

such that (4.4) becomes

(4.7)L∗pχ=−c1pχ+c2pχ1−χχ.

Rearranging results in

(4.8)L∗pχ−c2pχ1−χχ=−c1pχ.

Due to the relationship

(4.9)∂∂tpχ=∂∂tχ(x)e−c1t=−c1χ(x)e−c1t=−c1pχ.

Equation (4.8) can also be represented as follows:

(4.10)L∗pχ−c2pχ1−χχ=∂∂tpχ.

The solution of the partial differential equation (4.10) together with the initial condition

(4.11)pχ(x,0)=χ(x)e−c1·0=χ(x)

can be given in terms of the Feynman–Kac formula [20], [3], [5]:

(4.12)pχ(x,τ)=E[χ(xτ)·exp(−c2∫0τ1−χ(xt)χ(xt)dt)|x0=x].

This representation allows us to interpret the solution as an expectation over realizations of the stochastic process and, therefore, builds the bridge from an abstract definition to its interpretation as a probability.

To this end, let us consider the case where χ≈1,S. The expectation is to be taken over all trajectories starting in x0. Once any such trajectory leaves the set S the integral becomes infinite and exponential function evaluates to 0. Otherwise, the exponential stays 1, as well as χ(xτ)=1. We therefore recover the definition of classical holding probability pχ(x,τ)=pS(x,τ) in (4.1), that is, the probability to stay in S for time τ at least; see also (9) and (10) in [20], as well as (3.31) in [15].

We summarize this result in the following proposition.

Proposition 4.1.

Let χ≈1,S be a solution to (4.4). Then the χ-holding probability approximates the classical holding probability of S:

pχ(x,t)≈pS(x,t).

With regard to this interpretation, pχ(x,t) is seen as the holding probability of the macro state χ. Due to the separated term e−c1t in (4.6), the holding probability decreases exponentially with the decay constant c1. This means that c1 is the exit rate from χ. Since the function value of pχ(x,0)=χ(x) is interpreted as a holding probability, it is necessary that χ can only take values in the interval [0,1].

The time integral over the holding probability is the mean holding time tmh(x), which is proportional to the inverse of the exit rate c1:

(4.13)tmh(x)=∫0∞pχ(x,t)dt=∫0∞χ(x)e−c1tdt=limt→∞[−1c1χ(x)e−c1t]0t=1c1χ(x).

The mean holding time immediately leads to a definition of a reaction direction: Following the gradient of tmh increases the time until “a reaction takes place.” Therefore, by defining the reaction direction r:Ω→R3N,

(4.14)r(x)=−∇tmh(x)=−1c1∇χ(x)∝−∇χ(x),

we obtain a vector field along which the mean holding time decreases uniformly and which is proportional to ∇χ. This also means that χ itself can be understood as an order parameter, that is, a reaction coordinate for the system. Note that we obtain this time independent result only as a consequence of the initial time separation ansatz for pχ. By integrating curves tangential to r, one can obtain reaction paths in Ω. In Section 3, we will make use of the order parameter interpretation to subsample a representative reactive path from a given pool of simulation data.

The possibility of calculating these quantities of interest from (4.4) is a motivation to develop an efficient method for solving this equation. We will now show how to express these quantities in terms of the Koopman operator, before discussing ISOKANN, an algorithm for their computation.

2.2 Membership functions from Koopman operator

So far, the description of χ was based on the infinitesimal generator L but a suitable analytical solution of the corresponding partial differential equation (4.4) is not available. However, it is possible to transform (4.4) into an equation for which a constructive solution is possible. We will now show how we can similarly formulate it in terms of the Koopman operator K and how we can switch between the formalisms and work out the relation between χ function and eigenfunctions of Kτ. The problem of actually computing χ will then be addressed in the next subsection.

The Koopman operator Kτ is the time-integral or solution operator of L∗ for some lag-time τ>0 and can be formally defined as Kτ=eτL∗. It can also be defined by its action on observable functions f:Ω→R:

(4.15)(Kτf)(x):=E[f(x(τ))∣x(0)=x],

where the expectation is taken over independent realizations x of the process, starting in x(0)=x. It can be understood as the expected measurement Kτf of an observable f after a lag time τ. Being an expectation value its action can be approximated using Monte-Carlo estimates over simulations, making it particularly suitable for applications.

To transform (4.4) into an equation for Kτ, we substitute

(4.16)α=c1+c2

to arrive at the following equation:

(4.17)L∗χ=−αχ+c2.

This shows that L acts as a shift-scale operator on χ if and only if χ solves (4.4). Making use of the formal exponential representation of Kτ and its series expansion, one obtains [20], [3]

(4.18)Kτχ=e−ταχ+c2α(1−e−τα).

Setting

(4.19)γ1=e−τα,γ2=c2α(1−γ1),

this becomes

(4.20)Kτχ=γ1χ+γ2.

So, just as with equation (4.17), Kτ acts as a shift-scale if and only if χ is a solution to (4.4).

Noting that Kτ1,=1, we further see that f:=χ−c2α is an eigenfunction of Kτ with eigenvalue γ1:

(4.21)Kτ(χ−c2α)=γ1χ+c2α(1−γ1)−c2α=γ1(χ−c2α).

These findings are summarized in the following proposition.

Proposition 4.2.

Let the parameters c1,c2,α,γ1,γ2 satisfy their relations above. The following are equivalent:

  • χ solves the ISOKANN problem (4.4).

  • L acts as a shift-scale on χ with scale −α and shift c2.

  • Kτ acts as a shift-scale on χ with scale γ1 and shift γ2.

  • χ−c2α is an eigenfunction of Kτ with eigenvalue γ1.

The above identities allow us to switch between the infinitesimal generator and Koopman framework. In particular, we can compute the exit rate c1 from the Koopman parameters γ1 and γ2:

(4.22)α=−lnγ1τ,c2=αγ21−γ1,c1=α−c2.

This allows to estimate the respective constants, for example, the exit rate c1, by evaluating χ and Kτχ at sample points x∈Ω and solving the linear regression problem (4.20).

2.3 ISOKANN for computing membership functions

The ISOKANN (Invariant subspaces of Koopman operators learned by a neural network) method [12], [17], [16] is a fixed-point iteration, which combines the use of a neural network for representing the high-dimensional χ function with the Koopman formalism to enable its training on simulation data.

On convergence, it returns χ that solves (4.4), (4.17), and (4.20). Solving the partial differential equations involving L∗ directly is not feasible due to the high dimensionality of molecular systems. Molecular simulations on the other hand enable us to estimate the action of Kτ on an observable. For this reason, attempts to solve (4.20) by using the action of Kτ for the calculation of (Kτχi)(x), where χi is the ith iterate of χ and x is a training point. It approximates the expectation value

(4.23)(Kτχi)(x):=E[χi(x(τ))∣x(0)=x],

by a Monte Carlo estimate over trajectory simulations x starting in different starting points x. The next iterate is then given by the shift-scaled Kτχi:

(4.24)χi+1:=‖Kτχi−min(Kτχi)‖∞‖Kτχi−min(Kτχi)‖∞,

which is motivated by inverting the shift and scale of (4.20), such that the solution χ to (4.20) is indeed a fixed point. The initial guess χ0 is chosen randomly. ISOKANN is based on the power method, an iterative method used to obtain the dominant eigenfunction of a linear operator. In ISOKANN, additional scaling and shifting in each iteration ensures that it does not converge to the constant function, but against the membership function χ(x):Ω→[0,1] [17]—similar to targeting the second eigenvalue in the inverse power method. In order to represent the iterates χi, we approximate them by a neural network. The equality assignment in the iteration (4.24) thus becomes a supervised learning problem at data points x with labels given by the corresponding right hand side of (4.24) evaluated on the previous generation of the network. The iterations are then terminated by a stopping criterion, which can be either a high correlation coefficient (χi(xn),χi+1(xn))n or a small empirical loss ‖χi−χi+1‖2, indicating that we found an approximate solution to (4.20).

Assuming infinite data and perfect representation by the neural network, this iteration indeed converges to the solution χ of (4.20) [17] with the smallest rate c1. It is spanned by the constant eigenfunction with eigenvalue 0 and the second eigenfunction with eigenvalue closest to 0. This solution is unique, if the corresponding eigenvalue is simple. In practice however, for a cluster of low-lying eigenvalues, this routine can result close to one of multiple possible membership functions (each representing one of these slower processes). In that case, the procedure can be repeated and the resulting membership functions can be used to construct an invariant subspace of K.

One of ISOKANN’s main benefits is that it avoids discretizing the state space, which is crucial for the application to high-dimensional systems and avoiding the curse of dimensionality [12]. In the ISOKANN algorithm, it is possible to train artificial neural networks by collecting many short-term trajectories of simulation length τ from different starting points in high-dimensional spaces. Thus, ISOKANN can be applied to many independent short-time trajectories or it can even decide where in Ω to enrich simulation data [17]. In our illustrative example, we will apply it to a small number of medium-length trajectories. The resulting χ function will then be used to subsample a reactive path from the data, which leads us to the next section.