- Home
- Library
- Computational Quantum Field Theory
- Reducing and Evaluating Loop Integrals
- Combining Integral Errors into Amplitude Errors
Combining Integral Errors into Amplitude Errors
Suppose two numerical loop contributions are each about , while their finite, subtracted combination is about . Asking for six relative digits in each large contribution does not determine even the sign of the small answer. Yet treating the two errors as independent can also be badly misleading if both integrals were evaluated at the same random points.
This article constructs such a calculation from the chapter's massive bubble. We first expose the covariance created by a specific change of variables, then evaluate a stable finite remainder and allocate samples using an independent pilot. The final requested standard error is slightly missed, and that outcome is retained. The distinction between a requested tolerance, an estimated uncertainty, and an independently checked error is central.
Propagate the errors of the combination
For real contributions and fixed coefficients,
where is the covariance of the integral estimates, not the covariance of single integrand values without their sample-count factors.
For complex contributions, the corresponding mean-square fluctuation is
To quote separate real and imaginary uncertainties, retain the covariance of those real components. A single number does not describe their correlation. Uncertain coefficients would contribute additional terms; the example below keeps them exact.
If and use independent random points, the covariance vanishes. If they use the same points , then
and its variance is
Positive correlation reduces the variance of a difference. It would instead increase the variance of a sum with the same signs. Shared points are a deliberate estimator choice, not a reason to omit off-diagonal entries.
This is also an arithmetic issue. If the three covariance terms are large and nearly cancel, estimate the sample variance of the pointwise difference directly. Subtracting the separately accumulated large covariance entries can lose significant digits even when the underlying covariance formula is correct.
A regulated bubble with an explicit subtraction
Let , , and . After scaling the mass and removing the common loop normalization, the Feynman-parameter factor of a massive bubble in is
This equation defines the dimensionless normalization used here. Its difference from has the limit
Remove the first Taylor term as well:
The added analytic term is . The four-dimensional limit of the full remainder gives the preceding article's
The small- behavior gives a natural small target without subtracting a numerically chosen reference value.
Where the large stochastic cancellation comes from
Under uniform sampling in , the integrand for is constant. Its variance is zero. It would be incorrect to attribute a large covariance to that representation.
Instead make the declared change and sample uniformly on . The two integrands become
Both are now nonconstant. Their individual variances grow like , because the chosen Jacobian is variable. This inefficiency is created by the representation; it is not an unavoidable stochastic divergence of the subtracted bubble.
At the fixed values and , deterministic central-moment integration gives
The individual variances and covariance are about , whereas
With samples for each term, the exact-moment standard error is for independent sampling and for paired sampling. Both cost scalar term evaluations. The actual independent estimate of the difference is ; the paired estimate is . These are one-standard-error summaries, not deterministic bounds.
Adding the known Taylor counterterm after integration leaves those uncertainties unchanged. A further improvement is to combine it pointwise, with its exact integral preserved. The resulting integrand estimates directly. At the same sampled values its reported standard error is . This last comparison uses evaluations of a combined remainder kernel; it is a separate cost unit from evaluating two raw terms. No equality of wall-clock work is asserted.
Uniform- sampling is an independent useful control: the variance of its subtracted-bubble integrand is , finite as , with a deterministic second term. The purpose of the poor representation is to make covariance and cancellation visible, then show how a better representation removes unnecessary work.
Stable arithmetic before more samples
Let and . The numerator of the remainder can be regrouped as
Neither bracket should be evaluated by a damaging small subtraction. Define continuous remainder functions
Then the stable integrand in coordinates is
The companion uses the alternating series for and the Taylor series
The retained arguments are small, and explicit series-remainder controls accompany high-precision checks. At , the same expression continuously reduces to . This avoids forming separately in a finite-limit kernel.
Sampling more points does not repair a biased floating-point kernel. Conversely, increasing working precision does not remove Monte Carlo variance. These are distinct parts of the calculation.
Allocate work to the small final target
Our declared illustrative combination is
The coefficients and kinematics define a reproducible combination of loop functions; it is not identified with a complete scattering amplitude of a particular theory. Independent 80- and 120-digit integration gives
The requested Monte Carlo standard error is the absolute value . At an exactly zero amplitude a relative-only target is undefined; the same absolute criterion remains meaningful. Relative tolerance on each original contribution would allow errors around , far larger than this target.
For independent groups, let be the standard deviation of the weighted integrand and its cost per sample. Then
Minimizing at gives
For equal costs, is proportional to . This is an allocation between independent combined remainder integrals, after the covariance inside each subtraction has been handled. Applying an independent-error formula directly to correlated raw pieces would be a different and incorrect optimization.
The weighted-sum strategy is discussed by Heinrich and collaborators in Section 2.1.3, Eqs. (1)–(6). Here we use the ordinary Monte Carlo variance law. An empirical randomized-quadrature convergence rate is not a universal replacement for that law.
The pilot predicts the target; the final variance misses it
For each group, take independent pilot samples of , including its coefficient. Estimate from that pilot, then round the proposed upward. Production uses new streams. Conditional on the pilot, the fixed-size production sample means remain unbiased, and their ordinary variance estimates apply. Reusing pilot values in a data-dependent stopping estimate would need a separate analysis.
The pilot selects and production evaluations. Its predicted SE is . The pilot costs evaluations, making the total . For a fair equal-allocation comparison, spend the entire same total on two groups of production samples, without an unnecessary pilot.
| Allocation | Estimate | Reported SE | SE from independent exact moments |
|---|---|---|---|
| Pilot-based | |||
| Equal counts |
The pilot-based allocation improves the variance at equal total cost, but does not meet the requested SE: the known-moment value is about too large. Its smaller predicted value arose from pilot uncertainty. The retained result explicitly records this miss; no samples were added after consulting the exact answer. The equal-count estimate happens to lie closer to the reference in this realization, despite having larger variance. Realized absolute error and estimator precision are different quantities.
Left: standard errors computed from independently integrated moments for sampled points, with the same known Taylor term added where necessary. Right: actual estimates of at the same total evaluation cost, with one reported SE. The shaded band marks the reference plus or minus the requested absolute scale ; it is not a confidence interval.
A production policy could use a conservative pilot margin, or a prespecified series of independent stages with an appropriate stopping analysis. It should not silently keep sampling until an estimate agrees with a known answer. Here the useful output is an estimate with its quantified uncertainty and an explicit missed-target status.
The regulator also has a separate effect. The value is , so the chosen finite regulator shifts the target by . Checks at and retain that dependence. This deterministic shift is neither part of the sampling SE nor evidence that the physical regulator limit has been taken. At a tighter statistical target it would matter directly.
Validate a complete one-loop amplitude
The small remainder above tests stochastic error propagation. We can now use the same equal-mass integral in a physical on-shell amplitude whose sign, symmetry factor and imaginary part have independent tests. Take one real scalar in four dimensions with interaction , physical pole mass and tree invariant amplitude . Fix the renormalized four-point vertex at zero external momenta to its tree value. This is an off-shell subtraction condition. The scattering momenta at which we predict the amplitude below are on shell. The one-loop tadpole shifts the mass and has no momentum-dependent residue at this order.
At second order, attach two distinct external labels to each quartic vertex and connect the two remaining pairs of slots. The three unordered partitions give the graphs. For each partition there are two vertex assignments, twelve ordered external attachments per vertex and two internal pairings. The expansion gives
The scalar numerator is one. In each graph a shift of the dimensionally regulated loop momentum puts the denominators into the same two-propagator family with invariant . No master with a tensor numerator is needed. Subtracting the zero-external-momentum vertex removes the same momentum-independent pole from each channel. In the site's convention for the connected matrix element , the finite result is
Write and . The three arguments use a single subtracted master,
The vertex and propagator factors, the dimensional subtraction and the physical upper edge are derived in the one-loop scalar optical theorem. The master-integral transport evaluates this same branch from Euclidean boundary data.
Set , and . Generating physical center-of-mass momenta at scattering angle yields and , with . The program enumerates the labeled attachments, routes their momenta and sums the masters. Above threshold it divides the parameter interval at the two real zeros of the logarithm’s argument, integrates and adds the upper-edge imaginary area. A second evaluation uses the closed form of the bubble.
| 1 | |||
| 0 |
The real part at right angles changes when either crossed master is omitted. Exchanging the two outgoing scalars interchanges and , leaving the sum invariant. Summing the three real quadrature indicators with the common positive coefficient gives less than at both points; the closed-form sums agree to . These tests cover the numerical integrals at the stated inputs. Effects of order require another perturbative order.
In the forward direction, integrate the squared tree amplitude over the identical two-particle intermediate state. At its speed factor is . Let be this phase-space integral divided by for identical particles. State completeness then predicts
This equals . Taking the opposite logarithmic edge reverses the optical-theorem sign. Omitting the graph factor doubles this imaginary part. The cut is insensitive to the real crossed channels, which is why the numerical real-part and crossing comparisons are also part of this validation. Zwicky, §§4.2.3–4.3
Reproduction and scope
Run the adjacent one_loop_scalar_amplitude.py for the generated scalar graphs, physical momenta, subtracted parameter integrals and independent cut comparison.
Run python3 examples/computational-qft/numerical-integration/amplitude_error_budget.py to regenerate amplitude-error-results.json. Comparison streams use SeedSequence([881025,20,stream]). Allocation pilots, allocated production, and equal-count production use stages , , and , respectively, with the group index as the final seed component. The settings were fixed before any draws.
The selected output retains sample means, covariance entries, stable difference variances, pilot and final counts, high-precision references, and regulator refinements. Exact moments diagnose the achieved variance but do not determine the implemented allocation. This is one allocation experiment, not a coverage study. Control variates explain the related idea of subtracting a fluctuation with a known integral.
Exercises
1. Shared points, signs, and a constant subtraction
For , derive the independent- and common-point variances using evaluations of each integrand. When is pairing beneficial? Explain why uniform sampling of the bubble parameter makes the second term deterministic, while changes that statement without changing the integral.
Solution
Write and when the functions are evaluated on a common point. Independent streams give
Shared points give
Pairing helps exactly when ; negative covariance worsens a difference. For a sum, the covariance has the opposite sign in the comparison.
With uniform , the subtraction integrand is , so . After , the measure contributes and varies. The integral is still because , but its stochastic estimator now fluctuates. When the other integrand shares this leading factor, the covariance nearly cancels those fluctuations. The estimator's variance depends on its representation as well as on the target integral.
2. Derive the minimum-cost allocation
For independent groups with variance and cost , derive the minimum-cost allocation for a requested absolute variance . State how an independent pilot and integer counts modify its practical interpretation.
Solution
For positive , introduce
Stationarity gives , hence . Substitution into the constraint yields
Known zero-variance groups need no stochastic work. An observed zero variance in a small pilot is not proof of that property. Integer rounding upward preserves the variance target if the are known exactly; maximum budgets can prevent it.
With estimated pilot deviations, the formula only targets the estimated variance. The pilot's cost must be added, and its uncertainty can make the actual variance exceed the requested value, as it does here. New production samples keep the final means unbiased conditional on the pilot. An absolute works even when the true amplitude is zero; no division by that amplitude enters the optimization.
3. Test the identical-particle factor
At the same , a program reports . Can a different real zero-momentum subtraction account for this value? Which piece of the computation should be inspected first?
Solution
Twice the reported imaginary part is , whereas the tree-level two-body probability is after dividing the labeled phase space by . A real local quartic counterterm changes the real amplitude. Check that exchanging the two identical internal lines gives the coefficient in the loop, then check that the imaginary part of the normalized master is . The factor of two relating the absorptive amplitude to the probability belongs only on the optical-theorem side of this comparison.
Summary
Set precision using the final combination, preserve covariance when points are shared, and stabilize cancellations before spending more samples. Allocate independent work using the variance of the combined integrands and count the pilot. A requested SE is a design target: the retained estimate must still report its achieved uncertainty, regulator dependence, and any missed target.
References
- G. Heinrich, S. P. Jones, M. Kerner, V. Magerya, A. Olsson, and J. Schlenk, Numerical Scattering Amplitudes with pySecDec, Computer Physics Communications 295 (2024) 108956, arXiv:2305.19768v2, Section 2.1.3, Eqs. (1)–(6), weighted-sum allocation and the subsequent discussion of nonuniform convergence. The independent-error formula there is distinguished from the shared-point covariance in this article.
Scrollable formula. Use Left and Right arrow keys to reveal hidden content.
Scrollable table. Use Left and Right arrow keys to reveal hidden columns.
Scrollable figure. Use Left and Right arrow keys to reveal hidden content.