Vanilla feedforward neural networks as a discretization of dynamic systems

Yifei Duan, Li'ang Li, Guanghua Ji, Yongqiang Cai

Abstract

While Residual Networks (ResNets) are widely recognized as discretizations of ordinary differential equations (ODEs), the role of vanilla Feedforward Neural Networks (FNNs) in this context has remained less explored. This paper demonstrates that narrow FNNs, with a width equal to the input dimension, can serve as universal approximators for the flow maps of dynamical systems. By employing operator splitting methods and leveraging the properties of monotonic activation functions like Leaky-ReLU, the authors prove that FNNs can preserve the homeomorphic nature of these systems, challenging the assumption that complex residual or invertible architectures are necessary for such tasks.

Introduction

The intersection of deep learning and dynamical systems has yielded significant architectural breakthroughs. A prominent example is the Residual Network (ResNet), where the transformation of data across layers is mathematically analogous to the forward Euler discretization of an ODE. This perspective has led to the development of specialized architectures—such as Neural ODEs, NICE, and RealNVP—designed to explicitly preserve the homeomorphic properties (continuity and invertibility) inherent in the flow maps of dynamical systems.

Despite these advancements, the simplest neural architecture—the vanilla Feedforward Neural Network (FNN)—has often been dismissed as unsuitable for preserving these properties in a narrow regime. This research addresses a fundamental theoretical question: Can a standard FNN with a width strictly equal to the input dimension $d$ approximate the flow map of a $d$-dimensional dynamical system while maintaining its homeomorphic characteristics?

Methodology: From ODEs to FNNs

The authors establish their findings through a constructive three-step mathematical proof that bridges continuous dynamical systems and discrete FNN architectures.

  1. Neural ODE Approximation: The target dynamical system's vector field is first approximated using a standard Neural ODE, typically employing a wide network with tanh activations to ensure smoothness.
  2. Discretization via Operator Splitting: Unlike the forward Euler method, which naturally leads to a ResNet structure, the authors utilize an operator splitting method. This technique decomposes a complex multi-dimensional ODE into a sequence of simpler, one-dimensional ODEs, each updating a single coordinate at a time.
  3. FNN Approximation of Split Steps: Each 1D split step is then approximated using a narrow FNN. The core novelty lies in the proof that a 1D network can universally approximate any strictly monotonic continuous function, provided it uses a strictly monotonic activation function.

By composing these 1D approximations with linear transformations, the authors construct a $d$-width FNN that effectively mimics the numerical solution produced by the splitting method.

Overview of the approximation process (a) and the splitting method discretization (b).

Theoretical Insights

The research highlights several critical insights regarding the expressive power of narrow networks:

  • Width $d$ Sufficiency: The proof demonstrates that projecting data into high-dimensional hidden spaces is not a prerequisite for approximating flow maps. A network with a constant width equal to the input dimension $d$ is sufficient for universal approximation in this context.
  • The Role of Activation Functions: The choice of activation function is paramount. The proof relies heavily on Leaky-ReLU, which is strictly monotonic. In contrast, standard ReLU fails because a width-1 ReLU network can only produce piecewise linear functions with at most three pieces, limiting its approximation capabilities.
  • Inherent Homeomorphism: As long as the activation function is strictly monotonic and the weight matrices at each layer are non-singular, the resulting FNN is naturally a homeomorphism. This allows vanilla FNNs to preserve the topological structure of the input space without "tearing" or "folding" it.

Experimental Validation

As a theoretical contribution, the paper validates its claims using synthetic toy tasks designed to visualize spatial transformations.

  • 1D Monotonicity: In a task fitting four points, a width-1 Leaky-ReLU FNN successfully maintains a monotonic curve. Conversely, a ResNet with a single hidden neuron fails, creating a non-monotonic "folded" curve that violates the homeomorphism property.
  • 2D Spatial Mapping: The authors compare a wide ReLU network (width 100) against their constructed narrow Leaky-ReLU FNN (width 2, depth 5). While the wide network often results in grid folding (losing diffeomorphism), the narrow FNN smoothly warps the space, preserving the underlying structure.

Conclusion and Future Work

This work provides a rigorous theoretical foundation for viewing vanilla FNNs as discretizations of dynamical systems. It proves that narrow, deep networks can achieve the same homeomorphic preservation as more complex architectures.

However, practical challenges remain. The current proof establishes existence but does not provide tight bounds on the depth $L$ required for high-dimensional systems. Furthermore, training these networks requires ensuring that weight matrices remain non-singular to maintain their approximation power and homeomorphic properties. Future research will focus on establishing approximation rates and developing robust training protocols to prevent singularity during optimization.

Summary updated

BibTeX
@article{duan2024vanilla,
  author = {Yifei Duan and Li'ang Li and Guanghua Ji and Yongqiang Cai},
  title = {{Vanilla feedforward neural networks as a discretization of dynamic systems}},
  journal = {J. Sci. Comput.},
  year = {2024},
  doi = {10.1007/s10915-024-02710-2},
}
Figure