---
title: 'Ex-HiDeNN: Hierarchical Neural Symbolic Regression'
url: https://www.emergentmind.com/topics/ex-hidenn
type: topic
---

# Ex-HiDeNN: Hierarchical Neural Symbolic Regression

Ex-HiDeNN, short for Explainable Hierarchical Deep Learning Neural Networks, is a two-stage framework for discovering closed-form, human-interpretable mathematical expressions from data by combining a structured interpolating neural surrogate with symbolic regression. Its core components are C-HiDeNN-TD, a convolutional Hierarchical Deep Neural Network with Tensor Decomposition, and PySR, a genetic-programming-based symbolic regression engine. The method is designed to be accurate, frugal, fast, separable, and scalable, with an explicit emphasis on recovering symbolic surrogates from limited observation while exploiting additive and multiplicative separability in the learned function [2507.05498].

## 1. Conceptual definition and lineage

Ex-HiDeNN is formulated as a bridge between hierarchical neural interpolation and symbolic discovery. In the first stage, it learns a continuously differentiable, structured surrogate of the target function from data. In the second stage, it uses derivatives of that surrogate to assess separability and then adapts the symbolic regression strategy accordingly. The stated goals are interpretability, accuracy, frugality or parsimony, speed and scalability, and separability-aware modeling [2507.05498].

The framework is built upon the authors’ earlier work on HiDeNN, Convolutional HiDeNN, and C-HiDeNN-TD. HiDeNN embeds computational-mechanics-style interpolation into neural networks. Convolutional HiDeNN and C-HiDeNN-TD extend that basis through patch functions, convolutional ideas, and tensor decomposition, yielding scalable and separable interpolating networks. Within Ex-HiDeNN, these prior developments serve as the structured substrate on which symbolic regression operates.

A central feature of Ex-HiDeNN is that symbolic regression is not applied directly to raw data. Instead, the surrogate first interpolates and smooths the data, and only then provides samples and structural information for symbolic regression. This arrangement is presented as the main reason the method can discover closed-form expressions that are more accurate and robust than traditional symbolic regression alone, often with orders-of-magnitude improvements in RMSE on the reported benchmarks.

## 2. Surrogate architecture and mathematical representation

The surrogate used in Ex-HiDeNN is C-HiDeNN-TD, a separable, hierarchical neural network for approximating a scalar function $u(\mathbf{p})$ with $I$ input parameters,
$$
\mathbf{p} = [p_1, p_2, \dots, p_I].
$$
Its learned mapping is written as
$$
u^h(\mathbf{p}_k)=u^h(p_{1,k},p_{2,k},...,p_{I,k})= \sum_{k=1}^{K}\prod_{i=1}^I\sum_{m=1}^{M}\tilde N_{pi,k}(p_{i,k};\mathbf{\theta})\cdot u_{pi,k}^m.
$$
Here, $i=1,\dots,I$ indexes input dimensions, $m=1,\dots,M$ indexes modes, $\tilde N_{pi,k}(p_{i,k};\boldsymbol{\theta})$ is a one-dimensional interpolating neural basis along dimension $i$, and $u_{pi,k}^m$ are trainable coefficients [2507.05498].

Conceptually, the functional space is split into multiple one-dimensional subspaces, one for each input dimension. Along each axis, C-HiDeNN-TD constructs a meshfree-like interpolant with trainable patch functions. The full function is then represented as a sum over modes of products over dimensions of these one-dimensional interpolants, in a form described as structurally akin to a tensor decomposition, specifically canonical polyadic decomposition.

The one-dimensional interpolant for a parameter $p$ in a segment $s$ is expressed as
$$
\tilde{N}_p(\cdot) = \sum_{k\in A^s} N_{p,k}(.)\sum_{l\in A^r}W_{r,a,pd,l}^k(.).
$$
In this formulation, $N_{p,k}(\cdot)$ are finite-element-like shape functions at nodes $k$ of segment $s$, and $W_{r,a,pd,l}^k(\cdot)$ are patch enrichment functions over a neighborhood of size $r$, with dilation parameter $a$ and polynomial order $pd$ as hyperparameters. Because these interpolants are built from specific basis and patch functions, the surrogate is described as small, structured, and continuously differentiable.

