- Home
- Library
- Computational Quantum Field Theory
- From a Lagrangian to Executable Amplitudes
- Simplifying Amplitudes without Losing Cancellations
Simplifying Amplitudes without Losing Cancellations
Two expressions can be exactly equal and return different answers in machine arithmetic. Scattering amplitudes make this problem especially visible: individual graphs can be large, while gauge invariance leaves a much smaller sum. A second problem can arise even earlier, when a momentum representation loses a small component before the amplitude is evaluated.
This page separates those failures with the charged-scalar Compton amplitude derived in tensor and index algebra. We use , mostly minus, physical on-shell momenta , and in . All displayed numerical amplitudes have divided out.
Three operations with different purposes
Canonicalization removes representational redundancy: two legal dummy-index namings or two orderings of commuting factors become one expression. Factorization changes the arrangement of arithmetic and can expose a useful cancellation. Common-subexpression elimination, or CSE, stores repeated subexpressions once and reuses them. None of these operations, by itself, proves that the resulting evaluation is well conditioned.
For example,
is exact. The first evaluation subtracts rounded products; the second can avoid that loss. But if the supplied already have errors comparable to their difference, no rearrangement recovers the missing input information. This distinction between cancellation of rounded operands and uncertainty in the inputs is developed in Goldberg, “Cancellation,” including the discussion following Eq. (5).
For an amplitude rewrite, record the domain first. Momentum conservation, mass shells and photon transversality are assumptions, not universal rewrite rules. A symbolic simplifier that imposes them on an off-shell Green function has computed a different object.
Remove gauge cancellation before evaluation
Put , , and . The complete scalar amplitude is
The first term is the seagull. The two Ward identities allow shifts by the corresponding photon momenta. Choose
They satisfy and remain transverse to their photon momenta. For future timelike and nonzero future null , both denominators are positive. In the first exchange graph, ; in the second, . Therefore
This is equality of the physical contracted amplitude, not equality of off-shell tensors. Its derivation uses the complete graph set and Ward identities; discarding the exchange graphs before choosing these representatives would be wrong.
In the scalar rest frame, choose the incoming photon along and the outgoing one at angle in the plane. The in-plane physical polarizations are and , so . Recoil still changes the outgoing energy:
The simple polarization amplitude does not imply recoil-free phase space. The spinor Compton result is different; the scalar calculation here has a two-photon contact vertex.
Keep small momentum components as inputs
Define full-sum light-cone components , , with no :
A boost along with sends and . For the initial scalar, , . If instead one stores and and subtracts them later, the small may already be inaccurate. Using light-cone formulas after that subtraction cannot undo the loss.
Our fixed near-collinear family starts with , , and . Gauge representatives are
These are real vectors in this example. Boost all momenta and polarizations by the same . The incoming photon stays along , while
The photons approach collinearity in this frame as grows. Their invariant products stay fixed; this is not a physical massless collinear singularity. The exact amplitude remains .
The calculation compares four routes: diagram or projected amplitudes, each using Cartesian or independently retained light-cone components. The following entries are absolute errors against :
| Cartesian diagrams | Cartesian projected | Light-cone projected | |
|---|---|---|---|
At , the angle is approximately radians and the reconstructed Cartesian already has about relative error. Even the projected formula then fails. Both light-cone forms remain accurate in this scan because the boost has not forced a subtraction of large nearly equal components. Different arithmetic orders can change the particular inaccurate values; the table records the supplied implementation.
Isolate cancellation among graphs
Now fix and lower , keeping the rest angle and the same gauge representatives. Their components stay finite: and are direction vectors. The exchange graphs nevertheless grow as and cancel in the complete amplitude.
For graph values , define the diagnostic
It measures sensitivity of this sum to small errors in its terms, not the condition number of the entire physical problem. With binary64 unit roundoff , a value near one warns that accurate individual terms need not give an accurate total.
| Diagram sum error, light-cone | Projected error, light-cone | ||
|---|---|---|---|
Here the light-cone input representation is not the problem. The direct sum returns at the last point, while the projected form returns . The algebraic Ward cancellation has removed the large terms before floating-point evaluation.
Two distinct sources of error for the fixed target . Left: increasing makes the lab photon angle small and degrades Cartesian inputs. Right: decreasing at exposes cancellation among exchange graphs even with accurate light-cone inputs. Points are the fixed parameter scans in the tables, not random events or a uniform error bound.
A reference must say what its inputs mean
The retained calculation evaluates the direct diagrams at 100 and 160 decimal digits from the same exact decimal seed parameters. The refinement changes the result by less than ; the independent rest-frame value is exactly .
It also promotes every actual binary64 component exactly to high precision and evaluates each formula on those rounded inputs. This separates two questions: how accurately did machine arithmetic evaluate its supplied expression, and how close is that supplied problem to the intended on-shell event? Rounded Cartesian data can violate the mass-shell relations; the diagram and projected formulas need not then agree even in high precision. Simply increasing the precision of already rounded inputs does not recreate the original event.
Reproduce the fixed scans with:
python3 examples/computational-qft/symbolic-computation/scalar_stability.py
The retained scalar-stability-results.json includes both error definitions and the momentum-component loss. No random sampling or fitted correction is used. These checks do not establish accuracy for arbitrarily small physical amplitudes, unbounded boosts, zero photon energy or massless scalar kinematics. In particular, a relative error divided by a vanishing amplitude is not a useful universal test; retain an absolute scale as well.
Summary
Simplification needs a declared kinematic domain and a numerical goal. Ward identities remove gauge-dependent graph cancellation, while appropriate momentum coordinates preserve small input components. CSE can then reduce repeated work, but its correctness and speed require the separate generated-code checks.
Exercises
1. Locate the large soft terms
In the scalar rest frame write , and use , . Derive the contact, and contributions. Show their sum is and obtain the leading soft growth of when , .
Solution
All expressions below have stripped. Direct dot products give
The terms cancel. Recoil gives , so the remaining terms cancel as well, leaving . The two exchange magnitudes have leading sum . Consequently
For , , , this is . At it is about . This diagnoses the graph representation; the exact physical amplitude stays finite. When , use an absolute-error criterion because the target amplitude vanishes.
2. Why a late coordinate conversion cannot help
For the longitudinal boost derive the stated lab angle and estimate the relative error in if each Cartesian component has rounding error of order . At what boost scale can this become order one?
Solution
A null vector satisfies for this planar positive-angle event. The boost multiplies by and leaves fixed, hence
Meanwhile . Subtracting two rounded Cartesian components can expose an absolute input error of order , or relative error of order . It can be order one at , about for binary64. This is a scale estimate, not a sharp bound on every rounding pattern. Storing directly avoids this particular subtraction. Computing it from the already rounded retains the lost information as an error.
References
- D. Goldberg, “What Every Computer Scientist Should Know About Floating-Point Arithmetic,” ACM Computing Surveys 23 (1991), 5–48; authorized edited reprint, section “Cancellation”.
- SymPy 1.14 documentation, lambdify's CSE option and its generation/evaluation distinction: API documentation.
- D. Tong, Quantum Field Theory, §6.5.1, Eq. (6.585) and scalar-QED rules: HTML lecture notes.
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.