Algebraic Multigrid with Non-Markovian Corrections

Rayan Moussa, Karsten Kahl

University of Wuppertal

This research is supported by European Union’s Horizon Marie Skłodowska-Curie Actions Doctoral Networks programme, under Grant Agreement No. 101072344, project AQTIVATE, and by the DFG, Project-ID 531152215 (CRC 1701).

European Union flag
AQTIVATE logo
The Cyprus Institute logo
Bergische Universität Wuppertal logo

The steady temperature T(x, y) in a square box of side L:

Discretised, one equation per grid point, it becomes a linear system:

discretise: one equation per grid point

−1−1−1−14

→ Ax = b, N unknowns (one per grid point)

in matrix form: A x = b

=Axb

sparse: ≤ 5 nonzeros per row

work to solve it

10²

10⁶

10¹²

10¹⁸

10²

10⁴

10⁶

number of unknowns N

exact inversion ∼ N³

desired ∼ N

4× N → exact inversion 64× the work

Colour bar

T = 1

T = 0

T = ?

unknown

T = 1

source

T = 0: sink

T = g(x, y)

L

L

geometry and boundary data

The problem

Multigrid

Memory

Results

Summary

A simple problem: steady state heat distribution in a box

R. Moussa, K. Kahl, Relaxation-Based AMG

1/14

portrait of Jacobi

Jacobi 1845

portrait of Gauss

Gauss 1823

Let’s converge instead?

M: a cheap approximation to the inverse of A (Jacobi, Gauss–Seidel, SOR, …), S: the smoother
here: weighted Jacobi, M = ωD⁻¹, ω = 0.8

Local fluctuations are gone in a few iterations, but large scale heat transfer is yet to emerge.

The accuracy gained per iteration drops to zero: relaxation stagnates.

The problem

Multigrid

Memory

Results

Summary

Local relaxation methods

R. Moussa, K. Kahl, Relaxation-Based AMG

2/14

First page header of R. P. Fedorenko, A relaxation method for solving elliptic difference equations, 1961

R. P. Fedorenko, 1961: the first two-level method

Same effort for every grid (local iterations × unknowns). Locally, finer is better, while globally, coarser is better.

The problem

Multigrid

Memory

Results

Summary

What happens on multiple scales?

R. Moussa, K. Kahl, Relaxation-Based AMG

3/14

a multigrid cycle

h2h4h8hRRRPPP

⟳ local relaxation at that scale

R restrict

P interpolate

grid h (63²)

grid h  (63²)

local peak

+

grid 2h (31²)

grid 2h  (31²)

shorter range

+

grid 4h (15²)

grid 4h  (15²)

mid range

+

grid 8h (7²)

grid 8h  (7²)

global shape

fine grid: local detail

coarse grid: non-local correlations

Global correlation profile and its local multiscale decomposition from multigrid

0

0.2

0.4

0.6

0.8

0

¼

½

¾

1

x along the middle of the box

G

The problem

Multigrid

Memory

Results

Summary

The multigrid idea: evolve and couple all the scales

R. Moussa, K. Kahl, Relaxation-Based AMG

4/14

relaxation alone

usual multigrid (two levels)

smoother S = I − MA: τ local iterations from x(t), then the coarse correction

The problem

Multigrid

Memory

Results

Summary

A story of success and failure

R. Moussa, K. Kahl, Relaxation-Based AMG

5/14

General form of standard AMG (two levels)

two-grid iteration t → t + 1: from x(t), τ local iterations of the smoother S = I − MA, then the coarse correction

Static: relating the DOFs using only entries of the static operator A

−aiW/aii−aiE/aii−aiN/aii−aiS/aiiweights wij = −aij / aii, from the entries of A

the methods differ only in P and R

Classical AMG (Ruge–Stüben)

P: −aij/aii over strong couplings, R = Pᵀ

Smoothed aggregation

P = (I − ωD−1A) Ptent, R = Pᵀ

