Manuscript Offprint
arXiv:2609.38094Dimensionally consistent surrogate modelling through dimensional analysis and harmonic expansions
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Dimensional homogeneity is a fundamental constraint on physically meaningful models, requiring invariance under changes of units. We present a data-driven method for constructing surrogate models that satisfy this constraint at the level of the hypothesis class. Starting from a dimension matrix of measured variables, the method derives Buckingham -groups, constructs admissible dimensional prefactors, and approximates the remaining dimensionless dependence using truncated harmonic expansions on normalized invariant domains. Once the prefactor and dictionary are fixed, the coefficients are obtained from a regularized linear regression problem. We test the approach on the simple pendulum, Planck's black-body law, the double-pendulum Lyapunov field, and an experimental COBE/FIRAS black-body spectrum dataset. The results show that dimensional constraints improve conditioning, robustness to noise, and sample efficiency relative to unconstrained baselines, while the choice of dictionary becomes important in non-periodic or multi-invariant settings. The learned expressions are explicit and inexpensive to evaluate, which makes them useful as surrogate models for structured physical problems.
Keywords: Dimensional analysis; Buckingham theorem; Unit-equivariant learning; Dimensionally consistent surrogate modelling; Regularized regression; Harmonic feature expansions; Invariant representations
1 Introduction
Dimensional analysis plays a central role in the physical sciences. At a minimum, it provides a consistency criterion: physically meaningful equations must be dimensionally homogeneous, so that their form is preserved under changes of units [1, 2]. More importantly, it reveals the internal structure of physical models. By exploiting scaling relations among variables, dimensional analysis reduces the effective number of degrees of freedom and identifies the dimensionless combinations that govern the remaining behavior, as formalized by the Buckingham II theorem [2–5]. This result is also known as the Vaschy–Buckingham theorem, since Vaschy stated an equivalent formulation in 1892 [6]; we follow the standard convention and refer to it as the Buckingham II theorem throughout. The resulting invariants provide natural coordinates for the problem and clarify which combinations of variables may influence the observable of interest.
The growing interest in data-driven modelling of physical systems has renewed the relevance of such structural constraints. Symbolic regression seeks explicit analytic expressions directly from data [7, 8], while sparse-library approaches identify compact models from prescribed candidate terms [9, 10]. More broadly, physics-informed learning introduces prior physical knowledge into the learning process in order to improve generalization, robustness, and interpretability [11]. In all these settings, one basic requirement is often overlooked or only weakly enforced: the learned model should remain meaningful under arbitrary changes of units. A predictor that depends on whether length is expressed in meters or centimeters is not physically admissible. This suggests that dimensional consistency should not be treated merely as an a posteriori check, but rather imposed directly at the level of the hypothesis class.
Recent work has begun to incorporate dimensional structure more explicitly into machine-learning pipelines. Villar et al. formulate learning with physical quantities as a problem of exact units equivariance, showing how dimensional analysis can be used to construct invariant representations before inference [12]. Bakarji et al. develop dimensionally consistent learning with Buckingham II, including constrained fitting and data-driven identification of dimensionless groups and scaling parameters [13]. Xie et al. propose a framework for discovering dominant dimensionless numbers and governing relations from limited measurements [14]. Related ideas have also been explored in data-driven dimensional analysis for complex flow systems, where the goal is to identify informative nondimensional groups directly from simulation or experimental data [15]. Taken together, these works show that dimensional structure is not only a consistency requirement, but also a useful inductive bias for modelling physical relations from data.
In this work, we construct surrogate models from data under explicit dimensional constraints. Starting from the dimensional structure of the measured variables, we form independent Buckingham invariants and identify the admissible dimensional scalings compatible with the target quantity. The predictor is written as a dimensional prefactor multiplied by a dimensionless modulation on invariant space, and the modulation is approximated with a truncated harmonic dictionary. With this choice, fitting the coefficients reduces to regularized linear regression, for example Ridge, Lasso, or Elastic Net [16–19].
Our approach is related to this previous literature, and several of its individual ingredients are classical. Buckingham dimensional analysis, monomial dimensional prefactors, harmonic/Fourier approximations, and Ridge regularization are all well-established tools. The contribution of the present work is to use these components as a fixed hypothesis class for surrogate modelling: an admissible dimensional prefactor is selected from the affine space , while the remaining dimensionless response is approximated by a finite dictionary on Buckingham invariant space.
This differs from previous dimensionally aware learning methods in scope and emphasis. Existing approaches often focus on discovering dimensionless groups from data, embedding dimensional constraints into flexible black-box regressors, or enforcing units equivariance in broad model classes [12–14]. Here, the admissible dimensional structure and the approximation space are specified before fitting. The model is therefore less general than a symbolic discovery engine, but its assumptions and fitted coefficients are directly inspectable. In this sense, our framework is also distinct from symbolic-regression systems such as AI Feynman, which search over broader symbolic expression spaces rather than working within a structured approximation class determined a priori by dimensional admissibility [8].
The main contributions of this work are therefore the following. First, we formulate dimensionally constrained surrogate modelling as a unit-equivariant regression problem determined by the dimension matrix of the variables. Second, we construct an explicit prefactor-times-invariants hypothesis class in which the admissible dimensional scaling is separated from the residual dimensionless response. Third, we study finite dictionaries on invariant space, including one-dimensional, phase-combination, and separable tensor-product forms, and discuss when the associated periodic continuation is appropriate. Fourth, we evaluate the resulting models against unconstrained and dimensionally aware baselines, including alternative non-periodic basis choices, on synthetic and experimental benchmark data.
The benchmarks are chosen to separate four effects: recovery of a dimensional skeleton, approximation of a nontrivial dimensionless modulation, validation on measured data, and dictionary design in a multi-invariant setting. Across these cases, the experiments track how dimensional constraints affect conditioning, robustness, and sample efficiency, and how dictionary geometry matters once the invariant space is multidimensional.
The remainder of the paper is organized as follows. Section 2 introduces the dimensional formulation of the learning problem. Section 3 develops the unit-consistent hypothesis class, including admissible prefactors, invariant coordinates, and harmonic dictionaries. Section 4 summarizes the full learning pipeline. Sections 5, 6, and 7 present the benchmarks and discuss the numerical results. Finally, Section 8 concludes with the main implications and possible extensions of the framework.
2.1 Variables, dimensions, and the dimension matrix
Consider a physical system described by measured variables and a target quantity , related through an unknown response function
In practice, this relation may also depend on additional quantities that are unobserved, externally controlled, or effectively fixed over the dataset under consideration. We do not model such variables explicitly and assume that, on the domain of interest, their effect is either negligible or approximately constant.
Let be a basis of fundamental dimensions, such as mass, length, and time. Each input variable is assigned a dimensional signature
and the target variable satisfies
The exponents of the input variables are collected in the dimension matrix
whose -th column encodes the dimensional signature of . This representation allows the dimensional structure of the problem to be handled algebraically. In particular, linear relations among the columns of correspond to dimensionless combinations of the inputs, while relations involving the target signature determine the admissible dimensional scalings of the response.
2.2 Unit equivariance
A physically meaningful model must preserve its form under changes of units. This requirement is naturally expressed as an equivariance condition under the scaling group . For , the induced action on each input variable is
(5) while the target transforms as
Accordingly, the response function (1) is physically admissible only if it satisfies
Equation (7) is the mathematical expression of dimensional homogeneity. It states that the learned response must transform exactly as the target quantity under any admissible rescaling of the fundamental units. A formal equivariance theorem for this class of monomial-times-invariant predictors is established in the broader machine-learning setting by [12]; the differential form of the constraint specific to our setup is derived in Appendix A.
2.3 Dimensionless invariants and admissible prefactors
Dimensional analysis implies that the unit-equivariance condition strongly restricts the admissible form of the response. A monomial
is dimensionless if and only if its exponent vector satisfies
Thus, dimensionless combinations of the inputs are in one-to-one correspondence with the kernel of the dimension matrix. If is a basis of , then the associated Buckingham invariants are
with . In parallel, admissible dimensional prefactors are obtained by solving
where is the dimensional signature of the target. We denote the solution set by . Any solution defines a monomial
(12) with the same physical dimensions as y. If is one particular solution, then every other solution has the form
where is an affine subspace parallel to , with dimension . The vector should therefore be understood as an arbitrary element of this kernel, not as a single fixed displacement, so different admissible prefactors differ only by multiplication of a dimensionless monomial.
Whenever there exists such that , the Buckingham theorem implies that any dimensionally homogeneous response can be written as a dimensional prefactor times a dimensionless function of the invariants. In the finite model class used here, this motivates predictors of the form
where denotes a finite set of admissible candidate exponent vectors selected from the affine solution space of . Thus, the sum is not taken over the full continuous solution space, but only over the finite prefactor dictionary used in the regression model. Here, carries the physical dimensions of the target and is dimensionless. Different admissible choices of correspond to equivalent factorizations of the same response, since any change in the prefactor can be absorbed into the dimensionless modulation .
In the experiments reported here, each benchmark employs a single monomial prefactor, so the sum contains one term:
In the next section, we turn this structural representation into a concrete hypothesis class by specifying how the dimensionless modulation is approximated and how the resulting model is fitted from observations.
3 Dimensionally consistent hypothesis class
The dimensional analysis developed in Section 2 fixes the admissible dimensional structure of the predictor, but not the form of the remaining dimensionless dependence. We now specify this dependence by writing the target response as a dimensional prefactor multiplied by a modulation on invariant space, and then approximating that modulation with harmonic dictionaries.
In the benchmark sections, when the free parameters of reduce to a single scalar or a pair, we write or as convenient specializations of the general monomial .
3.1 Prefactor-times-invariants representation
Let be a basis of independent Buckingham invariants and let be any admissible prefactor satisfying . We seek predictors of the form
where are dimensionless modulation functions to be learned from data. This representation directly enforces unit equivariance. Indeed, the prefactor carries the full dimensional signature of the target, whereas the invariants remain unchanged under unit transformations. As a result, any predictor of the form (15) satisfies the scaling law in Eq. (7) by construction.
3.2 Harmonic approximation on invariant space
The remaining task is to approximate the dimensionless modulation functions on the invariant coordinates. Since the Buckingham invariants need not be periodic or bounded on their raw scale, we first map them to a normalized compact domain. For each invariant , we define
If for a given invariant, the corresponding coordinate has zero empirical variation and the affine normalization is not defined. In that degenerate case, we set and remove all non-constant harmonic features associated with that invariant. This reflects the fact that no dependence on that coordinate can be inferred from the available data. For notational convenience, the dependence of on is left implicit, so we write in place of . Furthermore, we write for the modulation expressed in normalized coordinates; this is the same dimensionless factor as in (14), with the invariants replaced by their affinely rescaled counterparts .
Here, and are estimated from the dataset or prescribed from prior physical constraints. This maps the observed invariant domain into . We then approximate by a truncated harmonic expansion in the rescaled variables .
The harmonic dictionary is a modelling choice, not a consequence of dimensional consistency. It is natural when the invariants have angular or phase-like character, and the truncation order has a simple spectral interpretation. It also leaves a standard regularized linear regression problem for the coefficients.
Other basis choices are possible within the same dimensional formulation. For bounded non-periodic invariant domains, polynomial bases such as Chebyshev or Legendre features may be more appropriate. For localized or non-smooth modulations, splines or radial basis functions could also be used. These alternatives would keep the same prefactor and Buckingham invariants, changing only the dictionary used for the residual dimensionless modulation.
The affine embedding in Eq. (16) introduces a periodic continuation of the learned dimensionless modulation. For example, in the double-pendulum benchmark the relevant invariant coordinates are the angles , so identifying the endpoints is consistent with the geometry of the problem.
By contrast, in the black-body benchmark the invariant is not periodic. In that case, the harmonic dictionary should be understood as a finite spectral surrogate on the sampled interval, not as a physically periodic representation of the Planck modulation. If the endpoint values of the modulation differ substantially, the periodic extension can introduce boundary artefacts and slower convergence, analogous to Gibbs-type effects. For this reason, we explicitly compare the harmonic dictionary with a Chebyshev polynomial dictionary in the black-body benchmark. Chebyshev features provide a natural non-periodic basis on a bounded interval and therefore serve as a diagnostic of whether the harmonic continuation is limiting the approximation.
3.2.1 One-dimensional case
If , we use
where is the maximum retained frequency. In the multi-invariant case, the truncation orders per coordinate are written ; when a uniform order is used across all coordinates it is abbreviated to the scalar (i.e. for all ).
3.2.2 Multi-invariant phase-combination dictionary
For , a direct multidimensional extension of the one-dimensional harmonic expansion is obtained by introducing a non-negative integer multi-index
and defining the corresponding phase through the dot product between the multi-index vector and the invariant-coordinate vector . The dimensionless modulation is then approximated as
where is a finite truncation set. The main feature of this basis is that all invariant coordinates are coupled through a single phase. This makes the representation compact and natural, but it may also limit flexibility when the target function exhibits strongly directional or anisotropic structure. In such settings, the approximation may benefit from a separable tensor-product basis, which resolves the behavior along different invariant directions more explicitly.
3.2.3 Separable tensor-product dictionary
In multi-invariant problems, especially when the response surface is anisotropic, it is often preferable to use a separable tensor-product basis. For each coordinate , define the one-dimensional basis set ordered as:
for . A separable feature is then uniquely identified by an integer multi-index :
where is the retained set of basis-function index vectors. The modulation is approximated as
where the constant term corresponds to , giving . This tensor-product representation allows different truncation orders in different coordinates and separates marginal effects from interaction terms. As shown later in the double-pendulum benchmark, Section 6.3, this distinction matters in multi-invariant settings with directional structure.
3.3 Learning by regularized regression
We define the feature vector as the concatenation of the basis functions for each of the candidate monomial terms:
where each block contains the features associated with the -th monomial. Here, corresponds to the -th admissible exponent vector (where ) identified in the prefactor search.
The construction of the feature elements is governed by the specific geometry of the selected dictionary. In the case of a phase-combination dictionary defined by multi-indices , the feature set comprises the constant dimensional term and the corresponding trigonometric pairs and . Alternatively, when using a separable tensor-product dictionary, the features are indexed by and defined as , where represents the product of the independent one-dimensional marginal basis functions associated with each invariant coordinate.
For a dataset of observations and a fixed candidate prefactor , we construct the design matrix such that , and define the target vector . The predictor is linear in the global coefficient vector . Scalar weights for individual dictionary modes are written as follows: , for cosine and sine modes in the one-dimensional case; , for the phase-combination basis indexed by the frequency vector ; and for the separable tensor-product basis, where each index already identifies a specific trigonometric factor through the basis functions defined in (20). The coefficients are estimated by minimizing the Ridge [17] objective:
The penalty damps high-frequency coefficients, and the objective remains quadratic in the weights. The implementation details and cross-validation protocol used in the numerical experiments are described in Section 5.1.
3.3.1 Feature count and truncation
The dimensionality of the regression problem is a direct consequence of the truncation strategy employed in the invariant space. For a phase-combination dictionary with rectangular truncation and frequency limit , the number of non-zero multi-indices is , resulting in parameters. This exponential scaling with is the primary bottleneck for complex systems. To overcome this, we adopt a total-degree truncation . The number of non-negative integer multi-indices satisfying this bound is given by the binomial coefficient . Including the constant term and the sine-cosine pairs, the total parameter count grows as:
This specific combinatorics formula applies to the phase-combination basis under total-degree truncation. By contrast, for a separable tensor-product dictionary without symmetry reductions, the feature count scales as . This follows because each invariant coordinate contributes one constant feature plus cosine modes and sine modes, giving one-dimensional basis functions per coordinate. The separable dictionary is obtained by taking all products of these one-dimensional factors, hence the product over . In both cases, the model is linear in the fitted weights.

