Manuscript Offprint
arXiv:2610.25297Walk in Envelopes: Efficient Branching Walk-on-Spheres via Certified Solution Bounds
YUNFENG LIAO, ZHENHAO QIU, XINYANG CHEN, and XIUCHENG LI, Harbin Institute of Technology (Shenzhen), China

Fig. 1. Walk in Envelopes (WiE) transforms branching WoS using certified lower and upper solution bounds. By reparameterizing the solution within a spatially varying envelope, WiE redistributes the original branching mechanism into splitting, return-0, and return-1 events, enabling early termination and pruning of redundant branches while preserving the target solution. The resulting computation trees are substantially smaller than those of conventional branching WoS.
Branching Walk-on-Spheres (WoS) solves semilinear PDEs without meshes, but its computational cost grows sharply near critical branching rates. We introduce Walk in Envelopes (WiE), which uses certified solution bounds to transform branching diffusion rather than prune existing trees. The transformation suppresses reproduction, introduces controlled termination, and preserves unbiasedness with an envelope-dependent variance bound. We realize the transformed process through exact rejection sampling using standard screened WoS kernels, supported by certified spline envelopes and adaptive sampling and further prove that suitable harmonic envelopes yield bounded expected reproduction counts even as conventional BBM diverges.
Additional Key Words and Phrases: Walk-on-Spheres, Branching Brownian Motion, Semilinear PDEs, Certified Solution Bounds, Monte Carlo Methods
1 Introduction
Grid-free Monte Carlo methods have become an attractive alternative to mesh-based PDE solvers, enabling pointwise solution queries on complex domains without constructing a global discretization [Sawhney and Crane 2020]. While Walk-on-Spheres (WoS) efficiently resolves linear elliptic equations through boundary-hitting processes, extending this paradigm to semilinear PDEs requires handling nonlinear reactions. Branching Brownian motion (BBM) provides a natural probabilistic representation by replacing nonlinear terms with particle reproduction events [Agarwal and Claisse 2020]. Combined with WoS, this yields a grid-free solver for semilinear equations. However, eliminating Brownian time discretization does not eliminate branching complexity: each offspring initiates additional walks, and the expected particle population diverges as the branching intensity approaches a critical spectral threshold. This makes otherwise valid stochastic representations increasingly expensive precisely in strongly nonlinear regimes.
A natural strategy is to exploit approximate solution information to terminate branches whose remaining contributions are sufficiently small. Yet such pruning requires reliable bounds on unresolved subtrees, whose evaluation can itself be expensive. Approximate bounds may also introduce bias, while tighter estimates do not necessarily offset their computation costs. More fundamentally, pruning acts on a branching process that has already been generated, rather than preventing unnecessary reproduction. This motivates a different question: can certified solution information be used to construct an equivalent stochastic process that branches less frequently, without sacrificing correctness?
We introduce Walk in Envelopes (WiE), a branching WoS framework that transforms the stochastic representation using certified lower and upper solution envelopes. Given sub- and supersolutions , we normalize the unknown solution as . This induces a generalized Doob transform whose diffusion, reproduction, and termination mechanisms are determined by the envelope functions. For binary branching, the reproduction rate becomes , while envelope residuals introduce additional success and failure termination events. The resulting estimator remains unbiased and has variance bounded by . Moreover, we characterize its expected reproduction count through an elliptic equation, showing that a suitable harmonic envelope can keep this count uniformly bounded even as conventional BBM approaches
Authors' Contact Information: Yunfeng Liao; Zhenhao Qiu; Xinyang Chen; Xiucheng Li, Harbin Institute of Technology (Shenzhen), Shenzhen, Guangdong, China.
Liao and Li
its critical divergence threshold. Although branching-process transformations have established mathematical foundations [Engländer 2007], WiE develops them into a certified computational framework for semilinear PDE solving.
The transformed process introduces spatially varying diffusion, which would ordinarily require simulating drifted trajectories. We avoid this difficulty by deriving an exact envelope-aware transition using the original screened WoS exit and Green kernels. Rejection sampling with certified local majorants realizes the transformed distribution without evaluating weighted kernel integrals. To obtain useful envelopes efficiently, we develop monotone refinement of cubic B-spline sub- and supersolutions, using Bernstein constraints to certify PDE inequalities throughout the domain by comparison principle. Adaptive screening, spatially localized rejection bounds, and lazy evaluation further reduce sampling overhead, while a spectral-workload criterion avoids unnecessary preprocessing in inexpensive regimes.
We evaluate WiE on four complex two-dimensional domains across branching intensities and accuracy requirements. Near criticality, WiE achieves improvements in time–variance efficiency and reductions in sampling time at matched accuracy, excluding one-time envelope construction. Its benefits increase with branching intensity, while a workload-aware fallback preserves the efficiency of conventional BBM in easier regimes. We additionally demonstrate extensions to projected walks on manifolds and semilinear parabolic equations.
Our main contributions are:
-
A certified envelope transformation of branching diffusion, with unbiased estimation, variance guarantees, and a spectral characterization of near-critical branching complexity.
-
An exact envelope-aware WoS sampler using existing screened kernels, without explicitly simulating transformed diffusion.
-
A practical solver combining certified spline-envelope refinement, efficient rejection sampling, and workload-aware fallback, with substantial near-critical acceleration.
Monte Carlo Methods for Nonlinear Equations. Monte Carlo solvers avoid global spatial discretization, but nested nonlinear expectations and recursive branching can sharply increase variance and work. Numerical branching methods handle polynomial nonlinear PDEs, subject to representation-dependent convergence and integrability [Agarwal and Claisse 2020; Henry-Labordère et al. 2019]. In graphics, [Tong and Hachisuka 2025] accelerate nonlinear recursive light transport through nonlinear path filtering that reuses intermediate evaluations and neural radiance caching that learns them. For nonlinear radiative boundary conditions, [Bao et al. 2026] combine Picard-style iteration with Monte Carlo PDE solvers. These reduce nonlinear integral-equation costs through reuse, approximation, or iteration. Instead, we retain a branching estimator but change its probability law: certified envelopes suppress reproduction, bound its range, and preserve its expectation under stated assumptions. We reduce sample-generation work rather than only accelerate or approximate an existing recursion.
Walk-on-Spheres and Grid-Free PDE Solvers. WoS originated for Dirichlet problems [Muller 1956] and entered geometric computing as a grid-free elliptic PDE solver for point queries [Sawhney and Crane 2020]. Extensions handle spatially varying coefficients via null scattering [Sawhney et al. 2022], mixed Neumann–Dirichlet conditions via walk on stars [Sawhney et al. 2023], and boundary-integral transport via walk on boundary [Sugimoto et al. 2023]. Boundary-value caching reuses estimates across queries [Miller et al. 2023], differential WoS computes parameter derivatives [Miller et al. 2024], and projected walks solve surface PDEs [Sugimoto et al. 2024a]. These advances mainly address linear PDE representations, boundary handling, or stochastic-estimate reuse. For semilinear PDEs, sphere jumps eliminate Brownian time discretization but not branching-tree growth. We target this remaining bottleneck through certified semilinear bounds and a transformed process with weighted exit and interior events sampled using the original screened WoS kernels.
3 Envelope-Transformed Branching Walks
3.1 Preliminary: Branching Walk on Spheres
Branching Brownian motion (BBM) provides a stochastic representation of semilinear elliptic PDEs by interpreting nonlinear reactions as particle branching events. Consider with Dirichlet condition , where is the offspring generating function and . Each particle follows Brownian motion until either reaching the boundary or branching into independent offspring with probability at an exponential rate . The solution is recovered as , where is the terminal leaves.
For probabilistic semilinear elliptic PDEs, Dirichlet values naturally lie in . For example, may specify the success probability of a particle absorbed at , in which case gives the probability that every terminal particle succeeds. This interpretation follows directly from the BBM representation , and ensures .
Branching WoS accelerates this process by replacing Brownian trajectories with sphere transitions. At each particle position , let be the largest inscribed ball, and denote by and
its screened exit and Green kernels, respectively. Conditioning on whether the particle exits the ball before branching yields the integral equation induced by total expectation:
Specifically, the exit probability is in , where denotes the modified Bessel function. With probability , the particle jumps uniformly to and continues walking; otherwise, an interior branching location is sampled with density , and offspring are added to the active particle queue at . The procedure repeats until all particles reach the domain boundary or terminate with zero offspring, producing one Monte Carlo sample from the product of terminal values. Thus, although WoS eliminates explicit trajectory discretization, each sphere transition still requires a branching decision, while every offspring introduces additional walks that must be maintained and evaluated. Canonical results show that BWoS crashes when the particle splitting rate surpasses the boundary-absorbing speed, i.e., where is the least non-negative eigenvalue of in .
3.2 From Solution Bounds to Branching Processes
Although WoS eliminates explicit Brownian trajectory discretization, its computational cost still grows with the branching tree. The expected cumulative particle population becomes unbounded as approaches the principal Dirichlet eigenvalue associated with , motivating the early termination of subtrees whose remaining contributions can be bounded. Let denote the first Brownian exit time from , and the harmonic extension of . Several bounds follow directly from the BBM representation and its associated linear equations as Theorem 3.1.
THEOREM 3.1 (PROBABILISTIC SOLUTION BOUNDS). For , and , the solution of with satisfies , where , and , , .
PROOF. Since implies , the maximum principle gives . For , restrict the BBM expectation to trajectories reaching the boundary before their first branching event; all omitted products are nonnegative, yielding . For , let . Then . The Feynman–Kac formula gives , hence . Finally, Dynkin’s formula gives . Since , we obtain .
These bounds enable early termination of unresolved branching subtrees. Suppose the completed leaves contribute a product , while the active frontier contains particles at . By conditional independence, their remaining expected contribution is . With bounds immediately yield

