Direct evaluation of dynamical large-deviation rate functions using a variational ansatz
Daniel Jacobson, Stephen Whitelam

TL;DR
This paper introduces a variational importance sampling method to efficiently bound and compute large-deviation rate functions for dynamical observables in Markov chains, without prior knowledge of rare behaviors.
Contribution
It presents a simple, physically transparent variational ansatz-based importance sampling technique for directly estimating large-deviation rate functions in continuous-time Markov models.
Findings
Bounds are tighter than Level 2.5 large deviation approximations.
The method can recover exact rate functions with proper ansatz corrections.
Applied successfully to network and lattice models from literature.
Abstract
We describe a simple form of importance sampling designed to bound and compute large-deviation rate functions for time-extensive dynamical observables in continuous-time Markov chains. We start with a model, defined by a set of rates, and a time-extensive dynamical observable. We construct a reference model, a variational ansatz for the behavior of the original model conditioned on atypical values of the observable. Direct simulation of the reference model provides an upper bound on the large-deviation rate function associated with the original model, an estimate of the tightness of the bound, and, if the ansatz is chosen well, the exact rate function. The exact rare behavior of the original model does not need to be known in advance. We use this method to calculate rate functions for currents and counting observables in a set of network- and lattice models taken from the literature.…
| path-extensive order parameter | |
| elapsed time of a trajectory | |
| number of jumps of a trajectory | |
| change of upon making the jump | |
| “original” model rates for the jump | |
| “original” model escape rate | |
| typical value of under the original dynamics | |
| rate function for under the original dynamics | |
| upper bound on | |
| correction to the bound: | |
| reference-model rates for jumps | |
| one parameter of : see (8) | |
| remaining parameters of : see (8) | |
| reference-model escape rate | |
| clock bias: see (9) | |
| typical value of under the reference dynamics | |
| determined from a scan of the | |
| reference-model parameter set |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Direct evaluation of dynamical large-deviation rate functions using a variational ansatz
Daniel Jacobson1
Stephen Whitelam2
1Division of Chemistry and Chemical Engineering, California Institute of Technology, Pasadena, California 91125, USA
2Molecular Foundry, Lawrence Berkeley National Laboratory, 1 Cyclotron Road, Berkeley, CA 94720, USA
Abstract
We describe a simple form of importance sampling designed to bound and compute large-deviation rate functions for time-extensive dynamical observables in continuous-time Markov chains. We start with a model, defined by a set of rates, and a time-extensive dynamical observable. We construct a reference model, a variational ansatz for the behavior of the original model conditioned on atypical values of the observable. Direct simulation of the reference model provides an upper bound on the large-deviation rate function associated with the original model, an estimate of the tightness of the bound, and, if the ansatz is chosen well, the exact rate function. The exact rare behavior of the original model does not need to be known in advance. We use this method to calculate rate functions for currents and counting observables in a set of network- and lattice models taken from the literature. Straightforward ansätze yield bounds that are tighter than bounds obtained from Level 2.5 of large deviations via approximations that involve uniform scalings of rates. We show how to correct these bounds in order to recover the rate functions exactly. Our approach is complementary to more specialized methods, and offers a physically transparent framework for approximating and calculating the likelihood of dynamical large deviations.
I Introduction
Dynamical systems, such as chemical networks Gillespie (2007), biochemical and molecular machines McGrath et al. (2017); Seifert (2012); Brown and Sivak (2017), and models of driven Visco et al. (2006); Chou et al. (2011); Vaikuntanathan et al. (2014); Harris (2015) and glassy Berthier (2014); Garrahan et al. (2007, 2009) systems, exhibit fluctuations, departures from typical behavior Ritort (2008). Fluctuations of time-extensive observables – which can be work, entropy production Seifert (2005); Speck et al. (2012), other currents Lecomte et al. (2010); Harris (2015); Gingrich and Horowitz (2017), or dynamical activity Garrahan et al. (2009); Fodor et al. (2015) – characterize the behavior of these systems, much as fluctuations of size-extensive quantities, such as energy or magnetization, characterize the static behavior of equilibrium systems Chandler (1987); Binney et al. (1992). The probability distributions that control dynamical fluctuations satisfy certain requirements, known as fluctuation relations Gallavotti and Cohen (1995); Maes (1999); Jarzynski (1997); Kurchan (1998); Lebowitz and Spohn (1999); Crooks (1999); Seifert (2005, 2012); Harris and Schütz (2007); Speck et al. (2012), which impose constraints on their symmetries. The precise form of these distributions, however, must be obtained by explicit calculation.
Here we focus on calculating probability distributions for models with a discrete state space, for stochastic dynamical trajectories of elapsed time and time-extensive observables . Time-extensive observables are those that can be built from a sum of values of individual pieces of a trajectory. For large values of these distributions often adopt the large-deviation form Gallavotti and Cohen (1995); Maes (1999); Jarzynski (1997); Kurchan (1998); Lebowitz and Spohn (1999); Crooks (1999); Den Hollander (2008); Touchette (2009)
[TABLE]
in which is the time-intensive value of the observable. is the large-deviation rate function, which quantifies the likelihood of observing particular values of the observable 111More directly it quantifies the rate of decay of a fluctuation , which depends both on the likelihood of and the basic timescale governing the establishment and decay of fluctuations. This latter piece plays a key role for certain models Spiliopoulos (2013); Bouchet et al. (2016); Whitelam (2018c).. The symbol denotes equality of the logarithms of both sides of (1), to leading order in , for all values of . In the physics literature, most numerical methods for calculating aim to first compute its Legendre transform, the scaled cumulant-generating function (SCGF) Giardina et al. (2006); Touchette (2009); Garrahan et al. (2009); Chetrite and Touchette (2015); Jack and Sollich (2015); Ray et al. (2018); Nemoto et al. (2017); Ferré and Touchette (2018). It is possible to recover from the SCGF if the former is convex Chetrite and Touchette (2013). A common way to calculate the SCGF is to use cloning methods Giardina et al. (2006); Lecomte and Tailleur (2007), which duplicate or eliminate trajectories according to their time-integrated weights. Often cloning is supplemented by other importance-sampling methods Jack and Sollich (2015); Ray et al. (2018); Nemoto et al. (2017); Ray et al. (2018), some of which make use of a modified dynamics in order to produce trajectories that more closely resemble the rare dynamics of the original model.
Determining solely by reweighting trajectories of a modified dynamics, without prior knowledge of the rare dynamics of the model of interest, is not widely done (see, however, Refs. Kundu et al. (2011); Klymko et al. (2018); Whitelam (2018a, b)). Standard arguments suggest that determining the probability distribution of within one dynamics by reweighting against a second dynamics requires, in general, the evaluation of random quantities whose variance is exponential in the trajectory length Bucklew et al. (1990); Glynn and Iglehart (1989); Sadowsky and Bucklew (1990); Glasserman et al. (1997) (see Section II.6). Such observations are sometimes taken to mean that trajectory reweighting, without advance knowledge of the rare dynamics to be sampled, is little better than direct sampling using the original model Warren and Allen (2018). Here we argue that more optimism is warranted, and show that the conditions under which meaningful results can be extracted from trajectory reweighting are much less restrictive than has been recognized. Moreover, trajectory reweighting presents few technical complications beyond the requirement to simulate the original model with modified rates, and allows the reconstruction of directly, without first calculating the SCGF.
To compute the large-deviation rate function for a given model and dynamical observable , we use a simple form of importance sampling Glynn and Iglehart (1989); Sadowsky and Bucklew (1990); Bucklew et al. (1990); Bucklew (1990); Asmussen and Glynn (2007); Juneja and Shahabuddin (2006); Bucklew (2013). We begin with a modification of the model dynamics. This modified or reference model is a microscopic ansatz for the original model’s behavior, conditioned on particular values of the observable . The ansatz is characterized by a set of parameters whose values we determine variationally. In practical terms we simply guess a reference dynamics that is able to generate more or less of than the normal dynamics. Let the typical value of produced by original and reference models be and , respectively 222The “typical” value of a time-integrated observable is the value to which the sample mean of an unbiased estimator of that quantity converges at long times, provided that a large-deviation principle exists and that the associated rate function has a unique zero Touchette (2009).. Reweighting trajectories of the reference model produces an upper bound on the rate function associated with the original model at the point , an estimate of the tightness of the bound, and, if the ansatz is chosen well, the exact rate function (to within statistical error). That is, the reference dynamics is a true ansatz, a guess whose accuracy can be determined by subsequent calculation. Repeating the calculation for a set of reference models possessing a set of distinct values allows us to attempt reconstruction of at the set of points . In this respect the procedure is similar to umbrella sampling of equilibrium systems. We show that the conditions under which the exact rate function can be recovered are less restrictive than usually assumed.
Any reference dynamics can be reweighted to produce some upper bound on , simply by making the desired value of typical Varadhan (2010). Good choices of reference dynamics, leading to tight bounds, render the fluctuations of the reweighting factor or likelihood ratio (the ratio of path probability of new and old dynamics) small. We show here that relatively simple reference-model choices produce meaningful (i.e. tight) bounds, for a set of models and observables taken from the literature. We compare the bounds produced by our method with universal bounds on currents Pietzonka et al. (2016); Gingrich et al. (2016) and non-decreasing counting variables Garrahan (2017). Those bounds can be obtained from Level 2.5 of large deviations Maes and Netočnỳ (2008); Bertini et al. (2015), the exact rate function for the empirical flow (jumps between states) and measure (state occupation times), via a uniform rescaling of rates. That approach provides important physical insight into the quantities that constrain fluctuations of time-integrated observables, and also provides numerical bounds on rate functions. Our approach, which uses a microscopic ansatz within the exact path integral for the dynamics, produces tighter bounds, particularly far into the tails of rate functions. The extent to which bounds vary as we change the nature of the ansatz provides physical insight into how much certain types of microscopic processes contribute to the rare dynamics of a model. Microscopic ansätze, even relatively simple ones, are capable of capturing a wide range of behavior, including regimes of anomalous fluctuations in which the usual central-limit theorem breaks down Klymko et al. (2018). Computing a correction to these bounds, by measuring fluctuations of the likelihood ratio, allows the recovery of the exact rate function. Importantly, fluctuations of the likelihood ratio do not need to be zero for to be calculated
The approach described here is variational, in the sense that we vary the parameters of the reference model in order to identify the dynamics that best approximates the rare dynamics of interest. Variational principles underpin the study of large deviations, embodied by the notion that “any large deviation is done in the least unlikely of all the unlikely ways” Den Hollander (2008). Variational ideas are central to different representations of rare processes – see e.g. Section 5 of Ref. Chetrite and Touchette (2015) – and have been widely used in analytic and numerical work Tsobgni Nyawo and Touchette (2016); Jack and Sollich (2013); Ray et al. (2017, 2018); Ferré and Touchette (2018). The aim of this paper is to present a simple, physically-motivated approach to bounding and calculating rate functions using a variational principle enacted by (only) direct simulations, and to present a set of convergence criteria, adapted from Ref. Rohwer et al. (2015), that reveal when bounds can be corrected to produce the exact rate function. We have provided a GitHub script Jacobson and Whitelam (2019) that computes the correction term automatically, this being the most involved step of the calculation. These results extend our previous work Klymko et al. (2018); Whitelam (2018a, b) by a) showing how different forms of physically-motivated reference dynamics can be used to treat different models, and b) by providing a set of criteria that identify when the exact rate function can be recovered. One point we emphasize is that considerable progress can be made using physical intuition and basic knowledge of the properties of a model, without the application of other forms of importance sampling (such as cloning or transition-path sampling). Our method requires only continuous-time Monte Carlo simulation, and so can be applied to any set of circumstances in which that method can be used, including to models with unbounded state spaces Klymko et al. (2018). In addition, it can be used to reconstruct families of large-deviation rate functions from a single set of simulations, using the principle that the dynamics of one model can be reweighted to examine the dynamics of many others Whitelam (2018b). Reference models represent a form of importance sampling similar in spirit but different in detail to the umbrella potentials used in equilibrium sampling Torrie and Valleau (1977); ten Wolde and Frenkel (1998).
In Section II we describe our approach, which we refer to as VARD (for Variational Ansatz for Rare Dynamics). In general terms there are many forms of VARD that have been used in the literature (see above); we use the term to convey the specific notion of doing (only) direct simulations of a family of modified models. In Section III we apply the method to four models taken from the literature. We have chosen models from the literature that display a variety of interesting behavior: two lattice models (the asymmetric simple exclusion process Derrida (1998); Chou et al. (2011) and the Fredrickson-Andersen model Fredrickson and Andersen (1984)) and two network models, and we sample both currents and non-decreasing counting variables to show that the method works the same way for each. In the cases described in Section III.2–Section III.5, relatively simple choices of reference model allow the computation of the exact rate function, and we gain physical insight into the nature of the dynamics that contributes to particular pieces of . We also show, in Section III.6, that bounds that are descriptive in small systems remain so in larger systems. We conclude in Section IV.
II A variational ansatz for rare dynamics
II.1 Continuous-time Markov chains and large deviations
Consider a continuous-time dynamics Binder (1986) on a set of discrete states, defined by the master equation
[TABLE]
Here is the probability that a system resides in (micro)state at time . is the rate for passing from state to state , and is the escape rate from (Table 1 provides a reference for some of the more frequently-used symbols in this paper). The standard algorithm for simulating the dynamics (2) is as follows Gillespie (1977). From state , choose a destination state with probability
[TABLE]
The time increment required to make this move is a random number drawn from the exponential distribution with mean ,
[TABLE]
Given an initial state , the dynamics defined by (3) and (4) generates a trajectory , which consists of a sequence of jumps and associated jump times . In this paper we are concerned with calculating
[TABLE]
the probability distribution, taken over all trajectories of elapsed time , of a time-extensive dynamical observable
[TABLE]
Here is the change of the observable upon moving from to , and is the sum of these quantities over a single trajectory . We define as the time-intensive version of . is the elapsed time of trajectory , and is equal to when , where . The symbol is the probability of a trajectory . Given an initial state, this term is equal to a product of factors (3) and (4) for all jumps of the trajectory, multiplied by the probability of not exiting state between times and .
In (5), the delta functions denote the conditions of fixed and fixed that we wish to impose on the trajectory ensemble. This conditioning defines the microcanonical path ensemble Chetrite and Touchette (2015), of which (5) is the normalization constant.
We focus on models for which, for large values of , the probability distribution (5) adopts the large-deviation form (1). Our aim is to calculate the rate function (sometimes the notation or is used to denote a rate function Touchette (2009); Garrahan (2017)). This function quantifies the rate of decay of atypical values of . For many models has a unique minimum at a point , where . This point defines the typical value of : the distribution concentrates on in the long-time limit, an expression of the law of large numbers Den Hollander (2008); Touchette (2009). In general, a rate function can have more than one point at which it is zero, defining multiple typical values of an observable Dinwoodie and Zabell (1992); Touchette (2009); Klymko et al. (2018). Often, the rate function is quadratic in the neighborhood of its minimum, an expression of the central-limit theorem Den Hollander (2008); Touchette (2009). Exceptions to this norm occur at phase transitions, where the usual central-limit theorem does not hold Ellis (1985). Far from their minima, rate functions display a variety of behaviors Touchette (2009). However, direct simulation of the dynamics (3) and (4) leads to poor sampling of anywhere other than in the neighborhood .
II.2 Quantifying rare events
To remedy the sampling problem for values of the observable far from , we introduce a reference model. We wish to reweight the trajectories of the reference model in order to approximate or calculate for values of potentially far from . The reference model must satisfy certain requirements. It needs to be able to generate all trajectories possible in the original model, but no trajectories not possible in the original model (otherwise the reweighting factor, discussed below, can be infinity or zero). We want the reference model to be able to generate trajectories possessing values of that are rarely generated by the original model, which is relatively easy to arrange, but we also need to be able to recover from reference-model trajectories the probability with which such trajectories would have been generated by the original model. This second requirement is harder to arrange, but not prohibitively so. As we show, if the reference model generates trajectories possessing values of in a manner completely unlike the original model, then we have to do prohibitively heavy sampling of reference-model trajectories in order to calculate . If, however, the reference model generates trajectories possessing values of in a manner similar to the original model, then can be reconstructed from trajectories of the reference model with relatively little effort. Importantly, the method tells us when this is so: we do not need to know in advance the precise nature of the rare dynamics of the original model in order to recover .
For a trajectory of the reference model we want to be able to influence how much of the dynamical observable is produced per jump, , and the number of jumps per unit time, . To control the former we use a reference-model dynamics that selects destination states with probability
[TABLE]
where is an effective rate, and . (The true rates of the reference model are, from (7) and (9), .) Here we use the parameterization
[TABLE]
which is a modification of (3). The factor is chosen in order to guide the jump destination according to the change of the observable weighted by a parameter . In general such a bias is not sufficient to control , and so we also consider an additional arbitrary bias, . For the models considered here a simple and physically-motivated guess for what should be is sufficient to produce a good reference model. We shall return to this point.
To control the number of jumps per unit time, , we draw times between jumps of the reference model from the distribution
[TABLE]
where serves to make the jump time from a given state unusually large or small by the reckoning of the original model. This “clock trick” provides a simple way of sampling jump times without having those times appear explicitly in the reweighting factor Whitelam (2018b). (The parameter can also affect jump times indirectly, if, for example, it is chosen to be proportional to , the escape rate from the destination state.)
Next observe that the path weight in (5) can be written , where is the reweighting factor, the ratio of weights of a trajectory in the original and reference models. is also known as the likelihood ratio or the Radon-Nikodym derivative Chetrite and Touchette (2015); Bucklew (2013). For a jump in time , the reweighting factor is the product of (3) and (4), divided by the product of (7) and (9); for the entire trajectory we have
[TABLE]
where
[TABLE]
is the piece of that is not fixed by the delta-function constraints in (5). (The time-dependent piece of (10) produced by jumps is ; the contribution from the final entry in the path weight, the probability of not jumping between time and , leads to the factor of shown in (10).)
We can then write (5) in the form
[TABLE]
where is the analog of (5) for the reference model, and we have used the shorthand . Replacing the sums over trajectories with an integral over trajectory weights gives
[TABLE]
where is the normalized probability distribution of for trajectories of the reference model that have specified values of and . For large we assume that this distribution will obey a large-deviation principle of its own. If so we can write, using the rules of conditional probability,
[TABLE]
where is the joint rate function for and within the reference model.
We next take the large- limit in (13), replace all probability distributions with their large-deviation forms, and set , the value typical of the reference model (such that ). The result, upon taking logarithms, is
[TABLE]
Finally, we introduce , where is the value of typical of the reference model. This value can be computed from a single reference-model trajectory (for a given set of parameters ). Extracting from the exponential in (15) and evaluating the integral using the saddle-point method yields
[TABLE]
where
[TABLE]
and
[TABLE]
Eqs.(16)–(18) provide an exact representation of the rate function, if the probability distributions (5) and (14) adopt large-deviation forms 333In an abuse of notation we have, for brevity, changed from writing the joint rate function in the form in (15) to in (18) and subsequently.. Fig. 1 illustrates the relationship between Equations (16), (17), and (18), which are central to the sampling scheme discussed in this paper.
II.3 We can compute as the sum of a bound and a correction
The piece , Eq. (17), is an upper bound on the rate function at the point , by Jensen’s inequality applied to (13), and can be obtained from the sample mean of single trajectory of the reference model. It is always possible to calculate this term. If is locally quadratic about , meaning that the usual central-limit theorem holds 444Note that the reference model can be well behaved in this manner even when the original model exhibits anomalous fluctuations such that is not quadratic about its minimum Klymko et al. (2018)., then errors in the computation of go as . The same is true for the computation of . Thus statistical errors in the computation of the bound can be made negligible simply by computing (17) for a sufficiently long trajectory.
The term , Eq. (18), is a correction to the bound, and can be calculated by sampling values of , Eq. (11), of trajectories of the reference model that have . It is possible to calculate this term if the reference model is chosen well, but not if it is chosen badly.
The two terms in (18) describe a competition between the logarithmic weight associated with reference-model trajectories that have atypical values of , and the logarithmic probability of observing such trajectories. When is differentiable, (18) can be written
[TABLE]
where
[TABLE]
Thus we need to measure the value of at the point at which its gradient is unity, which will be a unique point when is convex. The sampling problem is now localized: instead of sampling arbitrarly far from (using the original model), we need only sample a specific piece of an auxiliary rate function, (using the reference model). This fact, summarized in Fig. 1, shows why the present scheme has the potential to be much more efficient than unbiased simulation, if the reference model is chosen well.
This sampling problem is still formidable in general. If the reference model is chosen badly, meaning that its typical trajectories have very different character to trajectories of the original model that have , then the bound will be slack, meaning that , and so will be large. In this case will be broad around its minimum (the variance of will be large) and unreasonably heavy sampling using the reference model will be required to determine the point (because this corresponds to a rare event within the reference model).
However, for good choices of the reference model the opposite situation arises: the bound will be tight, meaning that , and so will be small. In this case the latter can be evaluated with reasonable numerical effort (in the examples that follow we can gather the required statistics of by sub-sampling a single trajectory of the reference model.) If we can reconstruct then we can calculate and we have obtained the exact rate function.
II.4 Computing the correction
Given a model and an observable , we construct a reference model (7) and (9) so as to approximate or calculate . In Section III we provide a set of worked examples of this procedure. In general terms we simply guess which rates of the original model can be modified so as to produce more or less of than usual, and introduce a parameter (, , or ) able to control the rate in question. We do not know in advance which combination of these modified rates best approximates the way in which the original model produces rare values of , but by running short trajectories of the reference model for different values of its parameters we can identify how this is done within the space of possibilities defined by the reference model. From the sample mean of each reference-model trajectory we obtain the values and ; plotting against for a range of values of reference-model parameters, and identifying the lower envelope of these points (conveniently calculated using a union of convex hull constructions), gives the bound associated with that choice of reference model.
This bound is the starting point for our attempt to calculate the correction . The correction term can be interpreted as a measure of how close the typical dynamics of the reference model is to the desired rare dynamics of the original model. If then typical trajectories of the reference model correspond exactly to trajectories of the original model conditioned on the relevant value of the order parameter. If is small then (slightly) atypical versions of reference-model trajectories correspond to the desired rare dynamics; and if is large (or cannot be calculated) then it is the very rare trajectories of the reference model that correspond to the desired rare dynamics of the original model.
In previous versions of our sampling method Klymko et al. (2018); Whitelam (2018a, b) we used a cumulant expansion to evaluate the integral in (15), giving, in place of (18),
[TABLE]
Here is the variance of over typical trajectories of the reference model (those having ), i.e. , and . Eq. (21) can give accurate results for the rate-function correction Klymko et al. (2018); Whitelam (2018a, b), but does not provide a self-consistent way of determining when the correction is accurate. At best we can determine that the first omitted term in the expansion (21) is small, but this does not provide a proof of convergence.
In this paper we present an alternative way to calculate the correction term (18), which builds upon methods designed to compute rate functions (or their SCGF Legendre duals) empirically Duffy and Metcalfe (2005); Rohwer et al. (2015). This process is more involved than the computations required to evaluate (21), but has the advantage of providing a set of clear convergence criteria and statistical error bars. This information reveals when we have converged (18), and so have the exact rate function, and when we do not, thus turning the reference-model guess into a true ansatz. In the remainder of this section we describe the method we use to compute (18). We have provided a GitHub script Jacobson and Whitelam (2019) for calculating the correction automatically.
To obtain the correction we first assume that is differentiable, and so work with (19) instead of (18). We then introduce the two-dimensional scaled cumulant-generating function (SCGF),
[TABLE]
where the angle brackets denote a trajectory ensemble average within the reference model. The SCGF (22) is related to through the double Legendre transform
[TABLE]
where and are conjugate to and respectively. As a result, if we want to calculate at a single point, we can calculate the right-hand side of (23). Doing so is much more efficient than attempting to reconstruct directly, for the reasons given in Section II.6.
The formula for the correction (19) depends on , which we can get from (23):
[TABLE]
We can simplify this relationship by combining the implicit definition of in the Legendre transform with (20) to get
[TABLE]
Inserting (25) into (24) yields
[TABLE]
The quantity is the typical value of the observable in the reference model, and can be obtained from a single reference-model trajectory. The three other unknown quantities on the right-hand side of (26) that are needed for the correction are , , and .
To calculate these quantities we have to compute the value of the two-dimensional SCGF (22) at various points . We can do this using a simple extension of existing techniques developed to sample points on 1D SCGFs Duffy and Metcalfe (2005); Rohwer et al. (2015). Following Ref. Rohwer et al. (2015) we generate a single long trajectory of the reference model and sub-sample it into approximately independent blocks of length . Within each block we record the sample mean of and , which we write as and . can be calculated from this data set using the estimator
[TABLE]
Eq. (27) is guaranteed to converge to the exact value of the SCGF, , in the limit and . The convergence properties of this estimator for finite and will be addressed in the next section, II.5. For now we assume that we can obtain convergence as needed. Finally, note that by changing the values of and in (27) a single data set consisting of values of and , generated from a single long trajectory, can be used to recover many points on .
We now turn to the calculation of the three unknowns in (26), , and . First we use the relation
[TABLE]
to find . We do so by calculating the SCGF, , along a 1D slice through its 2D domain using the estimator (27). This slice is defined by fixing and varying . We then use the method of finite differences to get at each point , and find the point that fulfills (28). Once we know the value of we can calculate , again using (27). Finally we can compute using the analog of (28) for ,
[TABLE]
Inserting , , and into (26) yields . The correction to the bound, , then follows from (19).
II.5 Convergence of the SCGF Estimator
When used with only a finite number of blocks of finite length , the estimator , defined in (27), can exhibit statistical and systematic errors. In this section, we analyze these errors to understand when the estimate of calculated through the SCGF (22) will be accurate. As in the previous subsection, this analysis closely follows Ref. Rohwer et al. (2015).
To quantify the statistical error associated with our calculated value of we repeat the calculation procedure using independent trajectories. Each of these trajectories is split up into blocks of length , and used to calculate . Our final estimate for the correction is then
[TABLE]
where is the value of the correction calculated from the trajectory. The statistical error of (30) can be estimated using
[TABLE]
This statistical error is only meaningful if we know that the systematic error in the calculation is comparatively small. There are two sources of systematic error that arise when using (27): correlation error and linearization error. Correlation error results from the fact that the derivation of the estimator assumes that the trajectory blocks are long enough to be approximately independent. This will be true if where is the correlation time of the reference model. If, however, the sub-sampled blocks of a trajectory are correlated, meaning that , then we will not obtain an accurate estimate of even as .
One way to resolve this correlation issue is to increase the block time , but this also increases the magnitude of the other systematic source of error, linearization error. Linearization error is a manifestation of the fact that trajectories that contribute most to the average in the SCGF (22) for have atypical values of and . Using larger creates more self-averaging within a single trajectory and, as a result, makes sampling these atypical values more difficult. Linearization error also increases for fixed with increasing and , because larger values of these parameters weight rare trajectories’ contributions to the SCGF more heavily. Ref. Rohwer et al. (2015) contains a detailed discussion of these problems. The authors of that work describe a method for checking to see if linearization error will substantially influence the estimate of the SCGF at a point for some fixed . We use this check, modified to account for the fact that our SCGF is two dimensional, as follows.
First, we calculate the SCGF (27) along another 1D slice through its 2D domain. This slice is defined by fixing and increasing , starting from 555The choice of moving in the positive direction is arbitrary. Moving in the negative direction will yield an equivalent convergence criterion (similarly we can move in either the positive or negative directions while holding ).. By using finite difference along this slice we can calculate how varies with . To compute the statistical error, we generate independent trajectories (usually the same trajectories we used to get (31)), split each one into blocks of length , and use each data set to calculate along the slice. Our final estimate for the value of at each is
[TABLE]
where is calculated from the trajectory.
We will not end up using the values themselves. Instead, we focus on the associated values of the statistical error, calculated in the same way as the error of (27),
[TABLE]
A plot of as a function of will peak at some point and then decline. Again is fixed during this entire calculation. As discussed in Ref. Rohwer et al. (2015), is an estimate for the maximum value at which the calculation of the SCGF will converge without being overwhelmed by linearization error. is a decreasing function of , because linearization error grows as is increased.
Next we note that corresponds to a point on the rate function , via the Legendre transform (23). If we can converge the value of then we can, with the same data set, also converge the value of at any point for which
[TABLE]
This statement is intuitive in the context of probabilities and rate functions. However, it also applies when working with the SCGF, provided that is convex Chetrite and Touchette (2013). Thus the value of a point estimated using (27) will be unaffected by linearization error if the associated point on the rate function, , satisfies
[TABLE]
where is an empirical constant (we set ). The terms in (35) are averages over independent data sets of the corresponding Legendre transform (23). This formula allows the convergence criteria derived in Rohwer et al. (2015) for estimating one-dimensional SCGFs and rate functions to be applied in an arbitrary number of dimensions.
We now discuss the procedure we use to converge the correction (19) while accounting for correlation and linearization errors. For fixed block time we first increase and until the error bars for , (33), are smaller than a desired value. We repeat this process for larger and larger until becomes independent of . This is equivalent to increasing until it becomes larger than the reference-model correlation time . If this happens while the convergence criterion (35) holds at then the calculation has succeeded, and we have computed (to within statistical error) the exact value of the correction .
If, however, the convergence criterion (35) fails to hold in the regime in which (27) still changes rapidly with , then the bound is too far from the exact answer for us to effectively sample using direct simulation of the reference model. In this case the chosen ansatz is probably missing a crucial piece of the physics of the rare trajectories of the original model. On several occasions our failure to converge based on an initial guess led us to construct a modified ansatz from which we could converge the exact correction. In the cases described in this paper we were able to reconstruct using physically transparent ansätze containing only a modest number of parameters.
A quick way to estimate the scale of the correction is to compute the first term in (21), which requires computing only the variance of within the reference model. By the central limit theorem we will have close enough to the origin, where is the variance of within the reference model. If is small (which is the case when the ansatz is very good) then the correction . Thus if looks small when plotted in the form of Fig. 1 it might be worth attempting to compute the correction (18). If not, a better reference model ansatz is probably required.
II.6 Efficiency of the correction calculation
Standard arguments are often used to suggest that computing the exact value of is not possible without knowledge of the exact rare dynamics, or the use of methods such as cloning or transition-path sampling. This claim is based on the fact that computing requires computation of the integral in (15), and assumes that because the integrand grows exponentially with , the number of trajectories required to converge this expression as is prohibitively large. While this latter statement is correct, it does not speak directly to the task at hand. To compute the integral we do not need to take . Instead, we need where is smallest time at which the large deviation principle applies. Taking makes sampling more difficult and is unnecessary. It is possible for to be large, but if the reference-model dynamics are close enough to the rare dynamics of the original model then the variance of the will be small and it will be possible to converge this integral term without using an unreasonable number of trajectories.
Moreover, computing the correction is numerically cheaper than inspection of the integral alone might suggest. If we switch to the SCGF representation, (22), we can instead work with trajectories of length , where is the correlation time of the reference model (in practice these trajectories are constructed by sub-sampling a single longer trajectory). Generally, is much smaller than , the time required for the large-deviation principle to apply, and so sampling the moderately rare events required to reconstruct the auxiliary rate function near its minimum is cheaper in the SCGF representation. This property is ideal for the present method because we have reduced the problem of sampling arbitrarily far from its minimum to one of sampling (potentially) close to its minimum. Working with the SCGF also removes the constraint present in (18). Finally, we note that we are calculating the SCGF that is Legendre dual to the correction term (18), and not the SCGF that is Legendre dual to the original rate function . Thus our method can in principle reproduce rate functions that are not convex ( is not required to be convex).
II.7 Summary – A variational ansatz for rare dynamics (VARD)
Given a continuous-time dynamics with rates and a path-extensive dynamical observable , we wish to determine , the large-deviation rate function for for trajectories of the model of fixed time (assuming that exists). We use a reference dynamics to calculate as the sum of an upper bound and a correction . The bound can always be calculated, and the correction can be calculated if the criteria described in Section II.5 hold. If so then we succeed in calculating ; if not, then the method returns an upper bound . 2. 2.
Determine a reference-model dynamics (7) and (9) able to produce more or less of than the original model. In this paper we set the arbitrary bias using physical intuition. 3. 3.
Run a set of reference-model trajectories for different values of the reference-model parameters (, , ). For each trajectory, evaluate and , using Eqs. (6) and (11), and then use Eq. (17) to plot the point ; see Fig. 1(a). The lower envelope of these points over values of the reference-model parameter set is the tightest upper bound on associated with the ansatz chosen in Step 1. 4. 4.
Attempt to calculate the correction at points on the bound by running a few () trajectories for each reference model. With the data from each trajectory, calculate , Eq. (26), using Eqs. (27), (28) and (29). Insert the resulting values into Eq. (19). Calculate the averaged correction and associated statistical error using Eqs. (30) and (31). 5. 5.
To verify convergence, repeat the calculation of Step 3 for increasing values of the block time , until the averaged estimate for the correction Eq. (30) no longer changes with , and the convergence criterion (35), with and , holds 666The quantity on the right-side of (35) is determined from the Legendre transform (23) of . The quantity is calculated by finding the maximum of , Eq. (33), while starting at the point on the SCGF and scanning outwards by increasing .. The accompanying GitHub script Jacobson and Whitelam (2019) performs steps 4 and 5 automatically.
III VARD applied to four examples
III.1 Summary of the section
We now apply the method to four models taken from the literature. In each case, a simple and physically-motivated ansatz for the modified dynamics allows computation of the exact rate function . We focus on models whose state space is small enough that the exact rate function can be computed by standard methods – Legendre transform of the SCGF calculated using the largest eigenvalue of the tilted rate matrix Touchette (2009) – in order to validate our method (at the end of the section we also use VARD to compute descriptive rate-function bounds for two systems too large to solve by matrix diagonalization). In figures, the exact rate function is shown as a black dashed line. Absent the exact answer we would apply the method in exactly the same way. For a given reference model the fluctuations of the quantity reveal whether the bound is tight, and whether we can compute exactly.
III.2 Entropy production in a 4-state model
We start by sampling entropy production in the 4-state model of Ref. Gingrich et al. (2016), shown in the inset of Fig. 2(a). This is a fully-connected network model with transition rates
[TABLE]
These rates do not satisfy detailed balance, and so the model produces nonzero entropy on average. To quantify the fluctuations of entropy production for trajectories of fixed time we construct a reference model as follows. The dynamical observable is , where the sum is taken over all jumps of a trajectory, and , where . Our basic reference-model parameterization is defined by the parameters and appearing in (7) and (9), together with any additional set of biases suggested by the physics of the problem under study. Here we reason that none is necessary: the bias is always required, in order to sample jump times, and the bias is sufficient to influence the entropy produced per jump, (a fact that is easy to guess, and to confirm with some short simulations). We therefore impose no additional bias, and set .
We ran trajectories for a fixed number of events, roughly equivalent to a time of in the unbiased model. We simulate in the constant-event ensemble for convenience, because there all simulations, regardless of the value of , take approximately the same amount of processor time. The equations of Section II then allow us to compute the rate function for the original model in the constant-time ensemble (see Ref. Budini et al. (2014) for more on the relationship between the constant-event and constant-time ensembles).
The bounds resulting from a scan of , for three values of , are shown as colored lines in Fig. 2(a). In figures we use the compact notation to indicate the bound swept out by scanning the set of parameters . We also show the exact rate function (black dashed line), obtained by matrix diagonalization. Different combinations of and produce the best (lowest) bound at different values of , so indicating the “least unlikely way” of realizing each value of within the manifold of dynamics accessible to the reference model. The bound produced by the scan provides the best bound close to the typical value , but not far from it, indicating that very rare values of are produced by the original model using a combination of rare jump types () and rare jump times ().
The bound swept out by scanning both and is shown in blue in Fig. 2(b). We used equally spaced values on the interval , and equally spaced values on . This bound lies close to the exact answer, even far into the tails of the rate function. For comparison we show the weakened linear response (WLR) universal current bound of Ref. Gingrich et al. (2016) (gray dashed line); the dotted box in the center of the figure indicates the scale of Fig. 2 of that paper. The WLR bound is
[TABLE]
where is a current, is its typical value (in the original model), and is the typical value of the rate of entropy production. and must be determined by running a single trajectory of the original model, and (41) then provides a bound on the probability of observing an atypical value of . The bound is tightest in the case .
The WLR bound can be derived from Level 2.5 of large deviations Maes and Netočnỳ (2008); Bertini et al. (2015) using a mean-field ansatz that assumes all currents scale with time in the same way (for both forward and time-reversed versions of the model). By contrast, the -bound results from a microscopic ansatz, (7) and (9), inserted into the exact result (5) for the dynamical partition sum, and does not assume that all currents scale in the same way. Inspection of the tails of the bounds reveals that the microscopic ansatz captures the rare behavior of the model more accurately than does the homogeneous ansatz. Thus we learn that the rare behavior of even this very simple model does not simply resemble a speeded-up or slowed-down version of its typical behavior. The bound (41) is a universal statement about the physics that constrain fluctuations, and is not designed to be a means of accurate numerical sampling. Nonetheless, it is meaningful and instructive to compare the bounds produced by different types of ansätze.
For each of the reference models that lie on the bound we calculate the correction (18) using the procedure described in Section II.4. For all points we obtain convergence of the correction. The result, , is shown as a green line in the inset of Fig. 2(b), and matches the exact answer (black), obtained by matrix diagonalization, as it should. We used blocks, each of length of , where is the time per event for each reference model. The average correction (30) and statistical error are obtained from independent data sets. Error bars on the rate function are calculated by combining the error from the correction and the error from the bound according to
[TABLE]
The error in the bound is estimated by running additional trajectories at each point and calculating the standard deviation of . The standard deviation of , calculated in the same way, yields error bars for the horizontal axis.
From this example it is clear that VARD is numerically much more efficient than direct simulation (of the original model): accurate calculation of the rate function at values of order 100 indicates accurate calculation of probabilities of order , where is the elapsed time of the trajectory. We do not know in advance which values of reference-model parameters constitute good choices, for particular values of , but it is a simple matter to scan parameters and pick the smallest value of given . Additional sampling then allows us to determine if we can calculate the correction (18), and therefore the exact rate function. We were able to do this here with little additional numerical effort. In this example, the state space of the model is small enough that its dynamics can be solved by matrix diagonalization, and so we possess the exact answer in advance. We made this choice because we wish to benchmark the method. However, our procedure would be identical if we did not know the exact answer ahead of time: define the reference model, pick the best bound, and attempt to calculate the correction term. The results of the latter calculation tell us if we have the exact answer, or, if not, roughly how close we are to obtaining it. If we are not close at all then we need a better reference-model guess. Inspection of the bounds produced by different reference models is also physically instructive, indicating the extent to which certain dynamical mechanisms contribute to the rate function at particular values of the order parameter.
III.3 Current in the ASEP
We next sample current in the asymmetric simple exclusion process (ASEP), a model of hard particles that hop between lattice sites Derrida (1998); Chou et al. (2011) (an interesting alternative would be to consider the symmetric simple exclusion process, which has fewer parameters but also shows complex scaling behavior Derrida et al. (2002)). We consider the version of the model studied in Fig. 3 of Gingrich et al. (2016), shown in Fig. 3, with open boundaries and a lattice of sites. The rate constants are , placing the model in the high-density region of the ASEP phase diagram Kolomeisky et al. (1998); Blythe et al. (2000). The dynamical observable is , where the sum is taken over all jumps of a trajectory, and if the jump sees a particle move to the right (upper sign) or left (lower sign).
In Fig. 3(a) we show the bound swept out by our default reference-model parameterization (dark blue), which provides a meaningful numerical bound on the exact rate function (black) even far into the tails. We ran trajectories for events, roughly equivalent to a time in the unbiased model. We scanned equally spaced values on the interval , and equally spaced values on . Also shown is the WLR universal current bound Pietzonka et al. (2016); Gingrich et al. (2016) (gray). The WLR bound describes accurately the moderately rare behavior of the model, but not the very rare behavior, which is quantified by the tails of the rate function. Comparison of bounds indicates, as in the previous subsection, that very rare currents are generated by trajectories that do not resemble speeded-up or slowed-down versions of the forward- or backward-running typical dynamics: the configurations visited in the tails of the rate function are different to those visited near the center.
While the ()-bound is already meaningful, it is possible to produce tighter numerical bounds by guessing additional ways in which the very rare high- or low-current behavior might be achieved. Inspection of the way in which couples to the rate constants (here any rate involving a hop to the right is multiplied by and any rate involving a hop to the left is multiplied by ) reveals that varying moves the reference model around the ASEP phase diagram Kolomeisky et al. (1998); Blythe et al. (2000). The original model sits in the high-density region of phase space, but the reference model need not. Inspection of the phase diagram indicates that the end rates , separate from the bulk rates and , play a key role in determining the ASEP’s typical behavior: if particles are fed in relatively quickly or slowly then we reside in the high- or low-density region of phase space, respectively, and if input- and output rates are balanced then we can access the maximum-current region. Returning to (8) we introduce a set of parameters that couple to the end rates, such that the rate in the original model becomes in the reference model ( being a parameter), and similarly for the three other end rates. We also include a contribution to that biases trajectories toward or away from creating particle-particle contacts (i.e. particles on adjacent sites), reasoning that controlling such contacts can help control the escape rate of visited configurations, so helping cause or prevent traffic jams. A simple way to do this is to add to a bias , where is a parameter and is the change in the number of particle-particle contacts when moving from to .
With the new bias determined we can generate an improved bound for the ASEP. We split the calculation into two parts and focus separately on the piece of the rate function for values of the observable greater than the mean, , and less than the mean, . Since the dynamics in these two different regimes are qualitatively different, generating an effective set of reference models for each requires scanning over different regions of the ansatz parameter space. For we scanned and . For we scanned and , making parameters in total. Combining these calculations produces the 6D bound shown in light blue in Fig. 3(b). This bound is tighter than the default -bound. The 6-parameter scan can be carried out with reasonable numerical effort: for a given set of parameters we need only a short single trajectory to compute the averages required for the bound, and there is no requirement for communication between the calculations. On the left side we scanned equally spaced values on the interval ; equally spaced values on the interval , and more on the interval ; values so that takes on equally spaced values on the interval ; and equally spaced values on the interval . On the right side we scanned equally spaced values on the interval ; equally spaced values on the interval ; values and 21 values so that and each take on values equally spaced on the interval ; and equally spaced values on the interval . The lower envelope of the values of (17) constitutes the improved bound.
Correcting the 6D bound by calculating the correction at points along the bound gives the green line shown in Fig. 3(a), which agrees with the exact rate function even far into the tails. For this calculation we used blocks of length , where is the time per event in each reference model. Errors are computed as in Section III.2.
III.4 Activity in a 3-state model
We consider the three-state model of Fig. 3 of Ref. Garrahan (2017), shown in Fig. 4. The rate constants are and . Our chosen dynamical observable, , is the number of jumps from states per unit time. The parameter in our default reference-model parameterization (8) has no role to play here: controls the probability of the process, but once in state 1 there is nowhere to go but state 0. Thus cannot influence the number of counted events per jump, , and so we set .
At this point we need to apply our physical intuition in order to create a reference-model ansatz able to control . Inspection of the network reveals that controlling the jump destination from state 0 is sufficient for this purpose: if we jump then we must subsequently jump , whereas if we jump we will return to 0 without making the counted jump. In Eq. (8) we therefore set (a parameter) such that the reference-model rate for the process is . We set all other . Scanning and (our usual jump-time bias) produces the bound shown in green in Fig. 4. Bounds were calculated using equally spaced values on the interval and values on the interval , and equally spaced values on the interval . All trajectories were run for events, roughly equivalent to a time of in the unbiased model. Error bars are computed as in Section III.2.
The -bound is effectively exact, as we can deduce by measuring the fluctuations of (which here are nonexistent). In this case the model is simple enough that each reference model used to compute the bound enacts the exact rare dynamics of the original model, conditioned on a particular value of . As a result, the correction term vanishes, and the bound is exact. (This exactness is reasonable on account of the fact that the system has relatively few ways of realizing values of and , but it is not obvious in advance that the chosen parameterization would require no additional correction.) Recall that the correction term can be interpreted as a measure of how close the typical dynamics of the reference model is to the desired rare dynamics of the original model; here, typical trajectories of the reference model correspond exactly to trajectories of the original model conditioned on the relevant value of the order parameter.
The chosen observable is a non-decreasing counting variable, not a current, and so the universal bound of Refs. Pietzonka et al. (2016); Gingrich et al. (2016) does not apply. One that does apply is the Conway-Maxwell-Poisson (CMP) bound of Ref. Garrahan (2017),
[TABLE]
where is the dynamical observable, is its typical value (in the original model), and is the typical dynamical activity (the total number of events per unit time) of the original model (note that there is an missing in front of the logarithm in Eq. (17) of Garrahan (2017)).
The CMP bound is shown in gray in Fig. 4. Similar to the universal current bound, the CMP bound is derived from Level 2.5 of large deviations using an ansatz that assumes the rare behavior of the system to be a speeded-up or slowed-down version of its typical behavior. It therefore has similar properties to our -bound, shown in blue in Fig. 4 (the bound is constructed from the pieces of the -bound with ). Comparison of this bound and the -bound shows the extent to which the very rare behavior of this model is dominated by trajectories comprising rare jump times and an atypical propensity to jump left from state 0. Analogous to its current counterpart, the CMP bound is a general statement about the physics controlling the fluctuations of counting variables, and is not intended to be a means of numerical sampling. Nonetheless, comparison of its properties with bounds obtained by the microscopic ansatz used here is instructive, and addresses the point raised in Ref. Garrahan (2017): “It would be interesting to find alternative yet simple variational ansatzes that can capture [the] strong fluctuation behavior [of the 3-state model]”.
III.5 Activity in the FA model
We consider the one-dimensional Fredrickson-Andersen (FA) model with periodic boundary conditions Fredrickson and Andersen (1984). This is a lattice model with simple thermodynamics and with dynamical rules that give rise to slow relaxation and complex spatiotemporal behavior Garrahan and Chandler (2002). On each site of a lattice (here of length ) lives a spin, which can be up or down. Up-spins (resp. down-spins) can flip down (resp. up) with rate (resp. ) if at least one of their neighboring spins is up; if not, then they cannot flip (the rate here should not be confused with the symbol for current in previous sections). In Fig. 5(a), top, we show an example FA model configuration, with periodic boundary conditions; the spins in red cannot flip. Our chosen dynamical observable, , is the number of jumps per unit time, where for all jumps . The large-deviation properties of have been studied in detail, and give rise, in certain limits, to singular behavior in the SCGF that is Legendre dual to Garrahan et al. (2007, 2009).
In Fig. 5(a) we show the CMP universal activity bound Garrahan (2017) on and the bound produced by our reference-model -scan. These are of similar character, because they assume that the rare behavior of the model is a speeded-up or slowed-down version of its typical behavior. All trajectories were run for events, roughly equivalent to a time of in the unbiased model. We used equally spaced values on the interval , and more on the interval . To produce a tighter bound we need to assume that the configurations visited by rare trajectories are different to those visited by typical ones (the CMP bound assumes that they are the same). The parameter in our default () reference-model parameterization (8) again has no role to play, because biasing all jumps equally is equivalent to biasing none. A simple alternative is to choose the bias so that the reference model can generate a larger or smaller number of up-spins than is typical in the original model. We choose the parameters so that the parameter in the original model becomes in the reference model, with being a parameter. A -scan of the reference model produces the bound shown in light blue in Fig. 5(a). This bound provides a reasonable approximation of the exact answer over the whole range of , indicating that much of the physics of rare activity fluctuations of the FA model can be accounted for by considering the typical behavior of versions of the model with different values of the parameter . Here we chose so that takes on equally spaced values on the interval .
It is possible to tighten this bound by reasoning that there must exist spatial correlations between up-spins if we condition trajectories upon activity per unit time . For instance, given an up-spin fraction of exactly , the escape rate (the sum of rates leading out of a given state, a quantity relevant to the number of jumps per unit time) is maximized by having pairs of up-spins separated by pairs of down-spins, and minimized by having up-spins and down-spins alternate. We induce these types of spatial correlations using the same -bias used for the ASEP in Section III.3, favoring more or fewer contacts between up spins. Scanning and produces a bound slightly tighter than (not shown). We used equally spaced values on the interval . From this bound we compute the correction , and the sum of the bound and correction matches the exact answer: see Fig. 5(b). We computed the correction by splitting the calculation into two pieces, one on either side of the mean value . For we used blocks of length , where is the average time per event in each reference model. For we used blocks of length . The different block lengths generated by the convergence procedure (see Section II.5) for and signal that the correlations present in the dynamics are qualitatively different in each of these regimes. Understanding the nature of these correlations is of physical interest Garrahan and Chandler (2002); Garrahan et al. (2009). Errors are calculated as in Section III.2.
III.6 Toward large-scale calculations
In this paper we have demonstrated proof-of-principle of VARD using network systems or lattice models whose state space is small enough that their rate functions can be obtained by matrix diagonalization, so providing a benchmark for the method. VARD can also be applied to systems too large for matrix diagonalization to be feasible, in order to produce bounds or (if the ansatz is good enough and convergence of the correction is obtained) exact rate functions. An active line of research is to study large versions of certain lattice models in order to determine how their large-deviation properties change with system size Garrahan et al. (2009); Nemoto et al. (2017); Bañuls and Garrahan (2019). In these regimes, specialized techniques are necessary. For instance, in Ref. Nemoto et al. (2017), a cloning procedure combined with feedback control was used to calculate large-deviation functions for an FA model of sites. In Ref. Bañuls and Garrahan (2019), a matrix product state (MPS) calculation was used to compute large-deviation functions for an FA model of sizes of order sites (these results show some differences with the results of Ref. Nemoto et al. (2017), indicating that this is a technically challenging regime). Note that the FA model of Ref. Bañuls and Garrahan (2019) has open boundaries and slightly different facilitation rules than used in the previous section: spins facilitated by two spins flip at twice the rate of spins facilitated by one spin.
In Fig. 6 we compare the MPS calculation of Ref. Bañuls and Garrahan (2019) with the three-parameter VARD bound used in Fig. 5 for two lattice sizes that are considered large by current standards (the parameter ). In both cases the VARD bound is descriptive, capturing the main features and the trends with of the MPS result. The bound is less tight for the larger system size, suggesting that more terms in the ansatz are required as the system becomes larger. However, the bound quality, even using an ansatz containing only 3 parameters, remains reasonable. As for the ASEP, the natural next step is to include additional parameters in the ansatz in order to tighten the bound and calculate the correction (compare dark blue and light blue lines in Fig. 3(b)). A natural way to develop improved bounds is to use Monte Carlo learning procedures in order to optimize reference models containing a potentially large number of parameters Whitelam et al. (2019).
IV Conclusions
We have described how direct simulation of a variational ansatz for rare dynamics (VARD) can be used to compute bounds for large-deviation rate functions in continuous-time Markov chains 777The method works for Markov chains in discrete time, upon replacing the distributions (4) and (9) by ; see earlier versions of the method Klymko et al. (2018); Whitelam (2018a, b).. This approach requires only direct simulation of versions of the original model with modified rates, and so is technically simple and easy to implement. It is also physically instructive, in the sense that the quality of the bounds produced by different physical ansätze reveal the extent to which different types of dynamical processes contribute to the rare behavior of the model of interest.
If the ansatz is chosen well then bounds can be corrected to produce the exact rate function, arbitrarily far into its tails; in the literature it is often assumed or stated that such precision is not accessible via direct reweighting of trajectories, and requires the use of specialized numerical techniques such as cloning or path sampling. For the models studied in Figs. 2–5, two network models and two lattice models taken from the literature, it is possible to calculate the exact rate function using only simple and approximate guesses about the nature of the rare dynamics. Although this rare behavior can be complex, we are rarely working in the dark: the model itself can exhibit different behavior in different parameter regions, and often its rare behavior at one point in parameter space is similar to its typical behavior at another point in parameter space. For example, we have studied the ASEP in its high-density region, where (typically) the lattice is crowded and particles move slowly. The ansatz we used to calculate its current rate function is equivalent to guessing that the rare, high-current behavior in the high-density region is similar to the typical behavior in the maximum-current region, where particles move quickly and possess spatial anticorrelations. Similarly, the FA model is complex, but the likelihood of its rare behavior at one value of the parameter can be well approximated by looking at the typical behavior of models at different values of . We have also shown that bounds that are descriptive in small systems remain so in systems too large to solve by matrix diagonalization; we will discuss this regime further in forthcoming work.
VARD is similar to classical umbrella sampling Torrie and Valleau (1977); ten Wolde and Frenkel (1998) in the sense that the rate function of the reference model can be regarded as a nonequilibrium umbrella potential, concentrating sampling at a desired point: see Fig. 1. It is different, however, in that VARD does not require overlapping sampling windows – reference models are used independently – and we compute an absolute rate-function value , as opposed to a free-energy difference. This latter distinction results from the fact that the path weight appearing in (5) is known exactly, and at the sampling point we know that the rate function of the reference model vanishes; by contrast, in the equilibrium case we know the probability of visiting a certain state only up to a normalization constant, and we do not know the absolute free energy of the reference model (unless it is particularly simple Frenkel and Ladd (1984)).
VARD provides insight into the approaches used to produce universal rate-function bounds from Level 2.5 of large deviations, via homogeneous ansätze Pietzonka et al. (2016); Gingrich et al. (2016); Garrahan (2017), by showing how relaxing such assumptions leads to the tightening of bounds in different sectors of parameter space. It is also complementary to numerical large-deviation methods that use path-sampling, cloning, or adaptive methods to calculate the SCGF 888One advantage of bypassing the SCGF and calculating the rate function directly, as we do here, is the ability to reconstruct rate functions that are not strictly convex Touchette (2009); Klymko et al. (2018); Nickelsen and Touchette (2018). that is Legendre dual to Giardina et al. (2006); Touchette (2009); Garrahan et al. (2009); Chetrite and Touchette (2015); Jack and Sollich (2015); Ray et al. (2018); Nemoto et al. (2017); Ferré and Touchette (2018). Sometimes path sampling or cloning are used in isolation, and sometimes they are combined with a modified dynamics. VARD lies at the other extreme of the methods spectrum in the sense that it uses only a modified dynamics. The bounds that result provide a natural starting point for those specialized methods, because the set of reference models that live on the bounds already resemble the rare dynamics of interest. Indeed, direct sampling of those reference models is, in the cases described in Figs. 2–5, sufficient to recover the statistics (the constituent configurations and jump times) required to compute exactly.
There are several possible variants of the present method. The -scan accesses roughly the same information as the universal bounds of Refs. Pietzonka et al. (2016); Gingrich et al. (2016); Garrahan (2017), and one possible numerical simplification would be to eliminate the -scan in favor of the universal bounds (41) or (43). We have also simply scanned parameters in order to identify the best bounds associated with a given ansatz, but as the complexity of an ansatz grows it is be natural to replace the scan with an evolutionary Monte Carlo procedure Whitelam et al. (2019). For instance, consider a set of reference models having parameters, and construct an initial -bound. Take models at various points on this bound, and define a window for the observable. For each model, perturb the parameters, generate a short trajectory, and calculate Eq. (17). If this value is less than the current bound (and lies within the designated window) accept the new reference model; otherwise, retain the original.
V Acknowledgments
We thank Hugo Touchette, Tom Ouldridge, and Juan Garrahan for discussions and comments on the manuscript, and thank Juan Garrahan, Todd Gingrich, and Mari Carmen Bañuls for providing data from Refs. Garrahan (2017), Gingrich and Horowitz (2017), and Bañuls and Garrahan (2019), respectively. This work was performed as part of a user project at the Molecular Foundry, Lawrence Berkeley National Laboratory, supported by the Office of Science, Office of Basic Energy Sciences, of the U.S. Department of Energy under Contract No. DE-AC02–05CH11231. DJ acknowledges support from the Department of Energy Computational Science Graduate Fellowship.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Gillespie (2007) D. T. Gillespie, Annu. Rev. Phys. Chem. 58 , 35 (2007).
- 2Mc Grath et al. (2017) T. Mc Grath, N. S. Jones, P. R. ten Wolde, and T. E. Ouldridge, Physical Review Letters 118 , 028101 (2017).
- 3Seifert (2012) U. Seifert, Reports on progress in Physics 75 , 126001 (2012).
- 4Brown and Sivak (2017) A. I. Brown and D. A. Sivak, Proceedings of the National Academy of Sciences 114 , 11057 (2017).
- 5Visco et al. (2006) P. Visco, A. Puglisi, A. Barrat, E. Trizac, and F. van Wijland, Journal of statistical Physics 125 , 533 (2006).
- 6Chou et al. (2011) T. Chou, K. Mallick, and R. Zia, Reports on progress in Physics 74 , 116601 (2011).
- 7Vaikuntanathan et al. (2014) S. Vaikuntanathan, T. R. Gingrich, and P. L. Geissler, Physical Review E 89 , 062108 (2014).
- 8Harris (2015) R. J. Harris, Journal of Statistical Mechanics: Theory and Experiment 2015 , P 07021 (2015).
