Walk on Spheres
This is a tour from Brownian motion and Feynman's path integrals, through the Feynman–Kac formula, to Muller's Walk-on-Spheres algorithm and the recent work that made it a practical, mesh-free PDE solver.
- The idea
- Brownian motion
- Feynman–Kac
- Walk on Spheres
- In practice
- More equations
- Applications
- Beyond Laplace
- Learning from walks
- Timeline
- References
The idea
Picture a thin metal plate \(\Omega\) whose rim is held at a temperature \(g\) that varies around the edge. Wait long enough and the temperature inside settles to a steady state \(u\). That steady state can be modeled by Laplace's equation with Dirichlet boundary conditions,
$$\Delta u = 0 \quad\text{in } \Omega, \qquad u = g \quad\text{on } \partial\Omega .$$The textbook route is to mesh \(\Omega\), assemble a linear system, and solve for \(u\) at every node at once. We will discuss a less restrictive path-integral based approach. Intuitively, to know \(u\) at a single point \(x\), release a random walker at \(x\), let it wander until it first touches the rim, and write down \(g\) where it touched. Do that many times and average. The average converges to \(u(x)\).
That is the whole method. There is no mesh and no linear system, and the answer at \(x\) does not require computing anything anywhere else. The algorithm that makes it fast, is called the Walk on Spheres. This approach dates from 1956 (Muller 1956). Its roots are older still: Kakutani's link between Brownian motion and harmonic functions (1944), and Kac's rigorous version of Feynman's path integrals (1949). Since Sawhney and Crane brought it to computer graphics (2020), it has become a fast-moving research area, surveyed in Sawhney et al. (2025).
This page follows that story in order. This framework has tremendous potential beyond computer graphics, including PDE solvers, surrogate modeling and even robotics.
Brownian motion and harmonic functions
A random path, made precise
In the summer of 1827 the botanist Robert Brown watched particles from pollen grains jitter endlessly in water under his microscope (Brown 1828). Einstein (1905) explained the jitter as the cumulative effect of molecular impacts and showed that the density of many such particles obeys the diffusion equation. Wiener (1923) then built the mathematical object: a probability measure on continuous paths, now called Wiener measure. Under it, a random path \(W_t\) in \(\mathbb{R}^d\) moves continuously and has independent Gaussian increments,
$$W_{t+s} - W_t \sim \mathcal{N}(0,\, s\,I), \qquad \text{independent of the path up to time } t.$$This is Brownian motion. It has no preferred direction, meaning, it is rotationally symmetric. And it forgets its past. Upon every restart, it forms a fresh Brownian motion.
Harmonic functions are averages
A function with \(\Delta u = 0\) satisfies the mean value property. On any ball \(B_r(x)\) inside \(\Omega\), the value at the centre is the average over the sphere:
$$u(x) = \frac{1}{|\partial B_r(x)|}\int_{\partial B_r(x)} u(y)\,\mathrm{d}y .$$Why is this true? Write \(m(r)\) for the average of \(u\) over the sphere of radius \(r\) around \(x\). Differentiating under the integral and applying the divergence theorem gives
$$m'(r) = \frac{1}{|\partial B_r|}\int_{\partial B_r(x)} \frac{\partial u}{\partial n}\,\mathrm{d}y = \frac{1}{|\partial B_r|}\int_{B_r(x)} \Delta u\,\mathrm{d}y = 0,$$so \(m\) does not depend on \(r\), and as \(r \to 0\) it tends to \(u(x)\). Walk on Spheres is essentially this identity applied over and over.
The discrete version of the identity is older than the continuous theory. On a grid, the five-point Laplacian vanishes exactly when each value is the average of its four neighbours, that is, the expected value after one step of a random walk. Courant, Friedrichs and Lewy (1928) already used this random-walk reading of the discrete Dirichlet problem.
Kakutani's theorem
Kakutani (1944) made the continuous statement. Start a Brownian motion at \(x\) and let \(\tau = \inf\{t \ge 0 : W_t \notin \Omega\}\) be the first time it leaves \(\Omega\). Then
$$u(x) = \mathbb{E}\big[\, g(W_\tau) \;\big|\; W_0 = x \,\big].$$The distribution of the exit point \(W_\tau\) is called the harmonic measure of \(\Omega\) seen from \(x\). The solution at \(x\) is the boundary data averaged against it.
The reason fits in one line of Itô calculus. For a smooth \(u\) evaluated along a Brownian path, Itô's formula (Itô 1951) reads
$$\mathrm{d}\,u(W_t) = \nabla u(W_t)\cdot \mathrm{d}W_t \;+\; \tfrac12\,\Delta u(W_t)\,\mathrm{d}t .$$The first term is pure noise with mean zero. The second is a drift. When \(\Delta u = 0\) the drift vanishes, so \(u(W_t)\) is a martingale. If the walk stops at \(\tau\), which on a bounded domain is finite and has finite mean, then \(\mathbb{E}[u(W_\tau)] = u(x)\), and \(u(W_\tau) = g(W_\tau)\) because \(W_\tau\) lies on the boundary. Le Gall (2016) gives the full measure-theoretic details.
Path integrals and the Feynman–Kac formula
Feynman's sum over histories
In 1948 Feynman reformulated this problem as a sum over paths (Feynman 1948). The amplitude for a particle to travel from \(a\) to \(b\) is a sum over every path between them, each weighted by \(e^{iS/\hbar}\), where
$$S[x] = \int \Big(\tfrac12 m\,\dot x(s)^2 - V\big(x(s)\big)\Big)\,\mathrm{d}s$$is the classical action along the path. Paths near the classical trajectory reinforce one another and the rest cancel. As mathematics, though, the sum is formal: no measure on paths carries that oscillating weight.
Kac's version
Mark Kac, Feynman's colleague at Cornell, saw what happens in imaginary time (Kac 1949). Replacing \(t\) by \(-it\) turns the Schrödinger equation into a diffusion equation with a potential. It also turns the kinetic part of the weight, \(e^{-\int \frac12 \dot x^2}\), into exactly Wiener measure: a genuine probability distribution over Brownian paths. What remains of the action is the potential, now as a real, decaying weight. The result is the Feynman–Kac formula,
$$\partial_t u = \tfrac12\Delta u - V(x)\,u,\quad u(x,0)=\varphi(x) \qquad\Longrightarrow\qquad u(x,t) = \mathbb{E}\Big[\varphi(x + W_t)\, \exp\Big(-\!\int_0^t V(x+W_s)\,\mathrm{d}s\Big)\Big].$$To get the temperature at \((x, t)\), run a Brownian path from \(x\) for time \(t\), look up the initial temperature \(\varphi\) where it ends, and discount it by how much potential it soaked up on the way. The discount has two equivalent readings. As a weight, each path simply counts for less. As killing, \(V\) is a death rate: in each instant the walker dies with probability \(V\,\mathrm{d}t\), and dead walkers report zero. The two agree in expectation, and Monte Carlo codes usually use the second to handle absorption.
Why it works
It is the same Itô argument as before, with one extra factor. Fix \((x, t)\) and follow
$$M_s = u\big(x + W_s,\; t - s\big)\; e^{-\int_0^s V(x + W_q)\,\mathrm{d}q}, \qquad 0 \le s \le t .$$Itô's formula and the product rule give
$$\mathrm{d}M_s = e^{-\int_0^s V}\Big(-\partial_t u + \tfrac12\Delta u - V u\Big)\,\mathrm{d}s \;+\; e^{-\int_0^s V}\,\nabla u\cdot \mathrm{d}W_s .$$The bracket vanishes because \(u\) solves the equation, so \(M\) is a martingale and \(\mathbb{E}[M_t] = M_0\). At \(s = 0\) this is \(u(x, t)\). At \(s = t\) it is \(\varphi(x + W_t)\) times the discount. In a simulation with time step \(\Delta t\), the killing reading becomes a coin flip: at every step the walker survives with probability \(e^{-V\Delta t}\).
The elliptic version, with exit times
Elliptic problems have no time horizon. Instead the path runs until it leaves \(\Omega\). Take a diffusion \(X_t\) with drift \(b\) and diffusion matrix \(\sigma\), whose generator is \(\mathcal{L} = \tfrac12\operatorname{Tr}(\sigma\sigma^\top \nabla^2) + b\cdot\nabla\). The boundary value problem \(\mathcal{L}u - c\,u = -f\) in \(\Omega\), \(u = g\) on \(\partial\Omega\), has the solution (Øksendal 2003)
$$u(x) = \mathbb{E}\Big[\, g(X_\tau)\,e^{-\int_0^\tau c(X_s)\,\mathrm{d}s} \;+\; \int_0^\tau f(X_t)\,e^{-\int_0^t c(X_s)\,\mathrm{d}s}\,\mathrm{d}t \;\Big|\; X_0 = x \Big].$$Every term has a reading. \(g(X_\tau)\) is the boundary value where you leave. \(\int f\,\mathrm{d}t\) is the source you collect along the way. The exponentials are absorption, as in Kac's formula. Kakutani's theorem is the special case \(b = 0\), \(\sigma = I\), \(c = f = 0\). Drift and variable diffusion cover advection and heterogeneous materials. Sawhney et al. (2022) keep the Walk-on-Spheres machinery for spatially varying coefficients by combining a Girsanov transformation with delta tracking, a technique borrowed from volume rendering. Absorption and variable coefficients both come back below, once Walk on Spheres is in hand.
Nonlinear equations: backward SDEs
When the equation is nonlinear in \(u\) or \(\nabla u\), the expectation above no longer closes. Pardoux and Peng (1990) found the replacement: a backward stochastic differential equation. Alongside the forward diffusion \(X\), one solves for a pair \((Y, Z)\) with
$$\mathrm{d}Y_s = -h(X_s, Y_s, Z_s)\,\mathrm{d}s + Z_s\cdot \mathrm{d}W_s ,$$pinned by the data at the terminal or exit time. Then \(Y_s = u(X_s, s)\) and \(Z_s = \sigma^\top \nabla u(X_s, s)\): the backward process carries the solution and its gradient along the paths. This nonlinear Feynman–Kac formula (Zhang 2017 covers the theory) underlies deep BSDE solvers, and Nüsken and Richter (2021) show how BSDE-based losses interpolate with physics-informed ones.
Walk on Spheres
The shortcut
Back to Laplace's equation, and to the cost of simulating paths step by step. Everything hinges on Figure 2. A Brownian motion started at the centre of a ball leaves it at a uniformly random point of the sphere, because by rotational symmetry no direction is preferred. Started anywhere else, the exit point follows the Poisson kernel, which favours the near side.
Muller (1956) turned this into an algorithm. Inside a ball centred at the walker, the path itself does not matter, only where it leaves, and that exit point is uniform on the sphere. So skip the path and jump straight to a uniform random point on the sphere. To jump as far as possible, use the largest ball that fits, of radius \(r_k = \operatorname{dist}(x_k, \partial\Omega)\). Because Brownian motion forgets its past, the walk restarts afresh from each landing point. The sequence \(x_0 = x, x_1, x_2, \dots\) visits exactly the points where one Brownian path from \(x\) leaves a chain of balls, so it reaches the boundary where that path would. In analytic terms it is the mean value property applied recursively: \(u(x_k)\) is the average of \(u\) over \(\partial B_{r_k}(x_k)\), and one uniform sample estimates that average without bias.
Stopping in the ε-shell
Every jump lands strictly inside \(\Omega\), so the walk approaches the boundary without ever reaching it. It stops once it is within \(\varepsilon\), inside the shell \(\{x : \operatorname{dist}(x, \partial\Omega) < \varepsilon\}\), and reports \(g\) at the closest boundary point \(\bar x_K\). This costs a bias of order \(\varepsilon\) (Mascagni and Hwang 2003). The payoff is the step count. On well-behaved domains, convex ones for example, the expected number of jumps grows only like \(\log(1/\varepsilon)\), against the order \(\varepsilon^{-2}\) steps that time stepping needs for a comparable bias. Binder and Braverman (2012) analyse the rate on general domains.
Why so few jumps
The logarithm is easy to see near a flat piece of boundary. A walker at distance \(d\) from a straight wall jumps to a uniform point on a circle of radius \(d\), at angle \(\theta\), and so lands at distance \(d\,(1 + \sin\theta)\). The logarithm of the distance therefore performs a random walk with increments \(\log(1 + \sin\theta)\), whose mean is
$$\frac{1}{2\pi}\int_0^{2\pi} \log(1 + \sin\theta)\,\mathrm{d}\theta = -\log 2 .$$On average every jump halves the distance, in the geometric sense. Getting from distance \(d\) into the ε-shell therefore takes about \(\log_2(d/\varepsilon)\) jumps, roughly 3.3 more for every factor of ten in ε. Curved boundaries change the constant (the flower in Figure 4 needs slightly more) but not the logarithm.
Adding a source term
For the Poisson equation \(\Delta u = -f\), the path also collects source on the way. Inside each ball, the expected amount collected before the path leaves is an integral against the ball's Green's function,
$$\mathbb{E}\Big[\int_0^{\tau_k} f(X_t)\,\mathrm{d}t\Big] = \int_{B_{r_k}(x_k)} G_{r_k}(x_k, y)\, f(y)\,\mathrm{d}y, \qquad G_r(x, y) = \frac{1}{2\pi}\log\frac{r}{|x - y|} \quad (d = 2),$$and one random point \(y_k\) in the ball gives an unbiased estimate of it. Drawing \(y_k\) uniformly gives the estimator \(|B_{r_k}|\, f(y_k)\, G_{r_k}(x_k, y_k)\) (Sawhney and Crane 2020). Figure 3 instead draws \(y_k\) with density proportional to \(G\), which makes every weight the same constant \(\int G = r_k^2/4\):
$$\hat u(x) = g(\bar x_K) + \sum_{k=0}^{K-1} \frac{r_k^2}{4}\, f(y_k), \qquad y_k \sim \frac{G_{r_k}(x_k, \cdot)}{r_k^2/4} .$$The constant has a meaning. With \(f \equiv 1\) the path collects exactly the time it spends in the ball, so \(\int G = \mathbb{E}[\tau_k]\), the mean exit time from the centre. That mean solves \(\Delta v = -1\) in the ball with \(v = 0\) on the sphere, and \(v(y) = (r_k^2 - |y - x_k|^2)/4\) does both, so \(\mathbb{E}[\tau_k] = v(x_k) = r_k^2/4\).
A note on factors of two. Standard Brownian motion has generator \(\tfrac12\Delta\), which is why Kakutani's and Kac's formulas carry a \(\tfrac12\). From here on we follow Sawhney and Crane and write the Poisson equation as \(\Delta u = -f\). The matching process is Brownian motion run at double speed, \(X_t = W_{2t}\), whose generator is \(\Delta\). Exit points do not depend on speed, so only the source term notices.
The estimator in practice
Each walk returns an independent sample whose mean is \(u(x)\), up to the ε-shell bias. Averaging \(N\) walks therefore leaves a standard error of \(\sigma(x)/\sqrt{N}\). Different query points share nothing, so the work parallelises perfectly and you can evaluate the solution only where you need it. Geometry enters only through distance (closest-point) queries, which a bounding volume hierarchy answers for any triangle soup or implicit surface. No volumetric mesh is ever built, so the method copes with exactly the geometry that breaks meshers: thin features, self-intersections and gaps (Sawhney and Crane 2020).
The price is noise. Halving the error takes four times the walks, and smooth answers typically need \(10^4\) to \(10^6\) walks per point. Figure 4 shows both sides of the bargain.
Error bars for free
Because each walk is an independent sample, the central limit theorem applies. With \(N\) walks, sample mean \(\hat u_N\) and sample standard deviation \(\hat\sigma\),
$$u(x) \in \Big[\, \hat u_N - 1.96\,\frac{\hat\sigma}{\sqrt N},\;\; \hat u_N + 1.96\,\frac{\hat\sigma}{\sqrt N} \,\Big] \quad \text{with probability about } 95\%,$$up to the ε-shell bias. Few PDE solvers report their own error this cheaply. The per-walk spread \(\hat\sigma\) depends on how much \(g\) varies over the places where walks from \(x\) tend to exit, so points near boundaries with rapidly varying data are the noisiest. A sensible rule is to choose ε so that the bias sits well below the noise you can afford. Figure 6 prints such a standard error for any point you hover over.
Making each walk count
Much of the recent work attacks the noise. Control variates subtract a correlated quantity whose mean is known. Sawhney and Crane (2020) use a running estimate of the gradient, and Li et al. (2024) learn a control variate with a network whose integral is available in closed form.
Other methods reuse work across query points. Boundary value caching (Miller et al. 2023) first estimates the solution and its normal derivative at sample points on the boundary, then evaluates the interior through a boundary integral, trading a little bias for much lower variance. Harmonic caching (Zhou et al. 2025) stores overlapping harmonic expansions and reports more than an order of magnitude lower error in equal time. Probe-based reuse (Huang et al. 2026) recycles intermediate walk states through fixed spherical probes. Gradient-domain reconstruction (Wu et al. 2026) estimates differences of the solution between query points and integrates them.
A third group changes how the walk itself is sampled. These methods learn sampling distributions online (Huang et al. 2025), reweight off-centred estimators (Bao et al. 2025), and remove the ε-shell and its bias with conformal first-passage sampling (Himmler and Günther 2025). Walk on decomposed subdomains (Jambon et al. 2026) confines walks to small subdomains whose local operators are assembled into a sparse global system.
More equations, same walk
The walk itself never changes: jump to a random point on the largest empty sphere, stop near the boundary. What changes from one equation to the next is what each jump contributes. Three examples follow, each a direct reading of the Feynman–Kac formula.
Absorption: the screened Poisson equation
Add a constant absorption \(\sigma \ge 0\) to Laplace's equation:
$$\Delta u - \sigma u = 0 \quad\text{in } \Omega, \qquad u = g \quad\text{on } \partial\Omega .$$The Feynman–Kac formula with \(c = \sigma\) says \(u(x) = \mathbb{E}\big[g(X_\tau)\,e^{-\sigma\tau}\big]\): walkers that take a long time to leave are discounted. Walk on Spheres no longer tracks time, but it does not need to. Started at the centre of a ball, the exit time and the exit point of Brownian motion are independent, again by symmetry, so the discount factors out of each jump. Its mean \(v(x_k) = \mathbb{E}[e^{-\sigma\tau_k}]\) solves \(\Delta v = \sigma v\) in the ball with \(v = 1\) on its sphere. In two dimensions the radial solution is a modified Bessel function, \(v(y) = I_0(\sqrt\sigma\,|y - x_k|)\,/\,I_0(\sqrt\sigma\,r_k)\), so each jump multiplies the walker's weight by
$$v(x_k) = \frac{1}{I_0(r_k\sqrt{\sigma})}, \qquad\text{and}\qquad \hat u(x) = \Big(\prod_{k=0}^{K-1} \frac{1}{I_0(r_k\sqrt{\sigma})}\Big)\, g(\bar x_K) .$$Big spheres cost more weight than small ones, so a walker that wanders far from the boundary fades. Equivalently, it dies at each jump with probability \(1 - 1/I_0(r_k\sqrt\sigma)\), the killing reading from the Feynman–Kac section. Either way, the boundary's influence now decays over a distance of about \(1/\sqrt\sigma\).
Gradients
Many applications need \(\nabla u\) more than \(u\): electric fields, heat fluxes, the direction a robot should move. The mean value property also holds for averages over solid balls, and \(\nabla u\) is harmonic too. Averaging \(\nabla u\) over a ball \(B_r(x) \subset \Omega\) and applying the divergence theorem turns it into an average over the sphere. In \(d\) dimensions,
$$\nabla u(x) = \frac{d}{r^2}\;\mathbb{E}_{y \sim \mathcal{U}(\partial B_r(x))}\big[\, u(y)\,(y - x) \,\big],$$and each \(u(y)\) can itself be replaced by one walk started at \(y\) (Sawhney and Crane 2020). You can check the constant on a linear function \(u(y) = a\cdot y\): the average of \((a\cdot n)\,n\) over unit directions \(n\) is \(a/d\). Two cheap tricks cut the variance a lot. Pair every direction \(n\) with its opposite \(-n\) (antithetic sampling), so the constant part of \(u\) cancels exactly. And spread the directions evenly around the circle with a single random offset, so no direction is over- or under-sampled. Figure 7 steers a robot with exactly this estimator.
Variable coefficients
Real materials are not uniform. With a diffusion coefficient \(\alpha(x) > 0\) and an absorption \(\sigma(x) \ge 0\), the steady problem becomes
$$\nabla\cdot\big(\alpha(x)\,\nabla u\big) - \sigma(x)\,u = -f(x) .$$Sawhney et al. (2022) remove the first-order term \(\nabla\alpha\cdot\nabla u\) with a change of variables. Setting \(U = \sqrt{\alpha}\,u\) and expanding gives a screened Poisson equation with a new, spatially varying absorption:
$$\Delta U - \sigma'(x)\,U = -\frac{f}{\sqrt{\alpha}}, \qquad \sigma' = \frac{\sigma}{\alpha} + \frac12\Big(\frac{\Delta\alpha}{\alpha} - \frac{|\nabla\log\alpha|^2}{2}\Big).$$A varying σ′ breaks the exact Bessel weight above, so they pick a constant \(\bar\sigma \ge \sigma'\) and move the difference to the right-hand side, \(\Delta U - \bar\sigma U = -f/\sqrt\alpha - (\bar\sigma - \sigma')\,U\). The unknown now appears in its own source term. The walk resolves that recursively: inside each ball it either continues from a random interior point (a "collision") or jumps to the sphere as usual. This is the null-collision trick that renders smoke and clouds with spatially varying density.
Applications, written out
A handful of equations covers a surprising amount of physics and engineering. Here are several, written out, with three reproduced live.
Electrostatics and capacitance
In a region free of charge the electric potential \(\varphi\) satisfies Laplace's equation, and the surface of a conductor is an equipotential:
$$\Delta\varphi = 0 \ \text{ between the conductors}, \qquad \varphi = V_i \ \text{ on conductor } i, \qquad \varphi = 0 \ \text{ on a grounded enclosure} .$$Engineers usually want the charge on each conductor, \(Q_i = -\epsilon\oint_{\partial C_i} \partial\varphi/\partial n \,\mathrm{d}s\), because the matrix that maps voltages to charges is the capacitance matrix of a circuit. A chip has millions of wires, and random-walk solvers became an industrial tool for this capacitance extraction (Le Coz and Iverson 1992). Hwang et al. (2010) computed the capacitance of the unit cube this way, and Rodriguez et al. (2026) guide the walks with a neural network. Figure 6 reproduces the potential problem with two conductors.
Molecules: the Poisson–Boltzmann equation
Around a protein in salt water, mobile ions screen the electric field. Up to physical constants, the potential then satisfies the linearised Poisson–Boltzmann equation,
$$-\nabla\cdot\big(\epsilon(x)\,\nabla\varphi\big) + \bar\kappa^2(x)\,\varphi = \rho_{\text{fixed}}(x),$$with a dielectric \(\epsilon\) that jumps at the molecular surface and a screening term \(\bar\kappa^2\) that is non-zero only in the solvent. Outside the molecule this is the screened Poisson equation of Figure 5. Bossy et al. (2010) give a probabilistic interpretation and walk-on-spheres algorithms for it, with special care at the molecular surface where the dielectric jumps, and Mascagni and Simonov (2004) compute physical properties of large molecules with Monte Carlo methods of this kind.
Heat
Steady heat conduction with conductivity \(k\) and internal heat sources \(q\) is the Poisson equation \(-k\,\Delta T = q\), the Poisson mode of Figure 4 with \(f = q/k\). A fixed temperature on the boundary is Dirichlet data. An insulated wall is a Neumann condition, which needs Walk on Stars (below). Transient problems, \(\partial_t T = \kappa\,\Delta T\), are within reach of the same ideas (Zhou et al. 2026).
Robots: planning on a harmonic potential
A classic way to steer a robot through a cluttered room is to solve a Laplace problem over its free space (Connolly, Burns and Weiss 1990),
$$\Delta u = 0 \ \text{ in free space}, \qquad u = 1 \ \text{ on walls and obstacles}, \qquad u = 0 \ \text{ at the goal},$$and to follow \(-\nabla u\). By the maximum principle \(u\) has no local minimum in free space, so the descent cannot get stuck the way it can on hand-tuned potential fields. It moves away from obstacles because they sit at the maximum, and it ends at the goal. The catch is flatness. Inside an enclosed room held at \(u = 1\), the potential far from the goal differs from 1 by an exponentially small amount. A grid solver in double precision can still read a direction from that, but a Monte Carlo estimate cannot, because almost no walk ever reaches the goal. In an open field, closed off only by a boundary far away, the chance of reaching the goal decays just logarithmically with distance, and walks recover the gradient. A walk-on-spheres robot also never needs the whole field. It estimates \(\nabla u\) only where it stands, with the gradient estimator above, and takes a step. Kotsinis et al. (2025) use harmonic fields and Monte Carlo integration in this spirit to explore unknown indoor environments.
Surfaces from points
Poisson surface reconstruction (Kazhdan et al. 2006) turns an oriented point cloud into a watertight surface. It smears the normals into a vector field \(\vec V\) and looks for an indicator function \(\chi\), one inside and zero outside, whose gradient matches it as closely as possible. That least-squares problem is a Poisson equation,
$$\Delta\chi = \nabla\cdot\vec V .$$Our paper uses surface reconstruction as one of its applications. More broadly, Sawhney and Crane (2020) show that many geometry-processing tasks reduce to Laplace or Poisson problems that walks can solve directly on messy geometry.
Fluids
Incompressible flow solvers spend most of their time in one step, the pressure projection. After moving the velocity forward to an intermediate field \(\mathbf v^*\), they solve
$$\Delta p = \frac{\rho}{\Delta t}\,\nabla\cdot\mathbf v^*, \qquad \mathbf v = \mathbf v^* - \frac{\Delta t}{\rho}\,\nabla p,$$a Poisson equation every time step, which makes the new velocity divergence-free. Jain et al. (2024) build a fluid simulator that estimates this step with Monte Carlo walks and a neural field, and Sabelfeld and Bukhasheev (2022) apply random-walk methods to the Navier–Stokes and Burgers equations directly.
Elasticity
Small deformations \(\mathbf w\) of an isotropic elastic solid obey the Lamé equation,
$$\mu\,\Delta\mathbf w + (\lambda + \mu)\,\nabla(\nabla\cdot\mathbf w) + \mathbf b = 0,$$with Lamé parameters \(\lambda, \mu\) and body force \(\mathbf b\). The \(\nabla(\nabla\cdot\mathbf w)\) term couples the components, so this is not a set of independent Laplace equations. Even so, Aksyuk et al. (2023) build stochastic simulation algorithms for its iterative solution.
Porous media
How easily fluid seeps through rock or soil is governed by flow in a maze of pores that no one wants to mesh. Hwang, Given and Mascagni (2000) estimate the permeability of porous media from Brownian motion paths among the grains instead.
Beyond the Laplacian
Other boundary conditions
Walk on Spheres needs Dirichlet data where it stops. Walk on Stars (Sawhney et al. 2023) handles Neumann (reflecting) boundaries by replacing balls with star-shaped regions that can include parts of the reflecting boundary, and Miller et al. (2024) extend it to Robin conditions. Yu et al. (2025) make derivative estimates robust near Neumann boundaries. Maesumi et al. (2026) estimate Steklov (Dirichlet-to-Neumann) operators on large meshes of poor quality with many connected components.
Coefficients, media and interfaces
Spatially varying coefficients (Sawhney et al. 2022) appeared above. Miller et al. (2025) treat complex microparticle geometry as a stochastic participating medium. Ding and Stinchcombe (2026) handle elliptic interface problems with flux-jump conditions, walking on the interfaces themselves.
Time
Zhou et al. (2026) estimate transient temperatures at arbitrary points and times without time stepping or a volume mesh. Bao et al. (2026) extend Walk on Stars to the parabolic heat equation with Neumann conditions, and a second paper by Bao et al. (2026) handles nonlinear radiative boundary conditions with a fixed-point iteration. Shalimova and Sabelfeld (2024) treat anisotropic transient diffusion with random walks on spheres.
Differentiable and inverse problems
Yu et al. (2024) differentiate Monte Carlo Poisson solutions, and Yilmazer et al. (2024) solve inverse PDE problems with grid-free estimators, and Saeed et al. (2026) use Walk on Spheres to cut cage-based deformations.
Learning from walks
A single walk is cheap and noisy, and a neural network trained on many noisy targets averages the noise away. That makes Monte Carlo estimates natural training data. Neural caches (Li et al. 2023) fit a network to Walk-on-Spheres estimates as they arrive, to cache the solution and reduce its variance. Neural Walk-on-Spheres (Nam et al. 2024) trains a network against Walk-on-Spheres targets, avoiding the high-order derivatives of physics-informed losses. Extensions cover repeated queries over a static region (Song et al. 2024) and fractional PDEs driven by α-stable Lévy processes (Guo et al. 2026). These methods mostly target one PDE instance, or a narrow family of them.
Other recent work learns across distributions of problems. Hsu et al. (2026) train on 100,000 elliptic PDEs and report speedups equivalent to 512 to 2,048 times more Monte Carlo compute, while still running a low-budget Walk-on-Spheres solve at inference. He et al. (2026) learn a boundary kernel from Walk-on-Spheres exit samples, so new boundary values and source terms need no retraining. Zhang et al. (2025) derive an unsupervised training objective from the probabilistic representation itself.
Our own work (Viswanath, Nam et al. 2026) asks whether the stochastic solver can supervise a neural operator, one model for a whole family of geometries, sources and boundary data. The observation is simple. A fresh Walk-on-Spheres estimate with a handful of walks is an unbiased but noisy measurement of the solution. A regression loss against it therefore has the same minimiser as a loss against the true solution, and drawing new estimates every epoch averages the noise over training. The operator needs neither precomputed solutions nor high-order derivatives. The same recipe carries over from Walk on Spheres to BSDE estimates for nonlinear problems. The paper and code have the details.
Timeline
- 1828Brown reports the ceaseless jitter of pollen particles in water.
- 1905Einstein ties Brownian motion to the diffusion equation.
- 1923Wiener constructs a probability measure on continuous paths.
- 1928Courant, Friedrichs and Lewy read the discrete Laplacian as a random walk.
- 1944Kakutani: the Dirichlet problem as an expectation over Brownian paths.
- 1948Feynman: quantum mechanics as a sum over paths.
- 1949Kac makes imaginary-time path integrals rigorous: the Feynman–Kac formula.
- 1951Itô's formula for functions of stochastic processes.
- 1956Muller introduces Walk on Spheres.
- 1990Pardoux and Peng: backward SDEs, the route to a nonlinear Feynman–Kac formula.
- 2003Mascagni and Hwang analyse the ε-shell error.
- 2012Binder and Braverman pin down the convergence rate on general domains.
- 2020Sawhney and Crane bring Walk on Spheres to geometry processing.
- 2022Spatially varying coefficients through delta tracking.
- 2023Walk on Stars for Neumann conditions; boundary value caching; neural caches.
- 2024Robin conditions; Neural Walk-on-Spheres; differentiable and inverse solvers.
- 2025A SIGGRAPH course on the state of the art; harmonic caching; ε-free walks.
- 2026Time-dependent diffusion, decomposed subdomains, and operators learned from walks.
References
- I. A. Aksyuk, A. E. Kireeva, K. K. Sabelfeld and D. D. Smirnov (2023). Stochastic Simulation Algorithms for Iterative Solution of the Lamé Equation. Numerical Analysis and Applications.
- A. Bao, J. Xu, E. Shen and J. Wang (2025). Off-Centered WoS-Type Solvers with Statistical Weighting. SIGGRAPH Asia 2025 Conference Papers.
- A. Bao, E. Shen and J. Wang (2026). Monte Carlo PDE Solvers for Nonlinear Radiative Boundary Conditions. ACM Transactions on Graphics.
- A. Bao et al. (2026). Walking on Heat Stars for Parabolic Heat Equations with Neumann Boundary Conditions. arXiv:2606.16578.
- I. Binder and M. Braverman (2012). The rate of convergence of the Walk on Spheres Algorithm. Geometric and Functional Analysis.
- M. Bossy, N. Champagnat, S. Maire and D. Talay (2010). Probabilistic interpretation and random walk on spheres algorithms for the Poisson-Boltzmann equation in molecular dynamics. ESAIM: Mathematical Modelling and Numerical Analysis.
- R. Brown (1828). A brief account of microscopical observations made in the months of June, July and August 1827, on the particles contained in the pollen of plants; and on the general existence of active molecules in organic and inorganic bodies. The Philosophical Magazine 4(21):161–173.
- C. I. Connolly, J. B. Burns and R. Weiss (1990). Path planning using Laplace's equation. IEEE International Conference on Robotics and Automation.
- R. Courant, K. Friedrichs and H. Lewy (1928). Über die partiellen Differenzengleichungen der mathematischen Physik. Mathematische Annalen 100:32–74.
- X. Ding and A. R. Stinchcombe (2026). Walk-on-interfaces: A Monte Carlo estimator for an elliptic interface problem with nonhomogeneous flux jump conditions and a Neumann boundary condition. Journal of Computational Physics.
- A. Einstein (1905). Über die von der molekularkinetischen Theorie der Wärme geforderte Bewegung von in ruhenden Flüssigkeiten suspendierten Teilchen. Annalen der Physik 322(8):549–560.
- R. P. Feynman (1948). Space-time approach to non-relativistic quantum mechanics. Reviews of Modern Physics 20(2):367–387.
- L. Guo et al. (2026). FNWoS: Fractional Neural Walk-on-Spheres Methods for High-Dimensional PDEs Driven by α-stable Lévy Process on Irregular Domains. arXiv preprint.
- J. He, S. Wang, Y. Sun and B. Zhu (2026). Neural Harmonic Measure Operator. arXiv:2609.35752.
- P. Himmler and T. Günther (2025). Conformal First Passage for Epsilon-free Walk-on-Spheres. ACM Transactions on Graphics.
- E. Hsu, H. M. Yam and I. Ge (2026). MC²: Monte Carlo Correction for Fast Elliptic PDE Solving. arXiv:2605.09288.
- T. Huang, J. Ling, S. Zhao and F. Xu (2025). Guiding-Based Importance Sampling for Walk on Stars. SIGGRAPH 2025 Conference Papers.
- W. Huang, Y. Zhu, Q. Fang and L. Liu (2026). Probe-based Walk on Spheres for Efficient Path Reusing. ACM Transactions on Graphics.
- C.-O. Hwang, J. A. Given and M. Mascagni (2000). On the rapid estimation of permeability for porous media using Brownian motion paths. Physics of Fluids.
- C.-O. Hwang, M. Mascagni and T. Won (2010). Monte Carlo methods for computing the capacitance of the unit cube. Mathematics and Computers in Simulation.
- K. Itô (1951). On a formula concerning stochastic differentials. Nagoya Mathematical Journal 3:55–65.
- P. Jain, Z. Qu, P. Y. Chen and O. Stein (2024). Neural Monte Carlo Fluid Simulation. SIGGRAPH 2024 Conference Papers.
- C. Jambon, M. S. Nabizadeh and M. Konaković Luković (2026). Walk on Decomposed Subdomains: A Hybrid Monte Carlo–Deterministic Solver for Elliptic PDEs. ACM Transactions on Graphics.
- M. Kac (1949). On distributions of certain Wiener functionals. Transactions of the American Mathematical Society 65(1):1–13.
- S. Kakutani (1944). Two-dimensional Brownian motion and harmonic functions. Proceedings of the Imperial Academy, Tokyo 20(10):706–714.
- M. Kazhdan, M. Bolitho and H. Hoppe (2006). Poisson surface reconstruction. Eurographics Symposium on Geometry Processing.
- D. Kotsinis, G. C. Karras and C. P. Bechlioulis (2025). Autonomous Exploration in Unknown Indoor 2D Environments Using Harmonic Fields and Monte Carlo Integration. Sensors.
- Y. L. Le Coz and R. B. Iverson (1992). A stochastic algorithm for high speed capacitance extraction in integrated circuits. Solid-State Electronics.
- J.-F. Le Gall (2016). Brownian motion, martingales, and stochastic calculus. Graduate Texts in Mathematics, Springer.
- Z. Li et al. (2023). Neural Caches for Monte Carlo Partial Differential Equation Solvers. SIGGRAPH Asia 2023 Conference Papers.
- Z. Li et al. (2024). Neural Control Variates with Automatic Integration. SIGGRAPH 2024 Conference Papers.
- A. Maesumi et al. (2026). Monte Carlo Steklov Operators for Large-Scale Geometry Processing in the Wild. arXiv:2606.05581.
- M. Mascagni and C.-O. Hwang (2003). ϵ-Shell error analysis for “Walk On Spheres” algorithms. Mathematics and Computers in Simulation.
- M. Mascagni and N. A. Simonov (2004). Monte Carlo Methods for Calculating Some Physical Properties of Large Molecules. SIAM Journal on Scientific Computing.
- B. Miller, R. Sawhney, K. Crane and I. Gkioulekas (2023). Boundary Value Caching for Walk on Spheres. ACM Transactions on Graphics.
- B. Miller, R. Sawhney, K. Crane and I. Gkioulekas (2024). Walkin’ Robin: Walk on Stars with Robin boundary conditions. ACM Transactions on Graphics.
- B. Miller, R. Sawhney, K. Crane and I. Gkioulekas (2025). Solving partial differential equations in participating media. ACM Transactions on Graphics.
- M. E. Muller (1956). Some Continuous Monte Carlo Methods for the Dirichlet Problem. The Annals of Mathematical Statistics.
- H. C. Nam, J. Berner and A. Anandkumar (2024). Solving Poisson Equations using Neural Walk-on-Spheres. arXiv:2406.03494.
- N. Nüsken and L. Richter (2021). Interpolating between BSDEs and PINNs: deep learning for elliptic and parabolic boundary value problems. arXiv:2112.03749.
- B. Øksendal (2003). Stochastic differential equations: an introduction with applications. Universitext, Springer, 6th edition.
- E. Pardoux and S. Peng (1990). Adapted solution of a backward stochastic differential equation. Systems & Control Letters.
- H. R. Rodriguez, J. Huang and W. Yu (2026). DeepRWCap: Neural-Guided Random-Walk Capacitance Solver for IC Design. AAAI Conference on Artificial Intelligence.
- K. K. Sabelfeld and O. Bukhasheev (2022). Global random walk on grid algorithm for solving Navier–Stokes and Burgers equations. Monte Carlo Methods and Applications.
- H. Saeed et al. (2026). Fast Cutting of Cage Based Deformation with Walk on Spheres. SIGGRAPH 2026 Conference Papers.
- R. Sawhney and K. Crane (2020). Monte Carlo geometry processing: A grid-free approach to PDE-based methods on volumetric domains. ACM Transactions on Graphics.
- R. Sawhney, D. Seyb, W. Jarosz and K. Crane (2022). Grid-free Monte Carlo for PDEs with spatially varying coefficients. ACM Transactions on Graphics.
- R. Sawhney, B. Miller, I. Gkioulekas and K. Crane (2023). Walk on Stars: A Grid-Free Monte Carlo Method for PDEs with Neumann Boundary Conditions. ACM Transactions on Graphics.
- R. Sawhney, B. Miller, I. Gkioulekas and K. Crane (2025). State of the Art in Grid-Free Monte Carlo Methods for Partial Differential Equations. SIGGRAPH 2025 Courses.
- I. Shalimova and K. Sabelfeld (2024). Random walk on spheres method for solving anisotropic transient diffusion problems and flux calculations. Monte Carlo Methods and Applications.
- S. Song, A. Fahim and M. Mascagni (2024). WoS-NN: An Effective Stochastic Solver for Elliptic PDEs with Machine Learning. Monte Carlo and Quasi-Monte Carlo Methods (MCQMC 2024), Springer Proceedings in Mathematics & Statistics.
- H. Viswanath, H. C. Nam, J. Berner, A. Anandkumar and A. Bera (2026). Operator learning using weak supervision from Walk-on-Spheres. arXiv:2603.01193.
- N. Wiener (1923). Differential-space. Journal of Mathematics and Physics 2(1–4):131–174.
- J. Wu, X. Hu, S. Zhao and K. Xu (2026). Gradient Domain Reconstruction for Monte Carlo PDE Solvers. ACM Transactions on Graphics.
- E. F. Yilmazer, D. Vicini and W. Jakob (2024). Solving Inverse PDE Problems using Grid-Free Monte Carlo Estimators. ACM Transactions on Graphics.
- Z. Yu, L. Wu, Z. Zhou and S. Zhao (2024). A Differential Monte Carlo Solver For the Poisson Equation. SIGGRAPH 2024 Conference Papers.
- Z. Yu et al. (2025). Robust Derivative Estimation with Walk on Stars. ACM Transactions on Graphics.
- J. Zhang (2017). Backward Stochastic Differential Equations. Probability Theory and Stochastic Modelling, Springer.
- R. Zhang et al. (2025). Monte Carlo Neural PDE Solver for Learning PDEs via Probabilistic Representation. IEEE Transactions on Pattern Analysis and Machine Intelligence.
- Z. Zhou, E. d'Eon, R. Sawhney and W. Jarosz (2025). Harmonic Caching for Walk on Spheres. ACM Transactions on Graphics.
- Z. Zhou, R. Sawhney, E. d'Eon and W. Jarosz (2026). Grid-Free Monte Carlo for Time-Dependent Diffusion. arXiv:2609.12306.