A Two‐Stage Training Method for Modeling Constrained Systems With Neural Networks

ABSTRACT Real‐world systems are often formulated as constrained optimization problems. Techniques to incorporate constraints into neural networks (NN), such as neural ordinary differential equations (Neural ODEs), have been used. However, these introduce hyperparameters that require manual tuning through trial and error, raising doubts about the successful incorporation of constraints into the generated model. This paper describes in detail the two‐stage training method for Neural ODEs, a simple, effective, and penalty parameter‐free approach to model constrained systems. In this approach, the constrained optimization problem is rewritten as two optimization subproblems that are solved in two stages. The first stage aims at finding feasible NN parameters by minimizing a measure of constraints violation. The second stage aims to find the optimal NN parameters by minimizing the loss function while keeping inside the feasible region. We experimentally demonstrate that our method produces models that satisfy the constraints and also improves their predictive performance, thus ensuring compliance with critical system properties and also contributing to reducing data quantity requirements. Furthermore, we show that the proposed method improves the convergence to an optimal solution and improves the explainability of Neural ODE models. Our proposed two‐stage training method can be used with any NN architectures.

Authors

Institutions

Publication Details

Journal
Journal of Forecasting
Published
2025-03-23
DOI
https://doi.org/10.1002/for.3270
Citations
1
Primary Topic
Model Reduction and Neural Networks
Type
article
Field-Weighted Citation Impact
1.32
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Two‐Stage Training Method for Modeling Constrained Systems With Neural Networks

L. L. Ferrás, M. Fernanda P. Costa, C. Coelho
1 citations
Journal of Forecasting
Model Reduction and Neural Networks
1.32
article

A Two‐Stage Training Method for Modeling Constrained Systems With Neural Networks

L. L. Ferrás, M. Fernanda P. Costa, C. Coelho
article en
1 citations

Abstract

ABSTRACT Real‐world systems are often formulated as constrained optimization problems. Techniques to incorporate constraints into neural networks (NN), such as neural ordinary differential equations (Neural ODEs), have been used. However, these introduce hyperparameters that require manual tuning through trial and error, raising doubts about the successful incorporation of constraints into the generated model. This paper describes in detail the two‐stage training method for Neural ODEs, a simple, effective, and penalty parameter‐free approach to model constrained systems. In this approach, the constrained optimization problem is rewritten as two optimization subproblems that are solved in two stages. The first stage aims at finding feasible NN parameters by minimizing a measure of constraints violation. The second stage aims to find the optimal NN parameters by minimizing the loss function while keeping inside the feasible region. We experimentally demonstrate that our method produces models that satisfy the constraints and also improves their predictive performance, thus ensuring compliance with critical system properties and also contributing to reducing data quantity requirements. Furthermore, we show that the proposed method improves the convergence to an optimal solution and improves the explainability of Neural ODE models. Our proposed two‐stage training method can be used with any NN architectures.

Journal of Forecasting
Universidade do Porto (PT), University of Minho (PT)
Openalex Percentile: Top 21%
Model Reduction and Neural Networks
1.32
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

A Two‐Stage Training Method for Modeling Constrained Systems With Neural Networks — L. L. Ferrás, M. Fernanda P. Costa, et al. · Journal of Forecasting (2025) | TGRS Research Map | TGRS