Fig. 1: Algorithmic pipeline. Box 2c illustrates the two harmonic dictionary formulations evaluated in the experiments: separable tensor-product (option A) and phase-combination (option B) dictionaries.
4 Algorithmic pipeline
We now summarize the computational pipeline that turns raw measurements into an explicit, dimensionally consistent predictor. The purpose of this section is not to repeat the mathematical construction of Section 3, but to make explicit the operational workflow and the computational scaling of the different stages of the method.
Concretely, the algorithm proceeds by (i) constructing independent groups, (ii) building dimensionally admissible prefactors with the dimensions of , (iii) expanding the unknown dimensionless modulation in a truncated dictionary on invariant space, and (iv) fitting the resulting linear-in-parameters model by regularized regression.
Algorithm 1 Unit-equivariant learning via tensor-product harmonic dictionaries
Require: Dataset ; Truncation orders (for separable basis, index set ; for phase-combination basis, index set ); Regularization grid .
Ensure: Fitted analytic predictor .
Phase 1: Dimensionless Manifold Mapping
1: Compute basis for .
2: Construct independent invariants: for .
3: Compute affine embedding to map to periodic coordinates .
Phase 2: Tensor-Product Dictionary Construction
4: Initialize dictionary based on symmetry reductions (e.g., retaining only even-parity tensor-product features).
5: for each coordinate do
6: Generate 1D marginal basis: .
7: end for
8: Construct separable basis via tensor product: .
9: (Optional) Apply total-degree truncation (see section 3.3.1): restrict to .
Phase 3: Structural Optimization & Regression
10: Identify affine subspace of admissible exponents: .
11: Generate search grid for candidate dimensional prefactors.
12: for each candidate exponent vector do
13: Construct dimensional skeleton .
14: Build design matrix with elements for .
15: Solve regularized regression via cross-validation over :
16: Record cross-validation metric (e.g., or negative MSE).
17: end for
18: Select optimal structural skeleton: .
Phase 4: Symbolic Recovery
19: return .
Remark. If a phase-combination basis is used instead of the separable tensor-product dictionary, the dictionary-construction step is replaced by the direct evaluation of the features and for , where .
4.1 Computational complexity and scalability
The prefactor-selection step requires evaluating the Ridge regression with leave-one-out cross-validation (RidgeCV) fitting procedure for each point on a grid over the affine subspace . For a system with free exponents in the prefactor family, the grid has evaluations, where is the number of grid points per dimension. Each evaluation involves a RidgeCV fit with cost , where is the number of dictionary features. The total cost therefore scales as . The cost arises from the standard regularized least-squares solution. Forming the covariance matrix requires operations, and the subsequent inversion or decomposition of this matrix scales as . Since RidgeCV employs an efficient leave-one-out cross-validation scheme that reuses the same matrix decomposition for multiple values of the regularization parameter , the overall complexity per grid point remains dominated by these two terms [20]. For the benchmarks considered in this work ( ), this exhaustive scan is computationally feasible. In practical terms, the current implementation is intended for low-dimensional invariant spaces, roughly , with moderate truncation orders and prefactor grids. For , the combination of the prefactor grid and high-dimensional dictionaries becomes the main computational bottleneck, since both the number of candidate prefactors and the number of fitted features can grow rapidly.
Several strategies can mitigate this limitation. On the prefactor side, the brute-force scan over could be replaced by gradient-based optimization over the exponent parameters [21], coarse-to-fine hierarchical grid searches [22], or Bayesian optimization over the prefactor space [23]. On the dictionary side, sparse total-degree truncations, adaptive frequency selection, or regularization paths could be used to avoid fitting the full dictionary. These extensions are outside the scope of the present benchmarks, but they provide natural routes for scaling the method to higher-dimensional invariant spaces.
5 Experimental setup
We evaluate the method on three synthetic benchmarks and one experimental black-body spectrum dataset. The experiments are designed to examine dimensional constraints, dictionary choice, and prefactor selection in different regimes: a case in which dimensional analysis nearly determines the response, a case with a strongly non-polynomial modulation, and a case with a structured multi-invariant response surface.
5.1 General protocol
For each benchmark, we construct a dataset of input-output pairs , and divide it into training and test subsets in order to evaluate out-of-sample performance. When the dimensional prefactor is not unique, prefactor selection is treated as an outer model-selection loop: each candidate prefactor defines a different feature map, the corresponding harmonic coefficients are fitted by regularized regression, and the final model is chosen according to validation performance.
Predictive performance is quantified primarily through the coefficient of determination and the mean squared error (MSE),
where denotes the true target, the prediction, the empirical mean of the test targets, and the size of the evaluation set.
Unless otherwise stated, the fitting stage is carried out using regularized linear models implemented in scikit-learn [22]. Throughout all experiments, RidgeCV is used by default. The regularization parameter is selected by cross-validation within the training set only. Across all experiments, we study the framework under variations in four factors:
• the dimensional complexity of the benchmark;
• the number of retained invariant coordinates;
• the richness of the harmonic dictionary;
• the sampling density and the level of additive noise.
This makes it possible to assess separately the effects of dimensional structure, approximation bias, and statistical variability.
5.2 Benchmarks
The benchmarks considered in this work are: (i) a small-angle simple pendulum, used to isolate recovery of the dimensional scaling; (ii) synthetic black-body radiation at fixed frequency, used to test a one-dimensional but transcendental residual modulation; (iii) the COBE/FIRAS black-body spectrum, used as a real-data validation and as a comparison between harmonic and Chebyshev features; and (iv) the double-pendulum Lyapunov field, used to test dictionary geometry, tensor-product structure and symmetry reduction in a multi-invariant setting.
Taken together, the experiments are designed to answer four questions: whether the framework recovers the correct dimensional scaling, how prefactor selection interacts with approximation error, how dictionary geometry affects multi-invariant learning, and how regularization and symmetry reduction improve robustness.
6 Results
In this section, we report the results for each benchmark.
6.1 Simple pendulum
We begin with the simple pendulum as a dimensional-skeleton benchmark. With the release angle fixed, the learning task reduces to recovering the scaling and testing its robustness under different sampling and noise regimes.
6.1.1 Physical setting and dimensional structure
We consider a simple pendulum consisting of a point mass m suspended by a rigid massless rod of length L in a uniform gravitational field g. For release angle , the period is described by
where K is the complete elliptic integral of the first kind
In the small-angle regime , this reduces to the familiar approximation . We model the period as a function of the variables . The associated dimension matrix (if we let ) is
Since the angle is already dimensionless and the mass does not affect the period law, the invariant structure is particularly simple. Solving yields a one-dimensional invariant space, and a natural choice is . Likewise, solving for the target signature of gives the dimensional prefactor , up to multiplication by powers of the invariant, which can be absorbed into the dimensionless modulation. The resulting model therefore takes the form
6.1.2 Model and data generation
For this benchmark, the predictor is written as
(30) where is the affine rescaling of to the interval . For these experiments, the period of the pendulum is assumed to be . In this scenario, the dimensionless modulation is constant, . The experiment therefore mainly tests the effect of using the dimensional prefactor; the harmonic part of the model is exercised in the black-body and double-pendulum benchmarks, where the modulation is non-trivial.
Synthetic data are generated from the exact pendulum law under a two-level sampling procedure. First, distinct pendulum lengths are drawn uniformly from the interval m. For each sampled length, repeated measurements are produced by adding Gaussian noise to the ground-truth period, where is an absolute noise level in seconds. The repeated measurements are then averaged before regression. This setup allows us to vary independently the measurement noise, the number of distinct length values, and the number of repeated observations.
To examine the stability of the framework, we consider six representative scenarios combining low and high noise with sparse and dense sampling. As a baseline comparison, we also report fits obtained with a standard Minuit [24] parametric estimator.
6.1.3 Results
The numerical results are summarized in Table 1. In low-noise regimes, both approaches recover the expected scaling with high accuracy. In particular, when the sampling density is sufficiently large, the learned coefficient is essentially indistinguishable from the theoretical small-angle value .
For comparison with the theoretical small-angle scaling, we report the coefficient and intercept obtained from an auxiliary post hoc fit of the form .
Table 1: Simple-pendulum results comparing regularized regression and Minuit. The theoretical small-angle coefficient is .
| Scenario | Method | Coeff. (c) | Intercept (d) | Error (%) | ||
|---|---|---|---|---|---|---|
| Low Noise | 0.02 | (5,5) | RidgeCV | 6.2539 | 0.0061 | 0.47 |
| Minuit | 6.2451 ± 0.0287 | 0.0079 ± 0.0011 | 0.61 | |||
| High Density | 0.02 | (50,50) | RidgeCV | 6.2836 | 0.0007 | 0.01 |
| Minuit | 6.2836 ± 0.0142 | 0.0006 ± 0.0053 | 0.01 | |||
| High Noise | 0.6 | (5,5) | RidgeCV | 5.4052 | 0.1822 | 13.97 |
| Minuit | 5.1418 ± 0.8622 | 0.2382 ± 0.3164 | 18.16 | |||
| High Density Noise | 0.6 | (50,50) | RidgeCV | 6.29028 | 0.01799 | 0.10 |
| Minuit | 6.2916 ± 0.4266 | 0.0182 ± 0.1588 | 0.20 | |||
| Mixed (Low ) | 0.6 | (5,50) | RidgeCV | 6.5910 | -0.0997 | 4.90 |
| Minuit | 6.5941 ± 1.1526 | -0.0981 ± 0.4282 | 4.95 | |||
| Mixed (Low ) | 0.6 | (50,5) | RidgeCV | 6.55672 | -0.08879 | 4.52 |
| Minuit | 6.5411 ± 0.3375 | -0.1078 ± 0.1217 | 4.11 |
The main qualitative trend is that the dimensionally constrained regression model remains accurate whenever either the sampling density or the amount of averaging is sufficient. Under sparse and noisy conditions, both methods deteriorate, but the regularized estimator is generally more stable. This is particularly visible in the high-noise, low-sampling setting, where Ridge regression yields a smaller error than the baseline parametric fit. The effect is consistent with the variance-reduction role of the penalty.
These trends are illustrated in Figure 2. Increasing either the number of sampled lengths or the number of repeated measurements is enough to recover the correct scaling even when the noise level is large.

