SciML in the Wild: A Diagnostic Study of When Structural Priors Help and When They Hurt
Summary
This paper evaluates five model families for macroeconomic forecasting, finding that less-constrained models like ARIMA and Neural ODE outperform structurally-prioritized models like PINNs, highlighting that structural priors can act as misregularizers when mismatched.
View Cached Full Text
Cached at: 07/14/26, 04:12 AM
# SciML in the Wild: A Diagnostic Study of When Structural Priors Help and When They Hurt
Source: [https://arxiv.org/html/2607.09684](https://arxiv.org/html/2607.09684)
Vrishank Sai Anand GEMS Modern Academy Dubai, United Arab Emirates vrishanksai\.anand@gmail\.com &Prathamesh Dinesh Joshi Vizuara AI Labs, Pune, India prathamesh@vizuara\.com &Raj Abhijit Dandekar Vizuara AI Labs Pune, India raj@vizuara\.com &Rajat Dandekar Vizuara AI Labs Pune, India rajatdandekar@vizuara\.com &Sreedath Panat Vizuara AI Labs Pune, India sreedath@vizuara\.com
###### Abstract
Scientific Machine Learning \(SciML\) methods such as Neural Ordinary Differential Equations \(NODEs\), Physics\-Informed Neural Networks \(PINNs\), and Universal Differential Equations \(UDEs\) are most effective when structural priors reflect reliable governing dynamics\. We ask what happens when this assumption is violated\. Using macroeconomic forecasting as a stress\-test domain, we evaluate five model families, ARIMA, LSTM, NODE, PINN, and UDE, across 23 countries using sparse annual data, multiple temporal splits, and five random seeds\. Our results show that none of the evaluated models achieve consistently strong forecasting performance, highlighting the difficulty of low\-frequency macroeconomic prediction\. However, a clear relative hierarchy emerges: less\-constrained models, particularly ARIMA and NODE, consistently outperform more\-constrained heuristic\-prior models such as PINN and UDE\. Rather than treating this as a rejection of SciML, we interpret it as a diagnostic result: structural priors can act as misregularizers when they do not match the data\-generating process\. We identify failure modes including prior misalignment, regime shifts, structural breaks, and optimization instability, and argue that SciML practitioners should test whether structure helps before assuming that more structure is beneficial\.
*Keywords*Scientific Machine Learning⋅\\cdotMacroeconomic Forecasting⋅\\cdotNeural ODE⋅\\cdotPINN⋅\\cdotUniversal Differential Equations
## 1Introduction
Macroeconomic crises rarely emerge as isolated shocks\. Instead, they develop through the interaction of debt accumulation, growth dynamics, inflation, and policy responses over extended periods\. Empirical evidence from international finance shows that such crises are often preceded by persistent macroeconomic imbalances and systemic vulnerabilities\(Kaminsky and Reinhart,[1999](https://arxiv.org/html/2607.09684#bib.bib12); Berg and Pattillo,[1999](https://arxiv.org/html/2607.09684#bib.bib1); Caballeroet al\.,[2021](https://arxiv.org/html/2607.09684#bib.bib7)\)\. Despite the presence of these recurring patterns, forecasting macroeconomic dynamics remains a difficult problem, particularly in low\-frequency and data\-constrained settings\.
Traditional approaches to macroeconomic forecasting, including econometric models such as ARIMA, VAR, and Early Warning Systems, rely on statistical relationships between macroeconomic indicators\(Boxet al\.,[2016](https://arxiv.org/html/2607.09684#bib.bib2); Lütkepohl,[2005](https://arxiv.org/html/2607.09684#bib.bib16); Hamilton,[1994](https://arxiv.org/html/2607.09684#bib.bib10); Berg and Pattillo,[1999](https://arxiv.org/html/2607.09684#bib.bib1)\)\. While these methods provide interpretable baselines, they often struggle to capture nonlinear interactions, structural breaks, and regime shifts that are common in real\-world economies\(Hamilton,[1989](https://arxiv.org/html/2607.09684#bib.bib9); Makridakiset al\.,[2018](https://arxiv.org/html/2607.09684#bib.bib17)\)\. More recent machine learning approaches, including sequence models such as LSTMs, attempt to address these limitations by learning patterns directly from data\(Hochreiter and Schmidhuber,[1997](https://arxiv.org/html/2607.09684#bib.bib11); Goodfellowet al\.,[2016](https://arxiv.org/html/2607.09684#bib.bib6)\), but they remain sensitive to data scarcity, non\-stationarity, and distributional instability\(Makridakiset al\.,[2018](https://arxiv.org/html/2607.09684#bib.bib17); Lim and Zohren,[2021](https://arxiv.org/html/2607.09684#bib.bib14)\)\. Recent advances in deep forecasting, including transformer\-based architectures, have shown strong performance in large\-scale benchmarks, but their applicability to macroeconomic data remains limited due to data sparsity and regime instability\(Zenget al\.,[2023](https://arxiv.org/html/2607.09684#bib.bib20); Liuet al\.,[2022](https://arxiv.org/html/2607.09684#bib.bib15)\)\.
Scientific Machine Learning \(SciML\) offers an alternative paradigm by incorporating structural priors into learning\. Methods such as Neural Ordinary Differential Equations \(NODEs\)\(Chenet al\.,[2018](https://arxiv.org/html/2607.09684#bib.bib4)\), Physics\-Informed Neural Networks \(PINNs\)\(Raissiet al\.,[2019](https://arxiv.org/html/2607.09684#bib.bib19)\), and Universal Differential Equations \(UDEs\)\(Rackauckaset al\.,[2020](https://arxiv.org/html/2607.09684#bib.bib18)\)aim to combine data\-driven learning with known system dynamics\. These approaches have demonstrated strong performance in domains such as physics, biology, and engineering, where the governing equations are well\-defined and stable\(Karniadakiset al\.,[2021](https://arxiv.org/html/2607.09684#bib.bib13); Brunton and Kutz,[2022](https://arxiv.org/html/2607.09684#bib.bib3)\)\. In these settings, structural constraints act as inductive biases that improve generalization and reduce data requirements\.
However, the applicability of these methods to macroeconomics is unclear\. Unlike physical systems, macroeconomic environments are shaped by human behavior, institutional decisions, and external shocks\(Farmer and Foley,[2009](https://arxiv.org/html/2607.09684#bib.bib5)\)\. As a result, the underlying dynamics are often non\-stationary, regime\-dependent, and only partially observable\(Hamilton,[1989](https://arxiv.org/html/2607.09684#bib.bib9); Farmer and Foley,[2009](https://arxiv.org/html/2607.09684#bib.bib5)\)\. This raises a fundamental question: when structural priors are uncertain or misaligned with the data\-generating process, do they improve model performance or can they degrade it?
In this work, we address this question through a large\-scale empirical study in 23 countries\. We treat macroeconomic forecasting as a stress\-test domain for SciML\. The data is sparse, low\-frequency, noisy, and subject to structural breaks\. We compare five model families, ARIMA, LSTM, Neural ODE \(NODE\), PINN, and UDE, under a unified evaluation framework using multiple temporal splits and repeated random initialization\. Importantly, the physics\-informed components used in this study are heuristic structural priors rather than theory\-derived economic models\. This allows us to isolate the effect of inductive constraints in a controlled setting\.
This study investigates whether structural priors improve forecasting performance in sparse, non\-stationary macroeconomic settings, or whether they can become harmful when misaligned with the underlying dynamics\(Hamilton,[1989](https://arxiv.org/html/2607.09684#bib.bib9); Makridakiset al\.,[2018](https://arxiv.org/html/2607.09684#bib.bib17); Farmer and Foley,[2009](https://arxiv.org/html/2607.09684#bib.bib5)\)\. To answer this, we conduct a large\-scale empirical evaluation across 23 countries, comparing classical statistical baselines, sequence models, continuous\-time neural dynamics, and structurally constrained SciML approaches under a unified experimental framework\(Boxet al\.,[2016](https://arxiv.org/html/2607.09684#bib.bib2); Hochreiter and Schmidhuber,[1997](https://arxiv.org/html/2607.09684#bib.bib11); Chenet al\.,[2018](https://arxiv.org/html/2607.09684#bib.bib4); Raissiet al\.,[2019](https://arxiv.org/html/2607.09684#bib.bib19); Rackauckaset al\.,[2020](https://arxiv.org/html/2607.09684#bib.bib18)\)\.
Rather than assuming that additional structural bias is necessarily beneficial, we examine how different levels of imposed structure interact with noisy, low\-frequency, and regime\-dependent macroeconomic data\. Our goal is not to evaluate theory\-grounded economic structural models, but to diagnose the behavior of heuristic structural priors when applied outside domains with well\-specified governing equations\(Karniadakiset al\.,[2021](https://arxiv.org/html/2607.09684#bib.bib13); Brunton and Kutz,[2022](https://arxiv.org/html/2607.09684#bib.bib3)\)\.
The contributions of this work are as follows:
- •We provide a 23\-country empirical evaluation of SciML methods in macroeconomic forecasting, a domain characterized by sparse, non\-stationary, and behavior\-driven data\.
- •We show that heuristic structural priors in PINN and UDE models do not improve, and often degrade, predictive performance relative to less\-constrained approaches such as ARIMA and NODE\.
- •We identify and characterize four failure modes of physics\-informed learning under non\-stationarity, providing a diagnostic framework for when structural priors may harm rather than help\.
These results suggest that the effectiveness of SciML depends critically on the validity of its underlying assumptions\. In domains where governing equations are uncertain or evolving, flexibility may be more valuable than imposed structure\. This highlights the importance of testing inductive priors empirically rather than assuming their benefit a priori\.
## 2Related Work
#### Macroeconomic forecasting\.
Macroeconomic forecasting has traditionally relied on statistical and econometric models such as ARIMA, VAR, and factor\-based approaches\(Boxet al\.,[2016](https://arxiv.org/html/2607.09684#bib.bib2); Lütkepohl,[2005](https://arxiv.org/html/2607.09684#bib.bib16); Hamilton,[1994](https://arxiv.org/html/2607.09684#bib.bib10)\)\. Early Warning Systems have also been widely studied for predicting financial crises using macroeconomic indicators\(Kaminsky and Reinhart,[1999](https://arxiv.org/html/2607.09684#bib.bib12); Berg and Pattillo,[1999](https://arxiv.org/html/2607.09684#bib.bib1)\)\. More recent work has extended these approaches using machine learning methods to improve macro\-financial modeling and forecasting\(Guet al\.,[2020](https://arxiv.org/html/2607.09684#bib.bib8)\)\. While these methods provide interpretable baselines, their predictive performance remains limited in out\-of\-sample settings, particularly in the presence of structural breaks and regime shifts\(Hamilton,[1989](https://arxiv.org/html/2607.09684#bib.bib9); Caballeroet al\.,[2021](https://arxiv.org/html/2607.09684#bib.bib7)\)\. These limitations motivate the exploration of more flexible modeling approaches\.
#### Machine learning for time series forecasting\.
Recent advances in machine learning have introduced data\-driven approaches for time series forecasting, including recurrent neural networks and attention\-based architectures\(Hochreiter and Schmidhuber,[1997](https://arxiv.org/html/2607.09684#bib.bib11); Goodfellowet al\.,[2016](https://arxiv.org/html/2607.09684#bib.bib6)\)\. More recently, transformer\-based and hybrid architectures have shown strong performance in large\-scale forecasting benchmarks\(Lim and Zohren,[2021](https://arxiv.org/html/2607.09684#bib.bib14); Zenget al\.,[2023](https://arxiv.org/html/2607.09684#bib.bib20); Liuet al\.,[2022](https://arxiv.org/html/2607.09684#bib.bib15)\)\. However, their effectiveness in macroeconomic settings remains constrained by limited data availability, low sampling frequency, and non\-stationarity\(Makridakiset al\.,[2018](https://arxiv.org/html/2607.09684#bib.bib17)\)\. As a result, purely data\-driven models often exhibit overfitting and instability when applied to macroeconomic time series\.
#### Scientific machine learning and physics\-informed modeling\.
Scientific Machine Learning \(SciML\) introduces an alternative paradigm by incorporating structural priors into learning\. Methods such as Neural Ordinary Differential Equations \(NODEs\)\(Chenet al\.,[2018](https://arxiv.org/html/2607.09684#bib.bib4)\), Physics\-Informed Neural Networks \(PINNs\)\(Raissiet al\.,[2019](https://arxiv.org/html/2607.09684#bib.bib19)\), and Universal Differential Equations \(UDEs\)\(Rackauckaset al\.,[2020](https://arxiv.org/html/2607.09684#bib.bib18)\)have demonstrated strong performance in domains where governing equations are known or well\-approximated\(Karniadakiset al\.,[2021](https://arxiv.org/html/2607.09684#bib.bib13); Brunton and Kutz,[2022](https://arxiv.org/html/2607.09684#bib.bib3)\)\. These approaches use structural constraints as inductive biases to improve generalization and data efficiency\. However, their application outside physical sciences remains relatively underexplored\. In particular, few studies systematically evaluate how such structural priors behave in domains characterized by non\-stationarity, regime shifts, and partially observed dynamics\.
#### Positioning of this work\.
This paper contributes to this gap by treating macroeconomic forecasting as a stress\-test domain for SciML\. Unlike prior work that assumes the validity of structural priors, we explicitly evaluate their behavior when such assumptions are uncertain or misaligned with the data\-generating process\. Rather than proposing a new model, our contribution is diagnostic: we provide empirical evidence across 23 countries showing when and why structural priors can degrade performance, and we identify failure modes that are critical for applying SciML methods in non\-physical domains\.
## 3Methodology
### 3\.1Data and State Representation
We construct a multi\-country macroeconomic dataset using publicly available data from the World Bank and IMF databases\. The dataset consists of annual observations for 23 countries spanning multiple regions and economic regimes\. Depending on availability, individual country series cover either the period 1990–2024 \(N=35N=35\) or 1960–2024 \(N=65N=65\)\.
For each country, the macroeconomic system at timettis represented by a five\-dimensional state vector:
𝐮\(t\)=\[GDPUSD\(t\)Y˙\(t\)π\(t\)D\(t\)E\(t\)\]∈ℝ5,\\mathbf\{u\}\(t\)=\\begin\{bmatrix\}\\text\{GDP\}\_\{\\text\{USD\}\}\(t\)\\\\ \\dot\{Y\}\(t\)\\\\ \\pi\(t\)\\\\ D\(t\)\\\\ E\(t\)\\end\{bmatrix\}\\in\\mathbb\{R\}^\{5\},\(1\)
whereGDPUSD\\text\{GDP\}\_\{\\text\{USD\}\}denotes gross domestic product in current U\.S\. dollars,Y˙\\dot\{Y\}is real GDP growth rate \(%\),π\\piis inflation \(%\),DDis government debt as a percentage of GDP, andEEis external debt in U\.S\. dollars\. These variables jointly capture economic scale, growth dynamics, price stability, fiscal stress, and external vulnerability\.
To ensure comparability across variables with different magnitudes, all features are normalized to the interval\[0,1\]\[0,1\]using MinMax scaling\. To prevent data leakage, the scaler is fitted exclusively on the training portion of each country\-level time series and then applied to validation and test data\.
### 3\.2Temporal Split Protocol
To preserve the sequential structure of macroeconomic data, all datasets are split chronologically\. For a country withNNobservations, we define:
Ntrain=⌊0\.70N⌋,Nval=⌊0\.15N⌋,Ntest=N−Ntrain−Nval\.N\_\{\\text\{train\}\}=\\lfloor 0\.70N\\rfloor,\\quad N\_\{\\text\{val\}\}=\\lfloor 0\.15N\\rfloor,\\quad N\_\{\\text\{test\}\}=N\-N\_\{\\text\{train\}\}\-N\_\{\\text\{val\}\}\.\(2\)
In addition to this default split, robustness checks are performed using alternative partitions of 65/15/20 and 80/10/10\.
For sequence\-based models, including LSTM and PINN, inputs are constructed using sliding windows of lengthL=5L=5\. To maintain strict temporal separation, test sequences are initialized using the finalLLobservations from the validation set, ensuring that no test data is included within any training input window\.
#### On structural priors\.
The structural constraints used in this study are heuristic and not derived from formal macroeconomic theory such as DSGE or RBC models\. Instead, they are simplified assumptions designed to test the effect of embedding structure into learning\. This distinction is important: our goal is not to evaluate physics\-informed modeling in its full theoretical form, but to examine how generic structural priors behave when applied to macroeconomic data\. As a result, our conclusions should be interpreted as a diagnostic of prior misalignment rather than a general critique of theory\-driven modeling\.
### 3\.3Modeling Approaches
We evaluate five modeling paradigms that span classical statistical forecasting, data\-driven sequence learning, continuous\-time dynamics, and physics\-informed learning\.
#### ARIMA\.
As a statistical baseline, we fit a univariate ARIMA\(1,1,1\) model independently for each macroeconomic indicator\. The model is trained on the combined training and validation data and evaluated using one\-step\-ahead rolling forecasts over the test period\. Due to its deterministic nature, ARIMA does not require averaging across random seeds\.
#### LSTM\.
To capture temporal dependencies directly from data, we use a sequence\-based LSTM model\. Given a window of past observations, the model predicts the next macroeconomic state:
𝐮^\(t\+1\)=fLSTM\(𝐮\(t−L\+1:t\)\)\.\\hat\{\\mathbf\{u\}\}\(t\+1\)=f\_\{\\text\{LSTM\}\}\\big\(\\mathbf\{u\}\(t\-L\+1:t\)\\big\)\.\(3\)
The architecture consists of a two\-layer LSTM with hidden size 64 and dropout 0\.15, followed by a linear output layer\. The model is trained using the Adam optimizer with learning rateη=8×10−4\\eta=8\\times 10^\{\-4\}and weight decay10−310^\{\-3\}, with early stopping based on validation loss\.
#### Neural ODE \(NODE\)\.
To model macroeconomic dynamics in continuous time, we use a Neural Ordinary Differential Equation defined as:
d𝐮dt=fθ\(𝐮\),\\frac\{d\\mathbf\{u\}\}\{dt\}=f\_\{\\theta\}\(\\mathbf\{u\}\),\(4\)
wherefθ:ℝ5→ℝ5f\_\{\\theta\}:\\mathbb\{R\}^\{5\}\\rightarrow\\mathbb\{R\}^\{5\}is a neural network parameterizing the system dynamics\. The vector field is implemented as a two\-layer multilayer perceptron with 32 hidden units and Tanh activations\.
The system is numerically integrated using a fixed\-step Runge–Kutta \(RK4\) solver\. To improve stability on sparse annual data, we employ a multiple\-shooting training strategy:
ℒNODE=1K∑k=1K‖Φtk→tk\+S\(𝐮tk\)−𝐮tk:tk\+S‖2\+λcℒcont,\\mathcal\{L\}\_\{\\text\{NODE\}\}=\\frac\{1\}\{K\}\\sum\_\{k=1\}^\{K\}\\left\\\|\\Phi\_\{t\_\{k\}\\rightarrow t\_\{k\}\+S\}\(\\mathbf\{u\}\_\{t\_\{k\}\}\)\-\\mathbf\{u\}\_\{t\_\{k\}:t\_\{k\}\+S\}\\right\\\|^\{2\}\+\\lambda\_\{c\}\\mathcal\{L\}\_\{\\text\{cont\}\},\(5\)
whereΦ\\Phidenotes the numerical flow map, andℒcont\\mathcal\{L\}\_\{\\text\{cont\}\}penalizes discontinuities between segments\.
#### PINN \(heuristic structural priors\)\.
The PINN model augments data\-driven learning with soft structural constraints\. The total loss is defined as:
ℒPINN=ℒdata\+λϕℒprior,\\mathcal\{L\}\_\{\\text\{PINN\}\}=\\mathcal\{L\}\_\{\\text\{data\}\}\+\\lambda\_\{\\phi\}\\mathcal\{L\}\_\{\\text\{prior\}\},\(6\)
whereℒprior\\mathcal\{L\}\_\{\\text\{prior\}\}encodes heuristic relationships between macroeconomic variables:
ℒprior=14∑i=14‖ℛi‖2\.\\mathcal\{L\}\_\{\\text\{prior\}\}=\\frac\{1\}\{4\}\\sum\_\{i=1\}^\{4\}\\\|\\mathcal\{R\}\_\{i\}\\\|^\{2\}\.\(7\)
The residualsℛi\\mathcal\{R\}\_\{i\}represent simplified assumptions including debt\-growth interaction, growth mean\-reversion, inflation–debt coupling, and GDP smoothness\. These residuals are computed using finite\-difference approximations on predicted trajectories\.
Unlike standard PINN formulations that rely on automatic differentiation and known governing equations\(Raissiet al\.,[2019](https://arxiv.org/html/2607.09684#bib.bib19)\), our implementation uses finite differences due to the discrete and low\-frequency nature of macroeconomic data\. This design choice reflects the absence of a continuous and well\-specified underlying system, and allows us to evaluate how approximate structural priors interact with data\-driven learning\.
#### UDE \(hybrid structural model\)\.
The UDE combines a predefined structural component with a learned residual:
d𝐮dt=fknown\(𝐮\)\+fθ\(𝐮\)\.\\frac\{d\\mathbf\{u\}\}\{dt\}=f\_\{\\text\{known\}\}\(\\mathbf\{u\}\)\+f\_\{\\theta\}\(\\mathbf\{u\}\)\.\(8\)
The known component encodes simplified macroeconomic relationships, while the neural component captures deviations from this structure\. To avoid overwhelming the learned dynamics, the residual network is initialized with small weights so that training begins close to the predefined system\.
As with the PINN formulation, the structural component is intuitive rather than theory\-derived\. This allows us to evaluate whether partially specified dynamics improve forecasting performance in the presence of limited and noisy data\.
### 3\.4Evaluation Protocol
All models are evaluated on the normalized scale to ensure a fair comparison across countries and features\. The primary metric is the coefficient of determination \(R2R^\{2\}\), computed as
R2=1−∑t\(ut−u^t\)2∑t\(ut−u¯\)2\.R^\{2\}=1\-\\frac\{\\sum\_\{t\}\(u\_\{t\}\-\\hat\{u\}\_\{t\}\)^\{2\}\}\{\\sum\_\{t\}\(u\_\{t\}\-\\bar\{u\}\)^\{2\}\}\.\(9\)We report the meanR2R^\{2\}across all five features for each country\. For stochastic models \(LSTM, NODE, UDE, and PINN\), results are averaged over five random seeds\{42,7,123,2024,999\}\\\{42,7,123,2024,999\\\}and reported as mean±\\pmstandard deviation\.
For continuous\-time models, including NODE and UDE, evaluation is performed in a one\-step\-ahead setting: given the observed state𝐮\(t\)\\mathbf\{u\}\(t\), the learned dynamics are integrated forward by one year to predict𝐮\(t\+1\)\\mathbf\{u\}\(t\+1\)\. This design keeps the forecasting task comparable across models while still allowing continuous\-time methods to operate in their natural dynamical setting\.
### 3\.5Leakage Prevention
Because macroeconomic time series are short and highly structured, preventing leakage is essential\. Three safeguards are enforced throughout the pipeline\. First, scaler leakage is prevented by fitting the MinMax scaler only on the training segment\. Second, sequence boundary leakage is avoided by constructing validation and test windows so that no future target appears in any input window\. Third, hyperparameter leakage is controlled by fixing model settings before test evaluation and using validation performance only for early stopping and model selection\. These measures ensure that all reported results reflect genuine out\-of\-sample behavior rather than information inadvertently transferred from future data\.
We note that macroeconomic forecasting under these conditions is inherently difficult, and many models evaluated in this study achieve negativeR2R^\{2\}values, indicating performance below naive baselines\. Our focus is therefore on relative model behavior rather than absolute predictive success\.
## 4Results
In this section, we evaluate the performance of all models across 23 countries using multiple temporal splits\. We focus on both predictive accuracy and model stability, with particular attention to how different modeling paradigms behave under low\-data macroeconomic conditions\. Results are analyzed through quantitative metrics \(R2R^\{2\}, RMSE, MAPE\) as well as qualitative trajectory reconstruction\.
Table 1:Comparison of model performance across 23 countries under the 70/15/15 temporal split\. Values report meanR2R^\{2\}±\\pmstandard deviation over five random seeds\. The best\-performing model for each country is highlighted in bold\.### 4\.1Main Comparison
Table[1](https://arxiv.org/html/2607.09684#S4.T1)presents the primary results across all 23 countries under the 70/15/15 temporal split, reporting meanR2R^\{2\}±\\pmstandard deviation over five random seeds\.
A first and important observation is that macroeconomic forecasting in this setting is intrinsically difficult\. Across all models and countries, the majority ofR2R^\{2\}values are negative, indicating that most approaches perform worse than a naive baseline that predicts the mean\. This highlights the challenge posed by sparse annual data, non\-stationarity, and structural breaks\.
As shown in Figure[1](https://arxiv.org/html/2607.09684#S4.F1), this difficulty is not confined to isolated failure cases, but appears systematically across model families\. The distribution of testR2R^\{2\}values reveals that ARIMA and Neural ODE \(NODE\) achieve comparatively higher median performance with narrower spread, while structurally constrained models such as PINN and UDE exhibit both lower central performance and substantially greater variance\. The presence of multiple clipped outliers below−20\-20further suggests catastrophic failures in certain country\-model combinations, particularly for heavily constrained architectures\.
Figure 1:Distribution of testR2R^\{2\}across 23 countries\. ARIMA and NODE achieve higher median performance, while PINN and UDE show lower medians and higher variability\. Values below−20\-20are clipped for visualization\.Despite this, a consistent relative hierarchy emerges across model families\. Less\-constrained models, particularly ARIMA and Neural ODE \(NODE\), outperform more\-constrained approaches such as PINN and UDE in the majority of countries\. This pattern is robust across both stable and volatile macroeconomic regimes\.
The dominance of ARIMA should be interpreted carefully\. Under the one\-step\-ahead evaluation protocol, ARIMA benefits from conditioning directly on the most recent observed value at each timestep\. This creates a structural advantage in short test windows\. However, the more informative comparison is within the neural model family\. Here, NODE consistently outperforms both PINN and UDE, despite not enforcing explicit structural constraints\.
This result is central to our study\. While PINN and UDE introduce structural priors intended to regularize learning, these constraints do not improve performance in practice\. Instead, they often degrade predictive accuracy, particularly in countries experiencing volatility, crisis events, or regime shifts\. In such settings, the imposed priors are frequently misaligned with the underlying data\-generating process\.
Importantly, the underperformance of structured models is not limited to accuracy alone\. As shown in Table[1](https://arxiv.org/html/2607.09684#S4.T1), PINN exhibits both large negativeR2R^\{2\}values and high variance across random seeds, indicating unstable optimization\. UDE shows a similar but less extreme pattern\. This suggests that the introduction of structural constraints can increase sensitivity to initialization and amplify training instability\.
Taken together, these results support a key conclusion: in macroeconomic systems characterized by sparse, noisy, and evolving dynamics, structural priors do not necessarily improve learning\. When the assumed structure is incorrect or incomplete, it can act as a source of bias rather than a useful inductive guide\. In contrast, models that preserve flexibility, such as NODE, are better able to adapt to observed data, even under limited training conditions\.
### 4\.2Uncertainty and Stability Analysis
Figure[2](https://arxiv.org/html/2607.09684#S4.F2)evaluates model stability by showing prediction confidence bands across five random seeds for representative countries\. This analysis complements the aggregate metrics by assessing reproducibility and sensitivity to initialization\.
A clear pattern emerges across models\. ARIMA produces deterministic predictions with zero variance, while NODE exhibits consistently narrow confidence bands, indicating stable and reproducible dynamics\. In contrast, models with structural priors show significantly higher uncertainty\. PINN produces the widest bands, particularly in volatile and crisis\-affected economies, while UDE exhibits intermediate variability\.
This behavior reflects the interaction between structural constraints and data\. When the imposed priors are approximately aligned with the observed dynamics, their effect is limited\. However, in the presence of structural breaks or regime changes, these constraints introduce gradients that conflict with the data, leading to unstable training and divergence across random seeds\.
The key insight is that structural priors do not automatically improve robustness\. In this setting, they often increase variance rather than reduce it\. This provides further evidence that the effectiveness of inductive bias depends critically on its alignment with the underlying system\.
Figure 2:Prediction confidence bands \(mean±\\pm1 standard deviation across five seeds\) for representative economies\. NODE exhibits consistently narrow bands, indicating stable dynamics, while PINN shows wide bands in volatile regimes, reflecting instability\. UDE is intermediate and ARIMA is deterministic\.
### 4\.3Robustness Across Temporal Splits
Figure[3](https://arxiv.org/html/2607.09684#S4.F3)examines whether the observed model behavior depends on the choice of temporal split\. Across all evaluated configurations, the relative ranking of model families remains consistent\.
Less\-constrained models, particularly ARIMA and NODE, continue to outperform more\-constrained approaches such as PINN and UDE\. While absoluteR2R^\{2\}values vary as the size of the training set changes, the overall hierarchy is preserved\.
This consistency is important because it rules out the possibility that the results are driven by a particular train\-test boundary\. Instead, the observed patterns reflect systematic differences in how model assumptions interact with macroeconomic data characteristics\.
In particular, the persistent underperformance of PINN and UDE across splits suggests that their limitations are structural rather than incidental\. When the imposed priors do not match the underlying dynamics, increasing or decreasing the amount of training data does not resolve the mismatch\.
Figure 3:TestR2R^\{2\}across different temporal splits \(70/15/15, 65/15/20, 80/10/10\)\. Model rankings remain consistent, with ARIMA and NODE outperforming PINN and UDE, indicating robustness to split choice\.
### 4\.4Ablation of Structural Priors
To determine whether the poor performance of physics\-informed models arises from the neural architecture itself or from the imposed structural constraints, we perform an ablation study on the PINN formulation by removing the physics\-informed loss term while keeping the underlying predictive architecture unchanged\.
Figure[4](https://arxiv.org/html/2607.09684#S4.F4)shows that removing the structural penalty improves predictive performance in the majority of countries\. In panel \(a\), most points lie below the diagonal, indicating that the full PINN performs worse than its unconstrained counterpart\. Panel \(b\) quantifies the country\-level impact, showing substantial degradation in several economies including Peru, Egypt, Vietnam, and Argentina\.
This result provides direct evidence that the imposed heuristic structural priors are not merely ineffective, but actively harmful in many macroeconomic settings\. Rather than regularizing learning toward meaningful dynamics, the physics penalty can introduce systematic bias when the assumed relationships do not align with observed economic behavior\.
This strengthens the interpretation that prior misalignment, rather than model capacity alone, is a key explanation for the underperformance of structurally constrained approaches in this study\.
Figure 4:PINN ablation analysis\. \(a\) Comparison of full PINN performance against a variant without the physics\-informed loss term\. Points below the diagonal indicate that removing the structural constraint improves performance\. \(b\) Country\-level change in testR2R^\{2\}after removing the physics penalty\. Negative values indicate degradation caused by the imposed heuristic prior\.
### 4\.5Failure Modes of Structural Priors
Based on the empirical results, we identify four recurring failure modes that explain the behavior of models with structural priors:
\(1\) Prior misalignment\.The imposed structural constraints do not accurately reflect the true macroeconomic relationships, leading to biased predictions\.
\(2\) Regime shifts\.Sudden changes in economic conditions violate assumptions of smooth dynamics, causing structured models to fail\.
\(3\) Structural breaks\.Discontinuities in the data, such as crises or policy shocks, are incompatible with the continuity assumptions embedded in the priors\.
\(4\) Optimization instability\.The interaction between data loss and prior loss introduces conflicting gradients, increasing sensitivity to initialization and training instability\.
These failure modes provide a diagnostic framework for understanding when structural priors may harm rather than help model performance in non\-physical domains\.
## 5Conclusion
This work presents a diagnostic study of scientific machine learning methods in macroeconomic forecasting, using a 23\-country dataset as a stress\-test environment\. Across all models and countries, forecasting performance remains weak in absolute terms, with mostR2R^\{2\}values being negative\. This highlights the inherent difficulty of modeling sparse, low\-frequency, and non\-stationary macroeconomic data\.
Despite this, a consistent relative pattern emerges\. Less\-constrained models, particularly ARIMA and Neural ODE \(NODE\), outperform more\-constrained approaches such as PINN and UDE across the majority of countries and temporal splits\. The gap is especially pronounced in volatile and crisis\-affected regimes\. These findings suggest that the introduction of heuristic structural priors does not necessarily improve learning in practice, and can instead reduce both accuracy and stability when the assumed structure is not aligned with the data\-generating process\.
We interpret these results as a diagnostic rather than a general statement on the effectiveness of SciML\. In domains where governing dynamics are uncertain, evolving, or partially observed, structural priors may act as misregularizers rather than useful inductive biases\. This highlights the importance of empirically validating model assumptions and carefully selecting the level of imposed structure when applying SciML methods to real\-world, non\-physical systems\.
## 6Acknowledgement
The authors acknowledge the use of artificial intelligence \(AI\)\-assisted tools for language refinement, grammar correction, and improving the readability of portions of this manuscript\.
## References
- Predicting currency crises: the indicators approach and an alternative\.Journal of International Money and Finance18\(4\),pp\. 561–586\.Cited by:[§1](https://arxiv.org/html/2607.09684#S1.p1.1),[§1](https://arxiv.org/html/2607.09684#S1.p2.1),[§2](https://arxiv.org/html/2607.09684#S2.SS0.SSS0.Px1.p1.1)\.
- G\. E\. P\. Box, G\. M\. Jenkins, G\. C\. Reinsel, and G\. M\. Ljung \(2016\)Time series analysis: forecasting and control\.5th edition,Wiley,Hoboken, NJ\.Cited by:[§1](https://arxiv.org/html/2607.09684#S1.p2.1),[§1](https://arxiv.org/html/2607.09684#S1.p6.1),[§2](https://arxiv.org/html/2607.09684#S2.SS0.SSS0.Px1.p1.1)\.
- S\. L\. Brunton and J\. N\. Kutz \(2022\)Data\-driven science and engineering: machine learning, dynamical systems, and control\.2 edition,Cambridge University Press,Cambridge\.Cited by:[§1](https://arxiv.org/html/2607.09684#S1.p3.1),[§1](https://arxiv.org/html/2607.09684#S1.p7.1),[§2](https://arxiv.org/html/2607.09684#S2.SS0.SSS0.Px3.p1.1)\.
- R\. J\. Caballero, E\. Farhi, and P\. Gourinchas \(2021\)Global imbalances and policy wars at the zero lower bound\.Review of Economic Studies88\(6\),pp\. 2570–2621\.Cited by:[§1](https://arxiv.org/html/2607.09684#S1.p1.1),[§2](https://arxiv.org/html/2607.09684#S2.SS0.SSS0.Px1.p1.1)\.
- R\. T\. Q\. Chen, Y\. Rubanova, J\. Bettencourt, and D\. Duvenaud \(2018\)Neural ordinary differential equations\.InAdvances in Neural Information Processing Systems,Vol\.31\.Cited by:[§1](https://arxiv.org/html/2607.09684#S1.p3.1),[§1](https://arxiv.org/html/2607.09684#S1.p6.1),[§2](https://arxiv.org/html/2607.09684#S2.SS0.SSS0.Px3.p1.1)\.
- J\. D\. Farmer and D\. Foley \(2009\)The economy needs agent\-based modelling\.Nature460\(7256\),pp\. 685–686\.Cited by:[§1](https://arxiv.org/html/2607.09684#S1.p4.1),[§1](https://arxiv.org/html/2607.09684#S1.p6.1)\.
- I\. Goodfellow, Y\. Bengio, and A\. Courville \(2016\)Deep learning\.MIT Press\.Cited by:[§1](https://arxiv.org/html/2607.09684#S1.p2.1),[§2](https://arxiv.org/html/2607.09684#S2.SS0.SSS0.Px2.p1.1)\.
- S\. Gu, B\. Kelly, and D\. Xiu \(2020\)Empirical asset pricing via machine learning\.Review of Financial Studies33\(5\),pp\. 2223–2273\.Cited by:[§2](https://arxiv.org/html/2607.09684#S2.SS0.SSS0.Px1.p1.1)\.
- J\. D\. Hamilton \(1989\)A new approach to the economic analysis of nonstationary time series and the business cycle\.Econometrica57\(2\),pp\. 357–384\.Cited by:[§1](https://arxiv.org/html/2607.09684#S1.p2.1),[§1](https://arxiv.org/html/2607.09684#S1.p4.1),[§1](https://arxiv.org/html/2607.09684#S1.p6.1),[§2](https://arxiv.org/html/2607.09684#S2.SS0.SSS0.Px1.p1.1)\.
- J\. D\. Hamilton \(1994\)Time series analysis\.Princeton University Press,Princeton, NJ\.Cited by:[§1](https://arxiv.org/html/2607.09684#S1.p2.1),[§2](https://arxiv.org/html/2607.09684#S2.SS0.SSS0.Px1.p1.1)\.
- S\. Hochreiter and J\. Schmidhuber \(1997\)Long short\-term memory\.Neural Computation9\(8\),pp\. 1735–1780\.Cited by:[§1](https://arxiv.org/html/2607.09684#S1.p2.1),[§1](https://arxiv.org/html/2607.09684#S1.p6.1),[§2](https://arxiv.org/html/2607.09684#S2.SS0.SSS0.Px2.p1.1)\.
- G\. L\. Kaminsky and C\. M\. Reinhart \(1999\)The twin crises: the causes of banking and balance\-of\-payments problems\.American Economic Review89\(3\),pp\. 473–500\.Cited by:[§1](https://arxiv.org/html/2607.09684#S1.p1.1),[§2](https://arxiv.org/html/2607.09684#S2.SS0.SSS0.Px1.p1.1)\.
- G\. E\. Karniadakis, I\. G\. Kevrekidis, L\. Lu, P\. Perdikaris, S\. Wang, and L\. Yang \(2021\)Physics\-informed machine learning\.Nature Reviews Physics3\(6\),pp\. 422–440\.Cited by:[§1](https://arxiv.org/html/2607.09684#S1.p3.1),[§1](https://arxiv.org/html/2607.09684#S1.p7.1),[§2](https://arxiv.org/html/2607.09684#S2.SS0.SSS0.Px3.p1.1)\.
- B\. Lim and S\. Zohren \(2021\)Time\-series forecasting with deep learning: a survey\.Philosophical Transactions of the Royal Society A379\(2194\),pp\. 20200209\.Cited by:[§1](https://arxiv.org/html/2607.09684#S1.p2.1),[§2](https://arxiv.org/html/2607.09684#S2.SS0.SSS0.Px2.p1.1)\.
- Y\. Liu, H\. Wu, J\. Wang, and M\. Long \(2022\)Non\-stationary transformers: exploring the stationarity in time series forecasting\.InAdvances in Neural Information Processing Systems,Vol\.35,pp\. 9881–9893\.Cited by:[§1](https://arxiv.org/html/2607.09684#S1.p2.1),[§2](https://arxiv.org/html/2607.09684#S2.SS0.SSS0.Px2.p1.1)\.
- H\. Lütkepohl \(2005\)New introduction to multiple time series analysis\.Springer,Berlin\.Cited by:[§1](https://arxiv.org/html/2607.09684#S1.p2.1),[§2](https://arxiv.org/html/2607.09684#S2.SS0.SSS0.Px1.p1.1)\.
- S\. Makridakis, E\. Spiliotis, and V\. Assimakopoulos \(2018\)Statistical and machine learning forecasting methods: concerns and ways forward\.PLOS ONE13\(3\),pp\. e0194889\.Cited by:[§1](https://arxiv.org/html/2607.09684#S1.p2.1),[§1](https://arxiv.org/html/2607.09684#S1.p6.1),[§2](https://arxiv.org/html/2607.09684#S2.SS0.SSS0.Px2.p1.1)\.
- C\. Rackauckas, Y\. Ma, J\. Martensen, C\. Warner, K\. Zubov, R\. Supekar, D\. Skinner, A\. Ramadhan, and A\. Edelman \(2020\)Universal differential equations for scientific machine learning\.arXiv preprint arXiv:2001\.04385\.Cited by:[§1](https://arxiv.org/html/2607.09684#S1.p3.1),[§1](https://arxiv.org/html/2607.09684#S1.p6.1),[§2](https://arxiv.org/html/2607.09684#S2.SS0.SSS0.Px3.p1.1)\.
- M\. Raissi, P\. Perdikaris, and G\. E\. Karniadakis \(2019\)Physics\-informed neural networks: a deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations\.Journal of Computational Physics378,pp\. 686–707\.Cited by:[§1](https://arxiv.org/html/2607.09684#S1.p3.1),[§1](https://arxiv.org/html/2607.09684#S1.p6.1),[§2](https://arxiv.org/html/2607.09684#S2.SS0.SSS0.Px3.p1.1),[§3\.3](https://arxiv.org/html/2607.09684#S3.SS3.SSS0.Px4.p6.1)\.
- A\. Zeng, M\. Chen, L\. Zhang, and Q\. Xu \(2023\)Are transformers effective for time series forecasting?\.InProceedings of the AAAI Conference on Artificial Intelligence,Vol\.37,pp\. 11121–11128\.Cited by:[§1](https://arxiv.org/html/2607.09684#S1.p2.1),[§2](https://arxiv.org/html/2607.09684#S2.SS0.SSS0.Px2.p1.1)\.
## Appendix AAppendix
#### Extended Results
The extended experimental results and supplementary visual analyses are presented on the following page\.
Note on country coverage\.The primary analysis in the main paper is restricted to a standardized 23\-country benchmark in order to ensure comparability across countries, indicators, temporal splits, and model evaluation procedures\. During the broader experimental phase, we also evaluated additional countries, including Kenya and Poland\. These results are reported in the appendix as exploratory supplementary analyses rather than as part of the core benchmark, because they were not used in the final standardized comparison presented in the main text\. We retain them to demonstrate the broader scope of the experimental pipeline, while reserving the full expanded country set and additional visual analyses for a future journal\-length version of this work\.
Data Sources\.All country\-level macroeconomic and development indicators used in this analysis were sourced from two publicly available databases\. Specifically:
- •
- •
Figure 5:Full test R2results across all 25 countries and five model families\.Results are shown for the 70/15/15 temporal split, averaged over 5 random seeds\. Values are clipped at−30\-30for display; cells at−30\-30may represent substantially worse performance\. Countries are sorted by ARIMA R2in descending order\. Green indicates R2near zero or positive; red indicates severe underfitting relative to a mean baseline\. ARIMA achieves the least\-negative R2in 24 of 25 countries\. PINN exhibits extreme degradation in volatile economies such as Egypt, Bangladesh, and Kenya, while NODE is the second\-best method in the majority of countries, achieving positive R2in India and Nigeria\.Figure 6:Per\-country model ranking based on mean test R2\(70/15/15 split\)\.Rank 1 \(green\) indicates the highest R2; Rank 5 \(red\) indicates the worst\. The hierarchy is consistent across the 25 countries studied: ARIMA ranks first in 24 of 25 countries \(NODE ranks first in India\); NODE is ranked second in 16 countries; PINN and LSTM consistently occupy the bottom two positions, with LSTM ranking fifth in 15 countries and PINN ranking fourth or fifth in most countries\. This near\-total ordering across diverse economic regimes supports the interpretation that increased structural constraint systematically degrades forecasting performance in this domain\.Figure 7:Full test RMSE results across all 25 countries and five model families\.Results are shown for the 70/15/15 temporal split, mean over 5 seeds, on the normalised feature scale\. Values are clipped at3\.03\.0for display; cells marked “\>3\>3” exceed this threshold\. Countries are sorted by ARIMA RMSE in ascending order\. Because R2can become strongly negative when prediction variance is large relative to target variance—masking the absolute scale of errors—RMSE provides a complementary view of model quality\. Under RMSE, ARIMA and NODE remain the consistently lowest\-error methods, while LSTM and UDE show the highest absolute errors\. PINN errors are moderate in absolute terms despite catastrophic R2, reflecting the fact that PINN predictions track the range of the data but fail to capture its temporal structure\.Figure 8:Split robustness: test R2across three temporal split configurations for all 25 countries\.Split configurations are 70/15/15, 65/15/20, and 80/10/10\. Shaded bands show±1\\pm 1standard deviation across 5 seeds; values are clipped at−20\-20\. The relative model hierarchy \(ARIMA≥\\geqNODE\>\>UDE\>\>PINN≥\\geqLSTM\) is preserved across splits in the large majority of countries, confirming that results are not an artefact of a particular training–test boundary\. Countries such as India, Turkey, and Colombia exhibit stable ordering across splits, while Brazil, Peru, and Ukraine show high sensitivity consistent with structural breaks and regime shifts\.Figure 9:PINN performance gap as a function of macroeconomic volatility\.Each point represents one country\. Theyy\-axis reports the testR2R^\{2\}advantage of NODE \(left\) and ARIMA \(right\) over PINN, so positive values indicate that the reference model outperforms PINN\. The relationship between GDP growth volatility and the PINN performance gap is weak in both panels \(r=−0\.20r=\-0\.20for NODE–PINN andr=−0\.11r=\-0\.11for ARIMA–PINN\), suggesting that volatility alone does not fully explain PINN degradation\. Instead, the large positive gaps in several countries indicate that PINN underperformance is likely driven by a combination of prior misalignment, structural breaks, and optimization instability rather than by growth volatility alone\.Figure 10:UDE component ablation: neural correction value across 23 countries\.*\(a\)*Scatter of full UDE R2vs\. UDE without the learned neural correction term\. Points below the diagonal indicate that removing the neural correction*improves*performance\.*\(b\)*Per\-countryΔ\\DeltaR2==\(Full UDE\)−\-\(UDE\-no\-neural\)\. Negative values \(purple\) confirm the neural correction is detrimental in 18 of 23 countries\. This suggests the learned correction does not meaningfully reduce the residual error left by the structural ODE terms; instead it introduces additional fitting noise amplified by the already misspecified physics prior\. Brazil, Ukraine, and Indonesia exhibit the largest negative impact\.Figure 11:Optimisation instability across random seeds \(70/15/15 split, 23 countries\)\.\(a\) Distribution of per\-country testR2R^\{2\}variability across five random seeds for each stochastic model, measuring sensitivity to initialization\. \(b\) Mean optimisation instability across all 23 countries, with error bars indicating uncertainty across countries\. ARIMA is deterministic and therefore exhibits zero variability\. UDE shows the highest instability \(μ=134\.2\\mu=134\.2\), driven by catastrophic divergence in countries such as Peru, Brazil, and Ukraine\. NODE is substantially more stable \(μ=23\.1\\mu=23\.1\), while LSTM shows intermediate instability \(μ=35\.4\\mu=35\.4\) and PINN remains comparatively lower \(μ=17\.6\\mu=17\.6\)\. The pronounced instability of UDE suggests that hybrid structural priors can introduce conflicting optimisation signals, making training substantially less stable\.Similar Articles
Unveiling Multi-regime Patterns in SciML: Distinct Failure Modes and Regime-specific Optimization
This paper identifies a consistent three-regime structure in scientific machine learning models, showing that optimization effectiveness is regime-specific and can challenge conventional loss-landscape interpretations. It proposes a regime-aware diagnostic framework validated across PINNs, neural operators, and neural ODEs.
Leveraging Biokinetic Knowledge Priors for Data-Scarce Bioprocess Modeling
This paper presents the first systematic study of injecting biokinetic ODE knowledge into neural networks for bioprocess modeling, comparing simulation pre-training and architecture-level priors, finding they are substitutable and effective under data scarcity.
On the Limits of LLM Adaptability: Impact of Model-Internalized Priors on Annotation Task Performance
This paper investigates how LLMs' internal priors affect zero-shot annotation performance, finding that nearly two-thirds of errors resist prompt-based correction and introducing Definition-Specific Familiarity as a better predictor than memorization metrics.
Revisiting LLM Adaptation for 3D CT Report Generation: A Study of Scaling and Diagnostic Priors
This paper investigates parameter-efficient strategies for adapting large language models to 3D CT report generation, introducing RAD3D-Prefix, a lightweight diagnostic-prior conditioning framework that keeps the LLM frozen and requires minimal trainable parameters. It shows that freezing larger LLMs (~1B+) and training only lightweight projection layers provides a superior trade-off between performance, generalization, and computational efficiency.
Model Capability Dominates: Inference-Time Optimization Lessons from AIMO 3
This paper analyzes inference-time optimization techniques for AIMO 3, finding that model capability dominates over prompt engineering and diverse sampling strategies. The study reveals that high-temperature sampling already decorrelates errors maximally, leaving no room for prompt-based improvements, and identifies a 6-point selection loss gap between individual model pass@20 and majority voting consensus.