Fig. 2. Pruning speedup relative to vanilla WoS–BBM (dashed 1×) across branching rates , for constant, , , and binary-hemisphere boundary data (mean 0.5).
Thus, whenever , the remaining tree can be pruned and replaced by , introducing at most absolute bias in the final expectation, since the conditional expected contribution lies within .
Despite their validity, these bounds incur evaluation overhead and exhibit strongly case-dependent efficiency (Fig. 2). ignores branched trajectories, deteriorates with large boundary deficits, while relies on the worst-case bound . Consequently, generally performs best on smooth boundaries, whereas discontinuous binary data defeats most pruning with binary boundary condition. Combining all bounds often increases overhead without proportional savings. This motivates certified envelopes that directly reduce branching rather than repeatedly pruning existing trees.
3.3 Generalized Envelope Branching
The preceding pruning strategy uses solution bounds to terminate subtrees after they have been generated, but does not alter the underlying branching dynamics. We instead construct an equivalent branching process whose reproduction and termination rates are determined directly by certified solution envelopes. This can be understood as a generalized Doob's h-transform, where the envelope width acts as the transforming function.
For , let and be certified sub- and supersolutions satisfying , , and . Define the domain envelop width , the normalized solution , and the nonnegative residuals and . By substituting and expanding the offspring generating function, we obtain
Liao and Li
The key is that the transformation changes not only the diffusion operator but also the branching mechanism into four parts – drifted diffusion , reduced branching , returning one and zero (being killed) in the theorem below.
THEOREM 3.2 (GENERALIZED ENVELOPE BRANCHING). With certified envelopes satisfying the conditions above and well-defined and integrable transformed branching process, satisfies
where . Consequently, the equivalent process branches into offspring at rate , terminates successfully at rate , and terminates unsuccessfully at rate . If is its terminal-product estimator, then is unbiased and
PROOF. The product rule gives , where . Since and , we have . Substituting these identities into yields . The term vanishes, giving Eq. (3). Its nonnegative rates define the stated branching process, with boundary payoff . The branching representation gives , hence . Finally, implies , which yields Eq. (3).
Beyond preserving the original PDE solution, it also changes the expected branching complexity. For conventional BBM, the expected number of reproduction events satisfies , with homogeneous Dirichlet boundary conditions. The transformed process instead obeys the following equation.
LEMMA 3.3 (EXPECTED BRANCHING COMPLEXITY). Let denote the expected number of reproduction events in the transformed process, assumed finite. Then satisfies and
PROOF. Writing and , the first-event decomposition gives
Multiplying by and using , together with and , yields the stated equation.
For binary branching, this reduces to . Thus, the transformation changes both the source of branching work and the elliptic operator governing its propagation. In particular, narrowing the envelope suppresses the quadratic source term, while the upper envelope controls the effective reproduction potential. These effects explain how WiE can reduce branching complexity even when conventional BBM approaches its critical regime. Also, there exists a harmonic envelope such that the cost of WiE keeps finite as the splitting rate approaches the divergence limit of vanilla WoS in theory as Theorem 3.4 reveals.
THEOREM 3.4 (BOUNDED NEAR-CRITICAL BRANCHING WITH HARMONIC ENVELOPES). Let be a bounded, connected domain, and let be the principal Dirichlet eigenvalue of , where . Suppose satisfies , , and . Let be its harmonic extension, in and on . For the binary branching equation , choose the certified envelopes and . Then the expected reproduction count of the transformed process satisfies
In contrast, the expected reproduction count of conventional binary BBM diverges as : for every fixed , .
PROOF. The strong maximum principle gives in . Since and , the proposed envelopes are certified, with width in the interior. By Lemma 3.3, solves
We first show that has a spectral gap uniform up to . At , its quadratic form is
If its lowest eigenvalue were zero, equality would force to be a multiple of the positive first Dirichlet eigenfunction and simultaneously , contradicting in . Hence . Writing gives , so the min-max principle yields
Uniform invertibility and standard Dirichlet elliptic estimates therefore imply , with independent of . Since on , , . On the other hand, positivity of in the interior, the Hopf boundary lemma at points where , and compactness of imply , for some . Thus throughout , proving the bound. For conventional BBM, with zero Dirichlet boundary data. The isolated principal-eigenvalue resolvent expansion gives
where . This proves the stated divergence.
3.4 Walk in Envelopes: Exact Walk-on-Spheres Transition
The generalized Doob transform introduces a spatially varying drift , seemingly requiring a new sampler for the transformed diffusion, which instead be sampled exactly by reweighting the original WoS transitions, without explicitly simulating drifted trajectories.
THEOREM 3.5 (EXACT ENVELOPE-AWARE WOS TRANSITION). For any certified envelopes satisfying and , the normalized solution satisfies
(12)
Moreover, Eq. (12) admits an exact stochastic transition using only the original screened WoS kernels and pointwise envelope evaluations.
PROOF. Expanding using gives . Applying the screened Green representation on establishes Eq. (12). Set on the right-hand side of Eq. (12) and have
Since all terms are nonnegative, . Applying the screened Green representation to yields
Dividing by therefore defines a probability distribution over two mutually exclusive outcomes: exiting the sphere with density , or triggering an interior event with density . For an interior event at , dividing the non-negative terms in Eq. (13) by gives
These probabilities correspond to successful termination, unsuccessful termination, and j offspring, respectively, with . Multiplying the interior density by each event probability recovers the corresponding integrand in Eq. (12); unsuccessful termination contributes zero. Hence the stochastic transition reproduces the original integral equation exactly.
The remaining challenge is sampling this distribution without evaluating its weighted integrals. Although Eq. (14) provides the normalizing constant , directly sampling a density proportional to or would require a new sampler for each spatially varying envelope. Instead, we use rejection sampling to recover these densities from the original WoS proposals.
Specifically, the target exit and interior transition measures are proportional to and , respectively. We therefore introduce two certified constants and to dominate these weighted measures by distributions that are already straightforward to sample. Let denote the original sphere-exit probability. The corresponding proposal masses are for exits and for interior events, giving the computable normalization .
We first choose an exit proposal with probability , otherwise an interior proposal. Its position is drawn from or , respectively, and accepted with probability
Reference (unwrapped)
Reference (surface)
WiE (surface)