(a) Low noise; , .
(b) High density; , .
(c) High noise; , .

(d) High density noise; , .
(e) Mixed (low ); , , .
(f) Mixed (low M); , , .
Fig. 2: Regression results for the simple pendulum period under different noise and sampling regimes. The red dashed line indicates the theoretical small-angle coefficient .
6.1.4 Interpretation
This benchmark behaves as expected in the simplest setting. The dimensional prefactor recovers the scaling , and the residual dimensionless dependence is constant in the small-angle approximation. The simple pendulum therefore serves mainly as a baseline check: when dimensional analysis almost determines the response, the model reproduces the expected scaling with little data.
6.1.5 Comparison with an unconstrained baseline
To quantify the benefit of imposing dimensional consistency, we compare the proposed model against an unconstrained power-law regressor with the same functional form. The dimensional model fixes the exponent from physics:
with 2 free parameters . The unconstrained analog would be
Since g is constant, we absorb it into . So the final unconstrained polynomial is of the form:
with 3 parameters . Both models are fitted entirely via Minuit [24]. For the dimensional model, Minuit directly minimizes the mean squared error (MSE) over on the training set. For the unconstrained model, we use a nested 80/20 train–validation split of the training data: Minuit optimizes all three parameters simultaneously against the validation MSE. After convergence, the final out-of-sample is evaluated on the held-out test set using the discovered parameters. Both models use identical starting values , and for the unconstrained model is initialized at 0 and constrained to , with no prior knowledge of the physical exponent. All experiments use 30 independent 70/30 train/test trials.
In this comparison, fixing removes the nonlinear optimization over the exponent and leaves a two-parameter linear fit. This allows the dimensional model to work from as few as data points. The unconstrained model requires a validation split to guide Minuit over and fails for , where the split leaves too few points to form reliable estimates.
As shown in Table 2, the unconstrained model requires substantial data before the exponent converges: at , is far from the physical value and the out-of-sample is only 0.31, reflecting the difficulty of jointly resolving three parameters from a validation set of just two points. With increasing , drifts steadily toward 1/2, reaching at and at , while the rises to 0.999. The dimensional model, by contrast, reaches from onward. These results confirm that the dimensional constraint is sufficient but not strictly necessary for this benchmark, a blind 3-parameter search eventually converges to the correct exponent, but requires an order of magnitude more data and passes through a regime of poor generalization where the joint optimization over is ill-conditioned. The dimensional model's advantage is therefore one of sample efficiency, robustness and correctness.
Table 2: Dimensional versus unconstrained power-law regression for the simple pendulum. Mean out-of-sample and recovered exponent over 30 independent trials. Both models fitted with Minuit.
| (Dim.) | (Unc.) | ||
|---|---|---|---|
| 5 | 0.9982 | — | — |
| 8 | 0.9977 | — | — |
| 12 | 0.9985 | 0.3061 | |
| 20 | 0.9991 | 0.9667 | |
| 35 | 0.9995 | 0.9930 | |
| 60 | 0.9994 | 0.9983 | |
| 100 | 0.9995 | 0.9988 |
The trends are illustrated in Figure 3. The dimensional model reaches with as few as lengths, whereas the unconstrained model requires to produce any result and to approach the dimensional accuracy level. At small , the simultaneous optimization over is severely ill-conditioned, producing far from and low out-of-sample ; the convergence toward the physical exponent is gradual, requiring an order of magnitude more data than the dimensional model.