Training is posed as least-squares fitting to observed data through minimization of MSE. The loss is written as
$$
\min_{\mathbf{u}_k, \boldsymbol{\theta}} \mathcal L = \frac{1}{N}\sum_{n=1}^{N} \left( \sum_{k=1}^{K}\prod_{i=1}^{I}\sum_{m=1}^{M}[\tilde N_{pi,k}(p_{i,k};\boldsymbol{\theta}) \cdot \mathbf{u}^{m}_{pi,k}] - u_n^{\text{train}} \right)^2.
$$
This representation is important because it embeds separable structure directly into the neural parametrization rather than attempting to infer it only after fitting.

## 3. Separability analysis and the two-step algorithm

Ex-HiDeNN relies on classical notions of additive and multiplicative separability. For additive separability,
$$
f(x_1,\dots,x_n)=f_1(x_1)+\dots+f_n(x_n),
$$
and the Hessian becomes diagonal. For multiplicative separability,
$$
f(x_1,\dots,x_n)=f_1(x_1)f_2(x_2)\dots f_n(x_n).
$$
Taking $\log|f|$ converts multiplicative separability into additive separability,
$$
\log|f(x_1,\dots x_n)|=\log|f_1(x_1)|+\dots+\log|f_n(x_n)|.
$$
This is the basis for analyzing the Hessian of $\log|f|$ to detect multiplicative structure [2507.05498].

Given a scalar function $f(\mathbf{x})$, Ex-HiDeNN defines the Hessian of $\log|f|$ as
$$
H_{\log|f|} = H = \left[ \frac{\partial^2}{\partial x_i \partial x_j} \log|f(\mathbf{x})| \right]_{i,j=1}^n,
$$
with diagonal matrix $D_{\log|f|} = \text{diag}(H)$. The multiplicativity score is
$$
S_\otimes = \frac{\|D_{\log|f|}\|^2_F}{\|H_{\log|f|}\|^2_F}.
$$
The score satisfies $S_\otimes\in[0,1]$, with $S_\otimes=1$ corresponding to perfect multiplicative separability and $S_\otimes=0$ corresponding to purely coupled behavior. The score is computed pointwise via automatic differentiation of the trained C-HiDeNN-TD surrogate and then averaged over sampled points to obtain a domain-level separability measure.

The full pipeline is organized as a two-step algorithm. First, C-HiDeNN-TD is trained on the data to obtain an interpolant $\hat f_{\text{C-HiDeNN-TD}}$. Second, the algorithm computes the relevant Hessian-derived separability score and branches the symbolic regression procedure according to thresholded separability regimes. The formal regimes are summarized below.

| Regime | Condition on $S_\otimes$ | Symbolic form |
|---|---:|---|
| High separability | $0.95 \lesssim S_\otimes$ | $\hat f(x)=\prod_{d=1}^D e_d(x_d)$ |
| Moderate separability | $0.6 \lesssim S_\otimes \lesssim 0.95$ | $\hat f(x)=\sum_{m=1}^M\prod_{d=1}^D e_{m,d}(x_d)$ |
| Low separability | $S_\otimes \lesssim 0.6$ | Full multivariate symbolic regression |

In the high-separability regime, Ex-HiDeNN performs one-dimensional symbolic regression independently for each variable and multiplies the resulting expressions. In the moderate regime, it uses a multi-mode sum of products of one-dimensional symbolic pieces. In the low-separability regime, it performs global symbolic regression on multivariate samples from the surrogate. This adaptive branching is presented as the mechanism that reduces combinatorial blow-up by constraining symbolic search to forms compatible with the structural information extracted from the surrogate.

## 4. Symbolic regression engine, implementation, and complexity

The symbolic regression component in Ex-HiDeNN is PySR, a multi-population evolutionary symbolic regression system built atop the Julia library SymbolicRegression.jl. Its evolutionary loop consists of initializing a population of candidate expressions, selecting a random subset for tournament selection using a fitness function such as MSE with optional complexity penalty, accepting a parent with a simulated-annealing-based probability, mutating the parent through operators such as $+$, $-$, $\times$, $\div$, $\sin$, $\cos$, and $\exp$, and replacing an existing individual, by default the oldest [2507.05498].

Two PySR design features are highlighted. The first is age-regularized evolution, in which the oldest individual is replaced rather than the least fit, with the stated purpose of helping avoid premature convergence. The second is simulated annealing acceptance,
$$
p = \exp\left(\frac{L_F-L_E}{\alpha T}\right),
$$
where $L_E$ and $L_F$ are pre- and post-mutation fitness and $\alpha$ and $T\in[0,1]$ are hyperparameters. Within Ex-HiDeNN, aside from population size, maximum iterations, and complexity, most PySR hyperparameters are reported to use defaults.