Initial condition
Reference
WiE
Fig. 3. Toy validation of two WiE extensions on the overall correctness and extensibility of WiE. Top: projected WiE on an embedded cylinder for with . Bottom: heat-ball WiE for on the unit square at , with the same . The six panels show, from left to right: cylinder reference in coordinates, cylinder reference on the embedded surface, projected WiE prediction, heat initial condition, heat reference at , and heat-ball WiE prediction. We use 4096 full-field query points, with 72 samples per point on the cylinder and 128 samples per point for the heat equation. The measured time-variance speedups are about and , respectively.
or . For example, the joint probability measure of proposing and accepting an exit at is .
Similarly, the accepted interior measure is . Their total mass is by Eq. (14). Conditioning on acceptance therefore divides both measures by , recovering exactly the target transition probabilities. Thus, the acceptance rate is and rejected candidates can simply be resampled. Notice that neither the target normalization nor any weighted Green integral needs to be evaluated during sampling.
3.5 Extensions to Other Semilinear PDEs
Figure 3 compares projected WiE on a cylinder (top) and heat-ball WiE on the unit square (bottom) with independent finite-difference reference solutions.
3.5.1 Projected Walk in Envelopes on Manifolds. For an embedded manifold , the envelope transformation extends by replacing with the Laplace–Beltrami operator , preserving the branching and termination coefficients. Following PWoS [Sugimoto et al. 2024b], we approximate intrinsic transitions using ambient Euclidean WoS kernels and the closest-point projection . Specifically, Eq. (12) becomes
Liao and Li
(16)
where the projected normalization is
The rejection sampler from the preceding section applies unchanged, evaluating all envelope-dependent weights at instead of y. Since projected ambient kernels only approximate intrinsic Brownian transitions, need not equal , introducing the same type of geometric approximation as PWoS without requiring intrinsic surface Green kernels.
3.5.2 Semilinear Parabolic PDEs. For , replace by in the envelope residuals, requiring , , and valid initial/lateral bounds. The coefficients and event rules retain their previous forms, but the interior weight becomes . Replace each spatial ball by a backward heat ball [Deaconu et al. 2017], with elapsed time and displacement , with . Its exit pair is sampled as , , .
Interior locations follow the killed occupation density ds dz = ds, rather than the exit distribution: with . Let . To sample , propose and ; accept with probability . With and , replace the preceding section's proposal masses by and (thus ). At , accept exits with and interiors with ; all offspring and termination rules remain unchanged. At the initial boundary, return .
4 Efficient Envelope Construction and Sampling
4.1 Monotone Envelope Refinement for Full Field
The transformation admits many certified envelopes with different computational costs. We construct tight, reusable bounds for full-field evaluation through four steps: a comparison principle certifies bounds from PDE residuals and boundary conditions; query-weighted envelope width approximates the intractable time-variance objective; conservative affine constraints monotonically refine an initially feasible pair; and cubic B-splines with cellwise Bernstein constraints reduce continuous certification to finite-dimensional linear programs. Certification is preserved throughout, while preprocessing is amortized across repeated queries.
LEMMA 4.1 (COMPARISON PRINCIPLE FOR CERTIFIED ENVELOPES). For a bounded Lipschitz domain , assume and . Suppose take values in and satisfy and on . Then throughout .
PROOF. We first prove . Set . Since , subtracting the two PDE residuals gives . To rewrite the nonlinear difference as a term proportional to , apply the fundamental theorem of calculus pointwise:
Define the bounded coefficient . Because , every argument of lies in , and thus
It follows that , on . We now justify the maximum-principle step rather than assuming it. Let . Since on the boundary and , we have . Multiplying the last differential inequality by and integrating by parts gives
Consequently,
The variational characterization of the first Dirichlet eigenvalue of states that, for any , . Applying this inequality to yields . Since , we obtain , hence .
To prove , repeat the same argument with . Indeed, , on the boundary, and . The same upper bound on the resulting zero-order coefficient and the same energy argument show . Thus in .
Work-aware envelope optimization. Let denote the evaluation region and let and be the expected runtime and estimator variance induced by a certified envelope pair . For full-field evaluation, the ideal envelopes minimize the total cost of reaching a prescribed accuracy . Here describes the distribution of evaluation queries. The objective reflects the time-variance cost of independent Monte Carlo evaluation, but is difficult to optimize directly because depends on the entire transformed branching process.
Fortunately, the envelope width provides a tractable surrogate. From Eq. (12), the transformed reproduction coefficients are . In particular, for binary branching, the probability mass associated with reproduction is proportional to . Moreover, Eq. (4) bounds the estimator variance by . These observations motivate minimizing the domain-averaged envelope width which replaces , yielding
(22)

