Algorithm Search⌘K

Techniquecore

Implicit capture

Also called survival biasing.

Never kills a particle at absorption but multiplies its weight by the scattering probability, which lowers the variance of tallies.

Implicit capture changes one step of analog Monte Carlo transport. In the analog game, a particle that collides is absorbed with probability Σa/Σt\Sigma_a/\Sigma_t and its history ends. With implicit capture, the particle always survives the collision, and its weight is multiplied by the survival probability c=Σs/Σtc = \Sigma_s/\Sigma_t. The expected weight that leaves each collision is the same in both games, so every tally keeps its mean. The variance changes because an absorption, which is a random event worth all or nothing, is replaced by its expected value. Since weights now only decrease, the history never ends by itself, and implicit capture is always used together with Russian roulette below a weight cutoff. It is one of the oldest and most common variance reduction methods of neutron and photon Monte Carlo.

In plain words

In a normal simulation, a particle that hits an atom is either swallowed or bounces on. If half of the hits swallow the particle, half of the particles stop at each hit.

With implicit capture, no particle is ever swallowed. Instead, each particle carries a weight, which says how much of a real particle it stands for. At each hit, it bounces on, but its weight is cut in half. On average, the same amount of particle goes on as before.

When the weight gets very small, the particle is not worth the work to follow. Then a coin decides: either it stops, or it goes on with a larger weight. The coin is set so that, on average, nothing is lost.

When it applies

  • The medium absorbs a fair fraction at each collision, cc clearly below 1, and the tally is far from the source: leakage, transmission, or a detector behind an absorber. The analog game loses most histories before they reach the tally.
  • The tally is an absorption rate. Then each collision can score its expected absorption w Σa/Σtw\,\Sigma_a/\Sigma_t instead of a random all-or-nothing event.
  • The code already carries particle weights for other methods, such as splitting, weight windows or the exponential transform.

It does not apply directly when the physics at the collision is more than survive or die: fission and (n,2n)(n, 2n) reactions make several particles, and the weight factor must then be the expected number of particles that leave the collision.

The template

The template replaces the absorption step of the analog collision. The holes are the weight factor and the roulette parameters.

  1. IMPLICIT-CAPTURE-COLLISION(w)
  2. 1score collision tallies with w; score absorption tallies with w · Σa/Σt
  3. 2w ← w · Σs/Σt ▷ hole: the expected number of particles that leave
  4. 3if w < w_low then ▷ hole: the cutoff w_low and the survival weight w_s
  5. 4draw u uniform in [0, 1); if u < w / w_s then w ← w_s
  6. 5else end the history
  7. 6sample the new direction and energy as in the analog game

Typical choices are wsw_s a little below the source weight and wloww_{\mathrm{low}} a fraction of wsw_s, for example ws=0.5w_s = 0.5 and wlow=0.25w_{\mathrm{low}} = 0.25 for a source weight of 1. With a weight window, the window replaces the roulette.

Why the mean does not change. This is a theorem. Let WW be the weight that leaves one collision. In the analog game W=wW = w with probability cc and W=0W = 0 otherwise, so E[W]=cwE[W] = cw. With implicit capture W=cwW = cw exactly. Russian roulette keeps E[W]E[W], because (w/ws)⋅ws=w(w/w_s) \cdot w_s = w. By induction over collisions, the expected weight that reaches every point of phase space is the same in both games, and so is the expected score of every tally that is linear in the weight, which includes the collision and track-length estimators.

Why the variance usually falls. This is a heuristic. The analog game spends randomness on the decision to absorb; implicit capture replaces that decision by its expected value, which by the law of total variance cannot increase the variance of what happens at that collision. The roulette adds randomness back, and the longer histories cost more time. So the gain per unit of work depends on the problem and must be measured.

Classic examples

Transmission through a slab. A normal beam enters a slab with ΣtL\Sigma_t L mean free paths and isotropic scattering with survival probability cc. The tally is the transmitted weight. With 10510^5 histories (random.Random(5)), wlow=0.25w_{\mathrm{low}} = 0.25 and ws=0.5w_s = 0.5, the runs give (measurements):

ΣtL\Sigma_t L cc analog TT implicit capture TT variance per history, analog variance per history, implicit collisions per history, analog collisions per history, implicit
2 0.5 0.1892 0.1897 0.1534 0.1228 1.40 2.22
5 0.5 0.0130 0.0129 0.0129 0.0091 1.74 2.95
5 0.9 0.0772 0.0765 0.0713 0.0374 5.12 8.40
2 0.2 0.1482 0.1484 0.1263 0.1190 1.02 1.18

