MadGraph 5: going beyond
Paper · 2011 · Johan Alwall, Michel Herquet, Fabio Maltoni et al.
Summary
Interpreting a particle collision starts with knowing what familiar physics can produce. A final state with jets, leptons or missing energy might come from several processes, each with its own set of possible interactions. A proposed new particle or coupling adds more possibilities. MadGraph 5 automates a central calculation behind these comparisons. Given the incoming and outgoing particles and the rules that govern their interactions, it constructs the relevant tree-level Feynman diagrams and writes code to evaluate their combined contribution. That code can be used to predict a production rate, calculate a decay width or generate simulated events.
The authors rewrite MadGraph in Python and change how it finds diagrams. The previous version started with possible diagram shapes and tried to fit allowed interactions to them. MadGraph 5 starts with the particles and builds outward from combinations that the theory allows. When several diagrams share part of a calculation, the generated code can evaluate that part once and reuse it. The program also builds production and decay calculations separately before joining them, and its companion event generator, MadEvent, can integrate related subprocesses together. These changes address different costs, from preparing a calculation to repeatedly evaluating it and finally producing events.
The rewrite also changes what users can calculate. FeynRules derives interactions from a Lagrangian, a mathematical specification of the fields and their dynamics. Its Universal FeynRules Output carries those interactions to MadGraph, and ALOHA generates the numerical routines they require. MadGraph 5 can use this route for interactions involving several fermions, vertices with more particles than the previous version could directly handle, and unusual forms of the strong-interaction charge known as colour. It writes standalone calculation code and can export process libraries for the Pythia 8 event generator. The paper demonstrates the extensions with examples including diquarks, same-sign top-quark production and effective Higgs–gluon interactions.
The authors report agreement with MadGraph 4 on squared matrix elements for more than three thousand processes, evaluated at specified particle momenta. They also compare integrated rates with other generators. The largest gains in preparing code occur in complicated examples, particularly those with explicit decays. For top-quark pair production with full decays, preparing the MadEvent output takes 5640 s with MadGraph 4 and 15.7 s with MadGraph 5 under the reported benchmark conditions. Improvements in numerical evaluation depend on both the process and the routine library. The paper establishes a broader and often faster tree-level workflow and describes how its design can support future work on higher-order calculations and their combination with particle showers.
Deep dive: MadGraph 5: going beyond
MadGraph 5 turns particle interaction rules into collision calculations, with faster code generation and support for a wider range of theories. · about 37 minutes to read
The problem and its context
Why a list of observed particles leaves an open question
The paper starts from a problem in interpreting experiments. A collision detector can register a final state compatible with a new interaction, yet the familiar processes that produce similar signatures may occur much more often. At a proton collider, the authors emphasize the variety of backgrounds involving jets, heavy-flavour quarks, leptons and missing energy. A jet is the observable result of radiation and hadron formation initiated by a quark or gluon. A prediction for a final state with several jets therefore needs to account for the many ways the hard collision can create the partons that initiate them. Here a parton means a quark, antiquark or gluon participating in the description of the collision.
Even after a result departs from an expected background, several candidate explanations can be compatible with it. The paper describes an investigation that moves from predicting signals and backgrounds to constraining the properties of a possible new interaction. Production rates and branching ratios, which describe how often a particle decays through competing channels, can help constrain masses and couplings. Their interpretation depends on being able to calculate how the underlying parameters affect the measurements. The authors also point to spin and charge as properties whose determination depends on accurate predictions. For this broader measurement programme they emphasize the need for calculations at least at next-to-leading order in perturbative quantum chromodynamics, or QCD, the theory of the strong interaction.
A calculation of the hard collision begins with an amplitude. Each Feynman diagram organizes one contribution to that amplitude by specifying the particles at the ends of the diagram, the interactions at its vertices and the propagators connecting those interactions. A propagator represents an intermediate particle in the calculation. The combined amplitude matters because contributions can interfere when combined and squared. A matrix element evaluated for a set of external momenta describes the strength of the process at that point. Integrating over the allowed configurations, called phase space, gives access to a cross section or decay width. An event generator uses the calculation to produce simulated configurations distributed according to the predicted process.
What earlier generators already automated
The authors describe automatic tree-level computation as an established capability. A tree-level calculation uses diagrams without closed loops. General-purpose packages including MadGraph/MadEvent, CompHEP/CalcHEP, Sherpa and Whizard could already generate matrix elements and events for a wide class of renormalizable theories. The paper also describes a line of work that used recursive techniques to handle many-parton amplitudes without explicitly evaluating every ordinary Feynman diagram. Alpgen, Helac and Comix illustrate that development. Those efforts matter to the context of MadGraph 5 because improving the construction and use of explicit diagrams is one way to reduce the cost, while calculating amplitudes through different recursions addresses large multiplicities from another direction.
For earlier MadGraph releases, the challenge began during the construction of the diagrams themselves. The program took the number of external particles, drew up possible ways to connect that many external lines, and then tested whether each connection pattern could be realized by the interactions for the requested process. A connection pattern, or topology, says how the lines and vertices fit together before particle identities are filled in. The number of shapes to inspect rises quickly with the number of external particles. When only a small subset can be realized, most of that work goes into establishing that particular shapes contribute nothing. Repeated substructures in successful diagrams could also leave redundant work in the generated calculation.
A separate constraint lay at the boundary between a theory and the generator. A theory might specify an interaction with an unfamiliar spin dependence, a different arrangement of colour indices or a vertex involving several fields. Earlier MadGraph releases used a pre-defined library of helicity routines, so extending the interaction rules could require writing and testing new numerical routines by hand. The generator also inferred some colour structures from the participating particles. That inference was adequate for the structures encoded in the program, but adding an interaction with a different colour contraction required changes within MadGraph. These were obstacles even in a process with only a few external particles, where the search through possible topologies might itself be inexpensive.
FeynRules offered a way to derive particle interactions directly from a Lagrangian. The authors present it as part of a broader effort to make new theories easier to implement, share and validate. For MadGraph 4, FeynRules produced files tailored to the generator’s own format. That work had to track the needs and limitations of the receiving program. The Universal FeynRules Output, or UFO, was being developed as a common representation so that the rules could be written once in a form that a matrix-element program could read and use.
Where the hard collision fits into a simulation
The paper situates its tree-level work alongside parallel efforts in precision calculations and collision simulation. At next-to-leading order, a calculation must account for real corrections, which involve extra radiation, and virtual corrections, which involve loop amplitudes. Subtraction procedures help combine the contributions into predictions for infrared-safe quantities. The authors describe progress in automating the real corrections and discuss MadLoop and MadFKS as a route to automatic next-to-leading-order QCD predictions for a wide range of Standard Model processes. That work explains why the new implementation had to leave room for more than the tree-level generation benchmarked in the paper.
A different problem arises when the hard process is passed to a simulation of radiation and hadron formation. A parton shower describes further radiation, and hadronization describes the transition to hadrons. If the hard calculation already includes extra partons, some emissions can be represented by both the matrix element and the shower. The authors point to the CKKW and MLM approaches as developments in combining them at leading order. They also discuss MC@NLO and Powheg as approaches to interfacing next-to-leading-order calculations with showers while handling overlap between the descriptions. The paper therefore treats hard-process generation as part of a longer calculation whose stages must exchange physics information correctly, including the particle identities and colour connections that accompany each event.
The method, step by step
From interaction rules to executable calculations
A calculation starts with a specification of the particles, parameters and interactions. The particle information includes properties such as spin and charges. Parameters include masses and coupling constants, which control interaction strengths. An interaction specifies which particles can meet at a vertex and how the corresponding contribution depends on quantities such as spin and colour. FeynRules extracts these vertices from a Lagrangian and writes them in the UFO representation. A UFO is a Python module whose objects describe the theory independently of how any particular matrix-element generator evaluates it.
MadGraph reads that description and a request for a process. A request can identify individual particles or use a label that stands for several species. A jet label, for example, allows the generator to consider the relevant quark, antiquark and gluon assignments. The user can limit the powers of specified couplings, request or forbid an intermediate resonance in the production channel, exclude a particle from internal lines, or specify how a produced particle should decay. The diagrams produced are the ones compatible with the interaction rules and the choices in the request. The paper describes a calculation pipeline driven by these inputs and parameter values. It uses generated phase-space configurations and simulated events for evaluation.
From a Lagrangian to a collision calculation
The steps in order.
ALOHA uses the same interaction information to construct the numerical routines for wavefunctions and amplitudes. A wavefunction here is a numerical representation of an external particle or an intermediate part of a diagram, carrying the information needed to evaluate the next interaction. The routines use the helicities of the external particles, which specify spin states relative to their directions of motion. ALOHA can generate routines in Fortran, C++ or Python. MadGraph supplies the sequence of calls for the requested process. The distinction is between generating a routine for an interaction and deciding which calls to that routine a particular calculation requires. MadGraph can also use the established HELAS routines when working with compatible interactions.
This separation matters when an interaction has several spin and colour terms. A Lorentz structure describes how the kinematic and spin quantities are combined at a vertex. Its colour factor describes the corresponding contraction of strong-interaction charges. An interaction can attach different colour factors to different Lorentz structures. The UFO retains these associations, and ALOHA supplies the required numerical operations. The authors connect this feature to counterterms and rational contributions that arise in higher-order work. Those vertices illustrate why the separation between the physics description and the numerical implementation matters even beyond the processes used to benchmark the release.
Restricting parameters before searching for diagrams
MadGraph can specialize a UFO using a file of numerical parameters in the Les Houches format for physics beyond the Standard Model. The program evaluates the dependent parameters and couplings for those inputs. It then removes vanishing parameters, fixes parameters whose value is unity, and combines equal-valued parameters within the same input block. It similarly consolidates couplings that evaluate to the same value. Interactions whose couplings vanish can be removed from the list used to generate diagrams. The resulting parameter card omits the fixed quantities and uses the restriction file’s values as defaults for the retained parameters.
For the Standard Model, the default restriction makes the CKM matrix diagonal and sets the first- and second-generation fermion masses to zero. The CKM matrix controls flavour mixing among quarks in the relevant interactions. Making it diagonal removes the corresponding off-diagonal transitions from this setup. The benefit of applying these choices at generation time is that the program can discard unavailable interactions before enumerating diagrams and can emit more compact numerical code. The parameter card is part of this mechanism. Once a restriction has removed an interaction from the generated calculation, changing a parameter at run time cannot restore that interaction. The paper describes ways to import the full theory or to choose a different restriction when the defaults are unsuitable.
Coupling orders provide a further control on which diagrams are selected. When the only orders are the QCD and electroweak ones, the default described in the paper favours the lowest possible electroweak order and the largest possible QCD order. The intention is to generate the dominant strong-interaction contribution under that choice. When additional coupling orders are available, MadGraph allows them without imposing that same ordering and the user can specify upper bounds. An effective interaction can therefore be given its own order so that its contributions can be selected separately. This becomes important in the examples where the theory itself requires a particular truncation.
Building diagrams from allowed groups
For diagram generation, MadGraph prepares two dictionaries from the list of interactions. The dictionary called Vertices associates a complete collection of particles with the interactions that can join them. It also records particle–antiparticle pairs for closing a line. The dictionary called Currents answers a related question. Given all but one of the particles in an interaction, it specifies which particle can result when those known legs are combined. A current in this algorithm is the reduced leg that stands for a partial diagram. It retains the identity needed for the next interaction and the connection to the legs it represents.
The program begins by treating every external leg as outgoing for the purpose of these lookups. It reverses the particle or antiparticle identity of the incoming legs as appropriate. A Boolean flag marks every external leg as eligible at the start. At each stage the program checks whether the current set of legs can close through an entry in Vertices. A closure is recorded only when at least two of those legs have the flag set. It also looks for allowed groups in Currents, requiring at least one flagged leg in each group. A group can give more than one possible current, so each permitted replacement creates a branch of the search. Several disjoint groups can be merged in the same iteration.
When the program advances to a reduced set of legs, only the new currents receive the flag. A leg carried through unchanged loses it for that iteration. This bookkeeping ties the admissible groupings and closures to work done in the immediately preceding stage. It prevents the same diagram from being counted via redundant orders of combination. The program repeats the lookup and reduction until the branch reaches the stopping condition of at most two remaining legs. Because the interaction dictionaries come from the input theory, the procedure can apply the same construction to vertices of different sizes.
The paper illustrates the search through electron–positron annihilation into an up quark, an up antiquark and a gluon. There is no direct vertex connecting all those external particles. There are, however, allowed groups inside the list. The electron and positron can be replaced by a photon or a Z boson. The gluon can be grouped with the quark or the antiquark. The quark and antiquark also have allowed replacements, including a gluon, but the resulting collections still have to pass the subsequent checks. A locally allowed interaction is therefore only a candidate step towards a complete diagram.
In the successful branches, the electron–positron pair provides a photon or Z current, and the gluon and one of the quark legs provide another current. That leaves the particles needed for a compatible final vertex. Considering gluon emission on either side of the quark pair yields the four diagrams in the paper’s illustration. Other branches fail because the reduced set has no allowed closing interaction or because the required freshness condition for the participating currents is absent. The example shows how the program can share the discovery of a partial diagram across several outcomes while still distinguishing the complete diagrams.
Turning the diagrams into a sequence of helicity calls
At a specified phase-space point, MadGraph’s generated code computes an external wavefunction for each external leg. It joins wavefunctions at vertices to obtain wavefunctions for internal lines. When the last vertex of a diagram is reached, an amplitude routine returns that diagram’s contribution. If several diagrams contain the same partial calculation, their generated call sequences can refer to the same intermediate result. This helps at evaluation time because a matrix element is typically called repeatedly at different kinematics during an integration. The benefit comes from reusing a result within the applicable calculation at each point.
The direction assigned to a fermion line complicates this construction. A fermion is a particle with the kind of spin carried by quarks and leptons. For ordinary fermion lines, the wavefunction and amplitude conventions can be organized around a direction of flow. A Majorana particle, which is its own antiparticle, or an interaction that violates fermion number can lead to a clash in the tentative directions. When the two lines meeting in a fermion pair have the same incoming or outgoing status, MadGraph needs to reverse one flow and use charge-conjugated forms of the appropriate routines. Charge conjugation here changes the spinor treatment required by the Feynman rules.
Earlier MadGraph releases dealt with these choices during the diagram search by testing regular and charge-conjugate fermion assignments. In MadGraph 5, diagram generation is independent of these flow choices. When generating helicity calls, the program gives a fermion a tentative incoming or outgoing status from the sign of its particle identifier and its place in the initial or final state. At a clash, it follows the lines to look for Majorana particles. If it finds one on a line, it reverses the status and particle identity through the last Majorana particle on that line. Farther along the same line it sets the fermionflow flag to -1. If neither line contains a Majorana particle, it sets that flag along the first line. A call involving a negatively flagged fermion needs the appropriate conjugate routine, and an external wavefunction with the flag uses the reversed incoming or outgoing status.
The example in the paper produces an up-type and a down-type scalar quark through exchange of a Majorana gluino. The tentative assignments of the down-quark and gluino lines clash where they meet. Following the gluino line finds the Majorana particle and reverses its flow. The external up quark farther along that line receives the negative flag. The generated up-quark wavefunction uses the reversed convention, and the call that builds the intermediate gluino uses the conjugate routine. The amplitude call at the vertex where the clash was found uses the ordinary routine, because its arguments carry no negative flow flag. This example shows why the program must track the effect on each call along the line.
For an interaction involving several fermions, the order in which the fermions appear in the interaction definition determines the pairs. The convention alternates incoming and outgoing slots, with any bosons following the fermions. Each pair defines a line for determining spinor flow. Different pairings of the same participating species can therefore demand different calculations. One ordering in the same-sign top example pairs an up-quark leg with an antitop leg, while another pairs the up-quark legs with each other and the antitop legs with each other in the all-outgoing vertex convention. Each pair can independently require charge conjugation, so one routine can carry several conjugation choices.
Computing colour symbolically
Colour is the charge carried by quarks and gluons under the strong interaction. Its treatment has a computational cost separate from finding the diagrams and calculating their helicity amplitudes. A process with many coloured particles can have a large number of colour structures, and summing over their contributions also demands storage. Earlier MadGraph releases encoded a fixed group of colour structures and contraction identities, with the number of colours fixed to 3 in those identities. The arithmetic gave exact colour coefficients for the supported cases. MadGraph 5 represents the colour objects and their products symbolically so that it can carry out contractions for a broader set of interactions.
A central reduction expresses a pair of fundamental colour generators in terms of index identifications.
(Tᵃ)ⁱⱼ (Tᵃ)ᵏₗ = (1/2)(δⁱₗ δᵏⱼ − (1/N꜀) δⁱⱼ δᵏₗ)
Each Tᵃ is a generator acting on fundamental colour indices. The repeated adjoint index a is summed. The letters i, j, k and l are fundamental colour indices and designate the components shown by the upper and lower positions. Each δ is a Kronecker delta, equal to unity for equal indices and zero otherwise. N꜀ is the number of colours. The factor 1/2 fixes the normalization used in the identity, and 1/N꜀ is the inverse number of colours. This rule turns a product of generators into simpler equalities between colour indices. Other colour objects can be expressed through traces of generators and reduced in the same symbolic calculation.
For a given process, the program decomposes the colour factor of each diagram into a basis that it constructs during the calculation. The full amplitude is then represented as follows.
ℳ = ∑ᵢ Cᵢ Aᵢ
ℳ is the full amplitude. The sum runs over basis labels i. Cᵢ is a colour tensor in that basis, and Aᵢ is its associated colour-ordered subamplitude. The authors describe these subamplitudes as gauge invariant and associate them with colour flows, which specify patterns of colour connections. The basis is orthogonal in the limit of a large number of colours.
For the default calculation in the release, MadGraph builds the colour matrix used when squaring the amplitude.
Cᵢⱼ = ∑colours Cᵢ Cⱼ*
Cᵢⱼ is a matrix entry for the pair of basis labels i and j. The sum runs over colour assignments, and Cᵢ and Cⱼ are the corresponding basis tensors evaluated with those assignments. The asterisk denotes complex conjugation. The entries specify how the colour factors associated with the subamplitudes combine after summing over colours. MadGraph calculates the matrix analytically, stores it and includes it in the generated output. With identical particles, especially gluons, symmetries make many entries equivalent. The program uses those equivalences to reduce the work of constructing the matrix.
The authors use the antisymmetric triplet tensor and the symmetric sextet tensors to illustrate how a new colour structure can enter. For the triplet case, a product of the tensor and its conjugate reduces to two terms.
∑ᵢ εⁱʲᵏ ε̄ᵢₗₘ = δʲₗ δᵏₘ − δʲₘ δᵏₗ
ε is the totally antisymmetric tensor on three colour triplet indices, and ε̄ is its complex conjugate on antitriplet indices. The index i is contracted and summed. The indices j, k, l and m are the remaining colour indices. Each δ equates its two indices when they match and vanishes otherwise. The relative minus sign reflects the antisymmetry. This tensor occurs in interactions in which a colour antitriplet diquark couples to quarks, and in the supersymmetric example the authors mention in connection with R-parity violation.
For sextets, a symmetric tensor connects a sextet index with a pair of antitriplet indices, and the conjugate tensor connects the opposite representations. Their contraction has a corresponding symmetric identity.
∑ₐ (K₆)ᴬᵢⱼ (K̄₆)ₐᵏˡ = (1/2)(δᵏᵢ δˡⱼ + δˡᵢ δᵏⱼ)
In this expression the summed sextet index is A, written as the subscript ₐ in the conjugate factor and in the summation sign. K₆ denotes the sextet contraction tensor, and K̄₆ its conjugate. The 6 identifies the sextet representation. i, j, k and l denote triplet or antitriplet indices in the associated pair. The deltas are the same index-identification operation, and 1/2 normalizes the symmetric combination. The gluon–sextet interaction additionally uses a generator in the sextet representation. These objects and the reduction rules let the program calculate both the colour matrix and the flows for diagrams with sextet particles.
A shower program also needs a way to read those flows from an event record. The paper describes a colour sextet as a pair of triplet lines in the planar representation and proposes recording the second triplet line using a negative antitriplet label, with the reverse convention for antisextets. That encoding requires the shower to know how to continue both lines. For the antisymmetric tensor, the authors describe inserting new colour labels that a compatible shower can interpret. The symbolic contraction used in an amplitude and the format used to transmit a sampled colour connection serve different parts of the simulation.
Composing decays and grouping subprocesses
MadGraph builds a decay chain by generating the production process and the individual decays separately. Each decay can have its own descendants. When assembling the calculation, the program replaces the external wavefunction for an unstable particle with the one obtained from its decay. If the decay has several diagrams, the production diagrams are combined with those alternatives. This structure permits reuse when many production subprocesses lead to the same decaying particle, and it preserves spin correlations by joining the wavefunctions in the matrix element. The joined calculation also retains the resonant line shape, called the Breit–Wigner distribution.
For instance, several quark–antiquark initial states can produce a positively charged W boson. The decay to a positron and its neutrino can be generated once and attached to each allowed production assignment. The same holds for the muon and tau decay channels. In an event sample with a specified resonant decay, MadEvent restricts the mass around the peak using a configurable interval.
M ± Γ × bwcutoff
M is the mass of the unstable particle, and Γ is its width. bwcutoff is the run parameter that sets the number of widths on either side of the mass, with a default of 15. The plus and minus signs give the upper and lower limits, respectively. The authors impose the window because nonresonant contributions and their interference can become important away from the peak.
A multiparticle label can produce a long list of candidate subprocesses before decays are even included. MadGraph first avoids redundant searches. It checks conserved quantities supplied by the theory, such as electric charge, and can remember an unsuccessful process and skip crossed versions of it. Crossing relates processes by moving particles between the initial and final states with the corresponding change of particle identity. The program can also reuse diagrams of successful crossed processes by relabelling their legs. It makes these decisions before applying restrictions that distinguish the production channel, such as requiring a particular intermediate particle there. Initial states with the beam assignments exchanged can also be combined when applicable.
For MadEvent output, subprocesses with the same external spins, colours and masses can share a directory. Their diagrams are matched to common integration channels. A channel organizes the phase-space integration around a diagram’s pole structure, meaning the pattern of propagators that can strongly enhance contributions in particular kinematic regions. Diagrams that differ only by a permutation of final-state momenta can share the corresponding channel. Grouping thus changes the number of integrations to organize and the files to store. MadEvent can further divide a channel that contributes a large share of the cross section into jobs that generate separate fractions of its events. The aim is to balance workloads and make unweighting, the production of events with equal statistical weight, more stable.
Exporting, drawing and checking the calculation
The modular design separates diagram and amplitude construction from the output format. MadGraph 5 writes Fortran 77 for MadEvent and standalone evaluations, and C++ for standalone evaluations and Pythia 8. Its Python output is used internally for checks. In Pythia 8, the exported process classes provide the external particle properties and permitted initial states, evaluate the matrix element at the momenta supplied by Pythia, and select the outgoing particle identities and colour flow. The interface described in the paper accepts external processes of the following sizes.
2 → 1
The 2 is the number of incoming particles, and 1 is the number of outgoing particles. The arrow separates the incoming and outgoing states.
2 → 2
The 2 on the left counts the incoming particles, and the 2 on the right counts the outgoing particles. The arrow again indicates the scattering or production process.
2 → 3
Here 2 counts the incoming particles and 3 counts the outgoing particles. The arrow has the same meaning. For these exports, fixed parameters are initialized with the process, while quantities that depend on the strong coupling are recalculated using the running value supplied by Pythia for each event. Related subprocesses can be placed in the same process class when their external masses and spins meet Pythia’s requirements. Shared wavefunctions and amplitudes can then be reused within the class.
MadGraph also draws the generated diagrams. The previous drawing procedure positioned vertices by minimizing line lengths, sometimes producing lines of zero length. The replacement assigns vertices to successive levels from left to right. Initial particles sit at the starting boundary, and vertices attached to the incoming particles or to exchange lines in the t-channel occupy the first vertex level. An s-channel propagator, associated with the total momentum of the relevant incoming group, joins adjacent levels. Final particles are assigned to the far boundary. Within each level the algorithm orders vertices according to their connections to the preceding level. When an external line has to pass through an intermediate level, an invisible placeholder reserves space for it. This makes the pictures readable even when a vertex joins more particles or a decay chain extends across several levels.
The numerical checks look at different ways an error could appear. The permutation check regenerates the calculation with the external particles ordered differently and compares the matrix element at the same phase-space point. Such permutations can change the decomposition into intermediate wavefunctions while leaving the physical calculation the same. The gauge check uses a process with an external massless vector boson and substitutes its momentum for its wavefunction. The expected result is zero to numerical precision if the gauge cancellations are correct. The Lorentz check compares values before and after boosts, which change the reference frame used to specify the momenta. The paper also describes unit tests for individual routines, acceptance tests of complete sequences of user operations, and parallel tests that compare against the previous release. At the time described, the suite included more than 400 independent unit tests.
Experiments and results
Agreement at fixed momenta and after integration
The validation set consists of generated physics processes evaluated at points in phase space. The authors compare squared matrix elements, which test the numerical result of combining the contributing diagrams for specified momenta. Integrated cross sections provide a separate test of the predicted rates after phase-space integration. A pointwise comparison can expose a disagreement hidden in an integrated result, while an integrated comparison also exercises the work needed to turn the matrix element into a rate.
MadGraph 4 supplies the pointwise baseline. With MadGraph 5 the authors test a UFO input with ALOHA routines exported to Fortran 77, the same input route exported to C++, and the earlier MadGraph input format with HELAS and Fortran 77. They vary both the input representation and the path from the interactions to numerical code. The reported squared matrix elements agree across all of the configurations and with the MadGraph 4 baseline for more than three thousand processes. The sample spans the Standard Model, its minimal supersymmetric extension, the effective Higgs interactions and the Randall–Sundrum theory. One Standard Model class allows only first-generation fermions and contains 249 processes. The corresponding class excluding first-generation fermions contains 589. The effective Higgs sample explicitly includes gluon fusion with associated radiation for the listed gluon multiplicities 1, 2, 3, 4.
For integrated checks, the authors compare Standard Model and supersymmetric scattering rates through the FeynRules validation interface. The coverage includes processes with two and three outgoing particles. The generators used for comparison are MadGraph 4, CompHEP/CalcHEP and Whizard. The paper separately reports agreement with Pythia’s built-in processes for a range of Standard Model and supersymmetric cross sections when the automatically exported Pythia 8 libraries are used. Those comparisons give evidence that the exported code evaluates the same physics in the tested cases. The paper reports the overall agreements without giving a process-by-process distribution of numerical deviations.
Generating the calculation files
The first speed benchmark times the preparation of a complete output directory. In the MadEvent cases this includes the matrix-element source and the files needed to integrate it and generate events. In the example with gluon–gluon scattering into five gluons, the output is a standalone Fortran calculation. The comparisons were run on a laptop with a 1.06 GHz Intel Core Duo CPU, using Ubuntu 9.04, gFortran 4.3 and Python 2.6. The authors give subprocess and diagram counts after combining subprocesses whose matrix elements are identical.
For three-jet production, the table reports 34 subprocesses and 307 diagrams. Preparing the directory takes 29.0 s with MadGraph 4 and 25.8 s with MadGraph 5. For an electron–positron pair with three jets, with 141 subprocesses and 9012 diagrams, the times are 1150 s and 134 s, respectively. In the standalone five-gluon example, one subprocess contains 7245 diagrams, and preparation takes 2788 s and 1050 s. The examples put different pressures on the generator. A process with many initial and final assignments requires work across subprocesses, whereas the five-gluon example has a large diagram search inside a single subprocess.
MadEvent directory generation time for top-pair production with full decays
MadGraph prepares the full decay calculation much faster in the new release.
The numbers
| System or setting | s |
|---|---|
| MadGraph 4 | 5640 |
| MadGraph 5 (this paper) | 15.7 |
The top-pair benchmark includes the hadronic and leptonic decay possibilities specified in the paper. The resulting calculation is listed with 27 subprocesses and 45 diagrams after the stated combination procedure. The MadGraph 4 run used 12 separate process definitions to reduce the time it would otherwise spend attempting subprocesses with no diagrams. A second decay example in the same benchmark takes 383 s with MadGraph 4 and 13.9 s with MadGraph 5. The large reductions in these cases are consistent with the gain expected from generating production and decay building blocks separately. The benchmark records the total time of the earlier and newer workflows, including the other differences between the releases.
Evaluating the matrix element repeatedly
The evaluation benchmark counts helicity function calls in the generated code and reports execution time relative to MadGraph 4 using HELAS. The authors compare MadGraph 5 with both HELAS and ALOHA. The call count is a property of the generated sequence and stays the same across the two libraries for a given MadGraph 5 process. The time taken by the routines, however, can differ. For the up-quark and antiquark processes involving the QCD final states in the table, the generation excludes electroweak interactions through the stated QED=0 setting.
For gluon–gluon scattering into four gluons, the call count goes from 811 in MadGraph 4 to 621 in MadGraph 5. The two MadGraph 5 timings nonetheless differ markedly. The normalized evaluation time is 0.99 using HELAS and 0.66 using ALOHA. Both are measured against the same MadGraph 4 baseline.
Relative matrix-element evaluation time for gluon scattering into four gluons
The ALOHA version evaluates this process faster than the HELAS version of the new output.
The numbers
| System or setting | run time relative to MadGraph 4 |
|---|---|
| MadGraph 5 with HELAS | 0.99 |
| MadGraph 5 with ALOHA (this paper) | 0.66 |
For up-quark and antiquark annihilation into three electron–positron pairs, the call count falls from 6668 to 3775. The relative times are 0.33 with HELAS and 0.57 with ALOHA. With two electron–positron pairs, the call count goes from 110 to 80, but the relative times are 0.52 with HELAS and 1.4 with ALOHA. With a single pair, both releases use 8 calls, and the MadGraph 5 values are 1.0 with HELAS and 1.1 with ALOHA. These cases show that the amount of reuse and the runtime cost of the chosen routines both matter. They also give specific examples in which the new output is slower when a particular library option is used.
Organizing integration and event generation
An additional benchmark compares MadGraph/MadEvent 4 output with grouped MadGraph 5 output. It counts the subprocess directories and the integration channels used in the initial cross-section survey. It then measures the disk space and runtime after generating 10,000 events. The benchmark defines the proton and jet labels from gluons and the light quark and antiquark species specified in the paper. For the charged-lepton pairs in this benchmark, the allowed flavours are electrons and muons. The lighter jet samples were run on the stated laptop, and the samples with 3, 4 and 5 jets used a 128-core cluster with Intel Xeon 2.50GHz CPUs.
Survey integration channels for charged-lepton pair production with three jets
Grouping related subprocesses and diagrams reduces the number of channels used for the survey.
The numbers
| System or setting | integration channels |
|---|---|
| MadGraph 4 | 5408 |
| MadGraph 5 (this paper) | 240 |
For that charged-lepton pair sample with three jets, the number of directories drops from 86 to 5. Disk use after the event run is 1.2 GB with the earlier output and 151 MB with the grouped output. The cluster times for 10,000 events are 49:18 min and 16:38 min, respectively. For a W boson with four jets, the survey uses 15,029 channels with the earlier output and 609 with grouped output. The corresponding cluster times are 2:54 h and 46:50 min. The paper gives a grouped-output result for W production with five jets, with 2976 survey channels and a cluster event-generation time of 11:39 h. The earlier release could not run that case in the benchmark. Channel counts, disk use and event-generation times measure different effects of the change and can vary differently across processes.
Demonstrations with nonstandard interactions
The diquark example tests the new colour implementation in production and in the description of associated radiation. A diquark carries the quantum numbers of a pair of quarks. The authors consider scalar diquarks in colour sextet and antitriplet representations and calculate production cross sections for the LHC at 7 TeV. The diquark–quark Yukawa couplings, which set the interaction strengths in the example, are fixed to 10⁻² in the figure. The authors report a factor 2 between the sextet and triplet production cross sections for identical Yukawa couplings and attribute it to the colour factors. The antisymmetric triplet interaction permits the off-diagonal quark flavour combinations considered, while the sextet examples include same-flavour choices.
For one sextet species of mass 500 GeV, they then compare the transverse-momentum distributions of radiated jets. The matched calculation uses MadGraph matrix elements for production with 0, 1, 2 additional jets and combines them with momentum-ordered showers in Pythia 6.4 using the default transverse-momentum MLM matching scheme described in the paper. The comparison uses the leading-order diquark production process on its own as the input to Pythia’s shower at the stated default settings. Transverse momentum measures motion across the beam direction. The authors find that including matched matrix elements for the extra jets matters for describing the high-transverse-momentum radiation in this setup.
A second demonstration computes same-sign top-quark production from two incoming up quarks. The authors compare a contact interaction among four fermions with the full calculation containing a heavy exchanged particle. One setup uses a scalar colour sextet in the s-channel, where the incoming pair forms the intermediate state. The other uses a colour-singlet, flavour-changing scalar in the t-channel, where the exchanged particle transfers momentum between the fermion lines. Both propagator masses are 10 TeV. According to the authors, the contact and explicit-propagator formulations agree up to a centre-of-mass energy around one-tenth of the propagator’s mass. Close to the heavy mass, the s-channel calculation exhibits a resonance, with a width of 200 GeV for the example, and the t-channel calculation levels off as the momentum dependence of its propagator becomes important. These are fixed-energy partonic cross sections. A collider prediction would have to weight them by the corresponding up-quark parton luminosity.
The effective Higgs example tests a vertex at which a Higgs boson and four gluons meet directly. In the approximation discussed in the paper, the top quark is treated as much heavier than the Higgs, and the loop-induced interaction is represented by effective Higgs couplings to gluons. The non-Abelian structure of QCD requires the additional couplings with three and four gluons alongside the simplest Higgs coupling to two gluons. The previous implementation represented the five-particle interaction through an auxiliary nonpropagating tensor particle. MadGraph 5 with ALOHA implements it directly, and the paper illustrates one of 38 diagrams for the process with two incoming gluons and a Higgs plus two outgoing gluons. The effective interactions have a distinct coupling order so that a diagram includes only one such vertex, as required by the stated calculation. The authors check the new implementation against the earlier one and also report a validation comparison for the related case of a graviton interacting with four gauge bosons.
The last example is the top-quark chromomagnetic operator, which adds effective strong interactions involving the top quark. In the paper’s notation the added term is
ℒ = [(H Q̄) σᵘᵛ Tᴬ t Gᴬᵤᵥ + h.c.] / Λ²
ℒ denotes the added Lagrangian term, H the Higgs field, Q̄ the conjugate quark doublet and t the top-quark field. The letters u and v here stand for the Lorentz indices mu and nu used in the paper. σᵘᵛ is the spinor tensor carrying those indices, and Gᴬᵤᵥ is the gluon field-strength tensor. Tᴬ acts on the quark colour indices. The repeated Lorentz and adjoint colour indices are contracted, and h.c. adds the Hermitian conjugate of the preceding term. Λ is the effective-theory cutoff, whose square in the denominator suppresses the interaction.
The authors keep contributions through order Λ⁻², which means retaining a single effective coupling at the level of the squared matrix element. They assign a separate coupling order to the new vertices to control their inclusion. The validation uses a private MadGraph 4 implementation of the same operator that required some manual work. MadGraph 5 automates the generation for processes containing the new interactions, and the authors report that the cross-section evaluation was approximately four times faster than with the previous implementation.
What the ablations show
The paper has no systematic component-by-component ablation. Its closest comparisons vary one part of the workflow in some cases and compare complete implementations in others. The distinction matters because the diagram generator, the emitted call sequence and the event integration can each affect a timing, and each comparison holds different parts of the calculation fixed.
Separating the number of calls from their cost
The HELAS and ALOHA columns for the same MadGraph 5 process offer the clearest separation of two performance effects. The process and the number of calls stay the same, but the time changes with the numerical routines. For the four-gluon final state, the ALOHA timing is lower. For three electron–positron pairs the timing favours HELAS. With two electron–positron pairs, the improved call count accompanies a lower relative runtime for HELAS and a higher one for ALOHA. The comparison therefore supports the authors’ account of subdiagram reuse while showing that call count alone cannot predict the evaluation time.
The call counts across MadGraph versions measure a different change. A simple annihilation to a single electron–positron pair uses the same count in both releases. The higher-multiplicity lepton case has considerably fewer calls in the new output. A process must contain reusable partial calculations for the grouping of calls to pay off. The counts help identify where such reuse occurs, while the timing is the combined outcome of that reuse and the way the numerical functions perform. The paper also distinguishes these evaluation timings from the time spent constructing the code. A gain in one benchmark gives no direct measurement of the other stage.
What the grouping and decay comparisons isolate
The survey channel counts directly show the effect of organizing diagrams into common integrations. Related subprocesses and permutations can share channels, so counting channels tests whether that consolidation actually occurred. The reported changes in disk space and elapsed event-generation time accompany the new organization, but the output comparison also incorporates improvements to the initial guesses for integration variables, handling of mirror processes and distribution of jobs. It demonstrates the combined effect of the release’s event-generation changes. It supplies no separate timing for each of those mechanisms.
The decay-generation benchmark provides another comparison where the aggregate result has a clear connection to the algorithm. Producing separate descriptions of the hard process and its decays avoids regenerating a decay whenever the initial-state assignment changes. The large gain in preparing the full top-pair decay output, alongside the much smaller gain for inclusive three-jet code, is consistent with that explanation. In the top-pair row the older process was deliberately split across several definitions to reduce unsuccessful searches. The times therefore compare the specified practical workflows, with the older version already taking advantage of that workaround.
The input and output comparisons primarily test correctness. Agreement between the UFO and legacy input paths supports the claim that the interaction information survives the new representation. Agreement between the Fortran and C++ exports supports the claim that the derived routines implement the same matrix elements in those languages for the tested processes. The permutation, gauge and Lorentz checks examine different consequences of an implementation error. Together they help establish where a failure can be detected, while the paper gives no experiment that removes an individual check and measures the change in detection.
Comparisons that probe the physics descriptions
The diquark matching comparison changes how additional jet radiation enters the simulation. The leading-order process followed by a shower provides a comparison with the matched calculation that also includes matrix elements for additional partons. The difference at high transverse momentum shows where explicit hard emissions matter for the distribution examined. Its conclusion concerns the sample and settings chosen by the authors. It measures an effect of the physics description rather than a timing effect of the MadGraph rewrite.
The same-sign top comparison changes the representation of the heavy interaction. The agreement at low energy tests the direct contact vertex against the corresponding explicit-exchange calculation in the regime where the contact approximation is expected to work. The different high-energy behaviours of the two propagators explain why the agreement has a limited range. The s-channel case develops a peak tied to the exchanged mass and width, while the t-channel denominator acquires substantial momentum dependence. Both comparisons are useful because they give a physical reason for the point at which a simplified calculation diverges from its more detailed counterpart.
Limitations
Limits stated by the authors
The decay-chain construction concentrates on a specified resonant history. Near the peak it retains spin correlations and the finite-width line shape. Farther from the mass peak, diagrams without that resonance can interfere significantly with the retained contributions. The authors explicitly limit the calculation in that region and apply the mass window in MadEvent. A request for an intermediate particle in the production channel is also conceptually distinct from selecting a decay constrained to lie near its resonance. Whether the event calculation represents the relevant physics depends on which of those requests was made.
Symbolic colour algebra makes the program more flexible, but the authors retain an explicit diagram and colour-matrix calculation as the default for the release. They report reaching amplitudes with up to 7 gluons using symmetries of the colour matrix. Beyond 7 gluons they consider the explicit calculation of each diagram impractical and discuss recursive approaches to obtaining the colour-ordered amplitudes directly. Even when the subamplitude calculation becomes polynomial, they identify the colour sum as a remaining source of factorial growth. They discuss sampling external colour configurations and expanding in the inverse number of colours as approaches to that separate cost.
There are also interface limitations. The proposed colour labels for a sextet require a downstream shower that understands how to continue both colour lines. The authors describe the convention as a practical encoding in an area without an established sextet convention at the time. Their Pythia 8 output is bounded by the process multiplicities supported by that version’s external interface. Backward import of the MadGraph 4 format is supported subject to the stated exclusion of input containing particles with spin 3/2 or higher. Thus a UFO calculation, a legacy calculation and an export to a shower each have specific conditions on what can be carried through.
The effective interactions themselves have domains of validity. The heavy-exchange comparison shows the energy range for the chosen contact descriptions and explains the departures near the heavy scale. The chromomagnetic example requires the specified truncation in the inverse cutoff. The effective Higgs example calls for controlling the number of effective vertices in each diagram. Numerical parameter restrictions also require care. The authors warn that the resulting parameter card should preserve the parameters the user needs and encode the intended special case. Automatic generation carries out these choices as specified.
Limits of the evidence in the comparisons
The pointwise tests establish numerical agreement for a substantial collection of processes that can be compared to MadGraph 4. Their coverage is governed by the classes chosen and by the ability to represent the calculation in both releases. The new interaction examples extend that evidence through targeted comparisons with explicit exchanges, auxiliary implementations or a prior private implementation. The strength of each check depends on the reference calculation in that case. The reported overall agreements provide limited information about numerical stability in unusual regions of phase space, since the paper does not report an error distribution across kinematics.
The hardware and workload details matter to the timing results. The directory generation benchmark uses a specific laptop and compiler setup, and the event generation benchmark uses both laptop and cluster runs according to the process. The observed times justify comparisons within the stated benchmarks. They give no universal speedup for all process definitions, export languages or integrations. The variation with process complexity and numerical library is already visible within the tables. Furthermore, the benchmark compares complete releases, so it cannot assign a precise share of a wall-clock improvement to each individual change.
The physics demonstrations evaluate calculation outputs and simulated distributions. Their parameters define examples of the software’s capability. The fixed-energy same-sign top cross sections require parton luminosities for a collider comparison, and the diquark study uses specified masses, couplings and shower settings. The paper’s generality claim concerns expressing interactions and generating tree-level calculations from them. The application set samples that capability across several types of vertices. The authors discuss higher-order automation and integration with showers as development directions, with some relevant interfaces and ingredients already described. The validation in this paper centres on the tree-level calculations and workflows it actually exercises.
What came after
The authors’ outlook points to extending the same separation of responsibilities to higher-order work. In the tree-level examples, FeynRules supplies the interactions, the UFO carries their structure, and ALOHA generates routines that can evaluate them. In the proposed extension, the same route would carry one-loop counterterms, which supply part of the information needed for next-to-leading-order calculations. The paper connects this direction to its ability to retain complicated associations between colour factors and Lorentz structures. It describes that support as a foundation for automation in both Standard Model calculations and calculations with new interactions.
The authors also set out a direction for combining the hard calculation with showers. At leading order the examples already include matching extra partons to a shower and exporting hard processes for use in Pythia 8. The proposed developments include combining next-to-leading-order computations with shower evolution through the matching approaches discussed in the paper, and bringing together descriptions with different hard parton multiplicities at that accuracy. The earlier work on real corrections, loop amplitudes and matching supplies the context for that agenda. The contribution documented here is a generator whose components can be developed and used separately while exchanging the interaction and event information those calculations require.
The paper records these developments as work in progress. Its outlook establishes the directions the authors intended to pursue, and the account of impact ends with those plans.
Cite
Cite as Johan Alwall, Michel Herquet, Fabio Maltoni, Olivier Mattelaer and Tim Stelzer. 2011. MadGraph 5: going beyond. Journal of High Energy Physics.
@article{alwall2011madgraph,
title = {{MadGraph 5: going beyond}},
author = {Johan Alwall, Michel Herquet, Fabio Maltoni, Olivier Mattelaer and Tim Stelzer},
journal = {Journal of High Energy Physics},
year = {2011},
doi = {10.1007/jhep06(2011)128},
eprint = {1106.0522},
archivePrefix = {arXiv},
url = {https://doi.org/10.1007/jhep06(2011)128}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/alwall-2011-madgraph-5-going-beyond/