Fig. 4. Starting from valid bounds , nonnegative corrections and monotonically tighten the lower and upper envelopes while preserving feasibility. Bernstein coefficients provide finite-dimensional sufficient conditions for continuous certification.
This objective seeks a single pair of reusable envelopes rather than independently optimizing bounds at each evaluation point. While width reduction does not guarantee a proportional runtime improvement, it simultaneously suppresses higher-order reproduction terms and tightens the estimator's variance bound.
Monotone certified refinement. The optimization in Eq. (22) is nonlinear because the envelope constraints involve the reaction term P. We therefore begin with a feasible pair and construct a sequence of increasingly tight certified envelopes. At iteration t, we seek nonnegative corrections such that
The corresponding optimization maximizes the improvement
(24)
together with the original range and boundary constraints. Feasibility at every iteration implies
Thus, refinement never sacrifices a previously certified bound, and every accepted update improves the surrogate objective (Figure 4).
For a general offspring generating function , the nonlinear certification constraints can be converted into affine sufficient conditions by exploiting the convexity of on . Substituting the monotone updates yields
(26)
where the Taylor remainders satisfy
(27)
with . Imposing a trust region further gives . Therefore, the original nonlinear certification constraints are guaranteed by
(28)
Since , , and are fixed during each iteration, these conditions are affine in and . Together with the linear width-reduction objective and monotonicity constraints, they yield a linear program after finite-dimensional representation and continuous certification. Thus, the refinement extends to general offspring distributions while preserving the validity and nesting of the certified envelopes.
Finite-dimensional certified optimization. We represent the envelopes using cubic B-splines, and , with their coefficients as optimization variables. Although Eq. (28) is affine in the corrections, it imposes infinitely many spatial constraints. The following theorem provides a finite-dimensional certification. On each spline cell, we express the affine residuals and ordering constraints in the Bernstein basis, enforcing nonnegativity of their coefficients; range and polynomial boundary constraints are handled analogously. These finitely many sufficient linear inequalities certify the PDE constraints throughout the domain while preserving monotone envelope refinement.
For nonrectangular domains, we may restrict these certificates to a decomposition of each cell intersected with , using tensor-product or triangular Bernstein bases on the resulting pieces. This changes the sufficient finite constraints, while retaining the same globally spline representation and continuous PDE inequalities on . Therefore, the resulting refinement is a linear program with continuous, rather than pointwise, certification. The Bernstein constraints yields a conservative feasible set. The envelopes are constructed once and reused across full-field evaluations, amortizing their preprocessing cost over all queries.
4.2 Efficient Envelope-Aware Sampling
Although the envelope transformation reduces branching complexity, sampling its spatially varying transition weights introduces additional overhead. We employ three complementary optimizations to reduce this cost while preserving the exact transition law.
Adaptive screening. The screened-kernel representation allows an adjustable parameter . Using Eq. (3), the interior weight , yielding
This decomposition shows that changing affects only the single-offspring continuation weight, leaving termination and genuine reproduction weights unchanged. Their nonnegativity is preserved by choosing , where is a certified lower bound over the sphere. A smaller increases the sphere-exit probability, potentially reducing expensive interior proposals without altering the represented solution.
Spatially adaptive majorants. Instead of using global rejection bounds, we independently bound the exit and interior weights by and . Their proposal masses are and , where and . The corresponding acceptance probabilities are and . We obtain tight local bounds from the spline cells intersecting each sphere and accelerate their aggregation using range-minimum/maximum queries (RMQ), reducing rejection without changing the accepted distribution.
Liao and Li
Break-even

