Floating-Point Networks with Automatic Differentiation Can Represent Almost All Floating-Point Functions and Their Gradients
Abstract
Lay Summary
Many modern AI applications rely not only on the outputs of neural networks but also on their gradients. Existing mathematical results show that neural networks can represent both function values and gradients, but these results assume idealized computations with perfectly accurate real numbers. Real computers, however, use floating-point arithmetic and introduce rounding errors during computation. In this work, we study whether similar guarantees hold for neural networks running on real computer hardware. We show that floating-point neural networks can represent almost any desired function values and gradients computed by automatic differentiation, the algorithm used to compute gradients in modern deep learning systems. We further show that these gradients can behave in ways that are impossible under idealized real-number arithmetic. Our results reveal a fundamental gap between neural networks studied in mathematical theory and neural networks implemented on real computers. By accounting for the effects of floating-point arithmetic, our work can help build a more realistic understanding of modern AI systems.