Fig. 3: Dimensional vs. unconstrained power-law baseline on the simple pendulum. Left: out-of-sample as a function of . Right: recovered exponent vs. , skipping ; the dashed line marks the dimensional value . Error bars denote standard deviation over 30 independent trials. Both models fitted with Minuit.
6.2 Black-body radiation
As a second benchmark, we consider Planck’s black-body law at fixed frequency. Here the dimensional reduction still yields a one-dimensional invariant, but the remaining dependence is transcendental; the benchmark therefore tests how prefactor selection interacts with approximation error and noise.
6.2.1 Physical setting and dimensional structure
In frequency form, Planck’s law for the spectral radiance of a black body is
where is the frequency, is the absolute temperature, is Planck’s constant, is the speed of light, and is Boltzmann’s constant. In the experiments below, is treated as a fixed physical parameter, and the dependence on temperature is learned from data. The variables are ordered as , and the dimension matrix with respect to is:
Solving the homogeneous system yields a one-dimensional invariant space. A natural generator gives . Thus, after dimensional reduction, the problem becomes one-dimensional. The admissible prefactors are obtained from the affine system . Setting for the particular solution and null-space vector , the admissible prefactor family becomes
The physically correct choice corresponds to , namely , so the exact law can be written as
with . This benchmark is therefore especially informative for the prefactor scan. Any deviation from can then be interpreted as evidence of finite-sample effects, dictionary bias, or noise sensitivity.
6.2.2 Model and experimental regimes
For this benchmark, the predictor is written as
(37) where is the rescaling of the invariant to the interval .
To examine separately the roles of prefactor selection and dictionary expressivity, we consider four regimes obtained by combining two prefactor-search ranges with two truncation orders:
-
Regime A: broad prefactor grid, , with low truncation ;
-
Regime B: broad prefactor grid, , with high truncation ;
-
Regime C: narrow prefactor grid, , with low truncation ;
-
Regime D: narrow prefactor grid, , with high truncation .
These four configurations make it possible to distinguish errors due to insufficient harmonic expressivity from errors due to imperfect identification of the dimensional scaling.
Synthetic datasets are generated by evaluating Planck's law over the temperature range K, at fixed frequency. The number of samples is varied from 50 to 5000 in ten steps. In the noisy experiments, additive Gaussian noise is introduced at three relative levels, , where is the standard deviation of the noiseless signal over the sampled temperature range.
6.2.3 Noiseless results
The noiseless results for the four regimes are reported in Tables 3–6. The main conclusion is that the correct dimensional prefactor is recovered.
Regime A: broad grid, low truncation.
With a small dictionary, the model can fit the data well, but the prefactor scan may be biased for very small sample sizes. As shown in Table 3, the method initially favors , and only for sufficiently large datasets does it converge to the correct value . This indicates that a rigid harmonic approximation can push part of the residual curvature into the dimensional prefactor.
Table 3: Black-body Regime A: broad prefactor grid (), low truncation ().
| Best | Best | Best MSE | |
|---|---|---|---|
| 50 | 1.0 | 0.999938 | 9.707071e-20 |
| 600 | 1.0 | 0.999970 | 4.605817e-20 |
| 1150 | 0.0 | 0.999998 | 3.589867e-21 |
| 1700 | 0.0 | 0.999998 | 3.440877e-21 |
| 2250 | 0.0 | 0.999998 | 3.339133e-21 |
| 2800 | 0.0 | 0.999998 | 3.255943e-21 |
| 3350 | 0.0 | 0.999998 | 3.182589e-21 |
| 3900 | 0.0 | 0.999998 | 3.115358e-21 |
| 4450 | 0.0 | 0.999998 | 3.051995e-21 |
| 5000 | 0.0 | 0.999998 | 2.992223e-21 |
Regime B: broad grid, high truncation.
Increasing the truncation order largely removes that bias. As shown in Table 4, the correct value is recovered already at moderate sample size, and the resulting fit is essentially exact throughout the range. This confirms that sufficient expressivity in the dimensionless modulation helps disentangle functional approximation error from dimensional scaling.
Table 4: Black-body Regime B: broad prefactor grid (), high truncation ().
| Best | Best | Best MSE | |
|---|---|---|---|
| 50 | 0.5 | 1.0 | 6.046916e-28 |
| 600 | 0.0 | 1.0 | 2.807961e-28 |
| 1150 | 0.0 | 1.0 | 2.365705e-28 |
| 1700 | 0.0 | 1.0 | 2.157930e-28 |
| 2250 | 0.0 | 1.0 | 2.016073e-28 |
| 2800 | 0.0 | 1.0 | 1.906302e-28 |
| 3350 | 0.0 | 1.0 | 1.815028e-28 |
| 3900 | 0.0 | 1.0 | 1.737311e-28 |
| 4450 | 0.0 | 1.0 | 1.669088e-28 |
| 5000 | 0.0 | 1.0 | 1.608124e-28 |
Regime C: narrow grid, low truncation.
When both the prefactor range and the harmonic basis are restricted, small but persistent deviations from the theoretical scaling remain visible; see Table 5. In particular, the scan tends to settle near for larger sample sizes. This suggests that when the dictionary is too rigid, the optimization may partially compensate by distorting the prefactor.
Regime D: narrow grid, high truncation.
With a richer harmonic basis, the prefactor again stabilizes close to the theoretical value; see Table 6. Small oscillations around remain for some intermediate sample sizes, but they correspond to numerically indistinguishable fits and do not affect the overall conclusion.
Taken together, the noiseless experiments show that prefactor recovery is highly robust provided that the harmonic dictionary is expressive enough. When the dictionary is too restrictive, part of the residual functional error leaks into the prefactor scan.
6.2.4 Results with noise
We now repeat the same four regimes under additive Gaussian noise with levels . The full numerical results are summarized in Figure B1 of
Table 5: Black-body Regime C: narrow prefactor grid (), low truncation ().
| Best | Best | Best MSE | |
|---|---|---|---|
| 50 | 0.05 | 0.999879 | 1.894525e-19 |
| 600 | -0.05 | 0.999977 | 3.485987e-20 |
| 1150 | 0.00 | 0.999998 | 3.589867e-21 |
| 1700 | 0.00 | 0.999998 | 3.440877e-21 |
| 2250 | 0.00 | 0.999998 | 3.339133e-21 |
| 2800 | 0.00 | 0.999998 | 3.255943e-21 |
| 3350 | 0.00 | 0.999998 | 3.182589e-21 |
| 3900 | 0.05 | 0.999998 | 2.954565e-21 |
| 4450 | 0.05 | 0.999998 | 2.900151e-21 |
| 5000 | 0.05 | 0.999998 | 2.847741e-21 |
Table 6: Black-body Regime D: narrow prefactor grid (), high truncation ().
| Best | Best | Best MSE | |
|---|---|---|---|
| 50 | 0.50 | 1.0 | 6.046916e-28 |
| 600 | 0.00 | 1.0 | 2.807961e-28 |
| 1150 | 0.00 | 1.0 | 2.365705e-28 |
| 1700 | -0.10 | 1.0 | 2.033666e-28 |
| 2250 | -0.05 | 1.0 | 1.958330e-28 |
| 2800 | 0.00 | 1.0 | 1.906302e-28 |
| 3350 | 0.00 | 1.0 | 1.815028e-28 |
| 3900 | 0.00 | 1.0 | 1.737311e-28 |
| 4450 | 0.00 | 1.0 | 1.669088e-28 |
| 5000 | 0.00 | 1.0 | 1.608124e-28 |
Appendix B. The main conclusion is that the dimensional component of the model remains substantially more stable than the functional one.
Across all regimes, the recovered exponent stays at or very near the theoretical value , even when the quality of the fitted modulation degrades at high noise. The broad-grid regimes recover almost uniformly, while the narrow-grid regimes display only small deviations of order or . This indicates that the dimensional skeleton acts as a robust low-complexity structural constraint, much less sensitive to noise than the detailed harmonic content of the fitted function.
A second clear trend is the expected bias-variance trade-off associated with the truncation order. Low-order dictionaries are more robust but may introduce approximation bias, which can then distort the estimated prefactor. High-order dictionaries remove most of that bias but may begin to overfit noise. This is most visible in Regime B at , where the correct prefactor is still recovered but the fitted modulation starts to track noise fluctuations.
Another useful diagnostic is the saturation of out-of-sample at moderate and high noise levels. Writing the noisy target as with , and normalizing the noiseless signal to unit variance so that , even a perfect predictor of is bounded by
This saturation value assumes that the fitted model is an unbiased predictor of the noiseless signal. Therefore, systematic deviations below should not be attributed solely to observation noise; they also indicate approximation bias, model misspecification, or an insufficiently expressive dictionary. This gives for , and for , which agrees closely with the empirical plateaus seen in the noisy experiments. See figures 4 and 5.

