[Paper Review] Never look back - A modified EnKF method and its application to the training of neural networks without back propagation
This paper proposes a modified Ensemble Kalman Filter (EnKF) method that enables derivative-free training of deep neural networks without backpropagation, leveraging forward pass evaluations and Jacobian approximation via random sampling. It proves sublinear convergence for strongly convex problems and demonstrates faster convergence than ADAM on MNIST with fewer forward passes and reduced memory usage.
In this work, we present a new derivative-free optimization method and investigate its use for training neural networks. Our method is motivated by the Ensemble Kalman Filter (EnKF), which has been used successfully for solving optimization problems that involve large-scale, highly nonlinear dynamical systems. A key benefit of the EnKF method is that it requires only the evaluation of the forward propagation but not its derivatives. Hence, in the context of neural networks, it alleviates the need for back propagation and reduces the memory consumption dramatically. However, the method is not a pure "black-box" global optimization heuristic as it efficiently utilizes the structure of typical learning problems. Promising first results of the EnKF for training deep neural networks have been presented recently by Kovachki and Stuart. We propose an important modification of the EnKF that enables us to prove convergence of our method to the minimizer of a strongly convex function. Our method also bears similarity with implicit filtering and we demonstrate its potential for minimizing highly oscillatory functions using a simple example. Further, we provide numerical examples that demonstrate the potential of our method for training deep neural networks.
Motivation & Objective
- To develop a derivative-free optimization method for training neural networks that avoids backpropagation and reduces memory consumption.
- To improve upon existing EnKF-based methods by proving convergence to the global minimizer for strongly convex functions.
- To enable efficient parallelization and scalability in high-performance computing environments for large-scale neural network training.
- To demonstrate the method's effectiveness on non-convex deep learning problems such as MNIST classification.
- To explore the method’s ability to handle oscillatory or highly nonlinear objective functions through a smoothing effect.
Proposed method
- The method modifies the EnKF by introducing a variance-reduced, randomized Jacobian approximation using forward evaluations at perturbed parameter points.
- It estimates the Jacobian of the forward operator using only forward pass outputs at randomly sampled particles around the current iterate, avoiding explicit gradient computation.
- The algorithm employs a variable projection strategy, solving for the final layer weights (W) exactly via Newton’s method for fixed θ, reducing dimensionality and improving efficiency.
- It uses inexact Newton and conjugate gradient methods to solve the subproblem for W efficiently, with a limited number of iterations per step.
- The method incorporates line search and iterative updates for the parameters θ, using only forward propagations and no backpropagation.
- It leverages a low-dimensional subspace approximation to improve convergence, resembling implicit filtering but applied in a randomized, derivative-free manner.
Experimental results
Research questions
- RQ1Can a modified EnKF method achieve convergence to the global minimizer of a strongly convex function without using gradients?
- RQ2How does the proposed derivative-free method compare to stochastic gradient descent in terms of convergence speed and memory efficiency for deep neural networks?
- RQ3Can the method effectively handle non-convex, highly oscillatory loss landscapes common in deep learning?
- RQ4Does the absence of backpropagation enable training of deeper or larger networks with reduced memory overhead?
- RQ5To what extent does the method’s inherent smoothing property improve optimization in the presence of high-frequency oscillations in the loss function?
Key findings
- The proposed method converges to the global minimizer of a strongly convex function at a sublinear rate, improving upon prior EnKF variants that converge only to a projected solution in a low-dimensional subspace.
- On the MNIST dataset, the method achieved a test accuracy of 98.38% with faster convergence than ADAM, completing training in 238.5 seconds compared to ADAM’s 1,751 seconds.
- The method required only 4 particles to optimize approximately 50,000 weights, demonstrating high sample efficiency and scalability.
- Despite slightly lower generalization than ADAM (99.12% vs. 98.38% test accuracy), the method achieved lower loss values with significantly fewer forward propagations.
- The method demonstrated a smoothing effect on oscillatory objective functions, suggesting robustness in non-convex, high-frequency landscapes.
- The algorithm is highly parallelizable and avoids backpropagation, enabling training of very deep networks without memory limitations.
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.