[Paper Review] ResNets Ensemble via the Feynman-Kac Formalism to Improve Natural and Robust Accuracies
This paper proposes a novel ResNet ensemble method that improves both natural and robust accuracy by injecting Gaussian noise into residual mappings and averaging predictions from jointly trained models. Inspired by the Feynman-Kac formalism, the approach approximates solutions to convection-diffusion equations, achieving 85.62% natural accuracy and 57.94% robust accuracy under IFGSM-20 attacks on CIFAR-10, outperforming state-of-the-art defenses.
Empirical adversarial risk minimization (EARM) is a widely used mathematical framework to robustly train deep neural nets (DNNs) that are resistant to adversarial attacks. However, both natural and robust accuracies, in classifying clean and adversarial images, respectively, of the trained robust models are far from satisfactory. In this work, we unify the theory of optimal control of transport equations with the practice of training and testing of ResNets. Based on this unified viewpoint, we propose a simple yet effective ResNets ensemble algorithm to boost the accuracy of the robustly trained model on both clean and adversarial images. The proposed algorithm consists of two components: First, we modify the base ResNets by injecting a variance specified Gaussian noise to the output of each residual mapping. Second, we average over the production of multiple jointly trained modified ResNets to get the final prediction. These two steps give an approximation to the Feynman-Kac formula for representing the solution of a transport equation with viscosity, or a convection-diffusion equation. For the CIFAR10 benchmark, this simple algorithm leads to a robust model with a natural accuracy of {\\bf 85.62}\\% on clean images and a robust accuracy of ${\\bf 57.94 \\%}$ under the 20 iterations of the IFGSM attack, which outperforms the current state-of-the-art in defending against IFGSM attack on the CIFAR10. Both natural and robust accuracies of the proposed ResNets ensemble can be improved dynamically as the building block ResNet advances. The code is available at: \\url{https://github.com/BaoWangMath/EnResNet}.
Motivation & Objective
- To address the trade-off between natural and robust accuracy in adversarially trained deep neural networks.
- To improve generalization of robust models without sacrificing performance on clean data.
- To develop a theoretically grounded ensemble method rooted in optimal control and transport equations.
- To provide a scalable, memory-efficient defense that integrates small models at inference time.
Proposed method
- Injecting variance-controlled Gaussian noise into the output of each residual block in ResNet to regularize the solution of the underlying transport equation.
- Training multiple modified ResNets jointly with shared optimization to ensure consistency in the noise-regularized dynamics.
- Averaging the model outputs across the ensemble using learned weights that are updated per epoch and normalized to sum to one.
- Formulating the ensemble prediction as a weighted average of logits, with the final output computed via log-softmax over the combined logits.
- Using the Feynman-Kac formula to interpret the ensemble as an approximation of the solution to a viscous convection-diffusion equation.
- Optimizing the ensemble weights via gradient descent on the cross-entropy loss, with gradients computed using the chain rule on the weighted logits.
Experimental results
Research questions
- RQ1Can injecting controlled noise into residual blocks improve both natural and robust accuracy in adversarially trained ResNets?
- RQ2How does the Feynman-Kac formalism relate to the generalization behavior of deep residual networks under adversarial perturbations?
- RQ3Can a simple ensemble of jointly trained, noise-injected ResNets outperform standard ensembles and state-of-the-art defenses on CIFAR-10 and CIFAR-100?
- RQ4Does the proposed method maintain robustness improvements as the base ResNet architecture evolves or scales?
Key findings
- On CIFAR-10, the proposed ensemble achieved 85.62% natural accuracy and 57.94% robust accuracy under 20-iteration IFGSM attack, surpassing current state-of-the-art defenses.
- The ensemble of noise-injected ResNet20 and ResNet32 outperformed En 2 ResNet32 by 0.10% in natural accuracy and 0.21% in robust accuracy under C&W attack.
- On CIFAR-100, the ensemble achieved 53.07% natural accuracy and 42.23% robust accuracy under C&W attack, showing comparable performance to En 2 ResNet32 while maintaining improved robustness.
- The method dynamically improves with advances in the base ResNet architecture, as both natural and robust accuracies scale with model improvements.
- The ensemble framework is memory-efficient, enabling training of small models and integration at inference time without full model storage.
- Theoretical analysis links the ensemble to the Feynman-Kac formula, interpreting it as a numerical approximation to the solution of a viscous transport equation.
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.