The means agree within their errors. The variance per history always falls, by a factor from 1.06 to 1.9. But histories are longer, and if the cost is taken as one plus the number of collisions, the product of variance and cost falls only for ΣtL=5\Sigma_t L = 5, c=0.9c = 0.9 (by about 20%), and is a little worse in the other three cases. With only an absorber and transmission, implicit capture is not a large gain by itself; it pays when it is combined with methods that push particles toward the tally.

Absorption tally in an infinite medium. In an infinite medium with c=0.5c = 0.5, a particle collides 1/(1−c)=21/(1 - c) = 2 times on average and is absorbed once. The analog estimate of the absorption per source particle is always 1, with zero variance. With implicit capture, each collision scores w(1−c)w(1 - c), and without roulette the total is ∑kck(1−c)=1\sum_k c^k(1 - c) = 1, again with zero variance, but only after an infinite history; with roulette the total is random with mean 1. This is a case where implicit capture can only add noise.

Deep penetration with the exponential transform. In shielding problems, the exponential transform stretches flight paths toward the detector and changes weights; implicit capture keeps the stretched particles alive through the absorbing shield. The two together, with weight windows to control the weights, are the standard method of deep penetration.

Variations

  • Continuous absorption. Instead of a factor at each collision, the weight is reduced along the path by e−Σase^{-\Sigma_a s}, and collisions are sampled with Σs\Sigma_s only. Implicit Monte Carlo uses this to lower the noise of the absorbed energy.
  • Expected fission. In a criticality code, a collision produces fission sites with the expected number w νΣf/Σtw\,\nu\Sigma_f/\Sigma_t instead of a random reaction choice, and the particle continues with weight w Σs/Σtw\,\Sigma_s/\Sigma_t.
  • Forced collision. In a thin region the particle is split into an uncollided part with weight we−τw e^{-\tau} and a part forced to collide with weight w(1−e−τ)w(1 - e^{-\tau}); it is the analogous expected-value idea for the flight instead of the collision.
  • Weight windows. The window splits heavy particles and plays roulette with light ones in each region, so that the weight stays near a target given by an importance estimate.

Pitfalls

  • No roulette. Without a weight cutoff, a history in a medium with no leakage never ends.
  • A roulette that is too strict. A high cutoff ends histories that would reach the tally, and the variance grows back toward the analog value; a low cutoff wastes time on tiny weights.
  • Integer counts. Tallies of the number of absorptions or of particles that cross a surface must sum weights, not count particles.
  • Large weights in the tally. If other methods raise weights, a few heavy particles can dominate a tally. Check the variance of the variance or the largest score.
  • Nonlinear tallies. Pulse-height tallies, which bin the total energy a history deposits in a detector, are not linear in the weight; implicit capture biases them unless the code treats the history as a whole.

Exercises

  1. Show that with implicit capture and no roulette, in an infinite medium, the weight after kk collisions is ckc^k and the expected number of collisions per unit source weight, ∑kck\sum_k c^k, equals 1/(1−c)1/(1 - c), as in the analog game.
  2. For the roulette with survival weight wsw_s, compute the variance that one roulette adds to a particle of weight w<wsw < w_s. When is it smallest?
  3. In the slab table, repeat the runs with wlow=0.05w_{\mathrm{low}} = 0.05 and wlow=0.5w_{\mathrm{low}} = 0.5 and compare the variance per history and the cost.
  4. Give an example of a tally for which implicit capture increases the variance.
  5. Write the factor that replaces Σs/Σt\Sigma_s/\Sigma_t when a collision can also be an (n,2n)(n, 2n) reaction with cross section Σ2n\Sigma_{2n}.

References

  1. Iván Lux and László Koblinger, Monte Carlo Particle Transport Methods, Neutron and Photon Calculations, CRC Press, 1991, the chapters on non-analog games and variance reduction (weights, survival biasing, Russian roulette and splitting)
  2. Jerome Spanier and Ely M. Gelbard, Monte Carlo Principles and Neutron Transport Problems, Dover edition, 2008, the chapters on non-analog random walks and the unbiasedness of weighted estimators
  3. Malvin H. Kalos and Paula A. Whitlock, Monte Carlo Methods, second edition, Wiley-VCH, 2008, Chapter 6, on radiation transport, with weights and the expected value of absorption

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • three classic examples