Ex-HiDeNN also specifies standard performance metrics: Mean Square Error, Root Mean Square Error, Maximum Absolute Error, Relative Error, and coefficient of determination $R^2$. For sampling, it uses Latin Hypercube Sampling for global coverage and Local Perturbation Sampling for local jitter around training points. The paper states that this combination helps symbolic regression access both global structure and local detail.

Representative training configurations are case-dependent. The demonstrative example uses 42 parameters, 100 epochs, and attains RMSE $\sim 6\times 10^{-7}$. In the fatigue example, the surrogate uses 600 parameters and 2000 epochs. In the hardness example, it uses 630 parameters and 4000 epochs. For the Lorenz system, the configuration is 581 parameters per output and 1708 epochs, with normalized RMSE $0.009$. Optimization is described as standard neural training with gradient-based methods, while the exact optimizer is not specified.

A central implementation claim is that symbolic regression is NP-hard and its search space grows exponentially with dimension. Ex-HiDeNN is presented as mitigating this through dimensionality reduction in symbolic space, the tensor-decomposition architecture of C-HiDeNN-TD, and parallelism across independent one-dimensional regression problems. This suggests that its computational advantages are strongest when the target function exhibits substantial separable structure.

## 5. Benchmarks and dynamical system identification

The paper first presents a demonstrative example on
$$
f(x,y)=e^{x+2y}, \quad (x,y)\in [0,1]^2.
$$
Using 10,000 Latin Hypercube samples with a 70/15/15 split, C-HiDeNN-TD with 42 parameters trained for 100 epochs achieves RMSE $6\times10^{-7}$. PySR with 1000 iterations, maximum complexity 15, and 20 populations recovers one-dimensional expressions in $x$ and $y$ that combine into $e^{0.0008} e^{x+2y}$ with RMSE $0.00025$. The separability score is described as essentially 1, and the example is used to illustrate near-exact multiplicative separability [2507.05498].

A broader evaluation is conducted on the Vladislavleva benchmark suite $V_1$ through $V_8$, with comparisons against original genetic programming, KAN, and PySR alone. Median RMSE over five runs is reported. Ex-HiDeNN recovers the exact functional form up to constants on multiple problems, including $V_1$, $V_2$, $V_3$, and $V_5$ to rounding. On $V_8$, Ex-HiDeNN attains RMSE $0.532$ compared with $2.661$ for PySR, $2.770$ for KAN, and $2.063$ for the reference method. On $V_4$, PySR alone is slightly better in RMSE, though the paper notes it is more expensive. The overall pattern reported is that Ex-HiDeNN performs especially well on multiplicative and moderately to highly separable functions.

Noise robustness is examined by adding Gaussian noise $\varepsilon\sim\mathcal{N}(0,\sigma^2)$ to $V_1$ for $\sigma$ between $0.01$ and $0.32$. Across these noise levels, Ex-HiDeNN achieves a $2$–$10\times$ reduction in RMSE relative to PySR alone. The interpretation given is that the interpolating surrogate filters noise and captures the underlying signal before symbolic regression is performed, whereas direct symbolic regression over noisy data overfits more easily.

For dynamical system identification, the target is the Lorenz system,
$$
\frac{dx}{dt}=\sigma(y-x),\quad \frac{dy}{dt}=x(\rho-z)-y,\quad \frac{dz}{dt}=xy-\beta z,
$$
with $\sigma=10$, $\beta=8/3$, and $\rho=28$. The trajectories are integrated numerically from $t=0$ to $t=50$ with timestep $1/40$, starting from $(x,y,z)=(0.5,0.5,0.5)$. A C-HiDeNN-TD surrogate with one input, three outputs, 581 parameters per output, and 1708 epochs is trained, then differentiated by automatic differentiation to obtain $\dot{\hat x}$, $\dot{\hat y}$, and $\dot{\hat z}$. PySR is applied separately to each derivative component using the operator dictionary $\{+,-,\times,\div,\cos,\sin,\exp\}$. The recovered equations are
$$
\frac{d\hat x}{dt}=9.97(\hat y-\hat x),\quad \frac{d\hat y}{dt}=\hat x(27.9-\hat z)-\hat y,\quad \frac{d\hat z}{dt}=\hat x\hat y-2.67 \hat z.
$$
These are reported to match the true Lorenz parameters to two significant digits.

## 6. Engineering applications, comparative position, and limitations

