---
title: "Kira—A Feynman integral reduction program — Maierhöfer 2018"
description: "How Kira reduces multi-loop Feynman integrals through finite-field equation selection, careful symbolic algebra, and targeted reductions."
canonical: "https://research.elamur.ai/free/en/papers/maierhofer-2018-kira-feynman-integral-reduction-program/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/maierhofer-2018-kira-feynman-integral-reduction-program/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2018](https://md.research.elamur.ai/free/en/papers/2018/) / Kira—A Feynman integral reduction program

# Kira—A Feynman integral reduction program

Paper · 2018 · Philipp Maierhöfer, Johann Usovitsch and P. Uwer

**Authors:** [Philipp Maierhöfer](https://md.research.elamur.ai/free/en/authors/philipp-maierhofer/), [Johann Usovitsch](https://md.research.elamur.ai/free/en/authors/johann-usovitsch/) and P. Uwer · **Year:** 2018 · **Venue:** Computer Physics Communications · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**414** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2616684254) · Computer Physics Communications · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [DOI 10.1016/j.cpc.2018.04.012](https://doi.org/10.1016/j.cpc.2018.04.012)
- [arXiv 1705.05610](https://arxiv.org/abs/1705.05610)
- [OpenAlex](https://openalex.org/W2616684254)

## Deep dive: Kira—A Feynman integral reduction program

How Kira reduces multi-loop Feynman integrals through finite-field equation selection, careful symbolic algebra, and targeted reductions. · about 37 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

Calculations of particle interactions can generate more integrals than it is practical to evaluate separately. Many of these integrals are related, however, so the central task is often to express them through a smaller collection of independent quantities called master integrals. Kira addresses the computational cost of finding those expressions. It implements the Laporta algorithm, which turns mathematical identities between integrals into a large linear system and solves that system systematically. Its main contribution is to make the system cheaper to process before expensive symbolic calculation begins, then to control the growth of algebraic expressions during the remaining work.

The paper develops two complementary improvements. First, Kira uses its pyRed component to identify redundant equations through arithmetic in a finite field: symbolic quantities are temporarily replaced by integers, and calculations proceed modulo a large prime. This inexpensive calculation selects equations for the subsequent symbolic reduction; it does not replace the final symbolic answer with a numerical approximation. Second, Kira changes how coefficients are combined during back substitution, the stage that expresses each requested integral through master integrals. Rather than immediately assembling a large expression, it retains separate contributions and combines shorter expressions first. Independent algebraic operations can run in parallel through Fermat, the external computer algebra program that simplifies Kira’s rational functions.

The benchmarks concern double-box integral families arising in calculations of corrections to single top-quark production. They include a planar family, topo7, and nonplanar families called topo4 and topo5. For the tested topo7 reductions, the authors report that Kira outperforms Reduze 2 by 1–2 orders of magnitude. Against FIRE 5, the advantage depends on whether Kira reduces its broader default selection or concentrates on requested integrals. The paper also demonstrates reductions retaining full mass dependence, where symbolic complexity becomes much more demanding: topo4 takes time on the order of 10 hours, while the hardest topo5 reductions take roughly one week.

These results establish Kira as a competitive implementation for the examples studied, especially when several independent scales make symbolic coefficients expensive. They also reveal where the remaining difficulty lies. The finite-field preparation remains relatively inexpensive as the symbolic problem becomes harder, but simplifying the final algebraic coefficients can consume substantial time and memory. Kira therefore improves the route from a large system of relations to usable reduction rules; it does not evaluate the master integrals themselves, guarantee that every chosen seed range is sufficient, or demonstrate the same performance advantage for every possible integral family.

### Ideas worth borrowing

#### Separate structural decisions from expensive values

Kira first asks which equations matter, using coefficients that are cheap to manipulate. Only afterward does it solve the selected system with its original symbolic coefficients. This separation works because discovering linear dependence does not require carrying the full symbolic complexity through every preparatory operation. The reusable idea is to identify a cheaper representation that preserves the structural question needed by the next stage. Symbolic solvers, constraint systems, and other algebraic applications can benefit when they distinguish selecting useful work from carrying out that work in its richest representation. The essential safeguard is to keep the cheap representation’s role explicit: in Kira it guides selection, while the reduction rules still come from symbolic calculation.

#### Reduce toward an actual request

A system can contain useful relations that are irrelevant to the particular answers a user needs. Kira’s targeted selection uses the finite-field reduction to trace which equations support a specified collection of integrals. It then passes a sufficient subsystem to the symbolic stage. This is more selective than merely removing equations that duplicate the information in others. A relation may be independent yet unnecessary for the current request. The same distinction is useful in dependency analysis, query execution, and program analysis: first determine what contributes information, then determine which informative pieces contribute to the requested result. The paper’s targeted jobs show that this additional selection can materially change runtime.

#### Make representation order an algorithmic choice

Kira gives integrals a consistent complexity order and derives an ordering of equations from it. That choice determines which unknown an equation eliminates and which expressions tend to remain in the answer. Ordering therefore participates in the computation rather than merely making output easier to read. This idea transfers to rewrite engines and symbolic transformation systems, where a clear preference among representations can prevent arbitrary choices from producing unnecessarily difficult intermediate states. Kira also shows the limits of a convenient order: its equation comparison does not inspect coefficients, so equations that look equally complicated under the ordering can still differ substantially in algebraic cost.

#### Preserve sparsity while eliminating

A large equation system can remain manageable if each equation involves relatively few unknowns. Elimination threatens that advantage because combining equations can introduce many additional terms. pyRed substitutes previously processed equations in an order intended to keep each working equation short. The broader lesson is that the shape of intermediate data matters as much as the size of the initial input. In sparse algebra and graph-based computation, an operation that is locally valid can still be globally expensive if it destroys the structure that made the problem tractable. Kira’s approach makes retaining that structure a central design objective.

#### Combine small expressions before large ones

Back substitution can produce many separate contributions to the same coefficient. Kira orders those contributions by expression length and repeatedly combines the shortest available pair. This schedule delays the creation of large intermediate rational functions. The idea is useful wherever combining objects can make later operations disproportionately expensive: algebraic simplification is the paper’s application, but the scheduling principle is broader. It also creates independent tasks for worker processes. The paper does not claim that expression length perfectly predicts simplification cost; it shows that a practical ordering can improve difficult reductions without changing the mathematical answer.

#### Treat intermediate results as usable products

Kira’s preparatory stage can identify candidate master integrals and the equations needed for selected outputs before the symbolic reduction is complete. Its later stages also write persistent results that support inspection and continuation. This makes a long computation less opaque: useful information appears before the final answer, and the workflow can be divided into meaningful stages. Other scientific programs can borrow this design by exposing intermediate artifacts with clear meanings. The benefit is strongest when those artifacts help diagnose an inadequate input range or resume expensive work, instead of serving only as internal debugging records.

### How Mova uses it

For Mova, the small transparent language system in Rust, the useful connection is architectural. Kira is a scientific algebra program, and the paper provides no evidence of an existing integration with Mova. Its reduction rules are not language-processing rules, and its finite-field calculations do not establish a method for interpreting text. Any connection should therefore be described as a possible engineering direction, with a clear boundary between the demonstrated integral-reduction technique and the proposed application.

A concrete possibility is to separate dependency discovery from full explanation construction. If a Mova component accumulates explicit relations between symbolic objects, it could first determine which relations are relevant to a requested conclusion. It could then construct the detailed result from that smaller set. Kira offers a particularly clear example of why this separation can help: it removes both redundant equations and independent equations that are unnecessary for selected outputs. A Mova implementation could borrow the demand-driven organization even where the relations are not linear equations and finite-field arithmetic would be inappropriate.

The mathematical precondition matters. Kira’s cheap selection works on a system whose unknowns are integrals and whose relations have algebraic coefficients. Linguistic alternatives do not automatically form such a system. A language rule that resembles another rule may encode a distinct condition, exception, or interpretation. Mova could not safely discard it merely because a numerical representation made it appear redundant. Finite-field screening would be a reasonable candidate only for a component with a genuine algebraic formulation and a justified connection between the screened representation and the original task.

Another possible transfer concerns the scheduling of symbolic work. If a Mova operation produces many contributions to an explicit expression, it could keep those contributions separate until it has a useful reason to combine them. Smaller combinations could be processed first, with intermediate expression size recorded for inspection. This follows Kira’s approach to back substitution without assuming that the same expression-length heuristic will be effective for linguistic structures. It would remain an implementation hypothesis to test against the actual operations Mova performs.

Kira also suggests a way to make expensive processing easier to inspect. A Mova pipeline could preserve the selected relations, the dependency path to an output, and the intermediate transformations that produced the result. These would support [reasoning](https://md.research.elamur.ai/free/en/topics/reasoning/) that a reader can examine, provided that each artifact has a precise meaning. The analogy is to Kira’s separation of equation generation, numerical selection, symbolic elimination, and output construction. It is a proposal for organizing explicit computation, not evidence that Kira supplies a complete explanation mechanism.

The most defensible borrowing is therefore modest and concrete: define the requested result, identify the dependencies needed to obtain it, schedule expensive combinations carefully, and retain meaningful intermediate artifacts. No benchmark in the paper measures Mova’s speed, accuracy, memory use, or transparency. Those outcomes would require a separate implementation and evaluation.

### The problem and its context

#### Why integral reduction matters

The paper begins from a pressure created by experimental precision. More precise collider measurements require more detailed theoretical calculations, including higher-order contributions in perturbation theory. The authors describe next-to-leading-order calculations as comparatively established, while next-to-next-to-leading-order work remains less mature in spite of substantial progress. Within that larger task, evaluating the Feynman integrals appearing in multi-loop amplitudes is a major computational obstacle.

Applying the rules of a quantum field theory generally produces tensor integrals. Their numerators contain components of loop momenta, which carry spacetime indices. The paper notes that direct evaluation is possible and cites work pursuing that route. In many applications, however, it is advantageous to transform the tensor integrals into scalar integrals. A scalar integral no longer has those open tensor indices, but this transformation can leave a very large collection of distinct integrals to handle.

The important opportunity is that this collection is not independent. Integration-by-parts identities, abbreviated IBP, and Lorentz-invariance identities, abbreviated LI, relate integrals with different propagator powers. Rather than evaluating every integral individually, a calculation can first express them through a smaller basis. The remaining basis elements are the master integrals. Their values must still be obtained by analytic or numerical methods, but the reduction prevents the same underlying information from being evaluated repeatedly in different forms.

This distinction between reduction and evaluation is central to understanding Kira. Its output is a collection of algebraic replacement rules. Each rule expresses an integral as a linear combination of master integrals, with coefficients that depend on the problem’s parameters. The program does not turn a difficult scattering calculation directly into a final physical prediction. It improves a crucial intermediate stage whose cost can otherwise limit the calculation.

#### From recurrence relations to large equation systems

The authors describe two broad ways to exploit IBP and LI relations. One approach treats the propagator powers algebraically and combines identities into operators that lower those powers. Repeated application of such operators produces a recursive reduction. This can be effective, but constructing suitable operators is difficult and may require manual intervention. The paper cites work on parametric reduction and related tools as part of this approach.

The Laporta strategy takes a different route. It evaluates the identities at specific integer choices of propagator powers. Each such choice is a seed. Different seeds generate equations involving different integrals, and a sufficiently extensive collection of seeds produces enough relations to reduce the desired integrals. Gaussian-style elimination then solves the resulting system according to a chosen ordering of complexity.

This exchanges the challenge of constructing general recurrence operators for the challenge of handling a very large algebraic system. According to the authors, expanding the seed collection increases the number of relations more rapidly than it increases the number of unknown integrals. That is what makes systematic reduction possible. It also creates redundancy: many generated equations do not contribute independent information.

Earlier public implementations already made the Laporta approach practical. The paper discusses AIR, FIRE, and Reduze as established programs in this area. Kira’s contribution is therefore an implementation advance within an existing reduction strategy. It does not introduce the underlying identities or the basic idea of solving them at integer seeds.

#### Why several scales make the computation difficult

The linear system is not numerically ordinary. Its coefficients can be multivariate rational functions involving the spacetime dimension, masses, and kinematic invariants constructed from external momenta. A coefficient may therefore be a quotient of large polynomials instead of a small numerical value. Combining equations requires manipulating these functions and repeatedly simplifying them.

The authors emphasize that several independent scales can make this algebra particularly expensive. A formally redundant equation still incurs a cost if it is carried through symbolic elimination. Its coefficients may grow and require simplification even though the equation eventually contributes no additional information. Eliminating such equations after expensive symbolic work misses the opportunity to avoid that work entirely.

Kira builds on Kant’s method for detecting linear dependence through modular arithmetic. Instead of determining dependence with full multivariate rational functions, a program evaluates the coefficients in a finite field and performs elimination there. Fixed-size arithmetic makes this preparatory calculation much cheaper. The result indicates which original equations should proceed to symbolic reduction.

The paper also places this approach alongside earlier discussions of modular methods for IBP systems and work on reconstructing rational functions from finite-field evaluations. Kira adopts a narrower role for finite fields in this implementation. It uses them to select relations and inspect the system’s structure, while retaining symbolic calculation for the actual reduction coefficients.

#### Structural simplifications beyond linear dependence

Not every simplification comes from elimination. Some integrals are zero because they have no scale under dimensional regularization. Others are related by changes of loop variables or by allowed permutations of external momenta. Kira identifies these structures before the main reduction and incorporates them into the system.

The distinction matters because equations generated from IBP and LI identities do not necessarily expose every useful symmetry. Two sectors may describe equivalent integrals in spite of having different labels, or equivalent sectors may occur in different integral families. Recognizing those relationships can reduce the number of independent quantities that the final reduction needs.

Kira can process several families together and exploit mappings between them. A shared set of master integrals for the combined calculation can result from this. If each family were reduced separately, their resulting bases might require another mapping step afterward. The program’s organization therefore addresses both algebra inside an equation system and duplication across the descriptions supplied by the user.

### The method, step by step

The pipeline begins with a mathematical description of an integral family and ends with symbolic rules for the integrals the user needs. Between those points, Kira separates inexpensive structural preparation from expensive symbolic elimination.

From integral families to symbolic reduction rules The steps in order.

#### Describe the scalar integral family

A loop momentum is an integration variable not fixed by momentum conservation at the vertices. An external momentum specifies part of the scattering process. The paper denotes the number of loop momenta by L and the number of independent external momenta by E. Momentum conservation removes the need to treat every external momentum as independent.

An inverse propagator has the form

```
Pᵢ = kᵢ² − mᵢ² + iε
```

Here, Pᵢ is the inverse propagator associated with a virtual line, kᵢ is a linear combination of loop and external momenta, and mᵢ is the corresponding mass. The imaginary term iε supplies the prescription written in the paper. The integral contains reciprocal powers of these Pᵢ expressions, which is why their powers are the indices manipulated during reduction.

The dimensional regulator is written separately as

```
d = 4 − 2ϵ
```

The symbol d denotes the spacetime dimension, and ϵ is the parameter used in dimensional regularization. The paper uses this change of dimension to regulate ultraviolet and infrared divergences. Though the small symbols resemble those in the propagator prescription, their roles are distinct.

The number of independent scalar products involving loop momenta is

```
N = EL + L(L + 1)/2
```

N counts the scalar products that the integral representation must accommodate. The term EL accounts for products between loop and independent external momenta; the remaining term accounts for products among loop momenta. If the independent physical propagators do not span these products, additional expressions are introduced as auxiliary propagators.

The scalar family can then be written as

```
T(d, a₁, …, aₙ, {pⱼ}) = ∫ [∏ᵢ₌₁ᴸ dᵈℓᵢ] / [∏ⱼ₌₁ᴺ Pⱼᵃⱼ]
```

T denotes an integral, ℓᵢ are its loop momenta, pⱼ are the independent external momenta, and aⱼ are integer propagator powers. The final index in the argument list represents the same family size N used in the product. Positive powers place propagators in the denominator. Nonpositive powers allow absent factors or numerator factors. For auxiliary propagators, the paper permits only nonpositive powers.

The auxiliary expressions are not uniquely determined. Their purpose is to complete the representation so that every scalar product involving loop momenta can be expressed through the chosen propagators. This freedom is useful, but it means that the written appearance of an integral family includes representational choices in addition to its physical content.

In the worked planar example, the authors use L=2 and E=3, giving N=9 as stated in the paper. The family contains 7 physical internal-line propagators and auxiliary expressions P₈ and P₉. Momentum conservation eliminates q₁, leaving q₂, p₁, and p₂ as independent external momenta. The example provides a concrete setting in which a vector of propagator powers identifies each scalar integral.

#### Generate relations from integration by parts

IBP identities come from integrated total derivatives that vanish in the regulated framework. The paper writes the generating identity as

```
∫ [∏ⱼ₌₁ᴸ dᵈℓⱼ] ∂/∂ℓ𝒻ᵘ [qₗᵘ / (P₁ᵃ¹ ⋯ Pₙᵃᴺ)] = 0
```

The derivative acts on loop momentum ℓ𝒻, and the repeated component index μ is represented by the superscript u. The vector qₗ is chosen from the loop momenta or independent external momenta. The denominator contains the chosen inverse propagators with their powers. Expanding the derivative produces relations among integrals whose indices differ by shifts.

For a fixed seed, the possible choices of differentiated loop momentum and inserted vector produce L(E+L) IBP equations. These equations are linear in the integrals even though their coefficients depend algebraically on the dimension and external parameters. That distinction permits linear elimination while leaving coefficient simplification as a separate, potentially difficult task.

LI relations supply another source of equations:

```
Σᵢ₌₁ᴱ (pᵢᵛ ∂/∂pᵢᵘ − pᵢᵘ ∂/∂pᵢᵛ) T(a, {pᵢ}) = 0
```

Here, a denotes the full index vector, pᵢ are independent external momenta, and u and v denote spacetime components. The differential operator describes the infinitesimal Lorentz transformation applied to the external momenta of a scalar integral. Contracting the relation with antisymmetric momentum combinations gives scalar equations.

The contracting expression is

```
pᵣᵘpₛᵛ − pₛᵘpᵣᵛ
```

The labels r and s select external momenta, while u and v are the component indices contracted with the LI relation. The paper obtains E(E−1)/2 equations from the available antisymmetric combinations. Kira generates both IBP and LI relations; its use of an input keyword associated with IBP does not mean that LI equations are omitted.

#### Organize integrals into sectors

The sector structure records which propagators have positive powers. Integrals belong to the same sector when that set of denominator factors is unchanged, even if individual positive powers or numerator powers differ.

For each index, the paper defines

```
θᵢ = Θ(aᵢ − 1/2)
```

θᵢ is the sector-membership indicator for propagator i, aᵢ is its integer power, and Θ is the Heaviside function. With integer indices, θᵢ is positive precisely when the propagator appears with a positive power. The vector θ therefore describes the denominator support of the sector.

The sector identifier is

```
S = Σⱼ₌₁ᴺ θⱼ 2ʲ⁻¹
```

S encodes the indicator vector as a binary integer, and j specifies a propagator’s position in the family definition. This is a compact label with an operational consequence: changing propagator order changes the labels and can affect preferred mappings. The underlying integral relationships do not depend on the arbitrary spelling of that label.

The number of denominator propagators in a sector is

```
t = Σᵢ₌₁ᴺ θᵢ
```

t counts factors with positive powers, rather than the sum of those powers. The corner integral assigns the sector’s positive factors their basic positive power and leaves the other factors absent. It is a representative used in identifying zero sectors and symmetries.

Two further measures describe complexity inside a sector:

```
r = Σᵢ₌₁ᵗ rᵢ
```

The vector entries rᵢ are the positive members of the full index vector, preserving their original order. Their sum r measures total denominator power. Raising a propagator power increases r without necessarily changing the sector.

The corresponding numerator measure is

```
s = −Σᵢ₌₁ᴺ⁻ᵗ sᵢ
```

The entries sᵢ are the nonpositive indices. The minus sign makes s a non-negative measure of total numerator power. The same letter also appears as a kinematic invariant in the worked configuration, so its meaning must be read from context: a seed bound concerns index complexity, whereas a kinematic expression concerns external momenta.

#### Remove sectors that vanish

Under dimensional regularization, scaleless integrals are assigned zero. The paper uses an established result: if a sector’s corner integral vanishes, the entire sector vanishes. Recognizing such a sector early avoids generating or reducing quantities that cannot contribute to the answer.

The zero-sector test uses the Feynman-parameter representation. In the paper’s notation,

```
T(d, a) = Γ(A − Ld/2) / [∏ᵢ Γ(aᵢ)] ∫ [∏ⱼ₌₁ᴺ dzⱼ zⱼᵃⱼ⁻¹] δ(1 − z) Fᴸᵈ⁄²⁻ᴬ / U⁽ᴸ⁺¹⁾ᵈ⁄²⁻ᴬ
```

Here, Γ is the gamma function, zⱼ are Feynman parameters, and z is their sum. A denotes the sum of the indices aⱼ; this capital letter distinguishes that sum from the full index vector in the explanation. The delta function imposes the parameter constraint. U and F are the Symanzik polynomials, which encode information about the integral in this representation.

For the zero-sector test, Kira considers their sum:

```
G(z) = F(z) + U(z)
```

G is a polynomial in the parameter vector z. The test asks whether constants kᵢ exist that satisfy

```
Σᵢ kᵢzᵢ ∂G(z)/∂zᵢ = G(z)
```

The kᵢ must be independent of the Feynman parameters. Finding such a solution identifies the sector as trivial under the criterion used by the authors. This is a structural preprocessing step, separate from discovering linear dependence among the later generated equations.

#### Identify equivalent integrals

Changes of integration variables can relate apparently different integrals. The paper illustrates this with an equal-mass bubble whose propagator powers can be exchanged:

```
T(d, a₁, a₂) = T(d, a₂, a₁)
```

The symbols a₁ and a₂ are the powers of the bubble’s denominator factors. The equality follows from a change of loop variable,

```
ℓ → −ℓ − p
```

Here, ℓ is the loop momentum and p is the external momentum. The transformation exchanges the denominator structures while preserving the integral.

Kira considers more general loop-momentum transformations:

```
ℓ′ᵢ = Σⱼ₌₁ᴸ Mᵢⱼℓⱼ + Σⱼ₌₁ᴱ cⱼ⁽ⁱ⁾pⱼ
```

The transformed loop momentum ℓ′ᵢ is assembled from the original loop momenta and independent external momenta. The coefficients Mᵢⱼ and cⱼ⁽ⁱ⁾ are drawn from {−1,0,1} in the transformations described by the paper. Permutations of external momenta may also participate when they preserve the relevant kinematic invariants.

For integrals without negative powers, an allowed transformation can simply permute propagator powers. With numerator factors, the result may instead be a linear combination of integrals. This explains why recognizing a common topology is not always equivalent to renaming an index vector.

The program searches for sector symmetries and mappings by comparing the relevant G polynomials under permutations of parameters and kinematic invariants. A symmetry within a sector relates its own integrals. A mapping can connect different sectors, including sectors from different families. When several families are processed together, these mappings help avoid separate, overlapping master-integral bases.

#### Choose the seed region

The user controls the generated system through bounds on denominator and numerator complexity:

```
r ∈ [r_min, r_max],  s ∈ [s_min, s_max]
```

The quantities r and s are the index sums just defined. Their lower and upper bounds determine which integrals are used as seeds when the identities are instantiated. Kira can combine several specified regions by taking their union.

Applying an identity to a seed can generate integrals outside those bounds. The paper calls these auxiliary integrals, a use of “auxiliary” distinct from auxiliary propagators. An auxiliary propagator completes the scalar-product representation; an auxiliary integral lies beyond the chosen seed region.

This boundary is a practical source of uncertainty. A finite seed selection may not contain enough relations to finish every desired reduction. If a candidate master lies at the edge of the region, it may represent an unresolved integral instead of an irreducible basis element. Increasing the seed range can supply the missing information.

#### Impose a consistent elimination order

Kira orders integrals lexicographically using a tuple:

```
(topology, S, r, s, s_vector, r_vector)
```

The topology identifies the family, S is the sector identifier, r and s are total index complexities, and the final vectors retain the individual nonpositive and positive indices. An integral that compares larger is treated as more complicated. The elimination aims to express such integrals through simpler ones.

Each equation is linear:

```
0 = Σᵢ cᵢ Tᵢ(d, aᵢ)
```

Tᵢ denotes an integral, aᵢ its index vector, and cᵢ its coefficient. The coefficient is generally a rational function of the symbolic parameters. Integrals inside an equation are listed from more complicated to less complicated, making its leading integral the first ordering criterion.

Equations with the same leading integral are compared by length and then by the remaining integrals. Because coefficients do not participate in this comparison, it is a total preorder rather than a distinction between every possible equation. Different coefficient functions can therefore occupy the same complexity position. The scheme provides a consistent elimination structure without claiming to solve the harder problem of predicting every algebraic cost.

#### Select independent equations in a finite field

pyRed maps the coefficients into a finite field defined by a large prime p. It substitutes pseudorandom field values for masses, invariants, and the dimension, then performs arithmetic modulo p. A complicated rational function becomes a field element whose arithmetic cost does not grow with the original expression’s symbolic length.

Division uses multiplicative inverses. For a non-zero field element a, the inverse x satisfies

```
ax ≡ 1 (mod p)
```

The symbol ≡ expresses congruence modulo p. Because p is prime, every non-zero field element has an inverse. Zero is excluded from that statement. The paper discusses the extended Euclidean algorithm and modular exponentiation as ways to obtain the inverse.

The exponentiation form is

```
x = aᵖ⁻² (mod p)
```

Here, a, x, and p have the same meanings as in the preceding relation. The authors report that numerical implementations of the Euclidean approach tend to be somewhat more efficient than binary modular exponentiation.

The original equations retain their identities while pyRed works with their evaluated coefficients. When elimination identifies an equation as redundant, Kira can omit that equation from the symbolic solve. The output of this phase is therefore a selection of original relations, not a set of approximate symbolic coefficients.

The authors distinguish pyRed from the earlier ICE implementation by its use of larger primes, optional arrays of field coefficients, and an elimination scheme designed around sparsity. They describe their choices as allowing a reliable result from a single run. The paper does not provide a numerical probability bound for that reliability, so the claim should be understood at the level the authors present it.

#### Keep the numerical system sparse

pyRed processes the ordered system by substituting previously available equations in descending complexity order. The intention is to avoid intermediate equations becoming much longer as the overall system grows. A sparse input alone is insufficient: an unsuitable elimination schedule can turn sparse equations into dense ones.

The authors contrast dense Gaussian elimination, with O(n³) complexity, against their O(n²) description when working-equation size stays effectively O(1) as the system size n grows. This is an explanation tied to the sparsity behavior they seek. It should not be read as a universal guarantee for every sparse matrix or every possible integral family.

Beyond the initial ordering, the default procedure does not pivot. An optional alternative implements the earlier pivoting strategy. The authors report that it can cost much more time and memory inside pyRed, while occasionally choosing equations that make the subsequent symbolic work easier. This is a useful reminder that minimizing one stage does not necessarily minimize the complete reduction.

pyRed also performs backward elimination by default. Forward elimination is sufficient to detect redundant equations, but the backward pass exposes candidate masters and supports tracing the equations needed for requested integrals. That trace enables Kira’s targeted reduction: the symbolic solver receives a subsystem sufficient for the chosen outputs.

#### Carry out the symbolic forward elimination

After selection, Kira returns to the original symbolic coefficients. It groups equations by their most complicated integral. When several equations share that leading integral, the preferred equation eliminates it from the others. The modified equations are then collected and ordered again according to their new leading integrals.

This repeats until each group contains a single equation. The resulting system has a triangular organization: each relation isolates progress on an integral in terms of simpler quantities. Kira drops relations whose leading integral is auxiliary, following the implementation described by the authors.

The finite-field stage has not removed the need for symbolic Gaussian-style work. It has reduced the amount of that work by screening the input. The original rational functions remain essential because the requested result must preserve dependence on the dimension and kinematic parameters.

#### Substitute back without assembling everything at once

Back substitution converts the triangular system into direct rules involving master integrals. As simpler relations are inserted into more complicated ones, many contributions can accumulate for the coefficient of a single master. Simplifying that accumulated coefficient is frequently the dominant cost.

Kira’s optional algebra strategy delays the final combination. It first retains a list of contributions, orders them by expression length, and sends the shortest available pair to an idle Fermat worker. The simplified result returns to the ordered list. Repeating the process eventually leaves a single coefficient.

This procedure changes the schedule of algebraic operations instead of the intended mathematical result. Smaller early combinations are meant to avoid especially large intermediate expressions. Because many coefficient contributions can be present, different workers can simplify separate pairs at the same time.

When one coefficient no longer offers parallel work, an available worker can move to another master coefficient or another equation. The scheduling therefore crosses the boundaries of an individual coefficient. Fermat performs the rational-function cancellation, while Kira organizes the tasks and communicates through gateToFermat using operating-system pipes.

#### Store, resume, and export meaningful results

Symbolic expressions may outgrow available memory. Kira writes equations to disk when they are no longer needed for the remaining active computation, using SQLite3 to maintain access in the required order. Storage is part of the reduction architecture, not merely a final export step.

The input separates integral-family definitions, kinematic relations, and job specifications in YAML files. Users describe loop momenta, propagators, independent invariants, scalar-product relations, sectors, and seed bounds. One invariant can be chosen as the unit of scale, reducing the number of symbolic variables. Export can restore the associated mass dependence when requested.

The program records potential masters from the numerical stage and potential masters after symbolic reduction, as well as the resulting replacement rules. It also preserves information about zero sectors and mappings. Reduction stages can run separately, allowing a long calculation to continue from an intermediate state.

The paper describes database commits during back substitution every 10 minutes and continuation through the conditional setting. It also provides output for FORM and Mathematica. There is no training procedure or empirical training collection: the input is a mathematical problem specification, and the generated equations follow from identities evaluated at the selected seeds.

### Experiments and results

#### What the benchmarks measure

The [evaluation and benchmarks](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/) concern runtime and resource demands for integral reduction, together with checks that different programs produce consistent reductions. The workloads are integral families from next-to-next-to-leading-order corrections to single top-quark production. They are not an unrestricted sample of all possible multi-loop problems.

The planar family topo7 has a massive internal propagator and a massive external momentum. The nonplanar family topo4 contains two massive propagators and a massive external momentum. The nonplanar topo5 contains three massive propagators and a massive external momentum. The authors identify topo5 as the most difficult topology in the single-top calculation they discuss.

All benchmark machines have two Intel Xeon E5-2680 processors, with 8 cores per processor, operating at 2.70 GHz, and 396 GBytes of RAM. These specifications describe the available hardware. They should be distinguished from the memory actually needed by particular reductions.

The comparison uses Reduze 2 and FIRE 5 alongside Kira. The stated program versions are Reduze 2.1.2 with an MPI build, FIRE 5.2, and Fermat 5.25 for 64-bit Linux. Naming these versions matters because the runtime claims concern those implementations and settings.

#### Broad reductions and selected outputs

The authors compare different scopes of requested output. Default jobs do not activate Kira’s integral-selection feature. Type A jobs request a recursively defined collection with r=t and numerator complexity extending through the chosen maximum. Type B jobs supply explicit lists of top-sector integrals.

The tested numerator-complexity limits are s_max=1,2,3,4. For these comparisons, r_max is 7. Type A therefore concentrates on integrals without raised denominator powers, often described as zero-dot integrals, while allowing the specified numerator range. Type B narrows the request to explicitly listed combinations of auxiliary-propagator powers.

These distinctions are part of the workload, not incidental tuning details. A program asked to produce a broader reduction may legitimately perform more work than one asked for selected results. The paper makes this visible by separating default, type A, and type B jobs rather than reporting a single undifferentiated runtime advantage.

For topo7, agreement among Kira, Reduze 2, and FIRE 5 on both the reduced integrals and the set of master integrals was verified by the authors. Their reported Kira advantage over Reduze 2 is 1–2 orders of magnitude in the examples considered. Against FIRE 5, Kira’s default jobs are faster by up to 1 order of magnitude; for type A and type B, the reported advantage is 1–2 orders of magnitude.

The paper’s narrative gives these ranges rather than individual elapsed times for every case. It supports a substantial advantage in the tested setup, but not a reconstructed per-case ranking beyond what the authors state. In particular, an order-of-magnitude range should not be turned into a more precise speedup for a specific seed selection.

#### Fixing a mass ratio in topo4

The additional scale in topo4 increases symbolic difficulty. For one benchmark series, the authors reduce that difficulty by fixing the mass relationship

```
m₂² = (3/14)m₁²
```

m₁ and m₂ are the masses appearing in the family. Fixing their squared ratio removes an independent scale from the symbolic problem. The paper follows the same strategy used in the earlier single-top calculation it cites.

Reduze 2, FIRE 5, and Kira use 11 cores for this comparison. The authors report that the finite-field work takes only a small part of total runtime, with even the hardest case requiring approximately a minute for pyRed. Its timing remains similar to the topo7 preparation because it manipulates evaluated field elements rather than the expanded symbolic coefficients.

The restricted-scale topo7 and topo4 examples are relatively modest in memory demand: the paper states that 4 GBytes is sufficient. This figure applies to those examples and should not be generalized to the full-mass reductions.

For the selected-output jobs, the authors report that type A and type B improve Kira’s runtime by a factor of 3–5 relative to the default job. This result supports the importance of identifying the actual requested outputs before starting the symbolic solve. It does not mean that every arbitrary list of integrals will offer the same saving.

#### Retaining full mass dependence

The final benchmark series retains full mass dependence for topo4 and topo5. Kira uses 13 processor cores and enables the algebra strategy for back substitution. This removes the simplifying mass-ratio restriction and leaves more symbolic dependence in the coefficients.

For topo4, the authors describe the total runtime as being on the order of 10 hours. For the most demanding topo5 reductions, they report approximately one week. These are approximate descriptions with different workloads behind them, rather than precise timing points suitable for a direct numerical ratio.

The memory demand also increases substantially. Reproducing the reported full-mass results requires about 90 GBytes for Kira, with around 10 GBytes for each Fermat instance. The distinction between the main program and each algebra worker matters when assessing whether a parallel configuration fits on a machine.

Most of the time in these difficult reductions goes into simplifying coefficients through Fermat. pyRed is affected much less by the additional symbolic scale because its arithmetic remains numerical within the finite field. The successful preprocessing therefore shifts attention to the algebra that must still be done to obtain the final symbolic answer.

For these reductions, the authors again report matching master-integral sets between Kira and Reduze 2. The comparison of reductions uses numerical kinematic input in Reduze 2 rather than the same fully symbolic calculation. This provides a valuable consistency check, but it is not a full symbolic runtime comparison under matching conditions.

#### The measured effect of algebra scheduling

The paper directly compares Kira with different back-substitution settings for full-mass topo4. The benefit grows with the complexity of the requested reduction. The following chart uses the approximate speedup factors explicitly stated by the authors.

Full-mass topo4, reported runtime speedup from algebra scheduling The algebra strategy provides a larger approximate speedup for the more complex reduction.

**The numbers**

| System or setting | approximate total runtime speedup factor |
| --- | --- |
| Kira algebra enabled, s_max=1 | 2 |
| Kira algebra enabled, s_max=3 (this paper) | 4.5 |

Each factor compares the enabled strategy with the corresponding reduction without that strategy. The chart does not compare elapsed times between the complexity settings. It shows that changing how symbolic contributions are combined has a greater relative benefit when the coefficients become more difficult.

The authors describe the simpler case as roughly a factor 2 improvement and the more complex case as roughly a factor 4.5 improvement. Those qualifications are part of the evidence. The results demonstrate that algebraic scheduling can materially affect total runtime, while leaving the exact benefit dependent on the reduction being performed.

### What the ablations show

The paper offers controlled option comparisons and diagnostic analyses rather than a complete factorial ablation of every implementation choice.

#### Target selection removes work beyond redundancy

The default, type A, and type B comparisons isolate an important distinction. Removing dependent equations leaves a system with independent information, but it can still leave more information than a particular application needs. Target selection then asks which of those equations contribute to reducing the requested integrals.

The reported factor of 3–5 for selected-output jobs supports the practical value of this second filter in the tested topo7 and topo4 reductions. It is evidence for a workload-aware reduction strategy. The benefit arises because the requested result is narrower, and Kira can exploit that narrower request before doing expensive symbolic work.

This comparison does not establish that type B is always preferable to type A. Their requests are different: an explicit list serves a known set of needed integrals, while a recursive selection provides a broader region. A user who later needs additional integrals may reasonably choose the broader output in spite of a longer initial reduction.

#### Back-substitution scheduling matters more as coefficients grow

The algebra comparison changes the strategy used during back substitution for full-mass topo4. It provides more direct evidence about an internal implementation decision than the comparisons between different reduction programs do. The underlying integral family and desired reduction remain the same kind of problem, while the organization of coefficient combination changes.

The greater reported gain at higher numerator complexity is consistent with the authors’ explanation of expression swell. When contributions are already small, delaying their combination offers less opportunity. When intermediate rational functions become large, combining shorter expressions first can avoid costly intermediate states.

The result should not be interpreted as a measurement of expression size itself. The paper reports total runtime improvement, not a detailed trace of every coefficient’s growth. It therefore supports the usefulness of the strategy without proving that expression length is an optimal scheduling measure or isolating every source of its advantage.

#### pyRed’s timing locates the remaining bottleneck

The authors repeatedly compare the time spent in pyRed with the complete reduction. The numerical preparation is a small component in the reported examples, including cases where symbolic complexity becomes much greater. This is evidence that dependence screening is inexpensive enough to be useful rather than merely moving the cost to another stage.

The interpretation has an important limit. A small preprocessing time does not by itself quantify how much runtime the preprocessing saves. That would require a matched reduction without the screening step. The authors state that eliminating redundant equations reduces total time substantially, but the narrative does not provide a complete numerical comparison with pyRed disabled.

What the timing analysis does establish is the separation of cost behavior. Introducing another symbolic scale strongly affects the full reduction, while the finite-field component changes much less. The remaining bottleneck is therefore associated mainly with symbolic manipulation, especially Fermat simplification in back substitution.

#### Pivoting exposes a tradeoff between stages

The optional pivoting algorithm illustrates a more subtle implementation question. A choice that makes pyRed more expensive may select equations that are easier for Kira to solve symbolically. The authors report worse scaling and memory behavior for that numerical alternative, together with the possibility of a better downstream equation set.

The paper does not give a broad quantitative study establishing when that tradeoff is favorable. Its value is explanatory: equation selection is not solely a question of finding any independent subset as quickly as possible. Different independent subsets can lead to different symbolic costs.

This also qualifies the role of the default ordering. A fixed initial order is efficient and avoids repeated pivoting overhead, but it does not claim to discover the globally cheapest symbolic reduction. Kira makes a practical choice and exposes an alternative instead of presenting one local criterion as universally best.

#### Correctness checks support consistency, not universal coverage

Agreement with other programs is an important part of the analysis. For the earlier comparisons, the authors checked both the resulting master basis and the reduction rules. For the full-mass cases, the stated evidence includes matching masters and numerical comparisons with Reduze 2.

These checks support the correctness of the demonstrated reductions. They do not show that every possible seed range closes, that all candidate masters are irreducible in a larger system, or that the same settings will be effective for another topology. The paper itself explains why boundary integrals can remain unresolved and why users may need to enlarge the seed region.

### Limitations

#### The authors explicitly limit what a seed region guarantees

The most important mathematical qualification concerns the finite selection of seeds. Kira’s reduction can express chosen integrals through a smaller collection without proving that the remaining collection is a final independent basis for an adequately enlarged system. Relations outside the selected region may still connect apparent masters.

The authors warn that integrals at the boundary can remain unreduced. When such an integral appears among the potential masters, the user may need to expand the seed selection and restart. This is why the intermediate master lists should be read as diagnostic outputs rather than unconditional certificates of irreducibility.

The implementation also discards relations led by auxiliary integrals. This is part of the described reduction procedure, and it reinforces the need to distinguish intended seed outputs from every integral that happens to occur during equation generation. The program is organized to reduce a requested region, not to solve an unbounded family of integer-index integrals in a single finite run.

#### Resource limits remain substantial

The authors identify CPU time and available memory as practical restrictions. The demonstrated improvements do not remove those constraints. In full-mass problems, the final symbolic coefficients can still demand long runtimes and large amounts of RAM.

Parallelism helps when independent simplifications are available, but each Fermat process also has a memory cost. A machine with many processor cores is not automatically able to use all of them effectively if the algebra workers exceed its memory capacity. The reported full-mass memory requirements make that tradeoff concrete.

Writing equations to SQLite3 allows Kira to reduce pressure on main memory and resume staged work. It does not make the underlying expression complexity disappear. Disk storage changes how the program manages the calculation, while the expensive rational functions must still be produced and simplified.

#### Finite-field selection is not symbolic reconstruction

The paper explicitly leaves rational-function reconstruction outside the implemented method. Earlier work discussed recovering symbolic expressions from finite-field evaluations, and pyRed’s ability to carry arrays of coefficients is presented as a possible foundation for integration with a reconstruction library. Kira does not use that route to obtain the reduction coefficients here.

This limits what can be attributed to the finite-field technique. It selects equations, exposes candidate masters, and traces dependencies. The expensive symbolic reduction remains a separate stage. Claims that Kira replaces symbolic algebra entirely would contradict the implementation and the benchmark analysis.

A careful reader should also distinguish the authors’ practical reliability statement from a formal proof about every evaluation. pyRed substitutes field values into rational coefficients, but the paper does not supply a numerical failure bound, a detailed study of exceptional substitutions, or a universal certification procedure. The reported checks provide evidence for the reductions performed, while the general reliability claim remains described at the implementation level.

#### The sparsity analysis has a condition

The O(n²) argument depends on working equations remaining effectively bounded in size as the system grows. The authors motivate their elimination order through that observed or intended sparsity behavior. They also explain that an inconvenient elimination strategy can destroy sparsity and recover the cost associated with dense systems.

A careful interpretation therefore treats the complexity claim as tied to this structural assumption. It does not establish that all systems produced by all topologies will maintain short intermediate equations. The absence of pivoting overhead is beneficial in the default procedure, but it also means the initial order carries much of the responsibility for subsequent behavior.

Likewise, the back-substitution heuristic uses expression length as a practical scheduling signal. The experiments support that choice in full-mass topo4, but the paper does not prove that shorter expressions always combine more cheaply or yield smaller final intermediates. Its contribution is an effective engineering strategy, not an optimality theorem.

#### The benchmark scope is narrower than the algorithm’s scope

The authors state that the algorithm can be applied beyond two-loop reductions. The demonstrated benchmark families are nonetheless double boxes from a particular physical application. Higher-loop applicability and measured higher-loop performance are different claims.

A careful reader can conclude that the implementation improves the tested reductions and that its general formulation is not restricted to those topologies. The evidence does not establish a runtime advantage for every higher-loop problem, every mass configuration, or every possible ordering of propagators and sectors.

The cross-program comparisons also depend on output scope. Default reduction, recursively selected integrals, and an explicit target list are distinct tasks. Their runtime differences are informative precisely because the paper specifies them. Removing those conditions would make the reported speed advantages appear more universal than the experiments justify.

For the full-mass cases, Reduze 2 uses numerical kinematic input for the comparison described. That supports consistency checking, but it prevents treating the result as a matched measurement of fully symbolic throughput. The strongest symbolic runtime conclusions remain specific to Kira’s own demonstrated runs and option comparisons.

#### Some important quantities are not measured in detail

The narrative identifies redundant equations as a major cost and describes pyRed as an effective filter. It does not provide, in the reported prose, a complete accounting of how many equations are discarded for each benchmark, how intermediate expression sizes evolve, or how much each internal design choice contributes independently.

This matters when explaining why the complete program is faster. Kira combines equation selection, sparsity-conscious elimination, targeted subsystem extraction, expression scheduling, parallel simplification, and storage decisions. Comparisons with another program measure the combined result. They do not assign an exact share of the advantage to each component.

The paper also does not present a parallel-scaling study across a broad range of worker counts. It demonstrates useful parallel configurations, but those runs do not establish ideal scaling or a generally optimal number of Fermat workers. The best configuration remains connected to the available workload and memory.

#### Compatibility is useful but partial

Kira’s YAML input resembles Reduze 2’s and supports the main reduction tasks described by the authors. This makes independent cross-checking easier. It does not mean that every Reduze 2 option has an equivalent effect in Kira.

The paper explains that unsupported options are ignored with a startup message. A careful user must therefore inspect what Kira actually recognizes, particularly when reusing an existing job specification. Similar input syntax helps transfer the mathematical problem, but it is not a guarantee that every execution detail is preserved.

Finally, Kira’s output still requires another stage of scientific calculation. The master integrals must be evaluated, and their results must be incorporated into the larger amplitude calculation. Reducing the number of independent integrals is a substantial achievement, but it is not the same as completing the physical prediction.

### What came after

The paper does not document subsequent research that builds on Kira, so it does not establish a citation-based account of later developments. Its forward-looking discussion instead identifies a specific unfinished direction: reconstructing symbolic rational functions from finite-field calculations.

That direction grows naturally from the division of work in the implementation. pyRed already handles field-valued coefficients and can carry arrays of them. A reconstruction component could, in principle, use information from suitable evaluations to recover symbolic dependence. The authors present integration with such a library as a possibility, not as a completed feature or a demonstrated result.

The cited foundations must remain separate from that proposed continuation. Kant’s work supplied the earlier dependence-screening approach. The paper also discusses prior finite-field methods for IBP reduction, Peraro’s work on functional reconstruction, and a private implementation for single-scale problems. These are antecedents or related approaches in the authors’ account; they are not later applications of Kira.

Another stated development concerns interruption and continuation. The implementation already supports database-backed progress during back substitution, while a graceful interruption option is described as future work. The paper therefore leaves both mathematical and workflow improvements open, with different levels of completion.

What it establishes is a concrete combination of techniques: inexpensive structural screening before symbolic elimination, selection around the outputs that are actually required, and careful scheduling of the algebra that remains. Its benchmarks show that these choices can make demanding reductions more practical. Claims about subsequent adoption, newer capabilities, or later performance would require evidence beyond the developments documented by the authors.

## Cite

Cite as Philipp Maierhöfer, Johann Usovitsch and P. Uwer. 2018. Kira—A Feynman integral reduction program. Computer Physics Communications.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1016/j.cpc.2018.04.012](https://doi.org/10.1016/j.cpc.2018.04.012) · [arXiv 1705.05610](https://arxiv.org/abs/1705.05610)

```bibtex
@inproceedings{maierhofer2018kira,
  title = {{Kira—A Feynman integral reduction program}},
  author = {Philipp Maierhöfer, Johann Usovitsch and P. Uwer},
  booktitle = {Computer Physics Communications},
  year = {2018},
  doi = {10.1016/j.cpc.2018.04.012},
  eprint = {1705.05610},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1016/j.cpc.2018.04.012}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
