- The paper establishes conditional-path Monte Carlo as a mathematically rigorous rare-event sampler whose joint path-graph weights satisfy marginalization and strict detailed balance.
- The method uses nonlocal cluster updates and a complete SIS edge-vertex construction, including E3, which supports arbitrary infection-rate asymmetries and one-directional edges.
- The paper introduces dynamic programming that enforces patient-zero and outbreak-size constraints exactly with zero rejection, while identifying autocorrelation optimization and broader model extensions as open problems.
This manuscript provides the rigorous mathematical foundations and algorithmic details for conditional-path Monte Carlo (CPMC), a rare-event sampling method for stochastic dynamics on networks, serving as the technical companion to the framework introduction by Sun, Moody, and Barthel (Sun et al., 17 Aug 2026). The central object of study is the sampling of full-system trajectories subject to macroscopic constraints—such as a single patient zero at t=0 combined with a large outbreak size at t=T in susceptible-infectious-susceptible (SIS) epidemics—under which forward-time stochastic simulation algorithms (SSA), splitting methods, and transition path sampling (TPS) suffer catastrophic rejection rates, path degeneracy, genealogical correlations, or critical slowing down.
Motivation and relation to existing methods
The authors situate CPMC against four established families of techniques. The weighted SSA biases local propensities and corrects via likelihood ratios, but heuristic biasing choices inflate estimator variance, weight degeneracy destroys effective sample size, and the method remains blind to future topological bottlenecks such as low-rate bridging edges. Splitting methods (forward flux sampling, RESTART) and the weighted ensemble rely on order parameters that mask hidden barriers—for instance, ten infected nodes clustered in a dense core differ drastically from ten scattered peripherally in their outbreak potential—and suffer from critical slowing down and founder effects under cloning. TPS operates directly on trajectories but its local shooting and shifting moves cannot substantially mutate the topological core of infection trees without violating physical rules. CPMC departs from all of these by performing non-local, Swendsen-Wang-like cluster updates directly on complete trajectories, generating a Markov chain whose every element strictly satisfies the imposed constraint.
Path probabilities and the cluster-update construction
The formalism starts from the constrained path probability density P(ω)=C(ω)x∈ω∏ωx(sx)e−∫0TdtΛt, where C encodes trajectory constraints and Λt is the total escape rate. The update decomposes as ω→g→ω′ through an intermediate graph g: first, graph vertices are assigned to every physical event of ω and inserted as background vertices via an inhomogeneous Poisson point process; second, free spacetime clusters are identified and their states randomly reassigned.
The key theoretical contribution is the joint path-graph weight J(ω,g) and two local sum rules: the transition sum rule, requiring each physical event rate to equal the summed rates of compatible graph vertices, and the uniformization sum rule, requiring state-independent uniformization rates to exactly fill the gap between local escape rates and background-vertex insertion. These guarantee the marginalization P(ω)=∑g∋ω′J(ω,g), proved in an appendix, and imply strict detailed balance for the induced path transition density, since t=T0 reduces to a manifestly symmetric expression in t=T1. Graph construction follows from the Poisson-process structure of the background density, while cluster identification uses union-find with path compression and union-by-rank, yielding near-linear cost in the number of graph vertices.
Vertex sets for SIS models
The systematic design of vertex sets constitutes the most substantive technical content. For single-node vertices, a one-parameter solution family exists, indexed by t=T2; minimizing the uniformization rate gives t=T3 (only the t=T4 vertex), but the authors report that intermediate values such as t=T5 are empirically preferable due to autocorrelations—a trade-off between per-update cost and mixing that they acknowledge is resolved only by numerical experience rather than theory.
For edge vertices, three sets are developed. Set E1 admits a closed-form solution space but carries two defects: it requires infection-rate asymmetry bounded by a factor of two (t=T6), and it produces upstream lock avalanches—a single downstream fixing vertex locks the patient zero with probability decaying exponentially in the infection-tree length, immobilizing the epidemic trunk. Set E2 introduces the swap vertex t=T7, whose inputs are temporally decoupled from its outputs, breaking upstream lock propagation, together with vertices that prevent downstream avalanches; E2 works for arbitrary rate ratios but degenerates on extremely asymmetric edges, losing downstream-flexibility vertices. Set E3 adds blocker vertices t=T8 and t=T9, restoring full flexibility for any asymmetry, including one-directional edges. An appendix proves that the nine enumerated edge vertices exhaust all possibilities compatible with an infection event and at least one free variable.
Exact constraint enforcement via dynamic programming
The treatment of boundary conditions is a distinctive strength. Conditional locks are simple but break detailed balance at the boundary and inflate autocorrelations. Cluster-level rejection sampling preserves detailed balance and succeeds when the required excess infections P(ω)=C(ω)x∈ω∏ωx(sx)e−∫0TdtΛt0 are small relative to the mean cluster contribution, by Hoeffding-type concentration—but stalls otherwise. The fully general solution is a Knapsack/subset-sum-style dynamic programming table P(ω)=C(ω)x∈ω∏ωx(sx)e−∫0TdtΛt1 counting valid assignments of P(ω)=C(ω)x∈ω∏ωx(sx)e−∫0TdtΛt2 free clusters against both boundary constraints simultaneously, built in P(ω)=C(ω)x∈ω∏ωx(sx)e−∫0TdtΛt3 time and followed by a backward pass that samples each valid configuration with equal probability and zero rejections. This yields exact, rejection-free satisfaction of joint patient-zero and outbreak-threshold conditions—an operationally severe requirement that typically destroys acceptance rates in SSA-based schemes. An initialization procedure bootstraps the chain by incrementally raising the outbreak threshold.
Cost scaling, parallelization, and validation
Per-update complexity scales as P(ω)=C(ω)x∈ω∏ωx(sx)e−∫0TdtΛt4, i.e., linear in total recovery and infection rate integrals, plus the dynamic programming overhead. Autocorrelation times, by contrast, depend delicately on network structure and vertex-rate choices; the paper is candid that predicting them remains open. Parallelization options include trivially independent chains (limited by 20–40% burn-in fractions), temporal decomposition of graph generation, concurrent lock-free union-find, and parallel tempering over model and algorithmic parameters.
Validation compares CPMC against exact master-equation solutions P(ω)=C(ω)x∈ω∏ωx(sx)e−∫0TdtΛt5 on two four-node networks—a homogeneous ring (reduced to six macrostates by translation symmetry, with P(ω)=C(ω)x∈ω∏ωx(sx)e−∫0TdtΛt6, P(ω)=C(ω)x∈ω∏ωx(sx)e−∫0TdtΛt7) and a hub–leaf diamond (nine macrostates, P(ω)=C(ω)x∈ω∏ωx(sx)e−∫0TdtΛt8, P(ω)=C(ω)x∈ω∏ωx(sx)e−∫0TdtΛt9)—showing excellent agreement for unconstrained dynamics. Larger-scale validation under actual outbreak constraints is deferred to the companion paper (Sun et al., 17 Aug 2026), so this document alone does not demonstrate performance gains on realistically sized networks.
Limitations and open questions
The paper concedes several points plainly. Ergodicity of specific vertex-rate choices is not proven in general; the C0 single-node solution may fail ergodicity depending on the constraint implementation. Optimal vertex rates (C1, C2, C3 in E2/E3) that minimize autocorrelation times remain an open, model-dependent optimization problem. The conditional-lock scheme strictly violates detailed balance as a boundary effect. Extensions to SIR/SEIR models with absorbing states, time-dependent rates, and temporal networks require reworking the background-vertex insertion process. Finally, the combination with parallel tempering and adaptive tuning of vertex rates is described only prospectively, with supporting work noted as in preparation.
Conclusion
The paper establishes CPMC on firm mathematical footing: joint path-graph weights with provable marginalization and detailed balance, a complete taxonomy of SIS-compatible edge vertices with explicit rate solutions, and an exact dynamic-programming mechanism for enforcing macroscopic trajectory constraints without rejection. Its principal open problems concern autocorrelation optimization and generalization beyond SIS-type reversible dynamics.