Near-critical

Fig. 5. Empirical validation of the pilot-free spectral-workload fallback on four benchmark scenes. Top: the break-even workload at compared with the proposed boundary (dark dashed curve), where . At in Engine, WiE has higher equal-accuracy sampling cost than BBM, so no finite query count can amortize its preprocessing under the measured cost model. Bottom: unconnected points show the normalized scale , where , across five target accuracies. The horizontal dashed line marks . Their near-critical concentration around one motivates the empirical rule and . Vertical dotted lines mark ; the shaded region in the top panel indicates . Costs combine recorded preprocessing with equal-RMSE sampling estimates.
Lazy evaluation. Even with tighter proposals, computing the exact envelope weights for every candidate is unnecessary. We first compare the rejection threshold against inexpensive local lower and upper bounds: candidates are accepted or rejected immediately when these bounds determine the outcome, and full spline evaluation is performed only otherwise. Green-kernel sampling is deferred until an interior proposal is selected, while reusable kernel quantities are cached. Thus, most inexpensive decisions avoid the cost of exact weight evaluation, and the savings accumulate across repeated transitions in the branching tree.
Spectral-workload fallback. Envelope construction incurs a one-time cost that may outweigh its sampling benefits. Motivated by the near-critical BBM work scaling , where , we define a spectral-workload indicator for Q queries at target RMSE :
We activate WiE only when and , with and calibrated empirically across four scenes (Figure 5).
Engine
Flask
Reference
WiE
Reference
Clover
WiE
Lock
Reference
WiE
Reference
WiE
0.0
0.5
1.0
u
Fig. 6. Two-dimensional fields in four domains. Reference and WiE use 1,000 and 600 samples per query, respectively. The reference is itself a Monte Carlo estimate; these are not equal-time results. Geometry and queries share the same rigid rotation, and all fields use the same color range. Nearest-query display preserves the original values.
This pilot-free criterion avoids unnecessary preprocessing, while imperfect fallback decisions affect efficiency but not correctness.
5 Experiments
Our proposed WiE algorithm is evaluated in four non-trivial 2D scenes against canonical branching WoS. The results are illustrated in Figure 6 and the its speedup effects are evaluated with different branching rates. In Table 1, it is clear that WiE naturally appears insignificant with low splitting rate and thus the extra processing cost overwhelms its variance advantage per sample; while its merit become explicit as grows, it strongly suppresses the splitting rate in simulation by being enveloped, which is consistent across all scenarios. Besides, WiE also achieves the same accuracy using much less time than vanilla branching WoS in high splitting scenes as in Table 2.
Envelope construction ablation. We compare three certified constructions with the same bicubic basis: sequential LP optimizes the upper and then lower envelope separately, joint LP minimizes their width together, and monotone refinement further tightens the joint solution by certified nonlinear iterations. The archived three-update configuration in Figure 7 shows that joint optimization improves width over sequential fitting, while refinement additionally reduces it by 5.5% on Engine and 7.2% on Flask without increasing spline resolution. Gains on Lock and Clover are negligible, and tighter envelopes do not uniformly imply lower sampling work. Thus, iteration can improve a fixed representation, but is not a universal substitute for increasing its resolution.
Spline resolution. Table 3(a) examines spatial resolution and geometric certification. The earlier implementation certifies the entire bounding square, including regions outside the PDE domain and
Table 1. Efficiency across branching intensities. Single-sample variances are averaged over query points; the BBM and WiE work columns report (lower is better), where is the CPU time measured at 256 samples per query. Speedup is the ratio of these work measures. All results average three seeds; envelope preprocessing is excluded.
| Scene | Single-sample variance | time×variance | ||||
|---|---|---|---|---|---|---|
| BBM | WiE | BBM | WiE | Speedup | ||
| Engine | 0.10 | 0.0066 | 0.0042 | 1.48 | 1.25 | |
| 0.85 | 0.0262 | 0.0322 | 28.60 | 12.06 | ||
| 0.90 | 0.0271 | 0.0332 | 41.26 | 12.89 | ||
| 0.95 | 0.0283 | 0.0342 | 71.29 | 13.00 | ||
| 0.98 | 0.0287 | 0.0348 | 113.36 | 13.40 | ||
| Lock | 0.10 | 0.0101 | 0.0068 | 3.02 | 2.82 | |
| 0.85 | 0.0362 | 0.0337 | 71.68 | 16.67 | ||
| 0.90 | 0.0373 | 0.0350 | 102.66 | 18.02 | ||
| 0.95 | 0.0383 | 0.0358 | 187.15 | 19.12 | ||
| 0.98 | 0.0389 | 0.0360 | 294.56 | 18.96 | ||
| Clover | 0.10 | 0.0158 | 0.0065 | 5.35 | 2.72 | |
| 0.85 | 0.0257 | 0.0205 | 51.36 | 8.87 | ||
| 0.90 | 0.0260 | 0.0211 | 73.38 | 9.58 | ||
| 0.95 | 0.0262 | 0.0218 | 118.56 | 9.27 | ||
| 0.98 | 0.0264 | 0.0222 | 156.26 | 9.66 | ||
| Flask | 0.10 | 0.0157 | 0.0106 | 2.78 | 2.47 | |
| 0.85 | 0.0379 | 0.0429 | 27.80 | 12.39 | ||
| 0.90 | 0.0391 | 0.0447 | 37.54 | 12.93 | ||
| 0.95 | 0.0402 | 0.0405 | 63.66 | 12.15 | ||
| 0.98 | 0.0409 | 0.0431 | 87.08 | 12.58 | ||

