Group Averaging for Physics Applications: Accuracy Improvements at Zero Training Cost

Valentino F. Foit, David W. Hogg, Soledad VillararXiv 2025

TL;DR

Group averaging is a zero-shot, test-time technique that forces any pre-trained machine learning model to respect exact physical symmetries without requiring any retraining. By simply averaging a model's predictions over a set of symmetric transformations at inference time, researchers achieved up to a 37% reduction in error for physical surrogate models at a negligible computational cost.

What Problem Does This Paper Address?

Deep learning surrogates (or emulators) are increasingly used to speed up complex physical simulations, such as fluid dynamics or climate models. However, physical systems obey strict conservation laws and geometric symmetries (e.g., rotating or translating a system shouldn't change its underlying physics).

Standard neural networks do not inherently respect these symmetries unless they are explicitly designed to be equivariant. Unfortunately, building and training custom equivariant architectures from scratch is notoriously difficult, computationally expensive, and places heavy constraints on model design. The authors address this bottleneck by asking a simple question: Can we inject exact physical symmetries into already-trained, standard architectures after the fact, without touching the training process?

Methods

The authors employ group averaging (mathematically formalized via the Reynolds operator) as a post-processing step at test time. For an autoregressive surrogate model $M$ and an input state $V$, the group averaging procedure works as follows:

  1. Transform the input state using an element $g$ from a symmetry group $G$ (e.g., rotate the input grid by 90 degrees).
  2. Pass this transformed input through the standard, pre-trained model.
  3. Apply the inverse transformation $g^{-1}$ to the model's output.
  4. Repeat this for other group elements and average the results.

For small discrete groups, like the dihedral group ($D_4$) representing square grid symmetries, they average over all elements. For continuous groups, like translations ($\mathbb{T}^2$) or continuous rotations ($S^1$), they approximate the average using a Monte Carlo approach, sampling just a few random elements ($n=1$ or $n=8$) per evaluation step.

Datasets

The method was evaluated using state-of-the-art surrogate models (specifically the CNextU-Net architecture) from "The Well", a large-scale benchmark collection of diverse physics simulations:

  • active_matter: Simulations of rod-like active particles immersed in a fluid (symmetries: Dihedral $D_4$, Torus translations $\mathbb{T}^2$).
  • gray_scott: A reaction-diffusion system simulating chemical concentrations (symmetries: $D_4$, $\mathbb{T}^2$).
  • rayleigh_benard: Convection dynamics between hot and cold fluid layers (symmetries: Dihedral $D_2$, Circle rotations $S^1$).
  • turbulent_radiative_layer_2D: Turbulent mixing layers of gas where the underlying equations are symmetric, but the training data distribution breaks inversion symmetry.

Key Insights and Ideas

  • Symmetry After the Fact: Equivariance does not need to be baked into a network's architecture during training. Post-processing via group averaging provides a mathematical guarantee of lower test error under mild conditions.
  • The Power of $n=1$: Surprisingly, for continuous symmetries, you do not need a large number of samples to see a benefit. Sampling just one random transformation ($n=1$) per time step significantly beats the baseline model without adding noticeable computational overhead.
  • Data Distribution Constraints: Group averaging assumes that both the underlying physics and the training data distribution are invariant under the group. If the training data has a preferred direction (as seen in the turbulent radiative layer dataset), forcing symmetry can actually hinder performance because the baseline model has learned the asymmetric bias of the training data.

Key Results

  • Substantial Error Reduction: The group-averaged models consistently outperformed baseline predictions across all valid datasets, reducing the Variance Scaled Root Mean Squared Error (VRMSE) by up to 37%.
  • Long-Term Rollout Stability: Standard autoregressive models tend to accumulate unphysical artifacts over long simulation rollouts. Group averaging dramatically improved visual and physical fidelity over long time horizons, preventing the baseline model from developing fictitious clusters in the gray_scott dataset.
Figure 1: Example comparisons of time evolutions of the concentration of two datasets. (a) After t = 10 steps we visually start to observe the benefits of group averaging. The equivariant model has a lower loss than the baseline at all times and is closer to the simulation (truth). At later times significant deviations between the approaches become apparent. (b) The equivariant model captures the features of the simulation relatively well for long times, while the baseline model develops several fictitious clusters.
Figure 2: Losses for the concentration predictions. In both cases the translations of T2 are performed with a single (n = 1) random translation per time step.

Limitations and Future Work

  • Computational Scaling: While cheap for small or sampled groups, evaluating the model multiple times per inference step scales with the number of group elements. For very large groups, the authors suggest exploring frame averaging, which only samples a specific subset of the group.
  • Non-Compact Symmetries: Many crucial physical symmetries are non-compact (e.g., scale invariance, Galilean boosts, unbounded translations). Group averaging cannot integrate over infinite, unbounded groups natively, though advanced mathematical tools like the Weyl unitarian trick might offer a future path forward.
  • Preserving Sharp Geometry: Simple linear averaging can sometimes blur sharp geometric features; the authors note that exploring Wasserstein barycenters could help preserve these structures during the averaging process.

Summary updated

BibTeX
@misc{foit2025group,
  author = {Valentino F. Foit and David W. Hogg and Soledad Villar},
  title = {{Group Averaging for Physics Applications: Accuracy Improvements at Zero Training Cost}},
  year = {2025},
  eprint = {2511.09573},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.09573},
}
Figure