Deeper or Wider: A Perspective from Optimal Generalization Error with Sobolev Loss
Yahong Yang, Juncai He
TL;DR
The paper addresses the depth-versus-width trade-off for neural networks under Sobolev losses, decomposing the optimal generalization error into approximation and sampling components and deriving bounds that depend on the parameter count $W$, sample size $M$, and loss-derivative order $k$. By comparing DeNNs (deep, narrow) and WeNNs (shallow, wide) with total parameter budget $W=\\mathcal{O}(N^2L)$, the authors show DeNNs excel when data is plentiful or higher-order derivatives are required, while WeNNs perform better with limited samples or many parameters; this framework extends to Sobolev losses $H^k$ with $k=0,1,2$ and to PDE solvers via deep Ritz and PINN methods. They provide near-optimal generalization bounds, validate the theory through PDE-based applications, and discuss refinement via Rademacher complexity for different regimes. The findings offer practical guidance for selecting network architectures in Sobolev training and PDE-informed learning, with future work aimed at broader function spaces and CNNs.
Abstract
Constructing the architecture of a neural network is a challenging pursuit for the machine learning community, and the dilemma of whether to go deeper or wider remains a persistent question. This paper explores a comparison between deeper neural networks (DeNNs) with a flexible number of layers and wider neural networks (WeNNs) with limited hidden layers, focusing on their optimal generalization error in Sobolev losses. Analytical investigations reveal that the architecture of a neural network can be significantly influenced by various factors, including the number of sample points, parameters within the neural networks, and the regularity of the loss function. Specifically, a higher number of parameters tends to favor WeNNs, while an increased number of sample points and greater regularity in the loss function lean towards the adoption of DeNNs. We ultimately apply this theory to address partial differential equations using deep Ritz and physics-informed neural network (PINN) methods, guiding the design of neural networks.
