[Paper Review] On the Mathematical Understanding of ResNet with Feynman Path Integral
This paper establishes a mathematical equivalence between Residual Networks (ResNet) and the Feynman path integral formulation in quantum mechanics, showing that residual blocks correspond to solutions of partial differential equations (PDEs) and that the network's forward pass is equivalent to summing over all possible paths weighted by $ e^{-S} $, where $ S $ is the action. This framework explains ResNet's robustness and mitigates vanishing gradients by providing a path integral interpretation of residual learning.
In this paper, we aim to understand Residual Network (ResNet) in a scientifically sound way by providing a bridge between ResNet and Feynman path integral. In particular, we prove that the effect of residual block is equivalent to partial differential equation, and the ResNet transforming process can be equivalently converted to Feynman path integral. These conclusions greatly help us mathematically understand the advantage of ResNet in addressing the gradient vanishing issue. More importantly, our analyses offer a path integral view of ResNet, and demonstrate that the output of certain network can be obtained by adding contributions of all paths. Moreover, the contribution of each path is proportional to e^{-S}, where S is the action given by time integral of Lagrangian L. This lays the solid foundation in the understanding of ResNet, and provides insights in the future design of convolutional neural network architecture. Based on these results, we have designed the network using partial differential operators, which further validates our theoritical analyses.
Motivation & Objective
- To provide a rigorous mathematical foundation for ResNet's success in deep learning, particularly in overcoming the vanishing gradient problem.
- To establish a formal equivalence between residual blocks and solutions of partial differential equations (PDEs).
- To interpret the ResNet's forward propagation as a path integral sum over all possible hidden state trajectories, inspired by quantum mechanics.
- To validate the theoretical framework through a novel PDE-based neural network architecture replacing convolutional kernels.
- To demonstrate the robustness of residual blocks under weight perturbations using theoretical and empirical analysis.
Proposed method
- Derive the equivalence between a residual block and a first-order PDE in the frequency domain using Fourier transforms.
- Show that the forward pass of ResNet corresponds to a path integral formulation, where each path contributes proportionally to $ e^{-S} $, with $ S $ being the time integral of the Lagrangian.
- Use the Feynman path integral formulation to reinterpret the residual learning process as a sum over all possible hidden state transitions.
- Construct a PDE-based neural network (PDE-Net) where convolutional kernels are replaced by second-order PDE operators, reducing parameter count while preserving performance.
- Decompose $3\times3$ convolutional kernels into $1\times3$ and $3\times1$ convolutions to validate parameter efficiency and equivalence to PDE operators.
- Conduct experiments on CIFAR-10 to compare accuracy and robustness of ResNet, PDE-Net, and decomposed networks under weight perturbations.
Experimental results
Research questions
- RQ1Can residual blocks in ResNet be formally mapped to solutions of partial differential equations?
- RQ2Is the forward propagation in ResNet mathematically equivalent to a Feynman path integral over all possible hidden state trajectories?
- RQ3Does the path integral interpretation explain the improved training stability and mitigation of vanishing gradients in deep ResNets?
- RQ4Can a neural network architecture based on PDE operators achieve comparable performance to standard ResNets while reducing parameter count?
- RQ5How does the residual block structure enhance robustness to weight perturbations compared to standard convolutional networks?
Key findings
- Residual blocks are mathematically equivalent to solutions of a first-order partial differential equation in the frequency domain, with the residual connection acting as a time-evolution operator.
- The forward pass of ResNet is equivalent to a Feynman path integral, where the contribution of each path is proportional to $ e^{-S} $, with $ S $ being the time integral of the Lagrangian.
- The PDE-based network (PDE-Net) achieves comparable test accuracy to ResNet—93.21% on CIFAR-10 with 50 layers—validating the theoretical equivalence.
- Kernel decomposition into $1\times3$ and $3\times1$ convolutions preserves performance (94.02% accuracy on 50-layer network), confirming the PDE interpretation.
- ResNet exhibits significantly higher robustness to weight perturbations than standard CNNs like VGG-16, with accuracy degrading more slowly under noise, consistent with the $ e^{-S} $-weighted path integral model.
- The theoretical framework explains why skip connections prevent gradient vanishing: the path integral formulation ensures stable information flow across deep layers via exponential weighting in the frequency domain.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.