ℓAIR

R ≈ −AcfAff−1 (local), P from A

only P and R change, always built from A

Markovian: only the latest iteration accounted for

local iteration τ−2discardedlocal iteration τ−1discardedlocal iteration τ (now)local iterations

The problem

Multigrid

Memory

Results

Summary

Usual AMG: one Markovian correction, weights from A

R. Moussa, K. Kahl, Relaxation-Based AMG

6/14

Sadao Nakajima

1958

Robert Zwanzig

1960, 1961

Hazime Mori

1965

Nakajima–Zwanzig–Mori projection formalism

Integrate out the unresolved variables exactly, and the resolved ones remember their past.
instant τ−2instant τ−1instant τ (now)time
coarse-graining

■ Markovian (instantaneous)   ■ memory of the past   ■ noise from the unresolved initial state

The problem

Multigrid

Memory

Results

Summary

The dynamical relation is non-Markovian!

R. Moussa, K. Kahl, Relaxation-Based AMG

7/14

Usual multigrid (Markovian)

Non-Markovian

x(t): iterate at the start of two-grid iteration t,  x(t,ℓ): after ℓ iterations of a local relaxation S (x(t,0) = x(t)),  S = I − MA

Title and abstract of the paper: A theory of relaxation-based algebraic multigrid, R. Moussa and K. Kahl

R. Moussa, K. Kahl, A theory of relaxation-based algebraic multigrid

What it actually looks like:

ℓ = 0: now

ℓ = 0: now

coarse points only

+

ℓ = 1

ℓ = 1

1 local iteration ago

+

ℓ = 2

ℓ = 2

2 local iterations ago

+

ℓ ≥ 3

ℓ ≥ 3

the older history

=

our correction

our correction

sum of the pieces

≈

needed

needed

after τ = 6 local iterations

The problem

Multigrid

Memory

Results

Summary

Making AMG non-Markovian

R. Moussa, K. Kahl, Relaxation-Based AMG

8/14

The problem

Multigrid

Memory

Results

Summary

Does it work?

R. Moussa, K. Kahl, Relaxation-Based AMG

9/14

1

Advection

Pure transport, no diffusion

2

Recirculating flow

Closed streamlines

3

Rotated anisotropy

Strong direction off the grid

4

Helmholtz (indefinite)

Non-smooth near-kernel modes cause blow-ups

5

Gauge Laplacian (lattice QCD)

Random gauge fields

6

High-contrast coefficients

110⁶

Large discontinuities

Common thread: broken local/global symmetries are difficult for AMG to adapt and correct for.

The problem

Multigrid

Memory

Results

Summary

Other complicated problems

R. Moussa, K. Kahl, Relaxation-Based AMG

10/14

0.5×

1×

2×

5×

10×

advection, stagnation point

7.8× vs AIR

advection, curved characteristics

7.6× vs RS

conv.-diff., discontinuous wind

7.0× vs AIR

advection, constant wind

6.9× vs AIR

advection, sheared wind

6.7× vs AIR

anisotropy, axis-aligned

6.3× vs AIR

space-time adv.-diff.

2.6× vs root-node

anisotropy + convection

2.0× vs RS

3D advection

1.9× vs pairwise

conv.-diff., boundary layer

1.4× vs root-node

gauge Laplacian (lattice QCD)

1.1× vs SA

anisotropy, rotated (10⁻³)

1.1× vs RS

anisotropy, rotated (10⁻⁶)

1.0× vs RS

conv.-diff., skew wind

0.9× vs root-node

advection-reaction

0.5× vs pairwise

shifted Laplacian (indefinite)

no method of either kind converges

← Other is cheaper

Ours is cheaper →

cycles vs work per cycle

cycles to 10⁻¹⁰

10 WU30 WU100 WU300 WUadvection-reaction

1

2

4

8

16

32

1

2

4

8

16

WU per cycle

