---
title: "Distributed Multigrid Neural Solvers on Megavoxel Domains (2021)"
description: "MGDiffNet trains a neural Poisson solver across grid resolutions and distributes the work to predict full fields on large voxel grids."
canonical: "https://research.elamur.ai/free/en/papers/balu-2021-distributed-multigrid-neural-solvers-megavoxel/"
---
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/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/balu-2021-distributed-multigrid-neural-solvers-megavoxel/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2021](https://md.research.elamur.ai/free/en/papers/2021/) / Distributed Multigrid Neural Solvers on Megavoxel Domains

# Distributed Multigrid Neural Solvers on Megavoxel Domains

Paper · 2021 · Aditya Balu, Sergio Botelho, Biswajit Khara et al.

**Authors:** Aditya Balu, Sergio Botelho, Biswajit Khara, Vinay Rao, [Chinmay Hegde](https://md.research.elamur.ai/free/en/authors/chinmay-hegde/), Soumik Sarkar, Santi Adavani, Adarsh Krishnamurthy and Baskar Ganapathysubramanian · **Year:** 2021 · **Venue:** arXiv:2104.14538 · **Licence:** [CC BY-NC-ND 4.0 (arXiv)](http://creativecommons.org/licenses/by-nc-nd/4.0/)

Cited by **3** papers in our library of more than 163,000 papers whose bibliographies we read · [licence](http://creativecommons.org/licenses/by-nc-nd/4.0/)

- [PDF](https://arxiv.org/pdf/2104.14538)
- [arXiv 2104.14538](https://arxiv.org/abs/2104.14538)

## Summary

A material can conduct heat easily in one region and poorly in another. To predict the temperature throughout it, a solver needs to account for how those regions interact, even when the material’s properties are known at every point. The authors study a version of this problem given by the generalized Poisson equation. Their solver, MGDiffNet, takes a grid of diffusivity values and predicts the complete steady-state solution on that grid. The aim is to train one network that can serve many coefficient fields from a specified family. That makes the up-front training cost relevant to applications such as design optimization, where changing the material or its parameters can create a long sequence of related solves.

The paper reduces training cost in two ways. First, it borrows the idea of a grid hierarchy from geometric multigrid. The same convolutional network trains on fields sampled at different spacings, carrying its learned weights from one grid to the next. Its loss comes from a finite element formulation of the equation, so the training inputs need no precomputed solution fields. The algorithm inserts prescribed values at the appropriate boundary nodes and trains the network to fill in the rest. Second, copies of the network process different input volumes in parallel and combine their gradients before each update. The grid schedule changes where the network spends its training time. The distributed implementation changes how much of the work at a given grid spacing can proceed concurrently.

In a controlled comparison at 128 × 128 × 128, training through a coarse-to-fine Half-V schedule took 7025.314 seconds, compared with 42422.50 seconds for training entirely at the target resolution. The paper reports a 6.04 × speedup, with both runs reaching a printed loss of 0.0400. The advantage depended on the grid and the schedule. Some multigrid runs at the smallest planar resolution took longer than direct training. Separate scaling experiments brought the epoch time for a dataset of 1024 maps at 256 × 256 × 256 from 48 mins to 6 secs on Azure, with the fastest run using 512 GPUs. On the Bridges2 CPU cluster, the authors trained at 512 × 512 × 512, where the peak memory use per node was 230GB.

Selected predictions resemble finite element solutions for the same inputs, although the paper reports no aggregate test-set field error. Its strongest evidence comes from controlled training comparisons and measurements on the two computing platforms. These show where coarse-grid training saves time, how distributed training handles a large collection of volumes, and why memory for an individual volume still matters when the workload is spread across many devices.

## Deep dive: Distributed Multigrid Neural Solvers on Megavoxel Domains

MGDiffNet trains a neural Poisson solver across grid resolutions and distributes the work to predict full fields on large voxel grids. · about 36 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### A family of equations on a large grid

The benchmark represents steady transport in a material whose properties vary with position. Diffusivity, or permeability in the corresponding material interpretation, determines how strongly a spatial difference in the unknown field drives transport. Where that coefficient is high, a given gradient has a different effect than it does where the coefficient is low. The generalized Poisson equation couples that local relationship to a constraint throughout the domain. Prescribed values on opposite sides drive transport, and the other sides have a zero normal derivative. Solving the equation gives the field inside as well as along its boundaries.

The input is a coefficient field and the output is a solution field. That distinction matters because both can be visualized as arrays with the same spatial organization. The value of the input at a given position describes the material there. The corresponding output depends on the surrounding material and the conditions across the domain. A prediction therefore needs to account for spatial context. Two inputs can agree at a point while their solutions there differ because of changes elsewhere. In the demonstrated family, altering the parameters changes the distribution of permeability while the domain and boundary prescription stay fixed.

The authors motivate full-field prediction through several kinds of repeated work. In computational design, each proposed change can require a fresh simulation to see how the field responds. A design criterion may also depend on a localized feature that becomes visible only at fine spatial resolution. The paper uses the onset of combustion instabilities to illustrate the kind of fine-scale feature that can matter, rather than as an application tested by the Poisson experiments. Field reconstruction presents a different motivation. When observations are sparse, a rapid field prediction can help estimate what happens between measurement sites. The paper mentions reconstructing a contaminant distribution as an example of that need.

A reduced description of a simulation can make repeated evaluation more affordable. The authors observe that simplification can also make it harder to retain a fine feature that drives the design objective. Their proposed route keeps the detailed grid as both the input and the output. It pays to train a reusable coefficient-to-solution map and then applies that map to individual inputs. This shifts some computation from each requested solution to a training stage. Whether the shift pays off in an application depends on the cost of that stage, the accuracy required, and how often the trained network is reused.

The benchmark has a modest parameterization and a large spatial representation. The same parameter sample can be evaluated on grids of different spacings to produce different discrete views of the same material. The number of grid locations, instead of the length of that parameter sample, is what makes processing a fine input expensive. This separation also explains how a resolution hierarchy is possible in the first place. The authors can retain the physical family and the boundary prescription while changing the array on which an optimization stage operates.

#### What earlier neural solvers offered

The paper describes both approaches that learn from data and approaches that take their training signal from the governing equation. It spends particular attention on coordinate-based neural solvers. In the setup it describes, a network receives spatial coordinates and assigns a solution value to each. Automatic differentiation supplies spatial derivatives of this prediction. Training then penalizes the equation residual at sampled interior locations, where the residual is the amount by which the two sides of the governing equation disagree. The sampled locations are often called collocation points. They allow training without first laying out a mesh that connects the points into elements.

Coordinate-based prediction has a useful freedom. The network can be queried at locations selected independently of the sample sites used in training. The authors identify a corresponding difficulty for the problem they want to solve. A coordinate describes where a value is requested, while a varying material field describes the conditions under which it is requested. A solver built around coordinates for a particular instance needs a way to receive that additional information if it is to cover a family of materials or a changing geometry. The paper points to work on parametric PDEs by Khoo and colleagues and to SimNet as examples that address aspects of this problem. It characterizes the latter as covering a limited parametric domain.

Boundary treatment creates a separate choice. A coordinate-based method can include a penalty for violating a boundary condition, alongside the penalty for violating the interior equation. The relative weights affect how training balances the two. The paper describes choosing them as a practical tuning problem. It also discusses work that imposes essential conditions directly or uses a variational formulation. Its examples include Variational PINN, neurodiffeq, and Liao and Ming’s use of Nitsche’s formulation. The authors present arbitrary boundary conditions as unfinished work in the approaches they discuss.

The computational challenges have a different form for coordinate-based and grid-based prediction. In the former, higher spatial dimension can require more collocation points to constrain the field. Boundary enforcement introduces additional work when it is handled through a penalty. A convolutional solver instead stores and processes a spatial array, along with intermediate arrays created during training. A fine volumetric grid makes these arrays expensive even when the convolutional filters themselves stay small. The paper illustrates the underlying problem with a planar timing study using the same architecture at different resolutions. It describes the epoch cost as growing quadratically as the spatial resolution increases in that study.

#### The numerical and computing ideas the authors bring together

Convolutional field prediction had precedents in the work cited by the authors, including Poisson prediction with varying meshes and Dirichlet conditions, finite-volume learning for a flow solver, and encoder–decoder approaches for surrogate prediction. Convolutions give a network access to arranged neighborhoods, so the input can carry the spatial layout of the material. But the space needed to apply those operations grows with the size of the arrays. The authors frame training at high resolution as a problem that requires both a way to spend less time on the finest grid and a way to use multiple workers when fine-grid computation is necessary.

Geometric multigrid supplies the idea of doing useful work on several spatial grids. In the classical procedure described in the paper, an iterative solver on a fine grid tends to remove errors that oscillate rapidly across neighboring points more readily than errors that vary slowly. A slowly varying error can occupy a shorter span in grid units after transfer to a coarser grid. There, a smoothing operation can act on a component that persisted on the fine grid. Coarse-grid work is also cheaper, because it involves fewer spatial unknowns. Transfer back to a finer grid allows the coarse result to inform a correction there.

The paper situates its proposal among earlier efforts to connect multigrid and learning. Some of the work it cites uses learned components to improve numerical multigrid operations such as smoothing or transfer between grids. Other work draws on multigrid when designing a neural architecture or scheduling training. MGDiffNet uses a grid hierarchy to organize training for a field-to-field solver. In the fixed-architecture experiments, the object carried between grids is a set of convolutional weights. The paper’s account of geometric multigrid gives the motivation for visiting different resolutions and varying the amount of work performed on each.

For the computing side, the authors describe data parallelism as a way to share the training workload. Each worker holds a copy of the network, carries out the forward and backward computations for its portion of the data, and participates in a common gradient update. The paper cites prior distributed training work for neural PDE solvers, including work by Botelho and colleagues and by Yang and colleagues. It also cites an analysis of concurrency in distributed learning. The authors use both graphics processors on cloud virtual machines and processors in a bare-metal cluster, with the choice tied to what each worker can store and process. [Demystifying Parallel and Distributed Deep Learning](https://md.research.elamur.ai/free/en/papers/nun-2018-demystifying-parallel-distributed-deep-learning/) · [GPU & parallel computing](https://md.research.elamur.ai/free/en/topics/gpu-parallel-computing/)

### The method, step by step

#### Define the equation and the boundary values

The method starts with a collection of physical problems that share an equation and differ in their inputs. The paper uses a general notation to distinguish the unknown solution, the data defining an instance, and the conditions imposed along the boundary. The interior statement is

```
𝒩[u; s(x, ω)] = f(x),  x ∈ D
```

Here 𝒩 is the differential operator, u is the unknown scalar field, and s is the problem data at spatial position x and parameter selection ω. The semicolon in the formula separates the unknown from the supplied data. The function f is the forcing, and D is the spatial domain. The symbol ∈ specifies where the equation applies. The paper uses bold or underlined spatial notation to distinguish a location vector from an individual coordinate. Here x denotes the full location except when individual Cartesian coordinates are displayed.

```
ℬ(u, x) = g(x),  x ∈ Γ
```

Here ℬ is a boundary operator acting on u at x, and g supplies the prescribed data for that operation. The set Γ is the boundary of D. Different parts of Γ can have different operators, so a condition on the value of u can coexist with a condition on a derivative. The calligraphic ℬ here denotes the boundary operator. The finite element formulation later uses B for a bilinear form.

For the example used throughout the paper, the interior operator describes steady diffusion through an inhomogeneous material.

```
−∇ · (ν(x) ∇u) = f(x),  x ∈ D
```

The symbol ν denotes diffusivity or permeability. The gradient ∇u gives the spatial derivatives of the solution, multiplication by ν weights them by the material properties, and ∇ · takes the divergence, or spatial rate of outflow, of the resulting vector field under the sign convention shown. The condition equates the negative divergence to the forcing f. Position x ranges over the interior D.

```
u = g on Γᴅ
```

Here Γᴅ is the part of the boundary with Dirichlet data, meaning that the value of u is prescribed there. The function g supplies those values.

```
∂u/∂n = h on Γɴ
```

Here Γɴ is the part with Neumann data. The notation ∂u/∂n means the directional derivative of u in the outward normal direction, denoted by n. The prescribed derivative is h. Together, the Dirichlet and Neumann portions cover the boundary in the paper’s formulation.

In the experiments, the domain is a square or cube with prescribed values on opposite faces in the first coordinate direction. The forcing vanishes, and the diffusivity is selected from the parametric family denoted by ν̃.

```
−∇ · (ν̃(x) ∇u) = 0,  x ∈ D
```

Here ν̃ is the varying diffusivity used for the benchmark, u is the unknown, x is a point of D, and the gradient and divergence have the same meanings as in the general equation. The right-hand side 0 indicates the absence of an interior source. The boundary values still drive a spatially varying solution.

```
u(0, y) = 1
```

Here 0 is the first coordinate of one face, y gives the remaining position along it in the paper’s planar notation, and 1 is the value assigned to u. On a cube the face also extends in the third coordinate direction.

```
u(1, y) = 0
```

Here 1 identifies the opposite face in the same coordinate convention, y again represents the transverse location in the planar notation, and u is set to 0. The pair of face conditions establishes a difference in the solution values across the material.

```
∂u/∂n = 0 on the other boundaries
```

Here u is the solution, n is the outward normal, and 0 is the prescribed derivative on all boundary portions beyond the two Dirichlet faces. For this diffusion problem a zero normal derivative also gives zero normal contribution from the diffusivity-weighted gradient there.

#### Generate the materials and put them on grids

The paper defines the input diffusivity by first constructing a spatial pattern for its logarithm and then exponentiating it. This makes the diffusivity positive in the mathematical expression. The displayed parameterization is

```
ν̃(x; ω) = exp(∑ᵢ₌₁ᵐ ωᵢ λᵢ ξᵢ(x) ηᵢ(y))
```

On the left, ν̃ is the diffusivity at the location x, which in this argument denotes the whole position, for the parameter vector ω. Inside the spatial factors on the right, x and y are individual Cartesian coordinates. The exponential function is exp. The sum runs over i from 1 to m, the number of terms. The scalar ωᵢ is component i of the sampled parameter vector, λᵢ is a real weight attached to that component, and ξᵢ and ηᵢ give its spatial dependence. The benchmark specifies m = 4 and ω = [− 3, 3]⁴, using the interval for each of the four parameter components. The description introduces λ as an ordered vector and gives λᵢ = 1 for the particular choice written alongside the benchmark.

The factors use a tuple a whose entries are 1.72, 4.05, 6.85, and 9.82 in that order. The component aᵢ enters both the argument of the trigonometric functions and the coefficients that scale them.

```
ξᵢ(x) = aᵢ² cos(aᵢx) + sin(aᵢx)
```

Here ξᵢ is the spatial factor along the x coordinate, aᵢ is entry i of the tuple a, and cos and sin are the cosine and sine functions. The square aᵢ² scales the cosine contribution.

```
ηᵢ(y) = aᵢ² cos(aᵢy) + (1 + 0.25aᵢ²) sin(aᵢy)
```

Here ηᵢ is the factor along y, cos and sin have the same meanings, and aᵢ is taken from the same tuple. The constants 1 and 0.25 set the coefficient of the sine term together with aᵢ². The displayed construction names x and y factors. The paper uses the parameterization to describe its volumetric data but gives no separate z factor in that formula.

The authors draw parameters using quasi-random Sobol sampling, a procedure for placing samples throughout the specified parameter range. Their multigrid study reports 65,536 coefficient samples. Each sample defines a permeability map when evaluated at the spatial points of the chosen grid. Moving between grid levels changes the points used to represent the field. The inputs still describe instances from the same governing family. The larger GPU scaling experiment gives its own input count and uses volumes at a fixed target resolution.

The paper formulates the method more generally in terms of a known quantity s and its discrete representation Sᵈ, with d denoting the resolution in this notation. A known function can be evaluated at the grid points. Existing values at discrete positions can also serve as inputs in the formulation. For the experiments, the analytic diffusivity field provides the values that populate the grid. The authors initialize the network weights randomly at the start of training. The output for an input array is a second spatial array, with entries interpreted as approximate solution values at the grid points.

#### Predict a field with convolutions

A convolution applies the same set of weights at successive positions. It takes a neighborhood around a location, combines the values in that neighborhood, and produces an output at the location. The paper gives a layer expression to show how the result of a weighted operation is passed through an activation.

```
γₗᵢ₊₁ = σ(Wₗᵢ · γₗᵢ + bₗᵢ)
```

Here lᵢ labels a layer and lᵢ₊₁ its successor. The symbol γ denotes the representation at the layer indicated by its subscript. The weights of the operation are Wₗᵢ, its bias is bₗᵢ, and the dot indicates application of the weights to the input representation. The activation σ is a nonlinear function of the resulting values.

For a volumetric convolution, the paper makes the neighborhood operation explicit.

```
(W ⊗ γ)[m,n,p] = ∑ᵢ₌₋ₕʰ ∑ⱼ₌₋ₗˡ ∑ₖ₌₋ᵩᵠ W[i,j,k] · γ[m−i,n−j,p−k]
```

Here W contains the filter weights and γ the input values. The operator ⊗ denotes convolution. The indices m, n, and p are the output location’s grid coordinates. The summation indices i, j, and k run over offsets along the corresponding axes. Their limits are set by the filter half-widths h, l, and q, with the subscript and superscript forms of q indicating the bounds of the last sum. The dot on the right is ordinary multiplication of a weight by an input value. The same coefficient at a given offset is used wherever the filter is applied. In this equation m counts a position, and p is a spatial index. Elsewhere the paper uses m for the number of parameter terms and p for the number of workers.

Shared filters make the training hierarchy possible. A change in input grid size changes how many places a filter is applied. With compatible dimensions and padding, the filter coefficients stay in the same arrangement and can be carried to the next stage. The method prescribes downsampling by a factor of two and uses padding to manage the edges of the arrays. Downsampling inside the network changes the array sizes encountered within a forward pass. A switch of training grid changes the input and output sizes of the entire pass. The paper exploits both changes of scale, at different points in the computation.

The chosen architecture is an encoder and decoder connected by skip connections. Its encoder computes features and moves to smaller arrays. Its decoder then upsamples the features. A skip connection gives a decoder stage access to features saved from the corresponding encoder stage. Concatenation lets the decoder see the saved array together with the upsampled one. The saved features retain information at the spacing of that stage, while the deeper features have been processed over a broader neighborhood. The architecture used for this purpose is [U-Net](https://md.research.elamur.ai/free/en/papers/ronneberger-2015-u-net-convolutional-networks-biomedical/).

In the paper, the experimental U-Net has a depth of three and contains three convolution layers and three layers that perform transpose convolution. Its processing blocks combine convolution and batch normalization, and the skip connections save intermediate outputs for use during upsampling. The starting filter count is 16 and increases by doubling as the encoder gets deeper. LeakyReLU supplies the intermediate activation, allowing a response with a non-zero slope on the negative side. A Sigmoid activation is used at the output, consistent with solution values between the prescribed face values. The assignment of the boundary values is a separate step performed on the predicted field.

#### Turn a prediction into a finite element loss

The authors interpret the network outputs as coefficients of a finite element field. They begin with a uniform discretization of the domain, organized into non-overlapping elements. At the grid points the known coefficient values are supplied as inputs, and the output entries provide approximations to the unknown values. Between the points, the finite element basis defines how the discrete solution is represented. In the paper’s notation,

```
uₕᶿ(x) = ∑ᵢ₌₁ᴺ φᵢ(x) (Uᵢ)ᶿ
```

Here uₕᶿ is the discrete approximation viewed as a spatial function. The subscript h identifies the discretization, and θ is the set of network parameters. The sum runs over grid-point indices i from 1 through N, the total number of points. The function φᵢ is the finite element basis associated with point i. The coefficient (Uᵢ)ᶿ is the value assigned to that point by the prediction and boundary procedure. This use of h as a mesh label is distinct from h as the prescribed normal derivative in the general boundary equation.

The weak formulation tests whether the field satisfies the governing equation in an integrated sense. A test function weights the equation residual, and the integral measures the resulting imbalance over the domain. Different test functions can examine different components of that imbalance. Written before placing the derivative terms into their integrated-by-parts form, the paper’s statement is

```
∫ᴅ v [𝒩(uₕᶿ; s) − f] dx = 0,  ∀ v ∈ V
```

Here ∫ᴅ means integration over the spatial domain D, and dx denotes its spatial measure. The function v is a test function. The operator 𝒩 is evaluated on the predicted finite element field uₕᶿ for the supplied data s, and f is the forcing. The bracketed expression is the residual. The quantifier ∀ means the requirement applies to every admissible v in the space V. In the Galerkin approach, the choice of test and trial spaces expresses the balance in terms of the discretized fields.

Integration by parts lowers the derivative requirement on the trial field and brings the relevant boundary contribution into the weak statement. For the diffusion operator, it allows the interior part of the balance to be expressed using first spatial derivatives of the test and trial fields. The paper assumes the fields belong to a space with square-integrable first derivatives and writes the finite element condition as

```
B(v, uₕᶿ) − L(v) = 0,  ∀ v ∈ V
```

Here B is the bilinear form encoding the differential operator. It takes a test function v and a trial field uₕᶿ. The linear form L represents the load and the applicable boundary terms through its action on v. The right-hand side 0 denotes balance for every admissible test function in V. The Neumann term vanishes for the homogeneous Neumann conditions in the experiment. Dirichlet data are imposed through the trial field used to evaluate the loss.

The weak balance leads to the scalar energy the authors use for training.

```
J(uₕᶿ) = ½ B(uₕᶿ, uₕᶿ) − L(uₕᶿ)
```

Here J is the energy functional, uₕᶿ is the field whose energy is being evaluated, and B and L are the bilinear and linear forms above. The same field occupies both arguments of B. The factor ½ scales that quadratic term. In the symmetric variational setting used for the Poisson problem, varying the energy produces the weak condition. Minimizing this energy over the network’s predictions supplies a training objective for the coefficient-to-solution map. The paper notes that the variational form can also account for natural boundary terms such as Neumann and Robin data. Its reported benchmark uses zero Neumann data.

The procedure for the prescribed values is simple. The training algorithm forms the solution array by masking the network output and inserting the known values before it evaluates the energy.

```
(Uᶿᵈ)ₘᵦ = (Uᶿᵈ)ᵢₙₜ,ₘᵦ χᵢₙₜ + (Uᶿᵈ)ᵦ꜀ χᵦ
```

Here Uᶿᵈ is the solution array at resolution d for the network parameters θ. The index mb identifies the mini-batch. The subscript int selects the free entries filled from the network prediction, and bc denotes the prescribed entries. The masks χᵢₙₜ and χᵦ select their respective entries by pointwise multiplication. The first term contributes the predicted values where these are free. The second term inserts the supplied values at the prescribed nodes. The paper’s algorithm labels the predicted portion “interior.” For the mixed problem, the distinction that matters to imposing the conditions is whether a nodal value is prescribed. The zero normal derivative enters through the weak formulation.

The optimizer adjusts θ using gradients of the mini-batch energy. A finite element reference solution can be generated independently to assess a prediction, as the authors do for selected cases. To train, the required input is the diffusivity field together with the information defining the PDE and the boundary values. This is how the authors avoid a preliminary campaign of finite element solves to create labels. The finite element method still defines the field representation and the physical training objective.

From a sampled material to a trained field solver The steps in order.

#### Move the learned weights through a grid schedule

A training level is a particular grid spacing for the entire domain. Successive coarser levels halve the number of elements along each direction. The paper expresses the sequence along an axis as nₑₗ, nₑₗ/2, nₑₗ/4, and so on, where nₑₗ is the count along that axis at the finest level. In a spatial array, coarsening several axes changes the amount of data processed in each sample. The reported schedules use at most 4 levels. A stage trains on the maps at its assigned resolution, then passes the current weights to the next stage.

The names of the schedules follow their routes through the hierarchy. A V cycle starts with work at the finest resolution, descends through coarser grids, and returns through successively finer ones. The Half-V begins training at the coarsest grid and works upward. The W and F schedules revisit parts of the hierarchy before the final return to the target grid. These visits give the network further exposure to intermediate or coarse spatial scales. Their usefulness depends on what the weights learn at those resolutions and on the costs of the visits.

For stages on the way down, the authors train for a fixed number of epochs. This allows an initial exposure to a finer representation without requiring that the optimizer reach its stopping condition before moving to a cheaper grid. At the coarsest level and during refinement, the authors use an early-stopping criterion to identify a plateau. When a stage moves to a finer grid, the learned filters can be applied immediately to diffusivity values on that grid. The resulting field is an initial prediction for the finer stage, which then continues optimizing with the finer-grid loss. The weights serve as the transferable state. The new input already has the target spacing for that stage, so the procedure can generate a finer field through a forward pass.

The analogy with numerical prolongation comes from this use of a cheaper stage to initialize work at finer spacing. In a classical correction procedure, the quantity transferred between grids is a numerical approximation or correction tied to a particular solve. In the learning schedule, the carried weights encode a map learned over a collection of inputs, and applying them to the finer coefficients yields a new estimate for each input. The paper argues that filters can learn useful neighborhood information at several scales. It also qualifies that idea by noting that a network of finite capacity may have difficulty representing the mappings needed at all scales.

For that reason the authors also test a version that changes the architecture as training advances. When they move from a coarse scale to a finer one, they remove one learned transpose convolutional layer and add one convolutional layer plus two transpose convolutional layers. The new layers start with random weights. The preceding stages still supply learned parameters for the retained parts. This procedure tests whether a larger architecture can usefully take over at finer resolutions. It needs its own baseline, because direct training of the final, deeper network is a different experiment from direct training of the fixed network.

#### Share the work at each stage

The data-parallel procedure divides each global mini-batch among workers. Each worker runs a forward pass on its local inputs, evaluates the physical loss, and differentiates through its copy of the network. An all-reduce then combines the gradient contributions and gives the resulting average back to every worker. The optimizer uses that common gradient so the replicas remain synchronized. Forward and backward computation on the local samples can proceed independently before the collective gradient operation.

The paper aims to preserve the global sequence of training examples when a run is divided among workers. It augments the sample count to make it divisible by the worker count and arranges equally sized local batches. The batch identity can be written as

```
⋃ᵢ (LMB)ᵢₙ = (GMB)ₙ
```

Here the union ⋃ runs over the workers indexed by i. The symbol (LMB)ᵢₙ denotes the local mini-batch for worker i at batch index n. The right-hand side (GMB)ₙ is the corresponding global mini-batch. The equality expresses the intended reconstruction of that batch from its worker assignments. The size of a local share can change with the worker count when the global batch size is held fixed.

```
Nᵦ = ⌈Nₛ/bₛ⌉
```

Here Nᵦ is the number of mini-batches in an epoch, Nₛ is the number of training samples used for the batching calculation, and bₛ is the global batch size. The ceiling signs ⌈ ⌉ round the quotient up to a whole batch count. With equal-sized local shares, averaging local mean gradients gives every example in that global batch the same weight. Matching global batches is the basis for the paper’s stated worker-count equivalence up to rounding during gradient communication.

The implementation uses message passing between processes and threading within a process. MPI handles the collective communication. On CPUs, the local computations can use OpenMP threads. On GPUs, CUDA supplies the corresponding device-level parallel execution. The MPI operations occur outside the local multithreaded regions. The authors configure the number of processes and threads to fit the memory and computing resources of the platform. For the ring all-reduce used in their account, the cost expression is

```
O(Nw + log(p))
```

Here O denotes asymptotic growth, Nw is the number of network parameters, log is the logarithm, and p is the worker count. The authors expect the worker-count term to contribute relatively little when the parameter count dominates. They cite the earlier distributed learning work associated with this operation. [Horovod](https://md.research.elamur.ai/free/en/papers/sergeev-2018-horovod-fast-easy-distributed-deep/)

The main schedule comparisons use a global batch size of 64 and a learning rate of 1 × 10⁻⁵. The scaling experiment on GPUs specifies its own learning rate and fixes the local batch size to fit the available memory. Thus the method supports both distributing a specified global batch and configuring experiments around a fixed amount of work that fits on one worker. The gradient-based optimizer in the reported runs is [Adam](https://md.research.elamur.ai/free/en/papers/kingma-2014-adam-method-stochastic-optimization/).

### Experiments and results

#### Time to train through a resolution hierarchy

The main baseline trains directly at the requested output resolution. The multigrid runs use the same physical problem and, for the fixed-architecture study, the same U-Net design. They differ in which grids they visit and when they train on them. The paper records elapsed time to the stopping condition and the loss reached at that point. The reported loss is the variational objective used in training. A value near the direct-training result shows agreement on that objective at the target grid. The separate comparison with finite element fields addresses spatial agreement for particular samples.

The clearest result comes from the volumetric schedule experiment. At 128 × 128 × 128, the Half-V used 3 levels. Direct training took 42422.50 seconds, and the Half-V took 7025.314 seconds. The paper gives a speedup of 6.04 ×. Both losses are printed as 0.0400. The loss curves show the stages of the Half-V training. The optimizer first lowers the objective on the coarser representations, and further reductions occur after refinement. The final comparison is between runs reaching the target grid, where both use the same displayed loss scale.

Training time on the 128 × 128 × 128 diffusivity-field benchmark The Half-V schedule reaches the reported stopping point sooner than direct training.

**The numbers**

| System or setting | seconds |
| --- | --- |
| Direct training at target resolution | 42422.50 |
| MGDiffNet Half-V, 3 levels (this paper) | 7025.314 |

The planar comparisons show that the result changes with the price of fine-grid computation. At 128 × 128, direct training took 3021.05 seconds and reached 0.0510 loss. The V schedule with 3 levels took 1934.305 seconds and reached 0.0571. Its reported speedup is 1.56 ×. The Half-V with 3 levels took 3133.861 seconds and reached 0.0568, with a reported speedup of 0.96 ×. Thus the V schedule produced a shorter run at this grid spacing, while the Half-V offered a slightly closer value to the direct-training loss and took longer than the baseline.

At 256 × 256, the direct-training time was 9248.44 seconds and the reference loss was 0.0165. The V schedule with 3 levels took 3297.706 seconds and gave a loss of 0.0210. The Half-V with 4 levels took 4722.950 seconds and gave a loss of 0.0174. The reported speedups for those settings were 2.80 × and 1.96 ×, respectively. An F run reached 0.0164 with a reported speedup of 1.25 ×. The choice of schedule can therefore be judged along two axes even within the same resolution. Some routes save more time, while some finish closer to the loss produced by direct training.

At 512 × 512, the fixed-architecture baseline in the main comparison took 21860.50 seconds with a loss of 0.0050. The V, Half-V, W, and F runs each used 4 levels. The V was the fastest of those schedules, and the Half-V and F each ended at 0.0053. The V and W losses were 0.0058 and 0.0062, respectively. The authors chose the Half-V for the subsequent studies because it combined close agreement with the direct-training loss and a shorter run than the F. A reader interested in minimum training time alone can see a different ordering in the chart.

Training time for fixed-architecture schedules on the 512 × 512 diffusivity-field benchmark The V schedule is the fastest in this comparison, and each multigrid schedule shortens the direct-training run.

**The numbers**

| System or setting | seconds |
| --- | --- |
| Direct training at target resolution | 21860.50 |
| V cycle, 4 levels (this paper) | 10352.543 |
| Half-V cycle, 4 levels | 11282.420 |
| W cycle, 4 levels | 10996.353 |
| F cycle, 4 levels | 17409.934 |

#### Scaling on Azure GPUs

The distributed GPU experiment asks how quickly a cluster can process a fixed training dataset at a single fine resolution. The data consisted of 1024 diffusivity maps, each at 256 × 256 × 256. The Azure NDv2 virtual machines had 8 NVIDIA Tesla V100 devices per node, with 32GB of memory per device. Training used as many as 64 nodes and 512 GPUs. For configurations with fewer than 8 processes, some GPUs were idle. Once there were at least 8 processes, the authors used the devices in groups of 8 per node.

The authors report that a sample required ∼ 14GB during training. They fixed the local mini-batch size at 2 and used a learning rate of 1 × 10⁻⁴. The local setting bounds how many volumes a device has to process for an update. With the dataset size fixed, adding workers distributes the examples more broadly. As long as there are enough samples to keep them occupied, the workers can collectively complete an epoch with fewer sequential local batches.

The paper reports that epoch time went from 48 mins to 6 secs across the measured range, a 480 × speedup at 512 GPUs. It describes the scaling as close to linear over that range. The timed quantity is a training epoch on the 1024 maps at the specified resolution. The same experiment reports that a full-field prediction on a single GPU took half a second. That forward-pass figure applies to an already trained network. The epoch figure includes the repeated predictions, loss computations, gradient calculations, and collective updates needed during training.

#### Scaling on Bridges2 CPU nodes

Training at 512 × 512 × 512 required more memory per worker than the GPU configuration could provide. The authors turned to AMD EPYC-7742 CPU nodes on Bridges2. Each node had 128 cores and 256GB of RAM. They used one MPI process per node, with access to all the node’s cores, and processed two samples per local batch. The largest run used 128 nodes. The measured peak memory use was 230GB per node.

The CPU scaling plots show epoch times and speedups over the measured node range, which the authors describe as retaining strong scaling through 128 nodes. The text reports a full-field prediction time of 20 seconds on the same type of machine. The CPU experiment establishes that the implementation can train at 512 × 512 × 512, a grid described in the conclusion as ≈ 134M voxels. The two platform experiments use different grid sizes and hardware resources. Their respective prediction and scaling figures apply to those settings.

This experiment illustrates a practical distinction between having enough aggregate cluster memory and having enough memory where a sample is processed. In the data-parallel setup, each worker needs the memory to carry out the computation for its local volumes. Additional workers can reduce how many batches each worker handles during an epoch. A larger-memory node can also support an input that would exceed the capacity of the GPU used in the other experiment. The CPU run uses the latter route to increase the largest field size.

#### Comparison with finite element solutions

The finite element comparisons evaluate an aspect of the solver that training time alone cannot address. The authors generate conventional finite element solutions for selected inputs and display the network prediction, the reference solution, and, for several planar examples, the signed difference between them. A map of the difference helps a reader see whether error is spread across the domain or concentrated in particular regions. The paper uses these comparisons to assess whether the predicted spatial patterns follow the reference fields.

At 512 × 512, the authors use the input ω = (0.3105, 1.5386, 0.0932, −1.2442) to compare predictions from the different multigrid schedules. The coefficient tuple fixes the material field, so the displayed differences are for the same PDE instance. The authors read the images as favoring the Half-V prediction. Other illustrations use selected parameter values to show the diffusivity field alongside the two solutions. The appendix presents further examples within the parameter range used for training.

The paper also compares the time for an individual solve and a prediction at 128 × 128 × 128. A conventional FEM solve takes about 5 minutes, while MGDiffNet inference takes less than 30 seconds. The appendix associates the FEM experiments with a regular-memory node on Bridges2. The inference comparison addresses the cost of obtaining a solution once the network has been trained. For repeated use, the up-front training cost and the required accuracy affect how much the faster prediction matters. The paper reports images and illustrative timings for the FEM comparison, with no aggregate field-error statistic over an identified test split.

### What the ablations show

#### The route through the grids changes the trade-off

The schedule comparison acts as a controlled study of where to spend training time. An all-fine run supplies the reference, and the V, Half-V, W, and F cycles vary the sequence of grid levels. Some settings also vary the number of levels within a schedule. The results show that exposure to more resolutions can help, but the location and duration of that exposure determine whether a run saves time. At the smallest planar resolution the Half-V runs took longer than direct training. At the largest planar resolution tested in the comparison, every reported cycle saved time.

The authors examine the share of runtime spent on the different grid levels. Their interpretation is that the Half-V benefits from doing a large part of its work on cheaper grids. At small resolutions the difference in epoch cost between levels is modest, so the benefit of shifting work can be modest too. A visit costs time even when the grid is relatively coarse. As the target grid gets more expensive, an initialization acquired on a cheaper grid can matter much more. The large volumetric saving is consistent with that explanation and shows the practical value of the Half-V route for the demonstrated setup.

The time and loss measurements expose a tension among schedules. At 512 × 512, the V run is quickest but the Half-V and F reach losses nearer the direct-training value. The F schedule spends more time to reach the same printed loss as the Half-V there. At 256 × 256, the F example gives a still closer printed loss to the direct-training reference, with less time saved than several other schedules. This makes the authors’ choice of Half-V a decision about both measures. It also shows why a schedule selected from the smallest case or solely from a timing column could differ from the one selected for subsequent experiments.

The number of levels matters in its own right. For the 128 × 128 V cycle, the paper reports 1934.305 seconds at 3 levels and 2401.070 seconds at 4 levels, with losses of 0.0571 and 0.0570. The extra grid visit in that comparison accompanies a longer run and very close final loss values. Results at other resolutions depend on the cycle and level count. More levels provide more opportunities to use a cheaper representation, while each training stage introduces work and hands its result to the next stage. The experiment measures the net result of those effects under the authors’ stopping procedure.

The loss trajectories add information beyond the endpoint measurements. The volumetric run shows progress during the cheaper stages and further progress when training moves to a finer representation. That pattern supports the practical premise that early coarse-grid updates can leave useful weights for fine-grid optimization. The plot follows the training objective through the schedule. It offers no decomposition of field error by spatial frequency, so the mechanism verified by the curve is progress across stages. The explanation in terms of error frequencies comes from the classical multigrid analogy.

#### Growing the network during refinement

The architecture experiment addresses a different question. A convolutional filter can be reused at several resolutions because its array shape is independent of the number of positions at which it is applied. That property leaves open whether a fixed collection of filters has enough capacity to learn what will be needed after refinement. The adaptation experiment grows the network as the grid becomes finer and retains weights in the parts that survive each transition. The new layers start from random initial values, so the handoff contains both previously learned and untrained components.

The authors report that the loss drops again within 20-30 mini-batches after the new layers are added. The observation shows that training can recover quickly from the transition in their run. The paper also compares each Half-V variant against direct training of its own final architecture. The fixed-architecture row in this study lists 21860.50 seconds for the baseline and 12270.44 seconds for the multigrid run, with losses of 0.0050 and 0.0067. The adapted row gives a baseline time of 36267.75 seconds and a multigrid time of 11803.04 seconds. Its respective losses are 0.0047 and 0.0052, and its reported speedup is 3.07 ×.

The paper reports the fixed-architecture Half-V in the adaptation comparison separately from the fixed-architecture Half-V in the main schedule study, with different time and loss entries. Within the adaptation comparison, the adapted run reaches a lower loss than the fixed Half-V, and its published timing advantage is relative to training the deeper final architecture directly. That baseline is more expensive than the corresponding fixed-architecture baseline. Interpreted together, the measurements show the feasibility of obtaining a finer-stage capacity increase while still gaining from a coarse-to-fine schedule. The design changes several layers together, so the comparison gives an effect for the overall adaptation procedure.

#### What the scaling and field comparisons add

The scaling studies vary the resources assigned to a workload and therefore illuminate a different component of the method. The GPU results establish how epoch time changes as more devices work on the fixed collection of maps. The CPU results show how the approach behaves with larger samples on higher-memory nodes. These experiments complement the schedule study. Choosing a grid sequence changes the optimization path and the resolution at which work happens. Adding workers changes the degree of concurrent computation for a given dataset and grid. The associated speedups describe different comparisons.

The visual finite element comparisons also give the study another type of evidence. Two schedules can produce close energy values and still distribute their field errors differently in space. A difference map can show a localized departure that gets concealed when the whole field contributes to a single aggregate objective. In the paper, the common-input comparison at 512 × 512 lets readers examine this distinction for the four schedules. The additional examples show how predictions look for selected materials. Their role is illustrative, while the training comparisons quantify time and objective values under the stated setups.

### Limitations

#### Limits the authors state

The authors explore a single traversal of a chosen cycle, with extended training visits and at most 4 grid levels. They leave open repeated cycles, additional levels, and mixtures of schedule types. They explain their choice by pointing to the difficulty of repeatedly shifting the distribution of spatial information seen during training. A longer visit gives the optimizer time to make progress on its current representation before it faces another resolution. The resulting timings are evidence about that style of schedule. They leave the value of more frequent switching an open question.

The paper also qualifies its argument about transfer between resolutions by invoking network capacity. Parameter sharing makes a convolutional network usable on compatible grid sizes. Learning an accurate mapping at every grid size requires that its filters capture the necessary relationships across those settings. The architecture experiment examines one way to add capacity as the spacing gets finer. The authors leave a mathematical account of stability and convergence to future work. Their comparison with multigrid supplies the design rationale, and the training curves supply empirical evidence for the tested schedules.

Memory is an explicit limit of the distributed implementation. The GPU experiments reached 256 × 256 × 256 on the devices used, and the larger volume required CPU nodes with substantially more memory available per worker. The authors identify scaling into gigavoxel problems and support for partitioning a network across workers as future directions. In the implemented data-parallel approach, each worker executes a complete replica on its assigned volumes. Splitting a replica’s work across devices would address a separate memory question from distributing examples across replicas.

The authors name applications including topology optimization, porous flow, and thermal transport in composites, as well as other equations for high-resolution control. These are prospective deployments. The paper also suggests that the training schedule could transfer to resolution-compatible image-to-image tasks. Its experiments establish results for the Poisson solver. Work on the proposed applications would have to determine which grid schedules, physical objectives, and accuracy criteria apply in each setting.

#### Limits visible in the experiments

The family of instances is defined by a specific coefficient parameterization and uses a square or cube, no interior forcing, and fixed boundary prescriptions. Those choices isolate a meaningful question about varying material properties. They also delimit the demonstrated generalization. The paper supplies evidence for related coefficient fields within the family. Arbitrary coefficient distributions, new domain shapes, variable boundary values, and different forcing terms would pose additional tests. In particular, the visible analytic parameterization specifies transverse structure with x and y factors and leaves a separate third-coordinate construction unspecified.

The numerical comparisons principally report the energy at convergence, training times, and representative field plots. The equality of the printed 0.0400 losses in the volumetric schedule experiment is evidence about the endpoint objective at that resolution. The energy compresses spatial information into a scalar, so a field-error distribution needs its own measurement. The FEM examples are useful for inspecting behavior on individual inputs, but the paper gives no aggregate field-error statistic across a specified test split and no summary of error variation over that split. Consequently the visual results establish agreement on the examples shown, with the accuracy distribution across the input range still open.

Direct assignment makes the prescribed nodal values exact in the constructed solution array. The interior and the natural boundary conditions rely on the weak formulation and on how well the network minimizes it. This distinction matters when interpreting the boundary claim. In the experiment the homogeneous Neumann condition has a simple weak contribution. More complex boundary data would require their own formulation and evidence. Likewise, the parameterization and the fixed test geometry give a concrete setting for the reported energy minimization without resolving how the solver would behave under changes to those parts of the problem.

The GPU benchmark reports strong scaling in time per epoch with a fixed local batch size. Increasing the worker count in such a setup can change the global batch and the number of updates contained in an epoch. The general batch-partition argument concerns runs that preserve the global batches under division among workers. The GPU epoch timing measures how quickly the cluster processes the dataset under the stated settings. To establish the same speedup for training to a common error threshold would require tracking optimization progress across the scaling configurations, with the update schedules and stopping criteria accounted for.

Finally, the single-prediction timing and the direct FEM solve timing answer a per-instance question after training. A repeated-solve comparison would depend on how many predictions are needed and how their errors affect the application. The paper gives ingredients for that comparison through its training times, prediction times, and selected reference solutions. It leaves the overall cost and accuracy of a completed design or reconstruction workflow unmeasured.

### What came after

No later citing work is identified with a documented extension or evaluation to discuss here. The authors’ conclusion instead sets out open directions, including larger volumes, partitioning the network across devices, and explaining when a coarse-to-fine schedule improves stability or convergence. These are questions the paper leaves for subsequent work.

## Cite

Cite as Aditya Balu, Sergio Botelho, Biswajit Khara, Vinay Rao, Chinmay Hegde, Soumik Sarkar, Santi Adavani, Adarsh Krishnamurthy and Baskar Ganapathysubramanian. 2021. Distributed Multigrid Neural Solvers on Megavoxel Domains. arXiv:2104.14538.

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

```bibtex
@misc{balu2021distributed,
  title = {{Distributed Multigrid Neural Solvers on Megavoxel Domains}},
  author = {Aditya Balu, Sergio Botelho, Biswajit Khara, Vinay Rao, Chinmay Hegde, Soumik Sarkar, Santi Adavani, Adarsh Krishnamurthy and Baskar Ganapathysubramanian},
  year = {2021},
  doi = {10.48550/arxiv.2104.14538},
  eprint = {2104.14538},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2104.14538}
}
```

> 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)