Fig. 4: Regime B ( , ), low noise ( , ): near-perfect reconstruction of the Planck curve.
6.2.5 Interpretation
The black-body benchmark illustrates a useful distinction between the dimensional and functional parts of the model. The dimensional skeleton is recovered more robustly

Fig. 5: Example of functional overfitting in the high-noise regime (Regime B, , ). The prefactor scan still identifies the correct dimensional scaling, but the fitted modulation begins to track noise fluctuations.
than the detailed modulation, even when the latter is only approximately captured or partially overfitted.
At the same time, the experiments show that prefactor selection and functional approximation are not fully separable. When the harmonic basis is too rigid, approximation bias can leak into the prefactor scan, producing small but systematic deviations from the theoretical scaling. When the basis is sufficiently expressive, the scan stabilizes near the correct value and the remaining error is concentrated in the dimensionless fit itself.
For this reason, the black-body benchmark provides a more stringent validation of the framework than the simple pendulum. It shows that dimensional consistency remains informative and robust even when the residual law is highly non-polynomial, while also making clear that the success of prefactor recovery depends on matching the dictionary complexity to the structure of the dimensionless modulation.
6.2.6 Validation on COBE/FIRAS experimental data
We validate the framework on real experimental data: the cosmic microwave background (CMB) monopole spectrum measured by the FIRAS instrument on board the COBE satellite [25]. The dataset provides the spectral radiance at 43 frequency points in the range GHz, at the fixed CMB temperature K. The dimensional structure is constructed exactly as in the synthetic benchmark: the invariant is and the admissible prefactor family is . We use RidgeCV with 5-fold cross-validation. The single-fit validation shown in Figure 6 uses and a 30/13 train-test split, approximately a 70/30 split. For the bootstrap analysis in Figure 7, we use harmonic terms. This lower truncation remains sufficiently expressive for the FIRAS spectrum while reducing overfitting artifacts under resampling, which is important given the limited number of data points.
A single train/test split selects with ; the theoretical yields on the same split, the difference is negligible ( ). To assess whether is a statistical fluctuation, we repeat the experiment over 500 classic bootstrap samples (with replacement), training each on the in-bag observations and testing on the out-of-bag points (Figure 7). The bootstrap distribution yields , concentrated near zero over the scan range , confirming that the prefactor exponent is compatible with zero and is not sharply resolved from only 43 data points at fixed temperature. Furthermore, produces a mean out-of-bag of 0.976 across bootstrap samples, higher than the achieved by the sample-selected . This suggests that the data are too scarce to resolve the prefactor exponent sharply, and that additional measurements would likely concentrate the estimate more strongly around . The fit for is shown in Figure 6.


Fig. 6: Fit of the dimensionally constrained model to COBE/FIRAS CMB monopole spectrum data (43 points, , ). Left: spectral radiance as a function of frequency; the theoretical Planck curve at (dashed) is overlaid with the FIRAS measurements (blue circles) and the dimensional fit (red line). Right: pull distribution ( )/ in units of the FIRAS measurement uncertainty .
6.2.7 Harmonic versus Chebyshev basis
The choice of harmonic expansions for the dimensionless modulation deserves justification, since other bases such as Chebyshev polynomials, splines, or radial basis functions could also be employed. We compare the harmonic basis against Chebyshev
Bootstrap distribution of

Fig. 7: Bootstrap distribution of the recovered prefactor exponent over 500 classic bootstrap samples (with replacement) of the 43 FIRAS data points, using harmonic terms. The theoretical value (solid black line) and the bootstrap result (dashed red line) are indicated. The distribution is concentrated near zero with a modest spread ( ).
polynomials mapped to on the black-body benchmark, using the same number of basis functions and the same RidgeCV pipeline. Figure 8 shows the results.
With to harmonic terms, the out-of-sample remains stable at 0.9996, while the Chebyshev basis degrades from 0.9997 at low order to 0.866 at . The Chebyshev expansion suffers from Runge's phenomenon when approximating the transcendental modulation : high-order algebraic polynomials oscillate strongly near the boundaries of the domain, whereas the harmonic expansion captures the exponential structure with a smooth spectral basis. Furthermore, Chebyshev requires substantially more training samples to generalize: with 20 to 30 training points, the harmonic model attains while Chebyshev remains below 0.82.
6.2.8 Comparison with Villar et al. (2023)
We compare our harmonic-based approach with a Villar et al.-style baseline inspired by the units-equivariant framework of Villar et al. [12]. In this baseline, dimensional analysis is used to construct dimensionless inputs, and inference is then performed