Fig. 7. Construction ablation at : (a) mean certified envelope width and (b) sampling time–variance cost relative to refined WiE. All methods use the same spline basis. The unavailable Flask sequential certificate is marked N/A.
inside holes. We instead clip certificate cells to the original polygon: intact or axis-aligned pieces use tensor-product Bernstein coefficients, and oblique pieces use triangular Bernstein coefficients. The envelopes remain globally cubic B-splines. We keep the same boundary data, offspring laws, and . For all six non-square domains, we transfer the same joint initialization exactly to and 24 before refinement, so the resolution comparison does not change the initial functions. Both
Table 2. Equal-accuracy cost under a fixed near-critical branching intensity . We vary the target stochastic RMSE over one order of magnitude; is the number of independent trees per query. CPU time (seconds) is summed over 48 fixed queries and averaged across three seeds, excluding envelope preprocessing. Sample budgets are variance-calibrated, and speedup is the ratio of measured CPU costs.
| Scene | Target RMSE | Samples/query | CPU (s) | |||
|---|---|---|---|---|---|---|
| BBM | WiE | BBM | WiE | Speedup | ||
| Engine | 0.020 | 76 | 101 | 0.099 | 0.021 | |
| 0.010 | 304 | 402 | 0.414 | 0.088 | ||
| 0.005 | 1,216 | 1,608 | 1.624 | 0.324 | ||
| 0.002 | 7,600 | 10,050 | 9.901 | 1.977 | ||
| Lock | 0.020 | 96 | 85 | 0.248 | 0.020 | |
| 0.010 | 382 | 337 | 0.992 | 0.077 | ||
| 0.005 | 1,528 | 1,348 | 4.185 | 0.298 | ||
| 0.002 | 9,550 | 8,425 | 24.628 | 1.861 | ||
| Clover | 0.020 | 66 | 50 | 0.134 | 0.010 | |
| 0.010 | 261 | 200 | 0.532 | 0.043 | ||
| 0.005 | 1,044 | 800 | 2.129 | 0.146 | ||
| 0.002 | 6,525 | 5,000 | 13.151 | 0.961 | ||
| Flask | 0.020 | 107 | 112 | 0.143 | 0.026 | |
| 0.010 | 427 | 447 | 0.573 | 0.096 | ||
| 0.005 | 1,708 | 1,788 | 2.133 | 0.382 | ||
| 0.002 | 10,675 | 11,175 | 13.314 | 2.399 | ||
coefficient vectors are restricted to to suppress large, weakly constrained exterior modes. This extension constraint is additional to the certified range and PDE conditions inside .
Refinement iterations. We allow up to 12 updates, retaining and the upper-correction limit 0.075. We stop after two successive width reductions below , or return the last valid pair when the LP budget or numerical checks fail; the actual accepted count is reported. If the full polynomial LP accepts no update, we retry from the same initialization using conservative cellwise scalar bounds on the residuals and ; both attempts are included in construction cost. Table 3(b) tests the returned pairs with fixed queries, sample count, seeds, and rejection-bound grid. At , the six non-square cases reduce mean width by 53–87% relative to the earlier coarse result. Relative to their common initialization, their sampling time–variance efficiency improves by , while additional construction costs 298–600 CPU seconds. Thus finer envelopes improve sampling in these tests, but need sufficient reuse to offset preprocessing. The L-shaped case attains a smaller mean width at than at ; the latter uses the conservative fallback, and these finite-budget results do not imply monotonic improvement with resolution. These results diagnose envelope construction rather than changing the variable transformation underlying WiE.
Liao and Li
Table 3. Near-critical spline construction at . (a) Mean width on the fixed construction queries. Box is the earlier full-box refinement; the other columns use certificates restricted to the geometric domain. All resolutions start from exactly the same joint envelope, transferred by knot insertion, with coefficients per side. We sweep on all six non-square domains; the three square cases remain controls. Refinement allows at most 12 updates, with a two-update width-plateau threshold of . A dagger indicates termination by the LP budget or numerical failure, rather than convergence. counts accepted updates at the resolution used in (b). At , the scalar fallback is used for L-shaped, Two holes.
| (a) Resolution and geometric certification | |||||
|---|---|---|---|---|---|
| Case | Box | ||||
| Engine | |||||
| Lock | |||||
| Clover | |||||
| Flask | |||||
| L-shaped | |||||
| Two holes | |||||
| Square | |||||
| Square | |||||
| Square | |||||

Fig. 8. Engineering ablation on four scenes at : (a) CPU time relative to full WiE, and (b) full spline evaluations per root sample with and without lazy squeeze. Each configuration uses identical seeds and 512 samples per query.
All cases use the general-PGF kernel; Figure 7 retains the earlier specialized binary implementation.
Sampling optimization ablation. Figure 8 isolates Bernstein squeeze and RMQ using the same certified envelopes and random paths (). Squeeze reduces full spline evaluations from 14–17 to 2.5–4.7 per root sample; disabling it increases CPU time by 6.9–15.6%. Disabling both optimizations increases CPU by 9–16%. RMQ alone offers limited and sometimes negative gains for these small auxiliary grids. Crucially, these optimizations leave the sampled estimator unchanged; the improvements arise from cheaper decisions rather than a different probability law.
General offspring distributions. To validate the polynomial PGF formulation beyond binary branching, we evaluate an independent Table 3. (b) Sampling with the common initialization () and the returned envelope. Every configuration uses the same 48 queries per case, samples per query, five seeds, one general-PGF kernel, and a fixed rejection-bound grid. is additional construction CPU time beyond the shared initialization, including unsuccessful LP attempts and any certified scalar-bound fallback; is sampling CPU time, both in seconds. is reference RMSE. , with , measures sampling time–variance efficiency and excludes construction. It is not an end-to-end speedup. References are independent 65,536-sample BBM estimates for the first four cases and an finite-difference solution, checked at , for the remaining cases.
| (b) Initialization and refined sampling | ||||||
|---|---|---|---|---|---|---|
| Case | ||||||
| Engine | 6 | |||||
| Lock | ||||||
| Clover | ||||||
| Flask | ||||||
| L-shaped | ||||||
| Two holes | ||||||
| Square | ||||||
| Square | ||||||
| Square | ||||||
Table 4. General PGF validation with 700 samples per query. RMSE is measured against independent reference fields. Speedup is the BBM/WiE time–variance cost ratio (excluding local envelope construction). The local-spline experiment uses a separate general-PGF solver without multi-round refinement.
| Case | BBM RMSE | WiE RMSE | Speedup | |
|---|---|---|---|---|
| Square (binary) | ||||
| Square (quartic) | ||||
| L-shaped | ||||
| Two holes | ||||
| Square |
general-offspring WoS implementation with certified local B-spline envelopes on five two-dimensional problems, including pure quartic, mixed, and zero-offspring reactions (Table 4). WiE improves time–variance efficiency across these cases, although the benefit depends strongly on geometry, boundary values, and the attainable envelope width. The table provides a generality test rather than a controlled comparison of offspring degree: reaction rates and domains vary between cases.
3D unit ball

