Abstract
Machine learning models often fail to generalize because they do not respect "passive" symmetries—mathematical redundancies in how we represent physical systems, such as units and coordinate systems. This paper introduces a framework for fully covariant machine learning that enforces these symmetries exactly. By leveraging units covariance and Ricci calculus, we demonstrate that models can not only generalize better out-of-sample but also discover hidden physical constants and latent variables like gravity.
Introduction
In physics, the "Geometric Principle" states that physical laws must be independent of how we choose to describe them (e.g., which coordinate system we use or whether we measure in meters or feet). In machine learning, however, we often ignore this. Most research in "equivariant ML" focuses on active symmetries—empirical properties of the world, like the fact that a cat is still a cat if you rotate the image.
This paper tackles the overlooked category of passive symmetries. These aren't discovered by experiment; they are true by definition of our mathematical representations. The authors argue that current ML practices—especially standard data normalization—frequently "break" these symmetries, leading to models that make avoidable mistakes and fail to generalize to new environments.
Methods: Passive vs. Active Symmetries
The authors provide a conceptual framework to distinguish between passive and active symmetries using the language of group actions and commutative diagrams.
- Passive Symmetries (Alias): Changing the description of the object (e.g., rotating the axes).
- Active Symmetries (Alibi): Moving the object itself within a fixed description (e.g., rotating a molecule).
To demonstrate the power of respecting passive symmetries, they employ two specific techniques:
- Units Covariance: Using dimensional analysis (and the Smith normal form) to ensure equations remain valid regardless of the unit system.
- Ricci Calculus: Using index notation to build models that are inherently equivariant to $O(3)$ (rotations and reflections) by only allowing operations like dot products and tensor contractions.
They also introduce Equivariant Normalization, a method that scales vectors based on their collective norms rather than z-scoring individual components, which would otherwise destroy geometric relationships.
Experimental Setup
The paper uses two primary physical systems to validate these concepts:
- Black-body Radiation: A synthetic dataset based on Planck’s Law. The task is to predict radiation intensity given wavelength and temperature.
- Springy Double Pendulum: A chaotic dynamical system simulation. The task is to predict the future state (positions and momenta) of the masses.
These are chosen because they have well-defined physical symmetries (units and $O(3)$ geometry) that are easy to break with standard ML approaches.
Key Results and Insights
- The Discovery of Latent Variables: If a model is forced to be passively covariant but the data doesn't seem to fit, it implies a missing "hidden" object. In the pendulum task, the "Learned-g" model (which didn't know the gravity vector but was forced to be $O(3)$ covariant) successfully identified the gravity vector to within 0.00016 radians.
- Planck’s Constant Discovery: In the black-body experiment, a units-covariant model was able to "discover" a new dimensional constant. This learned constant had the exact units and magnitude of Planck’s constant ($h$), outperforming a standard MLP in out-of-sample generalization.
- Normalization Matters: Using "Equivariant Normalization" resulted in test errors several orders of magnitude lower than standard normalization. Naive normalization performed even worse than using no normalization at all.
Conclusion
Passive symmetries are "free" because they arise from representation redundancies; they are exact and always true. We don't need data to "learn" them; we should bake them into the architecture. While enforcing these symmetries for complex groups like diffeomorphisms remains a challenge, this work demonstrates that respecting the geometric principles of representation leads to more robust and physically consistent machine learning models.
Summary updated