Introduction
Neural Networks (NNs) are powerful function approximators, but their integration into safety-critical control systems—forming what is known as a Neural Feedback Loop (NFL)—presents significant challenges. Traditional architectures using ReLU or tanh activations are notoriously difficult to verify formally. This paper introduces Rational Neural Networks as a superior alternative, leveraging rational functions to enable rigorous stability guarantees through Sum of Squares (SOS) programming.
The Challenge of Stability and Conservativeness
The standard approach to ensuring stability in NFLs involves "sector bounding." This technique simplifies mathematical analysis by enclosing non-linear activation functions within linear bounds (sectors). However, as illustrated in the comparison of standard activations, these sectors are often much larger than the functions themselves.
This discrepancy leads to conservativeness: stability analysis may incorrectly flag a system as unstable or fail to find an existing stabilizing controller because the mathematical "box" is too loose. Furthermore, training these controllers typically relies on non-convex iterative algorithms or reinforcement learning, which often lack formal safety certificates.
Rational Architectures for Control
To address these limitations, the authors propose a shift toward architectures compatible with control theory tools:
- Rational Activation Functions: The introduction of Rtanh and Rsig, which are rational approximations of hyperbolic tangent and sigmoid functions. These can be described by exact polynomial equality constraints, replacing loose sector bounds with precise mathematical definitions.
- General Rational NNs: A structure where network parameters are polynomial coefficients rather than weights in a transcendental function.
- Convex Synthesis via SOS Programming: By using Sum of Squares (SOS) programming and the Positivstellensatz (Psatz), the search for a controller is transformed into a convex feasibility test. This ensures that if a stabilizing controller exists within the specified polynomial degree, the solver is guaranteed to find it, avoiding the local minima traps of gradient descent.
Key Results and Performance
The rational architecture demonstrates significant improvements in both stability and approximation fidelity. In benchmark tests such as the non-linear inverted pendulum, the rational controller (Rtanh) achieved a Region of Attraction (RoA)—the set of initial states from which the system can be stabilized—that was nearly 60 times larger than that of a standard tanh-based controller (58 vs 0.94 square units).
As shown in the approximation analysis, the Rtanh activation provides a very tight fit to the standard tanh function. This high fidelity allows for much tighter mathematical bounds during reachability analysis and verification while maintaining the expressive power of the network. The method also proved robust to parametric uncertainty and additive white noise in simulated physical plants.
Conclusion and Future Directions
Rational Neural Networks offer a promising path toward verifiable and high-performing controllers by designing architectures that are inherently compatible with Lyapunov stability theory. While the current approach faces scalability challenges due to the computational cost of SOS programming in high-dimensional systems, it establishes a rigorous framework for safety-critical machine learning in control.
Summary updated