Skip to main content
QUICK REVIEW

[Paper Review] AdaSwarm: Augmenting Gradient-Based optimizers in Deep Learning with Swarm Intelligence

Rohan Mohapatra, Snehanshu Saha|arXiv (Cornell University)|May 19, 2020
Stochastic Gradient Optimization TechniquesComputer Science42 references26 citations
TL;DR

AdaSwarm proposes a gradient-free optimizer for deep learning that approximates gradients using parameters from an Exponentially Weighted Momentum Particle Swarm Optimizer (EMPSO), enabling effective training of neural networks even with non-differentiable loss functions like MAE. It achieves performance on par with or better than Adam, demonstrating that swarm intelligence can effectively emulate gradient-based optimization without explicit derivative computation.

ABSTRACT

This paper introduces AdaSwarm, a novel gradient-free optimizer which has similar or even better performance than the Adam optimizer adopted in neural networks. In order to support our proposed AdaSwarm, a novel Exponentially weighted Momentum Particle Swarm Optimizer (EMPSO), is proposed. The ability of AdaSwarm to tackle optimization problems is attributed to its capability to perform good gradient approximations. We show that, the gradient of any function, differentiable or not, can be approximated by using the parameters of EMPSO. This is a novel technique to simulate GD which lies at the boundary between numerical methods and swarm intelligence. Mathematical proofs of the gradient approximation produced are also provided. AdaSwarm competes closely with several state-of-the-art (SOTA) optimizers. We also show that AdaSwarm is able to handle a variety of loss functions during backpropagation, including the maximum absolute error (MAE).

Motivation & Objective

  • To develop a gradient-free optimizer that matches or exceeds the performance of Adam in deep neural network training.
  • To establish a theoretical and empirical link between swarm intelligence (PSO) and gradient-based optimization.
  • To enable effective training of neural networks using non-differentiable loss functions such as maximum absolute error (MAE).
  • To overcome the limitations of traditional PSO in high-dimensional weight spaces by approximating gradients via EMPSO parameters.
  • To provide a robust, derivative-free alternative to gradient descent that maintains convergence speed and accuracy in complex, non-smooth loss landscapes.

Proposed method

  • Proposes EMPSO, a variant of PSO with exponentially weighted momentum to smooth search trajectories and improve convergence.
  • Derives a mathematical formula to approximate the gradient of any function—differentiable or not—using EMPSO’s gbest, particle positions, and velocity parameters.
  • Uses the derived gradient approximation in backpropagation, replacing analytical gradients in the training of neural networks.
  • Employs bias correction in AdaSwarm to stabilize the approximation, especially in early training phases.
  • Introduces a first-order approximation of the gradient in the form κ(w − gbest), which remains valid even if only a minority of particles converge to gbest.
  • Validates the method through extensive experiments on benchmark functions and deep learning models like ResNet18 and ResNet50.

Experimental results

Research questions

  • RQ1Can the gradient of a non-differentiable or rugged loss function be accurately approximated using only PSO parameters?
  • RQ2Can a PSO-based gradient approximation outperform or match the performance of Adam in training deep neural networks?
  • RQ3Does the proposed EMPSO-based gradient approximation enable effective training with non-standard loss functions such as MAE?
  • RQ4How does the approximation error behave when the current weight is far from the global best (gbest)?
  • RQ5Can the theoretical equivalence between PSO dynamics and gradient descent be established mathematically?

Key findings

  • AdaSwarm achieves performance comparable to or better than Adam on ResNet18 and ResNet50, even with non-differentiable loss functions like MAE.
  • The EMPSO-based gradient approximation closely matches true gradients, with negligible deviation observed in experiments, especially when weights are near gbest.
  • The method successfully trains deep networks using MAE as a loss function, which is typically challenging for gradient-based methods due to non-differentiability.
  • The gradient approximation remains robust even when only a subset of particles converges to gbest, due to the first-order form of the approximation κ(w − gbest).
  • The theoretical derivation proves that the gradient of any function with countably finite singularities can be precisely expressed using EMPSO parameters, establishing a novel link between swarm intelligence and optimization.
  • AdaSwarm demonstrates superior scalability and convergence speed on benchmark functions and real-world deep learning tasks, outperforming standard PSO and several SOTA optimizers.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.