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

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Coelho, C., Costa, M. Fernanda P., Ferrás, L. L.
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866916662462119936
author Coelho, C.
Costa, M. Fernanda P.
Ferrás, L. L.
author_facet Coelho, C.
Costa, M. Fernanda P.
Ferrás, L. L.
contents 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 unconstrained sub-problems 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.
format Preprint
id arxiv_https___arxiv_org_abs_2403_02730
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle A Two-Stage Training Method for Modeling Constrained Systems With Neural Networks
Coelho, C.
Costa, M. Fernanda P.
Ferrás, L. L.
Machine Learning
Computational Engineering, Finance, and Science
Optimization and Control
35A01, 65L10, 65L12, 65L20, 65L70
I.5.1; G.1.6
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 unconstrained sub-problems 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.
title A Two-Stage Training Method for Modeling Constrained Systems With Neural Networks
topic Machine Learning
Computational Engineering, Finance, and Science
Optimization and Control
35A01, 65L10, 65L12, 65L20, 65L70
I.5.1; G.1.6
url https://arxiv.org/abs/2403.02730