Three engineering applications are presented. The first concerns discovery of a closed-form fatigue equation from the NIMS rotation-bending fatigue dataset from Agrawal et al. (2014). The target is fatigue life in units of $10^7$ cycles, with 25 inputs spanning alloy composition, heat treatment parameters, and processing variables. The dataset contains 437 experiments, corresponding to about $437^{1/25}\approx 1.27$ samples per dimension. The surrogate uses 600 parameters, specifically 6 modes and 4 nodes per each of the 25 inputs, trained for 2000 epochs. Its training performance is reported as RMSE $\approx 19$ and RE $\approx 1.9\%$. Sampling the surrogate at 520 points and applying PySR yields
$$
\textrm{Fatigue Life} = \left(\mathrm{CT} + 132 \log(\mathrm{C}) + 132 \sin(\mathrm{Cr}) \right) \exp\left(2.88\,\mathrm{dA}-\mathrm{Cu}\right) + 12300\frac{\mathrm{TCr} + \mathrm{Si} + \mathrm{Ni} + 0.75}{\mathrm{TT}}.
$$
For this symbolic expression, training RMSE is 34, RE is $4.5\%$, and $R^2=0.9713$; test RMSE is 20, RE is $2.8\%$, and $R^2=0.9767$ [2507.05498].

The second application concerns prediction of Vickers hardness from micro- and nano-indentation-related descriptors using data from Tantardini et al. (2024). The six inputs are $B_v$, $B_r$, $G_r$, $\sigma$, $R_x$, and $A_w$. The C-HiDeNN-TD surrogate uses 630 parameters, specifically 15 modes and 7 nodes per feature, trained for 4000 epochs, with normalized training RMSE $0.015$. Sampling at 621 points and running PySR gives
$$
H^{\textrm{Ex-HiDeNN}} = \frac{B_v}{\sigma}\left(\dfrac{0.396}{\log(G_r+1.08)+1.51}-0.03\right) - 0.146\frac{B_v R_x}{A_w} - 5.61.
$$
Its performance is reported as training RMSE $0.10$ GPa, MaxAE $0.51$ GPa, RE $0.51\%$, and $R^2=0.9998$; test RMSE $0.09$ GPa, RE $0.49\%$, and $R^2=0.9999$; and full-dataset RMSE $0.066$ GPa with $R^2=0.9999$. The paper compares this with a SISSO expression whose full-dataset performance is RMSE $1.66$ GPa and $R^2=0.9552$, describing the Ex-HiDeNN result as about a 25-fold reduction in RMSE.

The third application targets the yield surface of a Matsuoka–Nakai-type pressure-sensitive granular material using data from Bahmani et al. (2024). Data are generated over pressure $p$, Lode angle $\theta$, and Lode radius $\rho$, then converted into principal stresses and invariants $I_1$, $I_2$, and $I_3$, producing 13,200 nine-dimensional samples with a 70/15/15 split. The discovered expression is
$$
f = 0.214\frac{\rho^2}{p}\log\left(1.251\sin\left(0.558 \frac{I_1 I_2}{I_3} \right) + 0.716\right).
$$
The reported performance is training RMSE $1.06$ MPa, RE $2.3\%$, and $R^2=0.9993$, and test RMSE $1.10$ MPa, RE $2.3\%$, and $R^2=0.9992$. The accompanying interpretation states that the prefactor $\rho^2/p$ is consistent with pressure-sensitive yield criteria and that the expression is reminiscent of the classical Matsuoka–Nakai invariant condition.

Relative to pure symbolic regression methods such as PySR, SISSO, and earlier genetic programming, Ex-HiDeNN is described as benefiting from surrogate-based denoising, derivative information, and separability-aware dimensionality reduction. Relative to KAN and related grey-box models such as INNs and KHRONOS, it is described as retaining neural expressivity while yielding fully symbolic, parsimonious models. Relative to SINDy for dynamical systems, it differs by learning a neural surrogate in time, differentiating it, and then applying symbolic regression rather than fitting a pre-defined polynomial library.

The explicit limitations identified are dependence on surrogate quality, the NP-hardness and operator-dictionary dependence of symbolic regression, reduced advantage on strongly coupled high-dimensional data, and difficulty with discontinuities or sharp kinks because the method relies on smooth interpolants and Hessians. The stated future directions are alternative surrogates such as KHRONOS, improved symbolic regression engines beyond PySR, and deeper integration of gradient and Hessian information into the symbolic discovery process. A plausible implication is that the framework is most effective when accurate smooth surrogates can be learned and when the target law possesses at least approximate separable structure.

Source: https://www.emergentmind.com/topics/ex-hidenn