ReLU Deep Neural Networks and Linear Finite Elements
Juncai He, Lin Li, Jinchao Xu, Chunyue Zheng
TL;DR
This work establishes a precise link between ReLU deep neural networks and continuous piecewise linear functions, with a focus on those arising from linear finite elements. It proves that any CPWL function in ℝ^d can be represented by a ReLU DNN with depth at most ⌈log2(d+1)⌉, and shows that linear finite element functions require at least 2 hidden layers when d≥2, with 2 layers optimal for d=2,3. It also provides constructive representations for LFE basis functions, analyzes error behavior against adaptive FEM, and explores low-bit-width DNN models as a viable representation for CPWL functions. The paper then extends the discussion to numerical PDEs, introducing a DNN-Galerkin method and presenting a 1D example where the DNN-based approach surpasses adaptive FEM with the same degrees of freedom. Overall, the results offer a theoretical foundation for the expressive power of deep ReLU networks, justify certain quantized architectures, and suggest practical PDE-solving strategies that blend FEM insights with DNN methods.
Abstract
In this paper, we investigate the relationship between deep neural networks (DNN) with rectified linear unit (ReLU) function as the activation function and continuous piecewise linear (CPWL) functions, especially CPWL functions from the simplicial linear finite element method (FEM). We first consider the special case of FEM. By exploring the DNN representation of its nodal basis functions, we present a ReLU DNN representation of CPWL in FEM. We theoretically establish that at least $2$ hidden layers are needed in a ReLU DNN to represent any linear finite element functions in $Ω\subseteq \mathbb{R}^d$ when $d\ge2$. Consequently, for $d=2,3$ which are often encountered in scientific and engineering computing, the minimal number of two hidden layers are necessary and sufficient for any CPWL function to be represented by a ReLU DNN. Then we include a detailed account on how a general CPWL in $\mathbb R^d$ can be represented by a ReLU DNN with at most $\lceil\log_2(d+1)\rceil$ hidden layers and we also give an estimation of the number of neurons in DNN that are needed in such a representation. Furthermore, using the relationship between DNN and FEM, we theoretically argue that a special class of DNN models with low bit-width are still expected to have an adequate representation power in applications. Finally, as a proof of concept, we present some numerical results for using ReLU DNNs to solve a two point boundary problem to demonstrate the potential of applying DNN for numerical solution of partial differential equations.