Center query

Fig. 9. The full-tree critical rate moves from to . Left: the complete unit ball, a central section, and its center query. Right: exact expected reproduction counts, with and . BBM gives , ; WiE gives , . Each expression is plotted only below its own critical rate.
3D unit ball

Radial queries

Fig. 10. Radial validation at with boundary value 0.75. The full sphere encloses a reference section and seven query locations. The upper plot compares WiE with an independent radial BVP; the lower plot resolves the signed estimation error. Points pool three seeds of 8,192 samples; bars show 95% Monte Carlo confidence intervals. This test uses certified radial envelopes.
Full-tree criticality in a ball. Figure 9 illustrates the first-moment change for binary branching in the three-dimensional unit ball, with and the constant envelope [0, 0.75].
Radial validation. Figure 10 compares WiE with an independent radial boundary-value solve on the three-dimensional unit ball.
Additional three-dimensional tests. The following mesh tests solve in the volumes enclosed by Fandisk, Bunny, Spot, and Rocker-arm [Crane et al. 2013; Jacobson [n. d.]; Sawhney 2021; Stanford Computer Graphics Laboratory [n. d.]], with , analytic affine envelopes , , and boundary tolerance . Here is a finite-difference spectral estimate; these tests use the affine certificate without spline optimization or the preprocessing fallback. The reference grids are for Fandisk, Bunny, and Spot, and for Rocker-arm; the last refinement changes the 48 held-out query values by RMS 0.00036, 0.00021, 0.00037, and 0.00045, respectively. For the measured error-time comparisons, BBM samples boundary payoffs as Bernoulli outcomes and both implementations stop a root once a zero factor is known; these measurements do not evaluate
BBM (early exit) WiE

Time (seconds)
Time (seconds)
Time (seconds)
Time (seconds)
Fig. 11. Error versus computation time at . Each curve joins eight sample budgets ; each point averages the MSE of three independent seeds over 48 held-out volume queries. Time includes mesh setup and WiE envelope construction. Both implementations use early exit.
full-tree work. Figure 11 uses one pinned core of an Intel Xeon Silver 4310; total wall time includes mesh and BVH setup and sampling, plus analytic-envelope construction for WiE, while query generation, reference solves, rendering, and spectral analysis are excluded for both methods.
Envelope quality and evaluation cost. We further compare analytic affine envelopes with the final output of monotone B-spline construction on six meshes (Table 5), using the same PDE, height-dependent boundary data, , and boundary tolerance as above. The affine pair is . Cubic tensor-product splines use coefficients per envelope, start from , and allow up to eight refinement rounds, with a 60-second limit per LP. The 2,048 training points are independent of the 48 evaluation queries. Both representations use the same product estimator and exact termination after a zero factor.
At fixed N = 1,024, the five valid final spline configurations reduce the measured single-sample variance by 5.4–21.0%, but require 1.63–4.05× the sampling CPU time of the affine baseline, even before construction costs. Representing the identical affine envelopes as splines also increases sampling time by 1.17–1.57×, isolating representation and evaluation overhead. Fandisk and Spot accept no refinement and retain the initial envelope; the final Armadillo configuration requires event-probability repairs and is excluded from valid performance comparisons.
These results distinguish the variance bound from realized efficiency. The final spline envelopes have larger mean widths than the affine baseline; on Bunny, for example, the means are 0.582 and 0.494, respectively, despite the lower measured spline variance. Equation (4) remains a valid worst-case bound, but when attainable envelopes remain broad, it can provide limited guidance for predicting actual variance or selecting the fastest representation. Lower
Liao and Li
Table 5. Envelope comparison at a fixed sample budget. is the mean single-sample variance over 48 queries and eight independent runs; is the mean sampling CPU time in seconds for all 48 queries, with samples per query. Construction is excluded. A: analytic affine; S: final spline-construction output. †: no accepted update, so S is the initial (0, 0.9) envelope. Dashes denote the failed Armadillo sampling audit.
| Model | ||||
|---|---|---|---|---|
| Octopus | 0.02514 | 0.02082 | 5.061 | 9.472 |
| Armadillo | 0.05944 | - | 4.917 | - |
| Fandisk | 0.07618 | 0.07167 | 3.183 | 10.590 |
| Bunny | 0.04761 | 0.03763 | 3.344 | 5.905 |
| Spot | 0.06105 | 0.05749 | 2.333 | 9.448 |
| Rocker-arm | 0.06159 | 0.05829 | 2.451 | 4.004 |

Fig. 12. Spot at . The full mesh and translucent blue plane locate the section; the flat panels show the independent reference and raw BBM/WiE estimates on identical queries. Times include the pilot and envelope construction; RMSE covers the entire section. The flat field panels use one unlit color scale.
measured variance alone is also insufficient: its benefit must offset the cost of sampling and envelope construction. For these tests, inexpensive analytic affine envelopes offer the better computational tradeoff while retaining WiE's envelope transformation.
Interior field visualizations. Figure 12 shows the complete Spot model and a translucent plane locating its query section. An independent 16-sample pilot fixes the sample count for a nominal 60-second total budget; reported times include the pilot and analytic-envelope construction. The raw field panels share query locations and color scales, without smoothing or denoising.
Figure 13 applies the same field-visualization protocol to Rocker-arm.

