Skip to main content
QUICK REVIEW

[Paper Review] Dimensionless machine learning: Imposing exact units equivariance

Soledad Villar, Weichi Yao|arXiv (Cornell University)|Apr 2, 2022
Computational Physics and Python ApplicationsComputer Science14 citations
TL;DR

This paper introduces a framework for exact units equivariance in machine learning by transforming inputs into dimensionless quantities using dimensional analysis, ensuring predictions scale correctly across unit systems. The method improves generalization and accuracy in symbolic regression and emulation tasks by enforcing physical consistency through Buckingham's Pi Theorem and group-equivariant learning.

ABSTRACT

Units equivariance (or units covariance) is the exact symmetry that follows from the requirement that relationships among measured quantities of physics relevance must obey self-consistent dimensional scalings. Here, we express this symmetry in terms of a (non-compact) group action, and we employ dimensional analysis and ideas from equivariant machine learning to provide a methodology for exactly units-equivariant machine learning: For any given learning task, we first construct a dimensionless version of its inputs using classic results from dimensional analysis, and then perform inference in the dimensionless space. Our approach can be used to impose units equivariance across a broad range of machine learning methods which are equivariant to rotations and other groups. We discuss the in-sample and out-of-sample prediction accuracy gains one can obtain in contexts like symbolic regression and emulation, where symmetry is important. We illustrate our approach with simple numerical examples involving dynamical systems in physics and ecology.

Motivation & Objective

  • To address the lack of explicit enforcement of dimensional consistency in machine learning models used in physical sciences.
  • To develop a systematic method that ensures machine learning models are exactly equivariant under changes of units, a fundamental symmetry in physics.
  • To improve model generalization and inductive bias by embedding dimensional invariance directly into the feature space.
  • To enable better out-of-sample performance by leveraging dimensionless combinations of inputs that remain invariant across unit systems.
  • To provide a lightweight, general-purpose framework applicable to regression, symbolic regression, and emulation tasks in scientific machine learning.

Proposed method

  • Apply Buckingham's Pi Theorem to derive a complete set of dimensionless invariants from input features with known dimensions.
  • Transform all input features into dimensionless combinations before feeding them into any machine learning model.
  • Train the model in the dimensionless feature space, ensuring equivariance under unit scaling transformations.
  • Reconstruct predictions in the original dimensional space by reversing the dimensionless transformation using known physical constants.
  • Use group-equivariant learning principles to ensure that the model's output scales correctly with input unit changes.
  • Leverage integer linear algebra algorithms to systematically identify minimal generating sets of dimensionless quantities from input dimensions.

Experimental results

Research questions

  • RQ1How can units equivariance be formally defined and enforced in machine learning models for scientific applications?
  • RQ2To what extent does enforcing dimensional consistency improve generalization and prediction accuracy in symbolic regression and emulation?
  • RQ3Can dimensionless feature engineering reduce model capacity while preserving or improving performance?
  • RQ4How does the proposed method enable out-of-sample generalization when test inputs differ in units from training inputs?
  • RQ5What are the practical limitations of the method when fundamental physical constants or dimensions are unknown?

Key findings

  • The method achieves exact units equivariance by constructing dimensionless features from input variables using Buckingham's Pi Theorem.
  • Empirical results show significant improvements in in-sample and out-of-sample prediction accuracy for symbolic regression and emulation tasks.
  • The approach enables generalization to test inputs that differ in unit systems from training data, as long as their dimensionless combinations overlap.
  • By reducing model capacity through dimensional invariance, the method improves generalization and reduces overfitting.
  • The framework successfully recovers known physical laws such as the Rayleigh–Jeans law in the low-wavelength limit, demonstrating its physical consistency.
  • The method does not discover missing dimensional constants, highlighting a key limitation for problems involving unknown physical laws or constants.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.