CANON: Agent-Assisted Construction of Canonical Differential Equations for Feynman Integrals

Dong-shan Jian, Yuanche Liu, Yan-qing Ma, Bo-xuan Shi, Yu Wu, Zihao Wu, Yang ZhangarXiv 2026

TL;DR

Calculating ultra-precise predictions in particle physics often stalls at a tedious mathematical bottleneck: guessing and testing different ways to write down complex equations until they simplify into a clean "canonical" form. The authors introduce CANON, an AI agent-assisted framework that automates this trial-and-error hunt by orchestrating existing symbolic math tools and strictly verifying every step. It turns weeks of artisanal mathematical guesswork into an automated, error-checked pipeline—freeing up physicists while guaranteeing exact results.

What Problem Does This Paper Address?

To test the Standard Model at colliders like the LHC, theorists must calculate multi-loop Feynman integrals, which represent the dizzying web of virtual particles popping in and out of existence during a collision. Because these integrals blow up to infinity in 4 dimensions, physicists evaluate them in $4 - 2\varepsilon$ dimensions, using $\varepsilon$ as a mathematical regulator.

Usually, thousands of integrals are reduced to a smaller set of "master integrals," which are solved via differential equations. The gold standard is finding a canonical basis: a clever change of variables where $\varepsilon$ cleanly factors out of the differential equation matrices, leaving behind neat logarithmic terms ($d\log$).

Here is the catch: while dozens of algorithms and software packages exist to find this canonical basis, none of them work universally. Physicists end up playing a high-stakes game of trial and error—picking a tool, checking if $\varepsilon$ factored out, tweaking their ansatz when it fails, and repeating this across dozens of interconnected sub-problems ("sectors").

Methods

CANON tackles this bottleneck by pairing Large Language Model (LLM) agents with deterministic, symbolic computer algebra systems (like Kira3, CANONICA, Libra, and a custom DlogBasis-refine tool). Instead of asking an LLM to do the math directly, CANON uses agents to coordinate the math tools, working sector-by-sector from the simplest sub-problems up to the full integral family.

What is novel here is how CANON bridges AI flexibility with mathematical rigor:

  • Main and Worker Agents: A main coordinator assigns specific integral sectors and resource budgets to sub-agents (workers).
  • Method Cards: Workers consult structured scientific references ("method cards") detailing the exact inputs, applicability rules, and scripts for standard physics packages, choosing which strategy to deploy based on algebraic diagnostics.
  • Independent Verification: Every agent proposal is checked by strict, non-AI symbolic routines. It verifies both the "core" diagonal block of the current sector and its off-diagonal couplings to previously solved lower sectors. If a check fails, the agent gets diagnostic feedback and tries again.
  • Persistent State Graph: Because multi-loop calculations easily blow past an LLM's context window, CANON uses an external directed acyclic task graph. Verified results are content-hashed and stored on disk, allowing sub-agents to pick up long-range searches without losing progress or context.

Datasets

Because this is a symbolic mathematics workflow rather than a machine-learning training pipeline, there are no training datasets. Instead, the authors evaluate CANON on four multi-loop Feynman integral benchmarks of escalating complexity:

  1. 2-loop off-shell double box with one internal mass (24 sectors, 37 master integrals, 5 kinematic variables).
  2. 2-loop massless five-point pentabox, a classic multi-scale benchmark in scattering amplitudes (46 sectors, 61 master integrals, 5 variables).
  3. 3-loop family (28 sectors, 40 master integrals, 2 variables).
  4. A massive unpublished benchmark containing 426 master integrals, used to stress-test the system's pluggable architecture alongside private research modules.

Key Insights and Ideas

  • "Search-heavy, verification-light" is the sweet spot for AI in math: Constructing a canonical basis requires creative heuristics and tool-switching, which is hard to hard-code, whereas checking if a matrix has $\varepsilon$ factored out is fast and exact. Separating AI search from symbolic verification completely eliminates hallucination risks in the final output.
  • Context exhaustion is a state-management problem: Naive agent loops crumble on multi-day physics problems. Treating research artifacts like software dependencies in a task graph lets fresh sub-agents parachute into Sector 45 using verified, hashed transformations from Sectors 1–44.
  • Built-in academic paper trail: By default, CANON outputs not just the Mathematica expressions for the canonical basis, but a compiled PDF report detailing which method worked on every single sector—complete with academic citations so physicists know whose algorithms to credit.

Key Results

Using only the public CANON workflow, the system independently constructed and symbolically verified exact canonical bases and differential equations for all three primary benchmarks:

  • Off-shell double box: All 37 master integrals transformed into canonical form over an alphabet of 21 logarithmic letters (including algebraic square roots).
  • Massless pentabox: All 61 master integrals solved across 46 sectors with 24 active letters.
  • Three-loop family: All 40 master integrals solved across 28 sectors with 3 active letters.
FIG. 4. This figure compares the original master-integral systems with their final canonical forms for examples in Section IV A, IV B and IV C, respectively. Each square combines the same matrix position over all differential directions. White denotes a zero in every direction. A nonzero position is blue if every directional entry divided by ε is independent of ε, and red otherwise. The absence of red entries in the final panels displays epsilon factorization. The symbolic checks described above establish these identities at generic kinematics.

Visually, the transformation is striking: in Figure 4, all non-canonical entries (red squares) in the original master-integral matrices are completely eliminated, leaving pure $\varepsilon$-factorized systems (blue squares) verified at generic symbolic kinematics.

Furthermore, on the 426-master-integral stress test (augmented with private modules), CANON found and verified the complete canonical basis within 48 hours.

Limitations and Future Work

  • Polylogarithmic scope: CANON currently targets standard logarithmic ($d\log$) canonical forms. Many cutting-edge physics problems involve more exotic geometries—like elliptic curves or Calabi–Yau manifolds—where integrals don't fit this mold. Extending CANON's modular plugins to handle elliptic sectors (such as the two-loop kite family) is a primary next step.
  • LLM variability: Because different underlying language models exhibit different preferences when selecting "method cards" and proposing candidates, workflow efficiency and search trajectories can fluctuate depending on the chosen LLM. Stronger reasoning models are recommended to ensure bases are found efficiently.

Summary updated

Abstract

The construction of canonical basis is an important procedure in the calculation of multi-loop Feynman integrals via the canonical differential equation methods. Currently, there are various different methods for this purpose. Among them, no single method is universally applicable. Thus, obtaining a valid basis often requires repeated attempts and verification. In this paper, we present CANON, an agent-assisted framework designed to make this search-and-verification process more convenient and more efficient. In this workflow, the agent selects methods and calls the corresponding tools to revise the basis proposal or the associated differential-equation system. Independent programs then verify whether the agent's result is valid and ask the agent to retry if verification fails. This framework contains a specific state-management tool to supports long-range basis searching works which requires multiple sub-agents. Its modular architecture enables future extensions to the framework itself. In this paper, we demonstrate this framework by applying it to some two-loop and three-loop integral families.
BibTeX
@misc{jian2026canon,
  author = {Dong-shan Jian and Yuanche Liu and Yan-qing Ma and Bo-xuan Shi and Yu Wu and Zihao Wu and Yang Zhang},
  title = {{CANON: Agent-Assisted Construction of Canonical Differential Equations for Feynman Integrals}},
  year = {2026},
  eprint = {2611.33100},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.33100},
}
Figure