Fig. 8: Comparison of harmonic and Chebyshev polynomial bases on the black-body benchmark. Left: out-of-sample as a function of the truncation order , with both bases using the same number of features . Right: sample efficiency at fixed , showing that the harmonic expansion generalizes reliably from as few as 20 training points while Chebyshev requires at least 100.
in the resulting dimensionless space using a standard machine-learning model. Both approaches share the same dimensional reduction: the target is divided by the dimensional prefactor , and the regression is performed on the invariant . Our method uses a harmonic expansion with terms and RidgeCV with cross-validation, yielding a linear-in-parameters predictor with explicit harmonic coefficients. The Villar-style baseline employs a multi-layer perceptron (MLP) with three hidden layers of 128, 128, and 64 units and ReLU activations, trained on the same invariant coordinate.
The results are summarized in Table 7 and Figure 9. Both methods achieve high accuracy, but the harmonic expansion consistently outperforms the MLP, particularly at low sample sizes ( vs. 0.989688 at training points) and under noise (e.g., vs. 0.683 at ). The harmonic model uses a convex fitting objective and explicit coefficients for the dimensionless response. The MLP is more flexible, but in this experiment it requires more data to generalize and involves a non-convex optimization problem.
Table 7: Comparison between the proposed harmonic model and a Villar et al.-style MLP baseline on the black-body benchmark (, 70/30 train/test split).
| Harmonic (ours) | MLP on (Villar-style baseline) | |
|---|---|---|
| 0.00 | 1.000000 | 0.987803 |
| 0.02 | 0.999652 | 0.987709 |
| 0.10 | 0.990905 | 0.980457 |
| 0.30 | 0.923498 | 0.891541 |
| 0.60 | 0.721088 | 0.683265 |


Fig. 9: Comparison of our harmonic expansion method against a Villar et al. style MLP operating on the same dimensionless invariant space. Left: out-of-sample as a function of training dataset size (noiseless). Right: out-of-sample under increasing additive noise ( ). The harmonic model matches or exceeds the MLP in these tests while using a linear fit in the coefficients.
This comparison should not be interpreted as a replacement for the more general units-equivariant framework of Villar et al., but as a controlled baseline within the same dimensionless input space. The purpose is to isolate the effect of replacing a flexible black-box regressor by an explicit harmonic dictionary. In this setting, the harmonic model keeps the same dimensional reduction but uses a smaller explicit dictionary instead of a neural regressor.
Taken together, these comparisons provide complementary ablations of the proposed framework. The unconstrained pendulum baseline removes the dimensional reduction and fits the raw variables directly, testing the effect of imposing Buckingham structure and an admissible dimensional prefactor. The Chebyshev comparison keeps the same dimensional prefactor and invariant coordinate but replaces the harmonic dictionary by a non-periodic polynomial basis. Finally, the Villar et al.-style baseline keeps the same dimensionless input space but replaces the explicit harmonic dictionary by a flexible black-box regressor. Together, these comparisons separate the effects of dimensional reduction, prefactor structure, dictionary choice, and regression architecture.
6.3 Double pendulum Lyapunov field
As a third and substantially more demanding benchmark, we consider the maximal Lyapunov exponent field of the double pendulum. The target is a structured two-dimensional response surface with strong anisotropy and sharp transitions, which makes it a stringent test of dictionary design on invariant space.
6.3.1 Physical setting and dimensional structure
The double pendulum consists of two point masses and connected by rigid massless rods of lengths and in a uniform gravitational field g. Its angular equations of motion are nonlinear and strongly coupled:
(39)
To quantify sensitivity to initial conditions, we study the maximal Lyapunov exponent
Numerically, is estimated from the divergence of nearby trajectories initialized with a small angular perturbation. The resulting map defines a structured response surface over the angular configuration space. We use the dimensional basis . The dimension matrix for the dimensional variables is
Since the angular variables are already dimensionless, Buckingham's theorem gives independent invariants when the full variable set is considered. Solving yields,
For the target signature , solving yields the admissible prefactor family
In the symmetric baseline configuration, where and , this reduces to the unique minimal prefactor . Accordingly, the remaining learning task is concentrated entirely in the two-dimensional angular modulation.
6.3.2 Data generation and benchmark configurations
Two numerical configurations are considered.
-
In the symmetric baseline case, we fix , , and sample the Lyapunov field on a grid over .
-
In the asymmetric case, unequal masses are used and the field is sampled on a grid, while the integration protocol remains unchanged. This second configuration is included to verify that the advantage of the separable dictionary is not specific to the symmetric geometry of the baseline field.
For both settings, the learned model has the generic form
with in the symmetric case. Since the nontrivial dependence is genuinely two-dimensional, this benchmark is the natural place to compare the two harmonic constructions introduced earlier.
6.3.3 Phase-combination dictionary
We first use the phase-combination basis
where are the rescaled angular invariants. This basis is straightforward to implement, but it couples both directions through a single phase and therefore has limited flexibility when the response surface exhibits different structures along different angular directions. The corresponding performance in the symmetric baseline configuration is summarized in Table 8. Throughout this benchmark, denotes the per-coordinate truncation order used uniformly across both angular invariant directions (i.e. ).
Table 8: Performance of the phase-combination dictionary for the symmetric baseline configuration (, ).
| Truncation () | MSE | |
|---|---|---|
| 5 | 0.791778 | 0.517102 |
| 20 | 0.816322 | 0.456150 |
| 30 | 0.823415 | 0.438534 |
The improvement with truncation order is modest, and the fit saturates near . This suggests that the main limitation is not the number of frequencies alone, but the geometry of the basis itself.
6.3.4 Separable tensor-product dictionary
We next replace the phase-combination basis by the separable tensor-product dictionary , where each feature is a product of one-dimensional trigonometric factors in and . This separates the two angular directions before interaction terms are introduced. The results for the symmetric baseline configuration are given in Table 9.
Table 9: Performance of the separable tensor-product dictionary for the symmetric baseline configuration (, ).
| Truncation () | MSE | |
|---|---|---|
| 5 | 0.860839 | 0.345595 |
| 20 | 0.933313 | 0.165611 |
At the same nominal truncation level, the separable basis outperforms the phase-combination model. This indicates that the limitation of the simpler representation is geometric: the Lyapunov field is anisotropic, and the dictionary must resolve different directional structures. The ten largest fitted coefficients for the separable model are shown in Table 10. For readability we write for the coefficient of and for the coefficient of ; each corresponds uniquely to a scalar weight from the tensor-product expansion of Section 3. The subscript pair gives the angular-frequency index along the and invariant directions, respectively. Only even-parity products survive in the parity-reduced model (Table 12), so no mixed or terms appear.
Table 10: Ten largest coefficients for the separable model at .
| Term | Value |
|---|---|
| (cos-cos) | -7.976002 |
| (sin-sin) | -3.137987 |
| (cos-cos) | -2.709306 |
| (sin-sin) | 2.003437 |
| (sin-sin) | 1.498303 |
| (cos-cos) | -1.259975 |
| (cos-cos) | 1.184035 |
| (cos-cos) | 1.168022 |
| (sin-sin) | -0.956398 |
| (cos-cos) | -0.908308 |
6.3.5 Parity reduction
Inspection of the fitted coefficients and of the Lyapunov field itself reveals a strong approximate symmetry under the joint reflection . This motivates imposing the parity reduction, retaining only the even-parity blocks and . The resulting performance is summarized in Table 11.
Table 11: Performance of parity-reduced dictionaries for the symmetric baseline configuration .
| Dictionary Type | MSE | ||
|---|---|---|---|
| Separable + Parity | 20 | 0.933290 | 0.165668 |
| Phase-Comb + Parity | 40 | 0.826657 | 0.430482 |
| Phase-Comb + Parity | 50 | 0.828744 | 0.425301 |
| Separable + Parity | 35 | 0.950272 | 0.123495 |
Parity reduction alone does not resolve the limitations of the phase-combination basis. The best result is obtained by the parity-reduced separable model, which reaches at . Thus, symmetry is useful only after the dictionary geometry is already well matched to the target field. For completeness, the ten largest coefficients of the best model are reported in Table 12.
Table 12: Ten largest coefficients for the parity-reduced separable model at .
| Term | Value |
|---|---|
| (cos-cos) | -7.972290 |
| (sin-sin) | -3.137987 |
| (cos-cos) | -2.708697 |
| (sin-sin) | 2.003437 |
| (sin-sin) | 1.498303 |
| (cos-cos) | -1.260299 |
| (cos-cos) | 1.187112 |
| (cos-cos) | 1.163263 |
| (sin-sin) | -0.956398 |
| (cos-cos) | -0.910151 |
Figure 10 shows the progression in reconstruction quality across the different dictionary choices.

