Abstract
Task learning in neural networks typically requires finding a globally optimal minimizer to a loss function objective. Conventional designs of swarm based optimization methods apply a fixed update rule, with possibly an adaptive step-size for gradient descent based optimization. While these methods gain huge success in solving different optimization problems, there are some cases where these schemes are either inefficient or suffering from local-minimum. We present a new particle-swarm-based framework utilizing Gaussian Process Regression to learn the underlying dynamical process of descent. The biggest advantage of this approach is greater exploration around the current state before deciding a descent direction. Empirical results show our approach can escape from the local minima compare with the widely-used state-of-the-art optimizers when solving non-convex optimization problems. We also test our approach under high-dimensional parameter space case, namely, image classification task.
Introduction
Training deep neural networks is essentially a high-dimensional, non-convex optimization problem. Most modern optimizers, such as SGD, Adam, and RMSProp, are "point-based," calculating the gradient at the current set of parameters to determine the next step. While computationally efficient, this approach is often "blind" to the surrounding terrain. If the optimizer lands in a narrow local minimum or a flat plateau, it frequently becomes trapped because it lacks a broader understanding of the local geometry.
Conversely, "particle-based" methods like Particle Swarm Optimization (PSO) excel at exploration but often ignore gradient information, leading to slow convergence in the massive parameter spaces typical of deep learning. This paper introduces ParticleGP, a framework designed to bridge this gap by using a swarm of particles to explore the landscape while leveraging gradients for efficient descent.
Methodology
ParticleGP treats the gradient descent process as a dynamical system to be learned through Gaussian Process (GP) Regression. The optimization cycle follows four key steps:
- Swarm Sampling: At each iteration, instead of evaluating a single point, the algorithm samples a "swarm" of $N$ particles in the immediate neighborhood of the current parameters ($\theta_t$).
- Gradient Collection: Gradients are calculated for every particle in the swarm.
- Gaussian Process Modeling: These positions and gradients serve as training data for a multi-output GP. This model creates a local map of the "descent manifold," identifying the true direction of descent on a more global scale.
- Informed Update: The main agent moves based on the GP's prediction. This prediction is robust to local noise and jagged geometry, as it is informed by the surrounding neighborhood rather than a single point.
By using a GP as a sophisticated interpolator, the optimizer can effectively filter out local minima and identify paths toward a global optimum.
Experimental Results
Non-convex Benchmark Functions
The authors evaluated ParticleGP against ten classic non-convex optimization functions designed to trap standard optimizers, including the Ackley, Levy, and Beale functions.
As shown in the trajectories above, ParticleGP's "peripheral vision" allows it to navigate complex landscapes that trap standard methods. Quantitatively, ParticleGP consistently reached the global optimum where others failed. For example, on the notorious Ackley function, Adam and AdaGrad stalled with L2 distances to the optimum of ~22.5 and ~23.3 respectively, while ParticleGP converged significantly closer with a distance of ~1.4.
Image Classification and Efficiency
To test scalability, ParticleGP was applied to image classification tasks on MNIST, Fashion-MNIST, and CIFAR-10. On CIFAR-10, ParticleGP achieved a testing accuracy of 50.01%, proving competitive with RMSProp (50.47%) and Adam (49.17%), while maintaining a lower final loss.
Crucially, ParticleGP demonstrated superior wall-clock efficiency on complex benchmarks. It reached target objectives in approximately 33 seconds, compared to 155 seconds for state-of-the-art optimizers, primarily because it avoided the lengthy "wandering" phases typical of point-based methods in jagged landscapes.
Conclusion and Future Work
ParticleGP offers a powerful alternative for non-convex optimization by combining the exploratory nature of swarms with the statistical denoising of Gaussian Processes. While the current implementation faces computational overhead due to the $O(N^3)$ scaling of GP regression, the authors identify sparse GP approximations as a critical path forward. Future work will focus on automating hyperparameter tuning for swarm radius and kernel settings to make the framework more robust for massive neural architectures like Transformers.
Summary updated