arXiv:2611.08992cs.LGNov 2026

Manuscript Offprint

arXiv:2611.08992

Enforcing Symmetries on Pre-trained ML Models for Physics

Wenjie Zhou, Valentino F. Foit, David W. Hogg, Soledad Villar

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Post-hoc group averaging (or test-time augmentation) is a simple way to impose symmetry on a trained predictor without changing its architecture or retraining it. For finite and compact groups, averaging over a normalized Haar measure on the group gives the Reynolds operator: a canonical projection onto invariant or equivariant predictors with known non-increasing risk guarantees under certain assumptions. This paper provides numerical experiments on physics emulation models that demonstrate the effectiveness of the approach in this setting. We then extend this framework to non-compact group symmetries. For non-compact groups, the Haar measure cannot be normalized, so group averaging cannot be defined in the same way. We replace it with three alternatives: the Weyl unitary trick (which requires complexifying the space and extending the predictor), a data-dependent orthogonal projection (which involves a non-trivial optimization on the space of invariant or equivariant functions), and a frame averaging approach (which involves mapping each point to a set of orbit representatives). We illustrate the constructions theoretically and empirically on the unit-rescaling group and the Lorentz group. Our results show that in the non-compact case, the Weyl trick and frame averaging do not provide a consistent improvement over the baseline, except where the test data is out-of-distribution (an orders-of-magnitude improvement in this case) and, for the Weyl trick, in low-data regimes. The orthogonal projection can provide improvements in-distribution and out-of-distribution. We also observe that models trained directly on invariant features matched or beat the projection of an unconstrained one. We conclude that post-hoc symmetrization extends to non-compact groups, but it does not consistently outperform training a symmetric model.

1 Introduction

A common guiding principle in machine learning for the physical sciences is that predictive models should be consistent with the laws of physics. These laws are often manifestly symmetric, which constrains admissible observables and determines how physical quantities transform. When learning from data generated by a physical system, respecting these symmetries is not only conceptually natural, but can also improve robustness.

One way to incorporate symmetry into learning models is through invariant or equivariant architectures, which enforce symmetries by construction. Although such approaches have been successful in many settings, they are not always used in practice. Implementing equivariant models typically requires nontrivial representation-theoretic or invariant-theoretic machinery, and existing equivariant methods are not always compatible with state-of-the-art architectures. As a result, many modern machine learning models for physics prioritize well-understood, symmetry-agnostic architectures, relying on data to learn the physics rather than explicit symmetry constraints.

An alternative approach is to impose symmetry post hoc by projecting a trained model onto the space of symmetry-preserving functions [1, 2, 3, 4]. In this framework, a pretrained predictor ff is treated as an arbitrary function, and a new predictor fˉ\bar{f} is obtained by averaging ff over group

Zhou et al.

orbits. For compact groups, this procedure is canonically implemented by Reynolds averaging with respect to the normalized Haar measure of the group (a.k.a. the invariant volume measure). Theoretical work shows that this projection yields a provably nonnegative, and in some cases strictly positive, improvement in expected risk under invariance assumptions on the data distribution, without requiring retraining or architectural modification [5]. However, this result applies only to compact groups, without results for non-compact ones. Yet, many physical symmetries are non-compact. For instance, the Lorentz group plays a central role in particle physics.

In this work, we first present empirical evidence showing that the group averaging approach works in the compact case. To this end, we take pretrained surrogate models released with The Well [6] and compare each with its group-averaged version. In many cases, this mere act of averaging, even when the group is small, already improves the results significantly. We then adapt the methodology to non-compact groups. We first argue why the approach and its guarantees fail, and we then investigate alternatives.

The remainder of the paper is organized as follows. Section 2 reviews related work on invariant and equivariant learning, data augmentation, and post-hoc symmetrization. Section 3 introduces Reynolds averaging for compact groups, recalls its risk-improvement guarantee, and evaluates it on pretrained foundation models for physics. Section 4 explains the obstruction posed by non-compact groups and develops projection methods for unit rescalings and Lorentz transformations, together with numerical experiments. Section 5 discusses the limitations and concludes.

References (72)