Learning Changes the World and Then What Was Learned has Changed: Training and Deploying Neural Networks in the Control Loop
Organizations: Calejo Hybrid Intelligence AB, Mellansjö 109, 92592 Tärnaby, Sweden
Abstract
Neural networks offer critical adaptability for controlling complex systems where nominal modeling proves intractable. However, when offline-trained neural networks are deployed within closed-loop control systems, their actions fundamentally alter the state distribution upon which they were trained. This paper introduces a unified taxonomy to categorize these sequential failure modes: the initial Closed-Loop Identification Error, the deployment-induced Action Error, and the continuous Tracking Error. Through discrete-time sensitivity analysis, this work formalizes how offline-learned parameters locally guarantee a trajectory divergence upon deployment, degrading performance due to local loss geometry. To mitigate this distribution shift, we propose actionable design policies centered on time-scale separated online adaptation. These mechanisms are validated through ablation studies on a nonlinear Duffing oscillator, demonstrating that bounded continuous learning successfully mitigates trajectory divergence whereas static deployments fail, offering concrete guidelines for practitioners deploying machine learning components in safety-critical feedback systems.
Figures & tables
| Architecture | Id. Error (MSE) | Action Error | Tracking Error |
|---|---|---|---|
| Baseline PD | - | - | 0.2037 ( : 0.0010) |
| Static Offline NN | 0.0001 ( : 0.0000) | 0.0463 ( : 0.0014) | 0.1218 ( : 0.0103) |
| Optimal Online NN | - | - | 0.0044 ( : 0.0000) |
| Ablation: Sluggish LR | - | - | 0.7096 ( : 13.9977) |
| Ablation: Unstable LR | - | - | 19.3110 ( : 1.3640) |
| Architecture | Tracking Error (MSE) | Amplitude Distortion (%) |
|---|---|---|
| MRAC (Linear-in-the-Parameters) | 0.0062 | 2.49 |
| Dual IOP (Frozen Phase 2) | 0.2122 | 48.04 |
Distribution Shift
Distribution shift studies how changes between training and deployment data affect model reliability, and how to detect, measure, and address them.
See all 168 papers