Skip to main content
Have a personal or library account? Click to login
ExPSO-DL: An Exponential Particle Swarm Optimization Package for Deep Learning Model Optimization Cover

ExPSO-DL: An Exponential Particle Swarm Optimization Package for Deep Learning Model Optimization

Open Access
|Nov 2025

Figures & Tables

Table 1

Feature Comparison Between ExPSO and Selected PSO Variants.

FEATUREEXPSOXPSOPPSOFMPSOTAPSO
Exploration-Exploitation BalanceDynamic via exponential controlFixed coefficient decayPhasor-based controlFuzzy logic-based mutationTime-adaptive parameter tuning
Velocity ControlAdaptive exponential velocity boundsScalar phasor-based updatesMutation-induced adjustmentsTime-based inertia weight updates
Leaping StrategyExponential leaping function
Personal/Global Best/Worst UsageFull use of pbest, gbest, pworstwith forgetting mechanism
AdaptivityHigh (dynamic γ and w updates)Medium (decay memory)Medium (phasor response)Medium (fuzzy decisions)High (time-adaptive parameters)
DL/ML Framework IntegrationSupports PyTorch/TensorFlow APIs
Parallel Evaluation SupportParallel training support
Code ExtensibilityModular Python classes
Figure 1

ExPSO approach.

Algorithm 1

ExPSO Algorithm.

Algorithm 2

ExPSO Subpopulations Algorithm.

Algorithm 3

Velocity Controller Algorithm

Table 2

Unit Tests for ExPSO Library Functions.

TEST NAMEPURPOSESTATUS
test_initialize_particles()Verifies correct generation of initial positions and velocitiesPassed
test_velocity_update()Ensures accurate computation of velocity updates per ExPSO equationsPassed
test_position_update()Checks boundary handling and correct position updatesPassed
test_fitness_evaluation()Confirms objective function evaluation returns valid and expected outputsPassed
test_global_best_selection()Validates that global best particle is correctly identified and trackedPassed
test_integration()Tests compatibility with PyTorch models and parameter space setupPassed
test_termination_criteria()Checks early stopping and max iteration limits work as intendedPassed
test_invalid_input_handling()Ensures graceful handling of invalid configuration or input parametersPassed
test_initialize_particles()Verifies correct generation of initial positions and velocitiesPassed
Figure 2

Illustrative example of ExPSO with Rosenbrock function.

Figure 3

Output result of ExPSO after optimizing for the Rosenbrock function.

Figure 4

Illustrative example of ExPSO with MLP model.

Figure 5

MLP model objective function.

Figure 6

An illustrative example of train and evaluating the MLP model with ExPSO parameters.

Table 3

Comparison of optimization algorithms on unimodal benchmark functions.

METHODRESULTF1F2F3F4F5F6
ExPSOAvg.0.00e+000.00e+000.00e+000.00e+000.00e+000.00e+00
S.D.0.00e+000.00e+000.00e+000.00e+003.17e+090.00e+00
XPSOAvg.2.64e–050.00e+008.33e+001.81e–019.25e+000.00e+00
S.D.1.24e–045.65e–103.31e–042.05e–019.16e+000.00e+00
PPSOAvg.0.00e+000.00e+000.00e+007.99e–050.00e+000.00e+00
S.D.5.54e–101.70e–091.25e–101.52e–041.18e–090.00e+00
FMPSOAvg.0.00e+000.00e+000.00e+000.00e+007.97e–010.00e+00
S.D.2.43e–096.30e–104.55e–101.50e–101.62e+000.00e+00
Table 4

Comparison of optimization algorithms on multimodal benchmark functions.