(a) Ground-truth Lyapunov field.

(b) Phase-combination fit at .

(c) Separable fit at .

(d) Parity-reduced separable fit at .
Fig. 10: Progressive improvement in the reconstruction of the double-pendulum Lyapunov field. The separable tensor-product dictionary is essential for resolving the anisotropic angular structure, while parity reduction improves efficiency without degrading accuracy.
6.3.6 Asymmetric case
We also consider an asymmetric mass configuration, for which the ratio invariant is no longer trivial. In this setting, the prefactor family
contains nontrivial free parameters. Once the ratio invariants are fixed numerically, however, constant multiplicative factors are readily absorbed into the harmonic coefficients, so predictive performance depends much more strongly on the dictionary choice than on the precise prefactor exponent. The corresponding results are reported in Table 13.
Table 13: Results for the asymmetric-mass double-pendulum configuration.
| Dictionary Type | MSE | ||
|---|---|---|---|
| Phase-Combination | 5 | 0.704248 | 3.395539 |
| Phase-Combination | 20 | 0.717002 | 3.249113 |
| Separable + Parity | 5 | 0.908818 | 1.046867 |
| Separable + Parity | 20 | 0.942478 | 0.660411 |
The same qualitative pattern persists: the phase-combination basis remains limited, whereas the separable parity-reduced model stays highly effective. This confirms that the advantage of the separable construction is not specific to the symmetric baseline case. Figure 11 illustrates the reconstruction quality in the asymmetric setting.
6.3.7 Interpretation
The double-pendulum benchmark separates two aspects of the method. The dimensional prefactor fixes the overall scaling, but the accuracy is controlled by the dictionary used for the dimensionless modulation. Phase-combination harmonic features saturate early because they do not match the anisotropic structure of the Lyapunov field, whereas separable tensor-product dictionaries resolve the angular directions independently.
Symmetry reduction gives an additional reduction in feature count, but its effect is secondary to the choice of dictionary. On the symmetric benchmark, the phase-combination model plateaus near , whereas the parity-reduced separable model reaches .
6.3.8 Harmonic versus Chebyshev basis
We also compare the separable harmonic dictionary against a separable Chebyshev polynomial basis on the same angular domain (Figure 12). Chebyshev polynomials are

(a) Ground-truth Lyapunov field.

(b) Phase-combination fit at .

(c) Parity-reduced separable fit at .

(d) Parity-reduced separable fit at .
Fig. 11: Reconstruction quality for the asymmetric double-pendulum configuration. The separable tensor-product basis again provides a substantially better approximation than the phase-combination basis.
orthogonal on , whereas the angular coordinates are naturally periodic on ; mapping the angles to introduces an artificial discontinuity at the domain boundaries. At matched truncation order , the harmonic model achieves against for Chebyshev, and the gap persists with increasing ( vs. 0.869 at ). This is consistent with the angular nature of the invariant coordinates in this benchmark.

Fig. 12: Comparison of separable harmonic and separable Chebyshev dictionaries on the double-pendulum Lyapunov field. Left: ground truth. Center: harmonic fit at . Right: Chebyshev fit at . The harmonic basis captures both marginal and interaction angular structure more faithfully.
6.3.9 Convergence with truncation order
The results reported in Tables 8–11 are limited to three values of . To assess whether at represents saturation or a transient plateau, we extend the scan to using the parity-reduced separable model with a train/test split (Figure 13). The training increases monotonically with , reaching 0.991 at , as expected from a model with growing expressivity. The out-of-sample , however, peaks at ( ) and then declines to 0.633 at due to overfitting with the available number of training samples. The observed plateau in the earlier tables is therefore not a property of the harmonic basis but rather reflects the finite sample budget: the model saturates when the number of features approaches the effective number of training degrees of freedom. This behavior is consistent with standard bias-variance trade-off expectations for regularized regression.
6.3.10 Spatial distribution of the prediction error
The aggregate metrics in Tables 8–11 abstract away the spatial structure of the error. Figure 14 shows heatmaps of over the angular domain for the parity-reduced separable model at three truncation orders. The error is systematically concentrated along the boundaries between regular and chaotic regions of the phase space, where the Lyapunov field exhibits sharp gradients. At , errors of order span large portions of the domain; at , the high-error regions shrink to thin filaments along the separatrix; at , errors are further reduced in magnitude but remain localized at the same interface structures. This confirms that the primary challenge for the harmonic approximation is not uniform field complexity but the resolution of narrow transition zones, for which higher-order harmonic terms provide diminishing returns once the dominant interface width is captured.

Fig. 13: Train and test as a function of the truncation order for the parity-reduced separable model on an 80/20 split of 8000 subsampled grid points. Test performance peaks at and decreases at higher due to overfitting, indicating that the plateau reported in the earlier tables is a consequence of finite training samples rather than a limitation of the harmonic representation.
7 Discussion
The three benchmarks probe complementary aspects of the proposed framework: a low-dimensional law largely determined by dimensional analysis, a one-dimensional but transcendental modulation with a nontrivial prefactor family, and a structured two-dimensional response surface with partial chaos. Taken together, they show that dimensional consistency is useful, but that the residual dimensionless dependence still has to be represented appropriately. The unconstrained pendulum baseline in Section 6.1 quantifies the sample-efficiency gain: by fixing the exponent from dimensional analysis, the proposed model avoids the ill-conditioned joint optimization over and reaches high accuracy with far fewer data points.
A first observation is that the dimensional component is more stable than the functional one. In the black-body benchmark, for example, the correct prefactor is recovered even in regimes where the harmonic approximation begins to overfit noise. This suggests that the admissible prefactor family acts as a low-complexity constraint, whereas the fitted dimensionless modulation carries the higher-variance part of the approximation.
A second observation is that dictionary geometry becomes important as soon as the invariant space has dimension greater than one. In the double-pendulum benchmark, phase-combination harmonic features saturate at comparatively modest accuracy, whereas separable tensor-product dictionaries yield a large improvement. The reason
Error maps for the double-pendulum Lyapunov field (parity-reduced separable model)