◆ best PyAMG   →   ● ours

* Work to 10−10 residual reduction in WU; best of five tuned PyAMG families vs. ours (injection as interpolation with non-Markovian corrections + injection as restriction), same multilevel V-cycles tested.

The problem

Multigrid

Memory

Results

Summary

Some numerical comparisons

R. Moussa, K. Kahl, Relaxation-Based AMG

11/14

Standard AMG

AMG + non-Markovian corrections

0

0.5

1

1

4

8

12

16

N/Nc = 2

N/Nc = 4

N/Nc = 8

N/Nc = 16

dashed: standard AMG

0

0.5

1

2

4

8

16

32

64

τ=1

τ=2

τ=4

τ=8

standard

The problem

Multigrid

Memory

Results

Summary

Further potential

R. Moussa, K. Kahl, Relaxation-Based AMG

12/14

1 · PDE problems require efficient multiscale solutions

Solving PDEs with local relaxation methods leads to critical slowing down. Multigrid uses a hierarchy of fine and coarse scales to attack every scale in the problem, achieving optimal efficiency.

2 · Usual AMG can be inefficient or unstable

For some challenging problems, AMG can break down. We thus need to introduce corrections to stabilize the method and bring its efficiency back.

3 · Coarse-grained dynamics are non-Markovian

One way to correct for the shortcomings of standard AMG is to replace its Markovian structure with non-Markovian memory corrections. They are fully relaxation-based and adaptive to the evolution of the error.

4 · Tests seem positive

Testing against challenging problems and their state-of-the-art solvers, our performance is either on par or better in most tested cases.

Challenges and future research

The corrections can be expensive. Need a systematic way of identifying dominant terms and their local approximations.

Still no known method to reliably solve indefinite problems (e.g. Helmholtz); non-Markovian corrections are unable to restore convergence at reasonable cost. Need further corrections.

The problem

Multigrid

Memory

Results

Summary

Summary

R. Moussa, K. Kahl, Relaxation-Based AMG

13/14

R. Moussa, K. Kahl, A theory of relaxation-based algebraic multigrid, arXiv:2603.26513, 2026   arxiv.org/abs/2603.26513

Mori–Zwanzig–Nakajima formalism

S. Nakajima, On quantum theory of transport phenomena: steady diffusion, Prog. Theor. Phys. 20 (1958), 948–959

R. Zwanzig, Ensemble method in the theory of irreversibility, J. Chem. Phys. 33 (1960), 1338–1341

H. Mori, Transport, collective motion, and Brownian motion, Prog. Theor. Phys. 33 (1965), 423–455

K. K. Lin, F. Lu, Data-driven model reduction, Wiener projections, and the Koopman–Mori–Zwanzig formalism, J. Comput. Phys. 424 (2021), 109864

Y. T. Lin, Y. Tian, D. Livescu, M. Anghel, Data-driven learning for the Mori–Zwanzig formalism: a generalization of the Koopman learning framework, SIAM J. Appl. Dyn. Syst. 20 (2021), 2558–2601

Foundations of Multigrid and AMG

R. P. Fedorenko, A relaxation method for solving elliptic difference equations, USSR Comput. Math. Math. Phys. 1 (1962), 1092–1096

J. W. Ruge, K. Stüben, Algebraic multigrid, in Multigrid Methods, SIAM (1987), 73–130

P. Vaněk, J. Mandel, M. Brezina, Algebraic multigrid by smoothed aggregation for second and fourth order elliptic problems, Computing 56 (1996), 179–196

A. Brandt, General highly accurate algebraic coarsening, Electron. Trans. Numer. Anal. 10 (2000), 1–20

State-of-the-art AMG methods

J. Xu, L. T. Zikatanov, Algebraic multigrid methods, Acta Numer. 26 (2017), 591–721

J. Brannick, F. Cao, K. Kahl, R. D. Falgout, X. Hu, Optimal interpolation and compatible relaxation in classical algebraic multigrid, SIAM J. Sci. Comput. 40 (2018), A1473–A1493