METHODRESULTF7F8F9F10F11F12
ExPSOAvg.–1.25e+040.00e+000.00e+000.00e+000.00e+000.00e+00
S.D.1.91e–010.00e+000.00e+000.00e+002.73e–093.21e–09
XPSOAvg.–1.08e+043.98e+000.00e+003.53e–023.44e–080.00e+00
S.D.3.19e+026.12e+026.12e–103.41e–021.36e–077.51e–10
PPSOAvg.–1.19e+040.00e+000.00e+000.00e+000.00e+000.00e+00
S.D.7.26e+021.96e–102.80e–102.24e–103.07e–091.27e–10
FMPSOAvg.–1.10e+042.28e+010.00e+005.34e–021.38e–022.20e–03
S.D.4.22e+021.64e+013.66e–104.58e–025.92e–024.47e–03
Table 5

Comparison of optimum results and statistical results for the PVD problem. Values represent the objective function f(x), with Best, Worst, Mean, and Standard Deviation (S.D.) across 30 independent runs. Bold values indicate the best performance for each metric.

FEXPSOPPSOFMPSOMSPSOXPSOTAPSOEODSOSHHOIRGAEBCMARIMODE
f(x)6059621667716090442326424605960596064611861236156
Best6059621667716090442326424605960596064611861236156
Worst7332138462778274619914564247544682075447544747320218
Mean61976473173806547705876424664160956684686369799355
S.D.350185210507791275220.0005661484253723993079
Table 6

Comparison of optimum results and statistical results for the CSD problem.

FEXPSOPPSOFMPSOMSPSOXPSOTAPSOEODSOSHHOIRGAEBCMARIMODE
f(x)0.0126650.0126690.0127190.0127190.971490.0127930.0122500.0126660.0126650.0127190.0126660.012665
Best0.0126650.0126690.0127190.0127190.971490.0127930.0122500.0126660.0126650.0127190.0126660.012665
Worst0.0152340.0177735.49010.209842.01720.0127930.0133180.0126860.0172750.0166590.0129710.013004
Mean0.0128570.0132772.30350.0940711.35310.0127930.0128660.0126730.1364380.0136840.0127180.012692
S.D.0.0005230.0012712.84650.102970.57730.0000000.0001730.0000040.0010010.0009130.0000060.000007
Table 7

Comparison of optimum results and statistical results for the WBD problem.

FEXPSOPPSOFMPSOMSPSOXPSOTAPSOEODSOSHHOIRGAEBCMARIMODE
f(x)1.6901.69561.697461.709601.8911.69541.69521.69521.71191.72121.69521.6953
Best1.6951.6951.6971.7091.8611.6951.6951.6951.7111.7211.6951.695
Worst1.8411.7932.0041.95524.151.6951.6971.6952.2423.2351.6952.123
Mean1.7071.7431.7981.8169.4581.6951.6951.6951.8162.2011.6951.830
S.D.0.0290.0400.1780.1266.680.0000.0000.000.1070.3640.0000.117
Table 8

Comparison of optimal results and statistical results for the SRD problem.

FEXPSOPPSOFMPSOMSPSOXPSOTAPSOEODSOSHHOIRGAEBOWITH CMARIMODE
f(x)299429943048299430602994299429942997299426392994
Best299429943048299430602994299429942997299426392994
Worst30333.0553285305853832994299429943803299429922994
Mean299930193156302041532994299429943114299428482994
S.D.9.183.246119.7333.59676.10.000.000.00180.90.0059.7680.00
Figure 7

Accuracy Comparison of ExPSO Library with FST-PSO, Pyswarms, QPSO, and FastPSO Libraries for Deep and Machine Learning Models.

DOI: https://doi.org/10.5334/jors.521 | Journal eISSN: 2049-9647
Language: English
Submitted on: Jun 18, 2024
Accepted on: Sep 27, 2025
Published on: Nov 11, 2025
Published by: Ubiquity Press
In partnership with: Paradigm Publishing Services
Publication frequency: 1 issue per year

© 2025 Insaf Kraidia, Khelil Kassoul, Naoufel Cheikhrouhou, Saima Hassan, Samir Brahim Belhaouari, published by Ubiquity Press
This work is licensed under the Creative Commons Attribution 4.0 License.