Fig. 14: Heatmaps of the absolute prediction error for the parity-reduced separable model at three truncation orders. Errors concentrate at the boundaries between regular and chaotic regions and narrow progressively with increasing , but the interface structure persists.
is geometric rather than purely spectral: the Lyapunov field is anisotropic, and a basis that couples all directions through a single phase is not well adapted to that structure. By contrast, separable dictionaries expose marginal and interaction effects directly and allow the representation to follow the directional organization of the target surface.
The experiments also show that symmetry information can be incorporated in a useful way. In the double-pendulum case, imposing joint parity reduces the number of fitted coefficients without degrading accuracy, and in the best models it improves efficiency at essentially no cost in expressivity on the physically relevant subspace. This illustrates the complementary roles of dimensional analysis and geometric symmetry: the former constrains the admissible scaling structure, while the latter restricts the dimensionless modulation within invariant space.
A further methodological point is that prefactor selection and functional approximation cannot be treated as fully independent. When the harmonic dictionary is too rigid, residual approximation error may leak into the prefactor scan, leading to small but systematic distortions of the recovered dimensional scaling. The black-body benchmark makes this interaction particularly clear. Conversely, when the dictionary is sufficiently expressive, the scan stabilizes near the physically correct prefactor. Prefactor selection should therefore be viewed not merely as a dimensional bookkeeping device, but as part of the overall bias-variance trade-off of the model.
Several limitations should also be kept in mind. First, although the present work is primarily based on synthetic benchmarks, the COBE/FIRAS validation in Section 6.2 provides a real-data check: the bootstrap prefactor scan remains compatible with the expected scaling, but also shows the limited statistical resolution of such a small measured dataset.
Overall, dimensional analysis defines a compact physically admissible hypothesis space. The experiments also show that, once multiple invariants are present, the learning stage depends strongly on matching the dictionary to the geometry of the response surface.
Regarding the choice of basis, harmonic dictionaries work well for the transcendental and periodic invariant domains studied here. The Chebyshev comparisons in Sections 6.2 and 6.3 are useful ablations, but they do not outperform the harmonic construction on these benchmarks.
8 Conclusion
We have introduced a data-driven method for learning physical responses under explicit dimensional constraints. Starting from the dimension matrix of the variables, the method constructs admissible dimensional prefactors and independent Buckingham invariants, and then learns the remaining dimensionless dependence through truncated harmonic expansions on invariant space. Once the dictionary is fixed, the fitting problem is linear in the coefficients and can be regularized by standard methods.
The numerical experiments cover three qualitatively different settings. It recovers the expected pendulum scaling, identifies the correct black-body dimensional skeleton even under approximation error and noise, and shows that separable tensor-product dictionaries with symmetry reduction are essential for the double-pendulum Lyapunov field. The convergence and error-map analyses further indicate that the remaining error is mostly a finite-sample issue concentrated near regular-to-chaotic transition regions.
More broadly, the study highlights three methodological points. First, dimensional consistency is a useful inductive bias for data-driven law discovery. Second, the separation between dimensional scaling and dimensionless modulation suggests a path to extensions in which the dimensional skeleton is fixed by prior knowledge while the modulation is refined as more data become available. Third, once the invariant space has dimension greater than one, the representation chosen for the dimensionless modulation becomes a central design decision.
The present work focuses on problems with low-dimensional invariant spaces, where prefactor scans and moderately rich harmonic dictionaries remain tractable. Extending the framework to larger invariant dimensions will require more structured approximation strategies, such as sparse truncations, adaptive dictionaries, or low-rank tensor constructions. The results obtained here suggest that combining dimensional analysis with explicit spectral approximation is a practical route toward learning physically admissible laws from data.
Data availability
The datasets generated and/or analysed during the current study are available from the corresponding author on reasonable request. This includes the raw synthetic datasets generated for the controlled benchmarks and the processed data used to produce the figures and tables. The COBE/FIRAS spectrum used for the real-data validation is a public dataset originally reported by Fixsen et al. [25]; the processed values used in the present analysis are also available from the corresponding author on reasonable request.
Funding
This work was supported by the Cátedra Fundación ASISA–UEM de Ciencias de la Salud, under internal project code P2025-15CA.
Author Contributions
Ernest Tarrus: Writing - original draft, validation, software, methodology, investigation, formal analysis, and conceptualization. Hector Gisbert: Writing - original draft, visualization, supervision, methodology, investigation, formal analysis, and conceptualization.
Appendix A Differential form of unit equivariance
For , introduce logarithmic coordinates
Under the induced change of units, each input variable transforms as
The unit-equivariance condition (7) can then be written as
Differentiating with respect to at t = 0 gives
Since
we obtain the system
This is the differential form of dimensional homogeneity. For a monomial ansatz
substituting into (A6) yields
that is, the algebraic system . Thus, for monomial prefactors, the differential and algebraic formulations of unit equivariance are equivalent.
Appendix B Summary of black-body radiation with noise
The full numerical results of the four noisy regimes described in Section 6.2 are summarized in Figure B1. The top row shows the recovered prefactor exponent as a function of the dataset size for each regime and noise level. Across all regimes, the method recovers values very close to the theoretical exponent , with deviations that stay within except at the smallest sample sizes. The bottom row shows the corresponding out-of-sample . For the low-noise regime ( ), remains above 0.999 at all dataset sizes and both (Regime A, C) and (Regime B, D). At higher noise levels, the low- model maintains ( ) and ( ), while the high- model exhibits overfitting at small (e.g., at for Regime B, ). These results confirm that the dimensional component (the prefactor exponent ) is substantially more stable than the functional component ( from the harmonic fit) and that the qualitative behavior is robust to the chosen scan range for .


Fig. B1: Summary of the noisy black-body experiments across the four regimes. Top: recovered prefactor exponent vs. . Bottom: best vs. . Three noise levels are shown per panel. The prefactor exponent remains robust across all regimes, while degrades with noise and, for large- models, also with small .
References
[1] Bridgman, P.W.: Dimensional Analysis. Yale University Press, New Haven (1922)
[2] Barenblatt, G.I.: Scaling. Cambridge Texts in Applied Mathematics, vol. 34. Cambridge University Press, Cambridge (2003). https://doi.org/10.1017/CBO9780511814921
[3] Buckingham, E.: On physically similar systems; illustrations of the use of dimensional equations. Physical Review 4(4), 345–376 (1914)
[4] Barenblatt, G.I.: Scaling, Self-similarity, and Intermediate Asymptotics. Cambridge University Press, Cambridge (1996)
[5] Sedov, L.I.: Similarity and Dimensional Methods in Mechanics. CRC Press, Boca Raton (1993)
[6] Vaschy, A.: Sur les lois de similitude en physique. Annales télégraphiques 19, 25–28 (1892)
[7] Schmidt, M., Lipson, H.: Distilling free-form natural laws from experimental data. Science 324(5923), 81–85 (2009) https://doi.org/10.1126/science.1165893
[8] Udrescu, S.-M., Tegmark, M.: Ai feynman: A physics-inspired method for symbolic regression. Science Advances 6(16), 2631 (2020) https://doi.org/10.1126/sciadv.aay2631
[9] Brunton, S.L., Proctor, J.L., Kutz, J.N.: Discovering governing equations from data by sparse identification of nonlinear dynamical systems. Proceedings of the National Academy of Sciences 113(15), 3932–3937 (2016) https://doi.org/10.1073/pnas.1517384113
[10] Rudy, S.H., Brunton, S.L., Proctor, J.L., Kutz, J.N.: Data-driven discovery of partial differential equations. Science Advances 3(4), 1602614 (2017) https://doi.org/10.1126/sciadv.1602614
[11] Raissi, M., Perdikaris, P., Karniadakis, G.E.: Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. Journal of Computational Physics 378, 686–707 (2019) https://doi.org/10.1016/j.jcp.2018.10.045
[12] Villar, S., Yao, W., Hogg, D.W., Blum-Smith, B., Dumitrascu, B.: Dimensionless machine learning: Imposing exact units equivariance. Journal of Machine Learning Research 24(109), 1–32 (2023)
[13] Bakarji, J., Callaham, J., Brunton, S.L., Kutz, J.N.: Dimensionally consistent learning with Buckingham pi. Nature Computational Science 2(12), 834–844 (2022) https://doi.org/10.1038/s43588-022-00355-5
[14] Xie, X., Samaei, A., Guo, J., Liu, W.K., Gan, Z.: Data-driven discovery of dimensionless numbers and governing laws from scarce measurements. Nature Communications 13, 7562 (2022) https://doi.org/10.1038/s41467-022-35084-w
[15] Jofre, L., Rosario, Z.R., Iaccarino, G.: Data-driven dimensional analysis of heat transfer in irradiated particle-laden turbulent flow. International Journal of Multi-phase Flow 125, 103198 (2020) https://doi.org/10.1016/j.ijmultiphaseflow.2019.103198
[16] Tikhonov, A.N., Arsenin, V.Y.: Solutions of Ill-Posed Problems. Winston and Sons, Washington, DC (1977)
[17] Hoerl, A.E., Kennard, R.W.: Ridge regression: Biased estimation for nonorthogonal problems. Technometrics 12(1), 55–67 (1970) https://doi.org/10.1080/00401706.1970.10488634
[18] Tibshirani, R.: Regression shrinkage and selection via the lasso. Journal of the Royal Statistical Society: Series B (Methodological) 58(1), 267–288 (1996) https://doi.org/10.1111/j.2517-6161.1996.tb02080.x
[19] Zou, H., Hastie, T.: Regularization and variable selection via the elastic net. Journal of the Royal Statistical Society: Series B 67(2), 301–320 (2005) https://doi.org/10.1111/j.1467-9868.2005.00503.x
[20] Golub, G.H., Van Loan, C.F.: Matrix Computations, 4th edn. Johns Hopkins University Press, Baltimore, MD (2013)
[21] Bengio, Y.: Gradient-based optimization of hyper-parameters. Neural computation 12(8), 1889–1900 (2000)
[22] Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., Blondel, M., Prettenhofer, P., Weiss, R., Dubourg, V., Vanderplas, J., Passos, A., Cournapeau, D., Brucher, M., Perrot, M., Duchesnay, E.: Scikit-learn: Machine learning in Python. Journal of Machine Learning Research 12, 2825–2830 (2011)
[23] Frazier, P.I.: A tutorial on bayesian optimization. arXiv preprint arXiv:1807.02811 (2018)
[24] James, F., Roos, M.: Minuit: A system for function minimization and analysis of the parameter errors and correlations. Computer Physics Communications 10(6), 343–367 (1975) https://doi.org/10.1016/0010-4655(75)90039-9
[25] Fixsen, D.J., Cheng, E.S., Gales, J.M., Mather, J.C., Shafer, R.A., Wright, E.L.: The cosmic microwave background spectrum from the full COBE FIRAS data set. The Astrophysical Journal 473, 576–587 (1996)