Fig. 13. Rocker-arm at . The full mesh and translucent blue plane locate the section; the flat panels show the independent reference and raw BBM/WiE estimates on identical queries. Times include the pilot and envelope construction; RMSE covers the entire section. The flat field panels use one unlit color scale.
6 Discussion and Limitations
WiE demonstrates that certified solution bounds can reshape branching dynamics rather than merely prune existing trees. While the transformation preserves unbiasedness, its efficiency depends on envelope quality and sampling acceptance rates. Constructing certified envelopes incurs preprocessing costs, making WiE less advantageous for low branching intensities or limited query workloads. Our spectral-workload fallback mitigates this overhead but relies on empirical calibration. Moreover, the near-critical complexity guarantee bounds expected reproduction events rather than total runtime. Extensions to manifold and parabolic PDEs demonstrate broader applicability, although projected walks inherit geometric approximation errors and space-time sampling introduces additional costs. Future work may include higher-dimensional certification and more efficient envelope optimization directly targeting computational work.
References
Ankush Agarwal and Julien Claisse. 2020. Branching Diffusion Representation of Semi-linear Elliptic PDEs and Estimation Using Monte Carlo Method. Stochastic Processes and their Applications 130, 8 (2020), 5006–5036.
Anchang Bao, Enya Shen, and Jianmin Wang. 2026. Monte Carlo PDE Solvers for Nonlinear Radiative Boundary Conditions. ACM Transactions on Graphics 45, 4 (2026), 16 pages.
Keenan Crane, Ulrich Pinkall, and Peter Schröder. 2013. Robust Fairing via Conformal Curvature Flow. ACM Trans. Graph. 32, 4, Article 61 (July 2013), 10 pages. doi:10.1145/2461912.2461986
Madalina Deaconu, Samuel Herrmann, and Sylvain Maire. 2017. The Walk on Moving Spheres: A New Tool for Simulating Brownian Motion's Exit Time from a Domain. Mathematics and Computers in Simulation 135 (2017), 28–38. doi:10.1016/j.matcom.2015.07.004
János Engländer. 2007. Branching Diffusions, Superdiffusions and Random Media. Probability Surveys 4 (2007), 303–364.
Simon C. Harris, Marion Hesse, and Andreas E. Kyprianou. 2016. Branching Brownian Motion in a Strip: Survival Near Criticality. The Annals of Probability 44, 1 (2016),
235–275.
Pierre Henry-Labordère, Nadia Oudjane, Xiaolu Tan, Nizar Touzi, and Xavier Warin. 2019. Branching Diffusion Representation of Semilinear PDEs and Monte Carlo Approximation. Annales de l'Institut Henri Poincaré, Probabilités et Statistiques 55, 1 (2019).
Alec Jacobson. [n. d.]. Common 3D Test Models. Retrieved October 16, 2026 from https://github.com/alecjacobson/common-3d-test-models
H. P. McKean. 1975. Application of Brownian Motion to the Equation of Kolmogorov–Petrovskii–Piskunov. Communications on Pure and Applied Mathematics 28, 3 (1975), 323–331.
Bailey Miller, Rohan Sawhney, Keenan Crane, and Ioannis Gkioulekas. 2023. Boundary Value Caching for Walk on Spheres. ACM Transactions on Graphics 42, 4, Article 82 (2023), 11 pages.
Bailey Miller, Rohan Sawhney, Keenan Crane, and Ioannis Gkioulekas. 2024. Differential Walk on Spheres. ACM Transactions on Graphics (2024).
Mervin E. Muller. 1956. Some Continuous Monte Carlo Methods for the Dirichlet Problem. The Annals of Mathematical Statistics 27, 3 (1956), 569–589.
Thomas S. Salisbury and John Verzani. 2000. Non-degenerate Conditionings of the Exit Measures of Super Brownian Motion. Stochastic Processes and their Applications 87, 1 (2000), 25–52.
Rohan Sawhney. 2021. FCPW: Fastest Closest Points in the West. Retrieved October 16, 2026 from https://github.com/rohan-sawhney/fcpw
Rohan Sawhney and Keenan Crane. 2020. Monte Carlo Geometry Processing: A Grid-Free Approach to PDE-Based Methods on Volumetric Domains. ACM Transactions on Graphics 39, 4 (2020).
Rohan Sawhney, Bailey Miller, Ioannis Gkioulekas, and Keenan Crane. 2023. Walk on Stars: A Grid-Free Monte Carlo Method for PDEs with Neumann Boundary Conditions. ACM Transactions on Graphics 42, 4, Article 80 (2023), 20 pages.
Rohan Sawhney, Dario Seyb, Wojciech Jarosz, and Keenan Crane. 2022. Grid-Free Monte Carlo for PDEs with Spatially Varying Coefficients. ACM Transactions on Graphics 41, 4, Article 53 (2022), 17 pages.
Stanford Computer Graphics Laboratory. [n. d.]. The Stanford 3D Scanning Repository. Retrieved October 16, 2026 from https://graphics.stanford.edu/data/3Dscanrep/
Ryusuke Sugimoto, Terry Chen, Yiti Jiang, Christopher Batty, and Toshiya Hachisuka. 2023. A Practical Walk-on-Boundary Method for Boundary Value Problems. ACM Transactions on Graphics 42, 4, Article 81 (2023), 16 pages.
Ryusuke Sugimoto, Nathan King, Toshiya Hachisuka, and Christopher Batty. 2024a. Projected Walk on Spheres: A Monte Carlo Closest Point Method for Surface PDEs. In SIGGRAPH Asia 2024 Conference Papers. Article 8, 10 pages.
Ryusuke Sugimoto, Nathan King, Toshiya Hachisuka, and Christopher Batty. 2024b. Projected Walk on Spheres: A Monte Carlo Closest Point Method for Surface PDEs. In SIGGRAPH Asia 2024 Conference Papers (SA '24). Association for Computing Machinery, New York, NY, USA, Article 8, 10 pages. doi:10.1145/3680528.3687599
Xiaochun Tong and Toshiya Hachisuka. 2025. Practical Stylized Nonlinear Monte Carlo Rendering. In Proceedings of the Special Interest Group on Computer Graphics and Interactive Techniques Conference Conference Papers. Article 84, 11 pages.