T. A. Manteuffel, J. Ruge, B. S. Southworth, Nonsymmetric algebraic multigrid based on local approximate ideal restriction (ℓAIR), SIAM J. Sci. Comput. 40 (2018), A4105–A4130

T. A. Manteuffel, S. Münzenmaier, J. Ruge, B. S. Southworth, Nonsymmetric reduction-based algebraic multigrid, SIAM J. Sci. Comput. 41 (2019), S242–S268

Y. Notay, Analysis of two-grid methods: the nonnormal case, Math. Comp. 89 (2020), 807–827

A. Ali, J. Brannick, K. Kahl, O. A. Krzysik, J. B. Schroder, B. S. Southworth, Constrained local approximate ideal restriction for advection–diffusion problems, SIAM J. Sci. Comput. (2024), S96–S122

N. Bell, L. N. Olson, J. Schroder, B. Southworth, PyAMG: algebraic multigrid solvers in Python, J. Open Source Softw. 8 (2023), 5495

The problem

Multigrid

Memory

Results

Summary

References

R. Moussa, K. Kahl, Relaxation-Based AMG

14/14

Thank you for your attention!

R. Moussa, K. Kahl — A Theory of Relaxation-Based Algebraic Multigrid

moussa@uni-wuppertal.de · kahl@uni-wuppertal.de

European Union flag
AQTIVATE logo
The Cyprus Institute logo
Bergische Universität Wuppertal logo

ours: relaxation-generated P + injection R

vs. tuned ℓAIR (PyAMG)

one V-cycle engine

WU = one product with A

≈ 20 000 configurations tuned per problem

relaxation-based (ours)

ℓAIR (tuned)

classical AMG

total work to 10⁻¹⁰ (WU)

10

30

100

300

10⁴

10⁵

unknowns n

ours saves 36–56 % vs ℓAIR

10⁴

10⁵

unknowns n

ours saves 3–25 % vs ℓAIR

10⁴

10⁵

unknowns n

ours saves 5–20 % vs ℓAIR

The problem

Multigrid

Memory

Results

Summary

Ours vs tuned ℓAIR: race to 10⁻¹⁰, and how it scales

R. Moussa, K. Kahl, Relaxation-Based AMG

backup

Relaxation and splitting

Coarse-grained interpolation (Mori–Zwanzig)

Exact coarse equation: memory + noise

Two-level error propagators

Transfer operators from the dynamics

R. Moussa, K. Kahl, A theory of relaxation-based algebraic multigrid, arXiv:2603.26513 (2026). Notation: τ relaxation steps, σ coarse / φ fine components, P†, Q† dual blocks, s flow time.

The problem

Multigrid

Memory

Results

Summary

Key Equations

R. Moussa, K. Kahl, Relaxation-Based AMG

backup

cycles to 10⁻¹⁰

Advection

20 WU40 WU80 WU160 WU

2

5

10

20

50

100

2

3

5

10

20

WU per cycle

Recirc., ε = 10⁻⁴

20 WU40 WU80 WU160 WU

2

3

5

10

20

WU per cycle

Recirc., ε = 10⁻³

20 WU40 WU80 WU160 WU

2

3

5

10

20

WU per cycle

relaxation-based (ours)

ℓAIR

ℓAIR + relaxed P

ours + memory

ℓAIR + memory

classical AMG

Every transfer-operator class, m = 255: density buys fewer cycles at almost exactly its cost: the two ends meet (95.4 vs 98.6 WU).

The problem

Multigrid

Memory

Results

Summary

Backup: the ladder of transfer operators

R. Moussa, K. Kahl, Relaxation-Based AMG

backup

→ / ← reveal / hide (also PageDown / PageUp, clicker) · ↓ / ↑ next / previous slide · p play/pause · r restart · n notes · f fullscreen