Skip to Content
Future InternetFuture Internet
  • Article
  • Open Access

2 March 2026

42 Pages

GEMS: Gas-Enhanced Marine Search for Optimizing Fusion Mamba-Attention Networks for Fake Review Classification

,
and
1
Department of Computer Science and Engineering, School of Engineering and Technology, CHRIST University Bangalore, Bangalore 560074, India
2
Department of Computer Science and Engineering, Kalasalingam Academy of Research and Education, Krishnankoil 626128, India
3
Faculty of Data Science and Information Technology, INTI International University, Nilai 71800, Malaysia
*
Authors to whom correspondence should be addressed.

Abstract

The rise of fake reviews has become a major problem for trust in e-commerce sites. As for traditional machine learning solutions, they fail to capture the nuanced language that separates real reviews from fake reviews. In this work, we introduce a new hybrid metaheuristic algorithm that optimizes the Fusion Mamba-Attention Network (FMA-Net) for fake review detection, called GEMS (Gas-Enhanced Marine Search). GEMS is a unique combination of the exploration capabilities of the Enhanced Marine Predators Algorithm and the exploitation process of Henry Gas Solubility Optimization, offering a dual-phase optimization design for high-dimensional, asymmetric, metaheuristic-configured GEMS-optimized FMA-Net. Geometric enhancement of GEMS optimization provides GEMS-optimized FMA-Net with an accuracy of 96.8%, F1-score of 95.4%, and AUC-ROC of 97.2%, marking 3–7% improvement over the current best models for fake review detection on the Yelp, Amazon, and Google Reviews datasets. We lower the average time of hyperparameter optimization using GEMS with FMA-Net to achieve 68% reduction in overall time spent in grid search and 42% lower for complexity in comparison to genetic algorithms. The contributions of this work are the first hybrid metaheuristic for transformers, a mathematically formulated GEMS algorithm, and an extensive empirical study for proving multi-dimensional metric plausibility.

1. Introduction

Among the many online facets of modern commercial activity, product reviews stand out for their ability to engage customers and facilitate their purchases. Nevertheless, as the fable on economic manipulation suggests, a flourishing illegitimate industry of review generation comes to life wherein roughly one out of five reviews and forty percent of five-star reviews on Amazon and Yelp, respectively, are estimated to be completely fictitious [1]. Other studies highlight the inadequacy on the part of most stated and predictive techniques as to identifying well-designed deceits, especially text originated by relatively new text generation computer programs [2]. The problem only escalates as deceivers protract advertising-pop and sentiment dilution, sentiment and style imitation, and coordinated techniques capturing unseen folds of classic systems.
New breakthroughs in deep learning, especially with attention mechanisms and state–space models, have been able to demonstrate the ability to represent and process complex forms of language. The Mamba architecture incorporates a selective state–space design that avoids traditional transformers’ quadratic complexity, modelling long-range dependencies with greater efficiency [3]. Unfortunately, the performance of such sophisticated architectures is tied to the configuration of the hyperparameters, a problem that becomes magnified given the hybrid model’s dimensional search space. Traditional methods of optimization, such as grid search and random search, are too expensive in terms of computation, whereas Bayesian optimization is too myopic and almost always “snags” in an illogical, local, suboptimal minimum when applied to the non-convex spaces of neural architectures [4]. The resulting optimization bottleneck is crucially detrimental to the deployment of such advanced architectures in real-world scenarios where computation and time resources are limited.
In the realm of optimization in hyperparameter space for deep learning, with metaheuristic algorithms and neural architecture optimization, emphasis is placed on the balance between exploration and exploitation [5]. The Marine Predators Algorithm (MPA), which focuses on the foraging behaviors of animals in the sea and Lévy and Brownian motion, possesses superior convergence properties for high-dimensional problems [6]. At the same time, Henry Gas Solubility Optimization (HGSO) solves a mathematical optimization in which physical chemistry enables advanced precision exploitation within the most attractive regions [7]. Though MPA and HGSO are strong individually, they are optimized together: late-stage MPA optimization faces convergence hyperplanes, and HGSO’s exploration capability stagnates in high neural architecture dimensions.

Contributions Made in This Study

The main contributions made in this study are as follows:
  • In this paper, we propose GEMS (Gas Enhanced Marine Search), a new hybrid metaheuristic that overcomes these shortcomings by merging the MPA’s dynamic exploration with the HGSO’s equilibrium-based exploitation. GEMS is not a simple algorithm hybridization, as it incorporates an adaptive phase-switching mechanism that efficiently allocates computational resources in real time based on convergence and population diversity metrics.
  • We employ GEMS to optimize the Fusion Mamba-Attention Network (FMA-Net), a hybrid model that integrates a state–space framework with attention mechanism for fake review classification to gain increased efficiency and improved interpretability. The optimization process is performed on 15 critical hyperparameters in a simultaneous fashion, including the learning rates, attention heads, state spaces, dropout rates, and architectural depth.
  • Our experimental validation includes multi-faceted domains and varied datasets across three critically highlighted domains with various review traits and sophisticated approaches. We perform exhaustive comparisons with eight other optimization techniques, including Genetic Algorithms (GA), Particle Swarm Optimization (PSO), and Harris Hawks Optimization (HHO), including recent derivatives. Beyond classification.
  • We also assess complexity and performance in terms of convergence, scalability, and other dimensions. Wilcoxon signed-rank testing for statistical significance verifies that we outperform other participants in almost all dimensions. These results indicate that hyperparameter optimization lacks complexity and attention in comparison with architectural changes, yet is able to produce results of a similar caliber.
The rest of this paper is organized in this way: Section 2 surveys existing literature on fake review detection and associated metaheuristic optimization. Section 3 describes the GEMS algorithm and provides other mathematical derivations. Section 4 presents the experimental method and datasets. Section 5 provides results with the statistical analysis that is deemed to be the most comprehensive of the work performed. Section 6 elaborates on the computational complexity and the associated real-world considerations. Section 7 summarizes the rest of the paper while including possible future areas of research.

3. Proposed Methodology

3.1. Problem Formulation

The problem of fake review classification can be treated as a supervised binary classification problem. Considering a dataset D = {(x1, y1), (x2, y2), … (xn, yn)} where xi is the ith review text and yi is a binary label (0 for authentic and 1 for fake), our goal is to learn a function that maps review texts to their class labels. The architecture of FMA-Net, denoted by θ, which also needs to be optimized over the hyperparameter space, is denoted by H = {h1, h2, …, hm}, which is over the realistic tunable parameters such as the learning rate, number of Attention heads, and dimension of state space. It is in the case of such discrete continuous spaces that the gradient-based approaches are not applicable to discrete and non-differentiable hyperparameter spaces. The Given objective performs maximization for the expected metric performance Φ in the hyperparameter domain under the objective of computational productivity. In this case, an objective function is given in Equation (1):
θ* = arg max Φ(f(X; θ, H), Y) subject to C(H) ≤ Cmax
where θ* stands for optimal network parameters, Φ is the performance metric (e.g., F1-score), and C(H) is the computational cost subject to an upper bound of Cmax. This case of the optimization problem attempts to fulfill the dual needs of obtaining the highest accuracy for detection and being able to deploy the model in practice. The constraint primarily ensures that the outcomes remain within computational feasibility and practical deployment constraints.

3.2. Fusion Mamba-Attention Network Architecture

FMA-Net combines selective state–space mechanisms and multi-head attention in a complementary manner. Its architecture has three main parts: embedding, which converts text at the input level into dense representations, a fusion module, which combines the Mamba and attention mechanisms, and a classification head that makes the final predictions. Reviews in input form are tokenized and then embedded into a sequence representation X ∈ ℝn×d in the form of a sequence and ‘d’ in the embedding dimension. ‘n’ stands for the sequence length, and ‘d’ stands for the embedding dimension. The fusion mamba-attention network is represented in Figure 1. This sequence of tokens is represented in such a way that the semantic representations are preserved and the significant positional encodings that are necessary for sequential processing are also preserved.
Figure 1. Fusion Mamba-Attention Network Architecture.
The Mamba component employs layers of selective state–space systems in processing sequences. For the input sequence x(t), the state–space representation evolves according to:
h(t) = Āh(t − 1) + B−x(t)
y(t) = Ch(t)
where h(t) ∈ ℝdh is the hidden state and Ā, B−, and C are matrices of learnable parameters. The selective mechanism incorporates input-dependent modulation:
Ā = exp(Δ · Parameter(x(t)))
B− = SiLU(Bx(t))
Such formulation permits state transition to vary with the input content, facilitating the model’s temporal processing to match the review characteristics. The selective mechanism is beneficial for isolating genuine sentiment progression from artificial emotional arcs characteristic of fabricated reviews. The attention module functions in parallel, performing self-attention on the sequence. With h heads, multi-head attention processes the input through:
Attention (Q, K, V) = softmax(QKT/√dk)V
where Q, K, and V are query, key, and value matrices constructed from the input embeddings and dk is the dimension of the key. Different review facets, such as sentiment and style, are captured by the various attention heads. The Mamba and attention outputs are integrated in a gating mechanism:
F = λMamba + (1 − λ) Attention
where λ ∈ [0, 1] is a learnable fusion weight that controls the balance of the contributions from each component according to the input. This type of adaptive fusion permits the model to focus on the state–space processing of attention on long-range dependencies on the space of the attention primed for the critical local patterns, which are indicative of deception of the local patterns [37].

3.3. GEMS Algorithm Framework

GEMS works in three successive stages: initialization, exploration–exploitation, and convergence. Each of the N candidate solutions, which embodies an entire hyperparameter configuration for FMA-Net, is maintained as part of the algorithm in a population. Figure 2 illustrates the workflow diagram of the Gas-Enhanced Marine Search Optimization.
Figure 2. GEMS: Gas-Enhanced Marine Search Optimization workflow.
Population variety, diversity, or diversity of solutions ensures full coverage of the search space and avoids premature convergence to suboptimal portions of the search space. In this approach, each solution is evaluated for fitness using k folds of cross-validation, which is performed on the training records to provide a dependable estimation of the fitness function, capturing the variance introduced by the different partitions of the dataset. A good fitness evaluation strategy gives lower overall accuracy for the estimation, which is important for a large number of the evaluations. In the first phase, we use Sobol sequences instead of random sampling in order to attain a uniform distribution of the coverage area. Sobol sequences produce quasi-random, low-discrepancy sequences, which are better distributed than pseudo-random numbers [27]. Given the hyperparameter space H with limits [Lj, Uj] in each dimension j, the first population is defined hyper H as:
Hi,j = Lj + SobolSequence(i,j) × (Uj − Lj)
The use of this strategy of initialization results in faster convergence, since fewer iterations are needed to find the most promising areas. Studies have shown that quasi random initialization can shorten optimization time by 20–30% when compared to uniform random initialization [34]. The exploration phase of the algorithm integrates MPA’s predator foraging techniques with improved diversity mechanisms. In the earlier phases of execution (t ≤ T/3, T being the cap on execution rounds), the algorithm focuses on exploring the global landscape.
The change in position for the i-th solution is given by the following:
Hit+1 = Hit + R1 ⊗ (Hbestt − Hit) + u ⊗ LF
where R1 is a random variable that is uniformly dispersed in the interval [0, 1], Hbest is the current optimal solution, u is the Lévy flight control parameter, and LF is the Lévy flight vector, defined as:
LF = 0.01 × s × (Hi − Hj)/|s|^(1/β)
where s is a random variable with normal distribution s ∼ N(0, σ2), β = 1.5 is the Lévy exponent, and j is the index of a solution selected at random. The Lévy flight algorithm approximates the swimming behavior of sea predators, which enables escape from local optimal solutions due to the large jumps and tiny steps characteristic of the Lévy flight mechanism.

3.4. Gas Solubility-Based Exploitation

The exploitation phase uses the principles of gas dissolution within the domain of HGSO to refine promising solutions in selected areas. In the middle iterations of the algorithm, in the interval (T/3 < t ≤ 2T/3), the algorithm starts functioning on a local search based on Brownian motion in conjunction with the gas motion concentration. The solubility ‘(H)’ in the next equation is governed by Henry’s law and adjusts based on the progress of the convergence:
Hs(t) = H0 × exp(−α × t/T)
in which (H0) is the initial solubility, α is the solubility decline rate, and (t/T) is the fraction of time of the current iteration (t). The attainment of equilibrium solubility is characterized by some time lag to reach gas equilibrium with the medium; hence, the intensity of exploitation functions to bounded iteration (t). The tempered adopted in this phase by the algorithm is a combination of Brownian motion and gas concentration changes determined by the domain of (H1) of the MPA:
Hit+1 = Hbestt + Rβ ⊗ (Hit − Hjt) − Hs(t) × ∇Ci
where Rβ~N(0,1) represents Brownian motion, and ∇Ci denotes the concentration gradient, computed as:
∇Ci = (Fitness(Hbest) − Fitness(Hi))/||Hbest − Hi||2
The region of probes of this order constitutes the domain of (H), which provides local propagation within the space of gas with fitness bound. For convergence gaps, the region of the surrounding (H) is proportionate to convergence gap fitness within the bounded region; keeping the chromatic region is sufficient. The variation provides enough rate and fitness difference domain for continuous exploitation below. The combined mechanism provides sufficient convergence within (R) of the local optimum for interactions with fitness conserved. The t-th phase (t > 2T/3) concentrates on intensive exploitation via a hybrid approach. Updates to MPA and HGSO work in parallel on a solution and are contributed in proportion to differing convergence metrics. The dual-update strategy is orchestrated as follows:
Hit+1 = w(t) × UpdateMPA(Hit) + (1 − w(t)) × UpdateHGSO(Hit)
The specified weight function w(t) is a function of the population diversity D(t) and the fitness change ΔF(t). Specifically,
w(t) = 0.5 × (1 + tanh(D(t) − D0)/D0))
D(t) = (1/N) Σi=1N ||Hi − H−||2
H− is the population centroid and D0 is a measure of minimal diversity. If population diversity depletion exists, paradoxically, the MPA’s ability to explore is weighted heavily, and exploration collapses the HGSO’s ability. This is a mechanism that offers control throughout the optimization process and, for phase transition, is hybridized in all other metaheuristics.
The gas solubility phenomenon closely relates to hyperparameter optimization dynamics, where gas analytics dissolved into an asymptotic equilibrium reflects the optimization iterative process into an asymptotic optimal solution. The solubility coefficient Hs(t) in Equation (11) functions as a dynamic scaling factor that enables finely tuned modulation of step size during hyperparameter update. Here, H0 is the original maximum exploration radius, and the exponential decay term exp(−α × t/T) dictates the search, focusing increasingly onto smaller radius areas as iterations t → T directed toward the solution. The search radius is analogous to gas molecules creating saturation equilibrium. In Equation (12), solubility, Hs(t), constrains the maximum movement of the solution vector. The term Hs(t) × ∇Ci constrains the movement vector so that it reflects both the current exploration size and molecular concentration that is so tightly dimensioned so as to create an immediate correspondence between the rates of molecular dissolution and the number of optimization steps taken. The concentration gradient ∇Ci in Equation (13) quantifies the “pressure” that directs the movement of solutions such that solutions that are further away from the optimal solution (the best) and yet are closer to one another (high concentration) experience more force, which is mirrored by the movement of molecules in a gradient concentration.
Dividing by the Euclidean distance ||Hbest − Hi||2 normalizes the distance moved given the direction of the gradient, avoiding oscillatory updates if solutions are close to optimal while also allowing for numerically stable updates to be made to far solutions if there are significant fitness gaps. The random noise process Rb induced Brownian motion, along with the solubility-adjusted concentration gradient from Equation (12), creates an effective exploration–exploitation framework, whereby solutions actively utilize fitness information in a directed (exploitation) manner with the substitute solution fluctuating stochastically (exploration) to avoid the solution becoming trapped in a poor local optimum. This framework facilitates a clinical shift from exploration to exploitation as HS(t) diminishes. The early phases of the search are characterized by copious exploration (high Hs), while the later are more focused on the exploitation of a promising region of space (low Hs), simulating a close to real-life scenario of an active gas dissolving into a saturated solution.

3.5. Elite Preservation and Local Escaping

GEMS incorporates elite preservation to retain the best solved realistic scenarios. All the top k elite solutions (k = 0.1 N is common) are preserved intact, and they change only in cases where better solutions arise. It speeds the convergence process due to the fact that the optimization progress is retained (accumulating), and further progress is made while roaming to the non-elite solutions. The elite set Et at iteration t is defined:
Et = {Hi ∈ P: Fitness (Hi) ≥ Fitness(Hk)}
in which Pt is the current population and Hk is the kth best solution in the population ranked by fitness. Elite solutions are used to set the center for the next several iterations in the trust region methodology and are hence pointers for performance updates to strong, efficient hyper volumes. A convergence stagnation is solved by applying local escaping to the best solution. If the best fitness indicates this stagnation for ξ iterations in a row, a perturbed set of solutions is activated. The perturbation applies a Cauchy gaussian mutation for a balance exploration:
Hi,perturbedj = Hij + Cauchy(0, σ)(Uj − Lj)
where σ is a variable perturbation (the intensity of Cauchy perturbation), which is modified by the duration of stagnation. The Cauchy distribution is in many cases loose perturbed, which means that, while it remains stochastic, the distribution is wide (complete tails of Cauchy distributions) and it has a high chance to change by mutation, while most of them are settled in the neighborhood of the local optimum. This can ease the escape from local optima. The perturbation is population-level for dimensions that possess the lowest variance due to the fact that they are least explored.

3.6. Convergence Guarantee and Complexity Analysis

GEMS’s convergence follows from the convergence properties of its constituent algorithms under appropriate parameter settings. The Lévy flight mechanism ensures ergodicity, guaranteeing that all regions of the search space can be reached with non-zero probability [35]. Combined with elite preservation, this property ensures that the algorithm approaches the global optimum as iterations increase. Formally, for any ε > 0, there exists an iteration T, such that:
P(||Hbest − H*|| < ε) > 1 − δ
where H* represents the global optimum and δ is an arbitrarily small constant. This probabilistic guarantee holds under mild assumptions about fitness landscape continuity and bounded search space.
The computational complexity per iteration is O(N × M × E), where N denotes population size, M represents dimensionality of hyperparameter space, and E signifies the cost of fitness evaluation. For FMA-Net optimization, E dominates complexity as it involves neural network training and validation. GEMS’s total complexity becomes O(T × N × M × E) for T iterations. Compared to grid search with G samples per dimension, which requires O(GM × E) evaluations, GEMS achieves exponential reduction when T × N << GM. For M = 15 hyperparameters and G = 10, grid search demands 1015 evaluations versus 104 for GEMS with T = 100 and N = 100, representing a computational savings of 11 orders of magnitude. Table 1 illustrates the comparison of GEMS with existing hybrid metaheuristic methods. Algorithm 1 presents the GEMS Optimization Procedure.
Algorithm 1: GEMS Optimization Procedure
Input: FMA-Net architecture fθ, hyperparameter space H = {h1, h2, …, h15}, training data Dtrain, population size N = 100, max iterations T = 100, elite size k = 10
Output: Optimal hyperparameter configuration H*
Phase 1: Initialization
1. Initialize population using Sobol sequence sampling:
for i = 1 to N:
  for j = 1 to M = 15:
     Hi,j ← Lj + SobolSeq(i,j) × (Uj − Lj) //Quasi-random initialization
     Fitness(Hi) ← EvaluateFitness(Hi, fθ, Dtrain) //5-fold CV F1-score
2. Hbest ← argmax Fitness(Hi) //Track best solution
3. StagnationCounter ← 0 //For local escaping
Phase 2: Optimization Loop
4. for t = 1 to T = 100:
5. Compute population diversity: D(t) ← (1/N) Σ ||Hi − H−||2
6. if t ≤ T/3: // Phase 2a: Exploration (iterations 1–33)
  for i = 1 to N:
     Generate Lévy flight: LF ← 0.01 × s × (Hi − Hj)/|s|^(1/1.5)
     Hi^(t + 1) ← Hi^t + RL ⊙ (Hbest − Hi) + u ⊙ LF //Marine Predators
7. else if t ≤ 2T/3: // Phase 2b: Transistion (iterations 34–67)
   Compute gas solubility: Hs(t) ← H0 × exp(−α × t/T)
 for i = 1 to N:
  ∇Ci ← (Fitness (Hbest) − Fitness (Hi))/||Hbest − Hi||2
  Hi^(t + 1) ← Hbest + Rb ⊙ (Hi − Hj) − Hs(t) × ∇Ci //MPA + HGSO
8. Else: // Phase 2c: Exploitation (iterations 68–100)
  Compute adaptive weight: w(t) ← 0.5 × (1 + tanh((D(t) − D0)/D0))
  for i = 1 to N:
     Hi^(t + 1) ← w(t) × UpdateMPA(Hi) + (1 − w(t)) × UpdateHGSO(Hi)
9. Fitness Evaluation
for i = 1 to N:
  Fitness (Hi^(t + 1)) ← EvaluateFitness(Hi^(t + 1), fθ, Dtrain)
10. Elite Preservation
 Et ← {Hi ∈ Pt: Fitness (Hi) ≥ Fitness (Hk)}//Top k = 10 solutions
 Preserve elite solutions without modification
11. Local Escaping Mechanism
  if Fitness (Hbest^t) = Fitness (Hbest^(t − 1)):
     StagnationCounter ← StagnationCounter + 1
  if StagnationCounter ≥ 10:
     Apply Cauchy mutation to non-elite solutions
  StagnationCounter ← 0
12. Update best solution: Hbest^(t + 1) ← argmax Fitness (Hi^(t + 1))
13. Convergence Check
  if Fitness (Hbest) ≥ 0.95 × Fitnessfinal OR t = T:
     Break//95% convergence or max iterations
14. Return H* ← Hbest
Table 1. Comparison of GEMS with existing hybrid metaheuristic methods.
Convergence properties through formal analysis are under standard metaheuristic assumptions.
Theorem 1 
(Finite-Time Convergence). Under the following assumptions: (A1) Fitness function f: ℝ^M → ℝ is bounded: |f(H)| ≤ K for all H ∈ H and some K > 0 (A2) Elite preservation maintains top k solutions each iteration (A3) Cauchy mutation provides positive probability of reaching any point:
∀ε > 0, ∃δ > 0: P(||Hi^(t + 1) − H*|| < ε) ≥ δ > 0
GEMS converges to a local optimum with probability 1 as T → ∞.
We established convergence through six main steps, proving that GEMS forms an ergodic Markov chain whose stationary distribution concentrates mass on optimal solutions. The detailed explanation of Theorem 1 with six steps and Markov chain is included in Appendix A.
Figure 3a: Semi-log plot of (f* − f(t)) vs. iteration t
Figure 3. Empirical Convergence Rate Analysis: (a) Exponential Decay in Semi-log plot. (b) Convergence Probability. (c) Expected Displacement.
  • Shows linear decay in log-space → exponential convergence
  • Fitted equation: f(t) = f* − c·exp(−λt)
  • Decay rate: λ = 0.082 ± 0.007 (GEMS) vs. λ = 0.054 (PSO), λ = 0.041 (GA)
  • Interpretation: GEMS converges 52% faster than PSO, 100% faster than GA
Figure 3b: Convergence probability P(f(t) ≥ 0.95f*) vs. iteration
  • At t = 20: P = 0.68 (GEMS), P = 0.42 (HHO), P = 0.31 (PSO)
  • At t = 40: P = 0.94 (GEMS), P = 0.76 (HHO), P = 0.58 (PSO)
  • At t = 60: P = 0.98 (GEMS), P = 0.88 (HHO), P = 0.79 (PSO)
  • GEMS achieves 95% convergence probability by iteration 40
Figure 3c: Expected displacement E[||Hbest(t+1) − Hbest^t||] vs. iteration
  • Shows decreasing trend: E[Δ] → 0 as t → T
  • GEMS displacement drops below 0.01 (1% of search range) by t = 55
  • Confirms convergence to a stationary point
The theoretical and empirical convergence analyses have direct practical implications:
  • Reliability: P(95% convergence) ≥ 0.94 at t = 40 means GEMS consistently finds near-optimal solutions within modest computational budgets (4000–5000 evaluations).
  • Efficiency: Exponential convergence rate (λ = 0.082) enables early stopping without performance loss. Our experiments stop at t = 100, but 95% convergence typically occurs by t = 40–45.
  • Scalability: Log-linear dependence O(N × M × log(1/ε)) on optimality tolerance ε means doubling precision requires only linear increase in iterations, unlike quadratic growth in grid search.
Convergence independence from initialization was verified by testing three scenarios; the results are tabulated in Table 2:
Table 2. Convergence Probability Analysis (30 runs, Yelp dataset).
  • Random initialization: F1 = 0.968 ± 0.004 (30 runs)
  • Sobol initialization: F1 = 0.968 ± 0.004 (30 runs)
  • Latin Hypercube: F1 = 0.967 ± 0.005 (30 runs)
No statistically significant difference (Kruskal–Wallis p = 0.73) confirms GEMS converges to similar solutions regardless of initialization, demonstrating algorithmic robustness.

4. Experimental Setup

4.1. Datasets

We focused on GEMS-optimized FMA-Net and analyzed its performance on three benchmark datasets with different review domains and characteristics. The Yelp dataset includes 67,230 reviews on restaurants collected during the Yelp Challenge. According to Yelp’s internal classification system, 38% of reviews are considered fake [38]. The reviews cover many different sorts of cuisines, prices, and locations, making them very diverse. The dataset suffers from class imbalance (1.6:1.0 authentic to fake) and variable review lengths (50 to 800 words), making it harder for models to learn across different characteristics. Preprocessing involves special character removal, lowercasing, and truncation to 512 tokens for faster computations. The product review dataset on Amazon includes 55,890 reviews about electronics, books, and home goods [39]. Fake reviews were flagged by cross-verifying flag purchases, analyzing reviewer behavior, and manual review by certified professionals. The authentic-to-fake ratio is about 2:1 for reviews and 150 words on average. This dataset is characterized by unique challenges such as domain-specific words and different review types (pros and cons vs. narrative). During the train-test splits, we conducted stratified sampling to achieve balanced representation across product categories.
The Google Maps review dataset is composed of 41,680 reviews based on hotels, restaurants, and attractions [40]. Labels come from a semi-supervised method that uses metadata (age of the reviewer’s account, review velocity) coupled with linguistic analysis. This dataset has reviews that are shorter (average 80 words) due to the added linguistic diversity from international contributors. There is a 3:1 ratio of authentic to fake reviews, which requires delicate management during model training and evaluation. In all datasets, personally identifiable information is omitted, reviews are rated and normalized (converted to a 5-point scale), and reviews under 20 words are removed to ensure sufficient content for analysis.

4.2. Baseline Methods and Implementation Details

GEMS is compared to eight optimization algorithms from diverse paradigm families. Grid Search (GS) is used as a model baseline, performing an exhaustive search on a fixed hyperparameter grid [41]. Random Search (RS) takes a sample from a set region uniformly [42]. Bayesian Optimization with Gaussian Processes (BO-GP) builds a probabilistic model of the objective function [43]. The Genetic Algorithm (GA) works with tournament selection, single-point cross, and Gaussian mutation [44]. The Particle Swarm Optimization (PSO) uses the global best topology with inertia as a decreasing linear function from 0.9 to 0.4 [45]. The Grey Wolf Optimizer (GWO) uses the three-tier wolf hierarchy with standard parameters [46]. The Harris Hawks Optimization (HHO) uses a progressive exploration–exploitation transition [47]. The Tree-structured Parzen Estimator (TPE) uses adaptive sample density for efficient estimation [48].
All metaheuristic methods are given a constant population size of N = 100 and an iteration budget of T = 100 to ensure fairness of the comparison. The fitness function is evaluated using 5-fold cross-validation on the training set with the F1-score as the primary optimization target. The experiments are performed on a computing cluster with NVIDIA A100 GPUs (40 GB memory), allowing for parallel fitness evaluations. Each algorithm is run 30 times independently using different random seeds to account for stochastic variability. The Wilcoxon signed-ranks test with Bonferroni correction for multiple tests (α = 0.05) is used to estimate the statistical significance of the results [49]. The implementation of FMA-Net has been performed in Pytorch 2.0 and trained with mixed-precision for computational efficiency. The Mamba component contains 6 selective state–space layers with ‘hidden’ dimension of 512. The attention module consists of 8 heads and 64-dimensional projections. The fusion mechanism contains learnable gating layers with sigmoid activation for gating fusion. Training is performed with the AdamW optimizer with gradient clipping (1.0 max norm). Nonspecific tokens are maintained with adaptive batch. Early stopping F1 validation is set for 10 epochs to monitor the F1-score. A total of 15 dimensions define the hyperparameter search space. The set values are stored with the learning rate 1 × 10−5, 1 × 10−3, batch size {16, 32, 64, 128}, attention heads {4, 8, 12, 16}, state–space dimension {256, 512, 768, 1024}, layers {4, 6, 8, 10}, and dropout rates [0.1, 0.5]. Warmup steps are set to {100, 500, 1000} and other architectural parameters.
The hyperparameter search ranges are established by utiliszing best practices and empirical validation to test all possible combinations without search bias. The learning rate values [1 × 10−5, 1 × 10−3] follow transformer fine-tuning guidelines because rates below 1 × 10−5 result in slow convergence, and rates above 1 × 10−3 create training instability [50]. The attention head counts {4, 8, 12, 16} follow powers of two for efficient computation while covering lightweight to BERT-scale architecture ranges. The state–space dimensions {256, 512, 768, 1024} match the original Mamba architecture specifications [3] to achieve the best possible performance between computational speed and information storage capacity. The dropout rates [0.1, 0.5] span the typical regularization range, which works well for different dataset sizes [51]. We conducted GEMS optimization through 30 separate trials on Yelp data to confirm their selected parameter ranges and identify optimization irregularities by applying ±20% changes to the parameter ranges. Table 3 shows the hyperparameter range justification. The results showed stable performance through F1-score variations that stayed within ±0.5% (96.8 ± 0.5%), while Wilcoxon signed-rank test results confirmed no substantial differences (p > 0.05) between any range variations. The analysis of optimal hyperparameter distributions showed that 94% of values existed within the middle 60% of their respective ranges instead of concentrating at the edges, which proved our selected search space was appropriate.
Table 3. Hyperparameter Range Justification.

4.3. Evaluation Metrics

The evaluation procedure utilizes an array of metrics for every specific detail of the classification quality. For example, accuracy measures the correctness:
Accuracy = (TP + TN)/(TP + TN + FP + FN)
where TP, TN, FP, and FN are true positives, true negatives, false positives, and false negatives. Also, precision:
Prec = TP/(TP + FP)
quantifies the amount of correct positive predictions, while recall:
Rec = TP/(TP + FN)
measures the ability of the system to detect fake reviews. The F1-score:
F1 = 2 × (Prec × Rec)/(Prec + Rec)
serves as the principal optimizing goal because of its balance in addressing precision and recall. Measures above 1 are less common, where the AUC is the area under the curve and ROCC is the receiver-operating characteristic curve [53]. It assesses how a classifier performs over a range of decision thresholds; values closer to 1.0 are considered to demonstrate an ability to tell positive and negative examples apart quite well. In addition to these classification measures, we compared the metrics of computational efficiency by the optimization time (in wall clock hours to convergence), the number of fitness evaluations, and the convergence rate (in iterations to reach 95% of final performance). Also of concern is the practical deployable insight: the memory used during optimization and inference. For statistical analysis, we applied paired t-tests and Wilcoxon tests. For these tests, we report p-values and effect sizes. The convergence behavior is visualized using fitness evolution curves, tracks of population diversity over time, and hyperparameter distribution shifts during iterations. All proposed measures provide a detailed estimation and comprehensive comparison that goes beyond snapshot performance values.

5. Results and Discussion

5.1. Overall Classification Performance

Table 4 summarizes the overall classification results for all datasets and all the algorithms in the study. We also observed that the results for GEMS-optimized FMA-Net were the best overall, especially highlighting the results for the complex Google Maps dataset, which classifies content that is notoriously difficult due to class imbalance and variation in language. The accuracy difference over the second-best set method (HHO) is 1.8% for Yelp and 3.2% for Google Maps, which for practical production use means that hundreds of misclassifications would be avoided. The F1-scores also showed even greater improvements, which means GEMS was, in fact, successful to some degree, given the trade-off between precision and recall. This is particularly important in domains where there is a cost to false positives and also a cost to false negatives.
Table 4. Classification Performance Comparison Across Datasets (Accuracy are in %, F1 and AUC are in decimals).
The results of the above exemplify that GEMS is, in fact, quite robust to different characteristics of the data. GEMS is particularly adept at identifying Yelp reviews, which tend to be longer with a greater richness of detail. FMA-Net is able to achieve this due to the optimal state–space configurations because of the space dimension model’s long-range dependencies. The Amazon dataset also benefits from FMA-Net, which spans across products due to the relevant domain-specific vocabulary. This is due to the optimally configured attention mechanisms to domain salient patterns. Google Maps reviews tend to be noticeably shorter than the former; also, Google reviews tend to be more complex. Figure 4, shows the GEMS consistently achieves the highest accuracy across all datasets. This user-generated content needs a delicately balanced approach to over and under again so that the model does not overfit to specific linguistic patterns. GEMS manages to overcome these varying needs for GEMS due to Gate Mechanisms.
Figure 4. Accuracy comparison of optimization algorithms across three datasets.
The value of standard deviations through all 30 runs of GEMS (σ ≤ 0.006 for F1-score) proves that there are no positive or negative variances of the optimization objectives that come with any GEMS initialization, which supports the concept of iteration. This is in contrast to the greater variance in GA and PSO, which, with the help of different random seeds, can produce outlandish varied configurations even though they should deliver stable results. The AUC-ROC scores are thus close to 0.98, which is sufficient to indicate the presence of very high discrimination power for all decision thresholds of the tested algorithms, thus permitting flexible selection of the operating point to suit the costs of the specific applications.
Figure 5 provides a distribution of the results obtained in the form of a line graph, which shows GEMS’s distribution much more narrowly around high-performance results than other tested methods. GEMS’s results are well above the results for which evolutionary algorithms, in particular GA, are famous for, which are runs that result in an outcome of premature convergence, in which there is a high probability of a result of poor or insufficient performance. The box center line, which serves as the median for the GEMS results, is thus a clear indicator that the GEMS results outperform more than 75% of the rest of the tested methods. Therefore, it is clear that GEMS is a much more stable algorithm than the rest, which is why the box for the interquartile range (box height) is so low.
Figure 5. Performance distribution using Box plot.

Mechanistic Analysis: Why GEMS Achieves Narrow Distribution

The in-depth mechanistic analysis of GEMS is as follows:
Exploration–Exploitation Balance, GEMS employs adaptive switching between MPA (Lévy flight exploration) and HGSO (exponentially decreasing exploitation). The adaptive weight:
W(t) = 0.5 × (1 + tanh((D(t) − D0)/D0))
dynamically responds to population diversity D(t), creating a feedback loop. High diversity (D(t) > D0) → Increase exploitation (w↑) → Converge population—Low diversity (D(t) < D0) → Increase exploration (w↓) → Diversify population. This self-regulating mechanism prevents both premature convergence (avoiding local optima) and excessive exploration (avoiding instability). GEMS maintains a diversity coefficient of variation CVD = 0.24 vs. HHO CVD = 0.58 − Adaptive switching triggers 12–18 times per run vs. fixed methods (0 switches). Elite preservation ensures monotonic fitness improvement, but the Gaussian local search around elites provides fine-grained exploitation:
Heliterefined = Helite + N(0, σdecay)
where σdecay = σ0 · exp(−αt/T) decreases over time. This combination yields Stability, best solutions never degrade (monotonicity guarantee), Elites undergo local optimization (σ-decreasing neighborhood)—Convergence: Population contracts toward refined elites GEMS elite solutions improve by avg 0.012 F1-points after Gaussian refinement—Final elite cluster radius < 0.008 in hyperparameter space. Heavy-Tailed Cauchy Mutation for Stagnation Escape When stagnation is detected (unchanged best fitness for ξ = 10 iterations), Cauchy mutation provides large-jump capability:
pC(x) = 1/(πγ(1 + (x/γ)2))
The heavy tails ensure: Small jumps (local search) with high probability—Large jumps (global search) with non-zero probability. This prevents permanent trapping in local optima while maintaining refinement capability. Cauchy mutation triggered 2.3 ± 0.8 times per run (indicates good convergence)—When triggered, population diversity increases by avg 37%—Post-Cauchy restarts converge to better optima in 83% of cases.
  • Gas Solubility Modelling of Hyperparameter Optimization Dynamics, The HGSO component models hyperparameter optimization as gas dissolution:
Hs(t) = H0 · exp(−αt/T)
This exponentially decreasing solubility coefficient creates: Large Hs → Aggressive exploration (accepting diverse solutions)—Late phase: Small Hs → Conservative exploitation (only accepting improvements). The exponential decay (α = 1.0) provides smooth transition without abrupt phase changes that could destabilize convergence. Early-phase acceptance rate: 68% (t < T/3)—Late-phase acceptance rate: 12% (t > 2T/3)—Smooth exponential transition prevents oscillations seen in linear/sigmoid decay. We contrast GEMS’s mechanisms with baseline methods to explain distribution differences. Table 5 presents the optimization efficiency comparison.
Table 5. Optimization Efficiency Comparison.

5.2. Optimization Efficiency Analysis

Table 6 provides findings on computational efficiency, which remains important for real-world use cases. GEMS converges in 7.2–9.8 h depending on dataset, which is a 32–45% reduction in time from genetic algorithms, as well as a 68% improvement over exhaustive grid search. The number of fitness evaluations is a hardware-agnostic measure of efficiency, which indicates GEMS is 40–55% more efficient than PSO while attaining higher-quality solutions. This is a result of GEMS’s focused intelligent exploration strategy, which identifies and appropriately focuses computational resources on promising areas.
Table 6. Computational Efficiency Comparison.
The metric convergence-to −95% illustrates GEMS’s rapid progress by measuring the number of iterations needed to reach 95% of the final fitness. Figure 6 shows the AUC-ROC score comparison across optimization algorithms and datasets. Other nature-inspired algorithms require 56+ iterations, while GEMS achieves near-optimal performance in 38–45. This search trajectory is more favorable and allows end-users to acquire high-quality configurations for reduced computational budgets, a significant benefit when optimizing over many datasets or frequent retraining. In iterative development workflows, substantial efficiency gains are realized when architectural changes necessitate the addition of multiple optimization cycles [51].
Figure 6. AUC-ROC score comparison across optimization algorithms and datasets.
Bayesian optimization with Gaussian processes (BO-GP) still maintains competitive evaluation counts primarily due to its sampling strategy, although its wall clock time is still much higher compared to GEMS. This is because BO-GP, in its stepwise approach, prevents full parallelization, while GEMS performs evaluation of populations in parallel across GPU resources. The practical time difference in favor of GEMS is amplified in distributed computing environments, where batch parallelism can be fully utilized. Although TPE is more efficient in terms of evaluation counts, its practical throttling in computation cluster scales is down to much more pronounced TPE performance deficits [54].
The convergence curves in Figure 7 are averaged across 30 runs, where shaded sections are the confidence intervals. GEMS shows a steep initial ascent with a shallower slope to the convergence level, while the rest of the algorithms slowly improve. This progression indicates a good exploration strategy during the first phase and efficient use of the rest of the resources in the later phase. The zig-zag pattern exhibited by the GA is more pronounced and is a result of the processes of selection, crossover, and mutation [55]. The TPE, which is the best-performing GAW, has a shallower slope at the start and then closely follows GEMS during the rest of the phases. Figure 8 shows the comprehensive view of all metrics across all datasets. Solid lines represent F1-scores, dashed lines represent accuracy, and dotted lines represent AUC-ROC scores.
Figure 7. Convergence curves averaged across 30 runs.
Figure 8. Comprehensive view of all metrics across all datasets. Solid lines represent, F1-scores, dashed lines represent accuracy, and dotted lines represent AUC-ROC scores.

5.3. Hyperparameter Configuration Analysis

Table 7 illustrates the best-performing hyperparameter settings determined by GEMS for every dataset, showcasing optimization behavior tailored per dataset. The learning rate, for example, is quite different across datasets (2.8 × 10−4 for Yelp, 4.1 × 10−4 for Google Maps), which indicates different convergence landscapes. The learning rate for Google Maps is higher, as the reviews are shorter and require more aggressive optimization, while Yelp’s more elongated reviews require more conservative learning rate parameter adjustment. The number of attention heads also changes—these are 12 for Yelp and 8 for Amazon—which implies the complexity-performance trade-off changes in line with the characteristics of the reviews and the volume of available training data [56].
Table 7. Optimal Hyperparameter Configurations Discovered By GEMS.
There is a correlation between state–space dimension and layer depth, which indicates that deeper networks are associated with higher dimensional representations for capacity reasons. Yelp’s model (8 layers, 768-dim) has considerably more parameters than Google Maps (6 layers, 512-dim), which is explained by the larger training data and longer input sequences that demand greater representational complexity. The inverse correlation between dropout rates and the training set is seen because Google Maps requires stronger regularization (0.29) than Amazon (0.18). The purpose of the overfitting adaptive techniques is to make efficient use of the data at hand. The fusion weight λ is almost equal (0.55–0.62), which shows that the Mamba and attention parts are both important for the final predictions. This almost equal weighting supports the architecture’s hybrid design, which would be the case if one part’s dominance is significant at the expense of the other, leading to the suggestion that the other part is unnecessary. The Amazon data gives a slight preference to Mamba (λ > 0.5), suggesting that state–space modelling captures product review patterns efficiently, while the stronger attention Mamba exhibits with Google Maps data indicates greater importance to the discriminative keywords that are present in shorter text. These will help guide architectural improvements and cross-domain transfer learning.
The Wilcoxon signed-rank tests evaluated GEMS statistical significance through 30 independent runs of each algorithm-dataset combination against eight baseline optimization methods. The complete statistical analysis results are shown in Table 8 and Table 9. The Yelp dataset results showed GEMS achieving 0.968 ± 0.004 F1-score (95% CI: [0.966, 0.970]), which surpassed HHO (0.942 ± 0.012, 95% CI: [0.938, 0.946]), with W = 465 and p < 0.001 and effect size r = 0.82. The results on Amazon Reviews showed GEMS (0.951 ± 0.005, 95% CI: [0.949, 0.953]) outperforming HHO (0.928 ± 0.015, 95% CI: [0.922, 0.934]), with W = 478 and p < 0.001 and effect size r = 0.85. The results on Google Maps Reviews showed GEMS (0.936 ± 0.006, 95% CI: [0.934, 0.938]) outperforming HHO (0.911 ± 0.018, 95% CI: [0.904, 0.918]), with W = 472 and p < 0.001 and effect size r = 0.79. The p-values from all pairwise comparisons between GEMS and baseline methods reached 0.001 significance level in all three datasets, which proves that performance gains stem from actual improvements rather than random fluctuations. The achieved results exceeded minimum statistical requirements because the effect sizes (r ranging from 0.68 to 0.91) exceeded the minimum requirements for statistical significance. The convergence analysis demonstrated that GEMS reached 95% of its highest fitness value through 38–45 iterations (mean: 41.3 ± 2.8), which performed better than Grid Search (10,000+ evaluations), GA (6800 ± 450 evaluations), and PSO (5200 ± 380 evaluations) while using 68% less computational power to achieve high accuracy. The box plots in Figure 8 demonstrate how GEMS achieves better performance with reduced variability than all baseline methods through its high median values and minimal interquartile range overlaps, which support the statistical test results. Figure 9 shows the performance distribution comparison across optimization methods.
Table 8. Statistical Significance Testing Results for Yelp Reviews Dataset (30 runs per algorithm).
Table 9. Statistical Significance Testing Results for Amazon Reviews Dataset (30 runs per algorithm).
Figure 9. Performance distribution comparison across optimization methods: (a) Yelp Reviews. (b) Amazon Reviews. (c) Google Map Reviews.

5.4. Ablation Study

Ablation results determining the importance of individual GEMS parts and FMA-Net structure elements are shown in Table 10. Removing the Mamba component (attention only) results in an F1-score loss of 3.2–4.7%, which illustrates the importance of state–space modelling in capturing review narrative temporal dependencies. In contrast, removing attention (Mamba only) results in similar performance loss (3.5–4.9%), which indicates that the two pieces of information are indeed complementary. The pure MPA optimizer (without HGSO integration) delivers reasonable performance but still underperforms GEMS by 2.1–2.8%, which confirms the effectiveness of the proposed hybrid optimization strategy.
Table 10. Ablation Study Results Across Datasets.
Figure 10 shows the comparison of the ablation study. The performance of HGSO-only optimization is not as good as MPA-only optimization (F1 0.891–0.925 vs. 0.903–0.932), which gives further evidence to the thesis that MPA’s exploration capabilities are more valuable in the early stages of the process and that HGSO’s exploitation complements the final stages. The significant drop with random optimization (F1 0.867–0.898) shows that metaheuristic optics are valuable—intelligent search is more advanced than ignorant search. The loss of the adaptive fusion mechanism (fixed λ = 0.5) causes a performance drop of 1.3–1.4%, which shows that there is value in learning optimal component weighting instead of assuming equal contributions.
Figure 10. Comparison of Ablation study results.
No other optimization achieves GEMS optimization FMA-Net 3.5–5.5 F1-score increments over BERT-Base and 2.9–4.6% improvements over RoBERTa-Base. Even though the BERT model has 110 million and FMA-Net has 45 million parameters, the performance gap illustrates the non-negligible gains from architecture-task alignment and hyperparameter optimization. These gains are even more remarkable when accounting for the lower inference latency of FMA-Net over the transformers, which are quadratically complex, due to the linear complexity of Mamba. The learned weights of fusion (Table 6) demonstrate that these heuristics, on which no other optimization method had worked, do exist. This confirms that target dataset characteristics do exist and that learned fusion weights, which attest to the sophisticated techniques heuristic-based methods would overlook, prove the ability to adapt dataset-wise. Collectively, these ablation results corroborate the GEMS optimization framework and the GEMS-Net architecture design.

5.5. Cross-Dataset Generalization Analysis

We evaluated the generalization capability of GEMS-optimized models by testing their performance when transferred across datasets. This analysis addresses a critical practical question: Can hyperparameter configurations discovered on one dataset generalize to unseen data from different domains?
  • Training Phase: For each dataset D ∈ {Yelp, Amazon, Google Maps}, we use GEMS to optimize FMA-Net hyperparameters on D’s training set, yielding optimal configuration HD.
  • In-Domain Evaluation: Test HD on D’s held-out test set to establish baseline performance F1D → D (in-domain).
  • Cross-Domain Transfer: Test HD on the test sets of the other two datasets (D’ ≠ D), measuring transfer performance F1D → D’ (cross-domain).
  • Comparison Baseline: Compare against random baseline models with default hyperparameters.
In the absence of further training, models developed on one dataset and tested on others present many differences between them. GEMS-optimized configuration performs markedly better by having 82–87% potential along with the in-domain performance for dataset transfers. Models optimized through simpler procedures (PSO, GWO) demonstrate calamitous drops in performance and retention levels of 70–76% dominance, signifying specialization to the source domain characteristics. The generalization advantage relies on GEMS finding the right balance between hyperparameter regularization and capacity to avoid overfitting to the peculiarities of the dataset.
The Yelp → Amazon transfer provides 86.7% retention and 79.9% in-domain (F1 0.817 vs. 0.943), the most domain-diverse performance. The knowledge transfer is simplified because both datasets contain comprehensive reviews of products/services with close linguistic patterns. The domain shift is most pronounced in Google Maps → Amazon, which shows 79.4% retention. GEMS balances dropout regularization in hyperparameter control, which, along with appropriate model size, dropouts, and learning rates, avoids excessive regularization. The working theory of GEMS has relevance for models that perform GEMS optimization, which suggests that such models could outperform descending, cross-domain descending systems. For instance, a GEMS-optimized 35FMA-Net parameter model trained on Yelp achieves an F1-score of 0.792 on Amazon, which exceeds that of a 110M parameter BERT-Base model and its 0.781 score. Counter-intuitively, the BERT model has a considerably greater F1-score. This counter-intuitive scenario is an attribute of the GEMS optimization, which bundles together useful model architectures that extract general representations and learn generalized patterns, defeating the traditional notion that models only learn representations specific to the patterns of the origin dataset. This is a game-changer for scenarios that entail deployment in new domain acquisition for which the data and resource budgets are extremely economical.
The second analytical lens focuses on counter-performance scenarios. GEMS-optimized models are able to retain their logical predictions as they approach what could be described as the limit of cognition. Equally important is the finding that optimization tends to be the best predictor of model performance. GEMS has worked wonders in the realm of domain-skewed models, like the review of restaurants and the review of personal electronics, where models cross-learn domain-specific patterns at will. In such scenarios, adequately optimized GEMS models outperform their non-optimized counterparts. This is GEMS’s self-fulfilling prophecy in the counter Performance domain. GEMS models define the boundary of breakdown. The breakdown model has frequently closed the gap in cases of prediction anomalies and other breakdown GEMS phenomena. The paradox is that GEMS models are the only class of models where breakdown phenomena are pre-empted. No other class of models unlock the cage of coherent prediction breakdown at a model layer. Instead, the breakdown seldom occurs. It is a performance measure on its own. The GEMS breakdown has compression prediction mechanisms that are trackable; hence, the prediction accuracy is ascertainable. The breakdown of GEMS non-optimized domain models is a robustness paradox.
Table 11 shows the additional analysis made on both LLM variants are fine-tuned over our fake review datasets with default hyperparameters from the official documentation (learning rate 2 × 10−5, batch 4, 3 epochs at LoRA rank 16 for efficient fine-tuning). It shows that Llama-3-8B is also very accurate (95.4% in Yelp, 93.8% in Amazon, 92.1% in Google Maps) but is 1.4% (FMA-Net GEMS), 1.3% (FMA-Net GEMS), and 1.5% (FMA-Net GEMS) more inaccurate than GEMS-optimized FMA-Net with 178× more parameters (8B vs. 45M). Most importantly, the efficiency indicators GEMS-optimized FMA-Net gives Llama-3-8B (inference latency 12.3 ms (20×), memory 180 MB (89×), and training time 7.2 h (22×)) show that FMA-Net is more efficient than Llama-3-8B with latency 247 ms, memory 16 GB, and training time 156 h. We conclude these results validate our assumption that general-purpose LLMs are computationally more expensive than for more efficient task-specific architectures for their prerequisites with advanced optimization techniques. The Llama-2-7B model was slightly less capable (93.8%, 92.1%, 90.6%) over the various datasets. This trend holds true because this model was released prior to Llama-3 and has received less in-depth pretraining. The baseline LLMs were assessed with their default hyperparameters and were not GEMS-optimized. The comparison with state-of -the art models across three categories—large transformers, domain-specific models, and lightweight LLMs—and the results are tabulated in Table 12.
Table 11. Extended Baseline Comparison (Storage and Memory Specifications).
Table 12. Extended Baseline Comparison—State-of-the-Art Models.

5.6. Adaptive Weight Ablation Study

The sigmoid-based adaptive weight (Equation (15)) demonstrates superior performance for three reasons:
  • Smooth Transitions: The tanh function provides continuous, differentiable transitions between MPA exploration (w → 1) and HGSO exploitation (w → 0), avoiding the algorithmic instability observed with abrupt step functions (F1 = 0.959 vs. 0.968, −0.9% degradation).
  • Diversity Responsiveness: Unlike time-based functions (linear, exponential, logistic), the sigmoid variant responds to actual population diversity D(t). When diversity collapses prematurely (D << D0), w → 0 triggers intensive exploitation regardless of iteration count. When diversity remains high (D >> D0), w → 1 maintains exploration even in late iterations. This adaptivity yields 20% faster convergence (41 vs. 52 iterations) compared to fixed weighting.
  • Bounded Output: The 0.5 × (1 + tanh(…)) formulation ensures w(t) ∈ [0,1] with smooth saturation at extremes. This maintains interpretability as an interpolation weight between two algorithms while preventing numerical issues from unbounded values. Table 13 confirms these design principles translate to measurable performance advantages: +0.3% to +0.9% F1-score improvement over alternative formulations.
    Table 13. Weight Function Ablation (30 runs per function, Yelp dataset).

5.7. GEMS Hyperparameter Sensitivity and Design Rational

5.7.1. Diversity Threshold D0 = 0.10

The diversity threshold D0 determines when to shift between exploration and exploitation. We set D0 = 0.10 based on normalized diversity metrics:
D(t) = (1/N) Σi ||Hi − H−||/||Hmax − Hmin||
where H− is the population centroid. Normalization ensures D(t) ∈ [0, 1]. The value 0.10 represents the point where: −D(t) > 0.10: Population is still diverse → Continue exploration −D(t) < 0.10: Population is converging → Intensify exploitation. Empirical Validation: We tested D0 ∈ {0.05, 0.08, 0.10, 0.12, 0.15, 0.20}, and analysis of the D0 parameter is depicted in Table 14.
Table 14. D0 Parameter Analysis.

5.7.2. Gas Solubility Decay Rate α = 1.0

The gas solubility coefficient decays as:
H_s(t) = H0 · exp(−αt/T)
The decay rate α controls the exploration–exploitation transition speed α < 1: Slow decay → Prolonged exploration → Delayed convergence − α = 1: Exponential decay → Balanced transition − α > 1: Fast decay → Premature exploitation → Local optima risk. We selected α = 1.0 to match the exponential convergence rate predicted by Corollary A1: E [T_ε] ≤ C·N·M·log(1/ε). This ensures the acceptance probability decay aligns with the theoretical convergence trajectory.
We tested α ∈ {0.5, 0.7, 1.0, 1.3, 1.5, 2.0}, and α parameter analysis results are depicted in Table 15.
Table 15. α Parameter Analysis.

5.7.3. Phase Split T/3 (Exploration: 0–33%, Transition: 34–66%, Exploitation: 67–100%)

The three-phase structure aligns with established metaheuristic convergence theory, Phase 1 (0-T/3): Exploration-dominant, Goal: Cover search space, identify promising regions, MPA Lévy flights provide global search, Acceptance probability high (Hs ≈ 0.37–1.0 × H0) − Phase 2 (T/3–2T/3): Balanced transition, Goal: Refine promising solutions, maintain diversity, Adaptive switching between MPA and HGSO based on D(t), Acceptance probability moderate (Hs ≈ 0.14–0.37 × H0)—Phase 3 (2T/3-T):
Fine-tune best solutions, guarantee convergence HGSO + elite Gaussian refinement, Acceptance probability low (Hs ≈ 0–0.14 × H0). The 1/3-1/3-1/3 split provides sufficient time for each phase while preventing premature transitions. We tested phase splits: T/4-T/2-T/4, T/3-T/3-T/3, T/2-T/4-T/4, and T/5-T/5-3T/5; phase split results are depicted in Table 16.
Table 16. Phase Split Analysis.
The selection of D0 = 0.10, α = 1.0, and T/3 phase split is not arbitrary, but the framework uses theoretical concepts that scientists have proven through scientific research. Sensitivity analysis (Table 14 and Table 15) confirms these parameters lie at the optimum. The system shows a performance decline of 0.2–0.5% in F1-score when it operates under ±20% variation conditions and 20–60% increases in convergence variance. The system continues to resist all minor changes it encounters. The system operates dependably when D0 variations range from 0.08 to 0.12 and α variations range from 0.7 to 1.3. The system operates across multiple optimization scenarios, which it handles without needing any problem-dependent parameter adjustments.

6. Computational Complexity Analysis

6.1. Theoretical Complexity Comparison

Table 17 presents the in-depth GEMS analysis of its optimization algorithms and the FMA-Net architecture itself. GEMS’s per-iteration complexity O(N·M·E) N = 100, M = 15, and E is the cost of performing a fitness evaluation. The critical difference is the convergence efficiency. GEMS takes fewer iterations (T ≈ 40–50 to 95% convergence) than PSO and GA (T ≈ 60–80). The total optimization complexity is O(50·100·15·E) ≈ 75,000·E for GEMS and O(70·100·15·E) ≈ 105,000·E for PSO. Thus, GEMS optimization complexity produces 29% computational savings while still providing better solutions.
Table 17. Computational Complexity Comparison.
The FMA-Net’s forward pass complexity integrates the attention module’s O(n2·d) term with Mamba’s O(n·dh) state–space computation as follows. The parameters n, d, and dh denote the length of the sequence, the dimension of the embedding, and the dimension of the hidden state, respectively. For long sequences n > 512, the portion quadratic in attention predominates. However, the Mamba’s O(n·dh) linear scaling of computational complexity helps for asymptotic benefits for extremely large documents. The evaluation between optimization time (training phase) and inference time (deployment phase) in Table 17 and Table 18 shows the main factor that determines performance. The results in Table 18 show that GEMS produces the best F1-score of 0.968 while using 7.2 h of optimization time, which outperforms other hyperparameter optimization techniques by 60–74% (Grid Search: 28.3 h, Random Search: 18.6 h, Bayesian Optimization: 20.5 h). The single optimization expense results in an FMA-Net model that contains its best possible hyperparameter settings. Table 19 presents the inference performance of the resulting GEMS-FMA-Net configuration, which achieves 12.3 ms per sample, comparable to other FMA-Net variants (12.1–12.4 ms) since the underlying architecture remains identical. The system GEMS-FMA-Net provides 2.3 times faster inference speed than BERT-Base (28.7 ms) and outperforms DeBERTa-v3-Large (89.3 ms) by 7.3 times and Llama-3-8B (247.1 ms) by 20.1 times while achieving better classification results. The GEMS provides two main benefits because it finds the best hyperparameters efficiently while running at high speed, which matches production needs for fast model training and quick system reactions.
Table 18. Optimization Time Comparison.
Table 19. FMA-Net Inference Time Analysis.
In practice, the hybrid formulation works through optimized CUDA kernels and fuses attention with state–space operations, realizing effective complexity of O(n·d2) for typical review lengths n ≤ 512. The space complexity O(N·M) of population-based metaheuristics conservatively bounds the memory usage. For N = 100 and M = 15, the memory footprint, even with auxiliary data structures, remains less than 5 GB. For large iteration budgets, the O(T2) damping maxes the BO-GP for practical use to T ≤ 1000, as iteration budgets become prohibitive. For consumer-grade GPUs, GEMS falls in the class of memory footprint, enabling widespread access to advanced optimization. This feature stands out for practitioners of GEMS, as the multiple parallel optimizations run to explore various architectures and parameters given in Table 20 benefit the users, with extreme memory limitation interfacing the multiple parallel optimization runs.
Table 20. GEMS Parameter Sensitivity Analysis (Yelp Dataset, 30 runs per config).
The time taken to conduct inference shows there is an efficiency gap between FMA-Net and pure transformers. It takes FMA-Net, at most, 12.3 ms to process a review as BATCH SIZE 32 on an A100 GPU, which, a great mystery, is 2.3× and 2.6× faster than BERT-Base and RoBERTa-Base, respectively. This is FMA-Net’s Mamba gain that originates from the linear complex and reduced attention head found through GEMS optimizations. Attending to the case of production systems that require the processing of thousands of reviews every second, the Mamba latency becomes FMA-Net’s efficiency deficiency, and savings from the robust infrastructure cost become the deficiency gain. This is the latency of the whole inefficiency cycle that comes from 12.3 ms in the whole cycle of tokenization, model forward pass, and post processing, and is the production inference time end to end.

6.2. Scalability Analysis

We assess GEMS’s scalability by changing population size N and with problem dimensionality M simultaneously. Fixed M = 15 for runtime population size function is shown in Table 5. The runtime increases and scales linearly with population size (correlation coefficient r = 0.998), substantiating the O(N) dependence. The ability to make trade-offs increases the flexibility for practitioners with respect to computation budget and level of optimization desired. There is a 200 population N size increase that achieves slightly better solutions (0.2–0.4% F1) and an increase in computational cost by a factor of 2, while the 50 population N size achieves a 10% optimal solution in a cost-effective and time-bound approach. Dimensionality scaling (Table 5) shows expected O(M) growth, though slightly super-linear for M > 20. The super-linear is a byproduct of the complexity of the fitness landscape in the higher dimensions caused by more iterations required for maintaining convergence. The optimization time for M = 25 hyperparameters (more complicated architectures) increases to 10.8 h as compared to 15 on M = 7.2, which is a 1.5 increase for 1.67 more dimensions. The GEMS sub-quadratic scaling proves the use of GEMS with architectures with many tunable parameters is needed with the deep learning approaches.
An analysis of zooming efficiency provides an almost linear speed up across fitness evaluations distributed to several GPUs. With eight GPUs, GEMS achieves a speed up of 7.3× (91% parallel efficiency) relative to a single GPU execution. The observed slight sub-linearity is a consequence of the time spent updating population synchronizations and master–worker exchanges while communicating to partition tasks for evaluating population members. Strong scaling characteristics, however, permit the distributed optimization of large-scale problems, which is a practical advantage offered by cloud deployments. Dynamic cloud partitioning is particularly advantageous, which is important as the partitioned resources can be auto-scaled depending on the progress of the optimization process. For all of the optimization algorithms, the memory usage is kept to a minimum and is measured as the peak value. For GEMS, the value is 4.1 GB for population, gradient buffers, and other auxiliary data structures, which is almost equal to the peak memory value of the other methods being analyzed (PSO = 3.6 GB, HHO = 3.5 GB). The memory optimum of 2.3 GB for Gaussian Process Bayesian Optimization is for a lot lower parallelism and convergence speed. The biggest value of 4.8 GB maximum memory usage for all other methods being tested is due to the large populations and the low chromosome representation for the Genetic algorithms. While the 45M parameters of the FMA-Net model is low, it is still a contributing factor to the optimization population memory when compared to the large resources of the FMA-Net and the population stored by the Adam optimizer. The optimization with these methods means that these can be run on frequency scales of cheaper GPUs rather avoiding the expensive high-memory models.

7. Discussion

7.1. Algorithm Design Insights

Several ablation studies along with convergence analyses pinpoint specific design choices as the basis for GEMS’s exceptional performance. In terms of the quasi-random Sobol initialization, it reduces the number of iterations needed for the algorithm to find promising new areas to sample by 20% as it covers the search space uniformly and more efficiently than uniform random sampling. This method is especially advantageous in high-dimensional spaces where the curse of dimensionality severely hampers sampling effectiveness. Even with small populations like N = 100, GEMS still draws near to all the major areas of the hyperparameter space, and random blind spots are eliminated because of the low-discrepancy concept. The second policy relates to the adaptive phase-switching mechanism, which focuses on the population’s divergences and their fitness improvements. It solves one of the most important metaheuristic difficulties of dominance in the level of dominance of exploration to the level of exploitation. In the more prominent GEMS, there is still early MPA of the Lévy flights, which allows for global exploration without becoming stuck, and later the gradual switch allows for proper convergence to the local optimum with the more prominent HGSO’s concentration-gradient exploitation. The gentle nature of the transition prevents sharp changes, which are destabilizing to the process of optimizing and are the qualities that phase transition algorithms tend to have. If one sets the switches too early, which is before 30 iterations, the performance is most degraded, to 2.3%, and if set too late, which is after 70 iterations, the resources are better spent elsewhere.
The stochastic fluctuations are buffered while keeping a certain degree of diversity by means of local escaping operators with elite preservation. With regard to the statistical ‘topographical map’ (before segmentation), the elite 10 percent of the solutions are untouchable by random changes and so clutch onto optimization progress over several iterations. In the same breath, the local escaping operator becomes active when stagnation (in the best fitness over 10 iterations) is detected. This operator injects random creativity into the system to escape local optima. This dual mechanism is a substantial improvement over pure elitism, which tends to lead to convergent phenomena, and pure randomness, which accumulates no progress. In perturbation, Cauchy mutation is used. It has heavier tails than Gaussian mutation and thus allows for the occasional very large step, which is necessary to escape deep local optima. The evaluation of fitness by means of 5-fold cross-validation strikes a balance between overconfidence and parsimony of computation. Single-fold evaluation noise is so great that optimization ends up ‘overfitting’ to certain partitions of a given dataset. On the other hand, 10-fold cross-validation increases the cost of computation by nearly 100 percent, while the accuracy gained is less than half a percent in the experiments conducted. The 5-fold balance is a result of such cost ‘outcome’ relationships. It is reasonably robust while keeping the cost of computation within limits. Ensuring a balance of classes across folds with stratified folding is very essential, particularly for datasets used in Fake Review Detection, which in many cases are very unbalanced.

7.2. FMA-Net Architecture Advantages

The weaknesses of the unaltered state–space and attention-only frameworks are resolved through the combination design of Mamba and the attention subsystems. The state–space component of Mamba selectively captures state information and, in so doing, models distant ties or dependencies with linear complexity. Unlike full-attention models that require O(n2) memory for sequence length n, Mamba’s selective state–space mechanism achieves linear O(n) complexity, enabling efficient processing of variable-length review narratives (ranging from 50 to 800 words in our datasets) without the memory bottleneck that limits traditional transformer architectures. Our review datasets range in size from 50 to 800 words, and that range is preserved without aggressive truncation. That range of review lengths means that selective attention flow is preserved through the responsive state mechanism. Only the critical pieces of information of deception are retained, and the rest are suppressed.
In terms of the Mamba systems, selective attention flow is supplied through responsive state mechanisms. Only critical signals of deception are fully retained, and suppressed masks are irrelevant. The meaning of attention is fully resolved through multi-head attention with 8–12 heads (determined through GEMS optimization), which capture distinct linguistic parameters relevant to deception. Some heads are designed to track cross systems sentiment, style, and suspicious flows of praise, volume, and suspicious temporal shifting. The attention patterns reverse intervals in cross-phonologization. More heads segregated in phoneme glows enhance the model’s anatomy performance. The ascription method confirms the attention heads learn specialized roles. Head specialization is developed during the training as an organic phenomenon without a scope or restrictions. The learned fusion mechanisms outperform fixed scaling schemes thanks to the adaptive balancing of Mamba and attention contributions. The fusion weight λ, as optimized by GEMS (0.55–0.62 across datasets), indicates that both elements yield comparable contributions, reinforcing the validity of the hybrid framework. The subtle differences across datasets (λ = 0.58 for Yelp, 0.62 for Amazon, and 0.55 for Google Maps) reflect that the most beneficial equilibrium is contingent on review type. The longer reviews on Yelp tend to benefit Mamba’s long-range modelling to a greater degree, while the reviews on Amazon’s attention to the structured collection of reviews to be focused on a particular item guide pay more attention to the review’s focused attention discrimination.
This is a key benefit for models that do not possess fixed integration strategies. The architectural efficiency, 45 M parameters compared to BERT’s 110 M, bestows pragmatic ease of deployment advantages without loss of performance. The compact size results in a 35% reduction in training time, 57% reduction in inference latency, and 48% reduction in memory usage compared to BERT-Base. These efficiency improvements are extremely beneficial in production scenarios where millions of reviews are processed, since lower latency directly yields lower operational costs. GEMS’s discovery of the best architectural embeddings, 6–8 layers compared to 12 in BERT, K, accounts for the lack of over-parameterization. This disproves the assumption that larger models are greater performers, showing that task-appropriate architecture with careful optimization can outperform generic pretrained behemoths.

7.3. Practical Deployment Considerations

GEMS-optimized FMA-Net demonstrates production readiness given its 12.3 ms inference latency, which supports real-time processing at scale. This enables real-time processing at scale for applications requiring immediate feedback regarding the reviews and their results. The model’s calibration—predicted probabilities accurately reflect what the actual chance of the review being fake is—also helps set the thresholds for tuning on the basis of Application cost value. Applications that value precision more than recall (e.g., to not place any false charges on real reviewers) can set the thresholds to boosted levels, whereas systems that are intolerant to any fraud can drop the thresholds to have maximum sensitivity for detection. The calibrated probabilities create confidence scores that are not pseudo-probabilities and can be acted upon. The retrain workflows are enabled due to the optimization framework’s efficiency of computation. E-commerce sites can revise models that are retrained with constant changing review patterns. GEMS can bring the optimization time down for several days of grid search to less than 8 h. The rate at which models can be changed is directly proportional to change in fraud techniques, with the fast turnaround also being effective for the adversaries. The standard deviation across runs with consistent optimization outcomes ensures model retraining is reliable and bounding performance and degradation does not change. GEMS is effective in this aspect as organizations can be sure GEMS will be set up for automated retraining, knowing GEMS will bring optimal configurations as baseline.
Further Domain Generalization Characteristics help simplify use for different product types or review sites with minimal additional training required. A restaurant review GEMS-optimized model retains 85% performance on hotel reviews, which greatly reduces the number of required category-specific models. This generalization in turn simplifies the infrastructure and maintenance, which are greatly reduced for model deployment and monitoring. Transfer learning increases the ease of use even more. A GEMS-optimized model that is fine-tuned for 2–3 epochs achieves the same performance as a model that was trained from scratch and does so with 10 times less computation. Automated Content result moderation requires systems that are efficient, reliable, and capable of self-explaining. This is where the easier forms of automated reasoning come into play. Attention mechanisms provide the sought-after explanation in the form of attention weight visualizations that help highlight the portions of text marked as fake, thus enabling reviewers to quickly assess the model’s conclusions. The ability to explain model decisions is particularly valuable in regulated industries where audit and oversight are required to prove that automated decisions have a sound rationale. Best of all, the performance, efficiency, and generalization all highlight GEMS-Optimized FNMA-Net as a genuinely optimized solution for production fake review detection systems instead of merely a research prototype.

8. Conclusions

This study proposed and evaluated GEMS (Gas-Enhanced Marine Search), a new hybrid metaheuristic model aimed at optimizing the architecture of neural networks used for Natural Language Processing (NLP) tasks. It explores the strength of the Marine Predators Algorithm in exploration and the Henry Gas Solubility Optimization in strong exploitation. This is GEMS’s answer to fundamental gaps in the existing approaches to optimization. A combination of the adaptive phase-switching mechanism, quasi-random initialization, and elite preservation with local escaping helps to navigate the high-dimensional hyperparameter landscape of newly developed deep learning architectures. We custom tailored GEMS for optimizing the Fusion Mamba-Attention Network (FMA-Net), which is a hybrid model that incorporates state–space selective attention mechanisms for fake review detection. Through intensive testing on three benchmark datasets, it was found that the GEMS-optimized FMA-Net achieved exceptional results, attaining a 96.8% accuracy and a 0.954 F1-score on the Yelp review dataset, outperforming other optimization algorithms by a 2.6–7.6 percentage points, setting a new record for FMA-Net performance. The high optimization efficiency is marked by converging 42% faster than genetic algorithms while needing 68% fewer evaluations than classic brute-force Grid Search, which demonstrates that the model is also resource-efficient.
In addition to performance metrics, our work sheds light on the relationship between optimization techniques and neural structures. The ablation studies show that sophisticated hyperparameter optimization can achieve results that rival those of architectural changes, which calls into question the focus of the field on new architectures rather than more refined optimization. The cross-domain generalization analysis indicates that well-designed compact models can outperform large, off-the-shelf, pretrained models on specific transfer tasks, which indicates that design with the intent of optimization is a valuable strategy for building efficient NLP systems. Next steps include GEMS’s extension to joint architecture and hyperparameter search, development of efficiency-focused surrogate-assisted variants, and cross-domain transfer effectiveness validation. The addition of meta-learning to enable the more efficient transfer of optimization techniques across problems could decrease the overall computation in the system. As the complexity of neural architectures increases, the need for more sophisticated optimization approaches will grow. GEMS is a step towards making powerful optimizers available to the research community.

Author Contributions

S.R.P.C., D.P. and R.T.: Writing—review & editing, Writing—original draft, Visualization, Validation, Software, Resources, Project administration, Methodology, Investigation, Formal analysis, Data curation, Conceptualization. D.P. and R.T.: Supervision, Funding acquisition. All authors have read and agreed to the published version of the manuscript.

Funding

Partial financial support received from Dr. Rajermani Thinakaran: INTI IU Research Seeding Grant 2023: INTI-FDSIT-02-12-2023.

Data Availability Statement

The datasets used in this study are all publicly available benchmark datasets: Yelp Open Dataset is publicly available at https://www.yelp.com/dataset (accessed on 20 February 2026), For fake review detection research with ground truth labels, the YelpCHI and YelpZip datasets curated by Rayana and Akoglu are available through the Outlier Detection Datasets (ODDS) repository at Stony Brook University (https://odds.cs.stonybrook.edu/, accessed on 20 February 2026). Amazon product review dataset is publicly accessible through multiple repositories maintained by Professor Julian McAuley at the University of California San Diego. The primary dataset repository is available at https://cseweb.ucsd.edu/~jmcauley/datasets/amazon/ (accessed on 20 February 2026) and the Stanford Network Analysis Project (SNAP) at https://snap.stanford.edu/data/web-Amazon.html (accessed on 20 February 2026). The Google Maps review dataset containing reviews of hotels, restaurants, and attractions was compiled following methodologies described in the literature for semi-supervised fake review detection. The dataset comprises 41,680 reviews with labels derived through a semi-supervised approach combining metadata analysis (reviewer account age, review velocity) and linguistic features. This dataset presents unique challenges due to shorter average review length (80 words) and increased linguistic diversity from international contributors. The authentic-to-fake review ratio in this dataset is approximately 3:1. Researchers interested in accessing similar Google Maps review datasets for fake review detection research may refer to established fake review detection repositories or contact the authors for information regarding dataset compilation methodologies. All datasets are properly cited within the manuscript and were used solely for the purpose of computational analysis. No new datasets were generated in this study. Code and Model Availability: Available upon reasonable request.

Conflicts of Interest

On behalf of all authors, the corresponding author states that there is no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
FMA-NetFusion Mamba-Attention Network
GEMSGas-Enhanced Marine Search
MPAMarine Predators Algorithm
GAGenetic Algorithms
PSOParticle Swarm Optimization
HHOHarris Hawks Optimization
DeBERTDecoding-ehanced BERT
Bi-LSTMBidirectional Long Short-Term Memory
CNNConvolutional Neural Network
ECGElectrocardiogram
NLPNatural Language Processing
RNNRecurrent Neural Network
GPUGraphics Processing Unit
TPUTensor Processing Unit,
BSTBlock-State Transformer
GWOGrey Wolf Optimization
OBLOpposition Based Learning
LSTMLong Short-Term Memory
BERTBidirectional Encoder Representations from Transformers
LLMLarge Language Model
GSGrid Search
RSRandom Search
BO-GPBayesian Optimization with Gaussian Processes
TPETree-structured Parzen Estimator
RoBERTaRobustly Optimized BERT Pretraining Approach

Appendix A

Theorem A1. 
(Finite-Time Convergence)
Under the following assumptions:
(A1) Boundedness: The fitness function f:  R M   →   R  is bounded: |f(H)| ≤ K for all H ∈ ℋ and some K > 0, where ℋ ⊂  R M  is the bounded hyperparameter space.
(A2) Elite Preservation: Elite preservation maintains the top k solutions at each iteration, with 1 ≤ k ≤ N, where N is the population size.
(A3) Cauchy Mutation: The Cauchy mutation operator provides positive probability of reaching any point in the search space: for all ε > 0, there exists δ > 0 such that P(‖Hi(t+1) − H*‖ < ε | Hi(t)) ≥ δ > 0 for any Hi(t) ∈ ℋ and any local optimum H*.
Then GEMS converges to a local optimum with probability 1 as T → ∞.
Proof. 
We established convergence through six main steps, proving that GEMS forms an ergodic Markov chain whose stationary distribution concentrates mass on optimal solutions.
Step 1: Markov Chain Formulation
Define the state space 𝒮 = ℋN as the set of all possible population configurations. The GEMS algorithm induces a discrete-time Markov chain {P(t)} with state space 𝒮.
At each iteration t, the population evolves according to:
P ( t + 1 ) = T ( P ( t ) , ξ ( t ) )
where T is the transition operator combining MPA, HGSO, and elite preservation.
The transition probability from state s to state s’ is:
P ( s   →   s ′ ) = ∫ _ Ξ I { T ( s , ξ ) = s ′ }   d μ ( ξ )
This establishes that GEMS is a Markov chain.
Step 2: Monotonic Improvement via Elite Preservation
Let f*t = maxi f(Hi(t)) denote the best fitness value at iteration t. □
Claim. 
The sequence {f*t} is non-decreasing:
f*t+1 ≥ f*t    for all t ≥ 0
Proof. 
Elite preservation retains the top k solutions. Therefore:
f*t+1 = max{max_{H∈Elite} f(H), max_{new} f(H)} ≥ f*t
Combined with boundedness, by the Monotone Convergence Theorem:
lim_{t→∞} f*t = f* ∈ ℝ
Step 3: Ergodicity via Irreducibility and Aperiodicity
We establish ergodicity through two lemmas. □
Lemma A1. 
(Irreducibility)
Statement. 
The Markov chain {P(t)} is irreducible.
Proof. 
The Cauchy mutation operator has heavy tails:
p_C(x) = 1/[πγ(1 + (x/γ)2)]
Satisfying:
∫_{|x| > r} p_C(x) dx > 0    for all r > 0
Thus, arbitrarily large jumps occur with positive probability, ensuring any point is reachable. □
Lemma A2. 
(Aperiodicity)
Statement. 
The Markov chain {P(t)} is aperiodic.
Proof. 
Elite preservation ensures P(s → s) > 0. Since d(s) = gcd{n: P(n)(s → s) > 0} and 1 is in this set, d(s) = 1. □
From Lemmas A1 and A2: The chain is ergodic.
Step 4: Stationary Distribution Exists
By the Perron-Frobenius Theorem, there exists a unique stationary distribution π* satisfying:
π * = π *   P
Furthermore:
lim_{t→∞} ‖π(t) − π*‖_TV = 0
Step 5: Concentration on Optimal Regions
Define the β-optimal set:
𝒪_β = {H ∈ ℋ: f(H) ≥ f* − β}
Lemma A3. 
(Concentration—Theoretical Framework)
While the combination of irreducibility (any state is reachable) and monotonicity (fitness never decreases) theoretically suggests the algorithm should favor high-fitness regions, a rigorous proof that π*(𝒪_β) ≥ 1-ε requires advanced techniques beyond the scope of this applied engineering paper. Instead, we provide strong empirical evidence supporting concentration on optimal regions: (i) Figure 3b demonstrates that convergence probability P(f ≥ 0.95f*) reaches 0.94 by iteration 40 and 0.98 by iteration 60, indicating the algorithm consistently finds near-optimal solutions; (ii) Figure 3c shows expected displacement E[||H_best(t + 1) − H_best(t)||] converges to near-zero (0.01, representing 1% of search range) by iteration 55, confirming convergence to a stationary point; (iii) Table 2 verifies convergence independence from initialization with three different schemes (random, Sobol, Latin Hypercube), all yielding F1 = 0.967–0.968, with no statistically significant difference (Kruskal–Wallis p = 0.73). These empirical results strongly support that GEMS’s stationary distribution concentrates mass on near-optimal regions in practice, validating the theoretical framework for applied optimization scenarios.
Statement. 
For any ε > 0, there exists β > 0 such that π*(𝒪_β) ≥ 1 − ε.
Step 6: Almost Sure Convergence
Combining Lemma A3 and Equation (A9):
lim_{t→∞} P(f*_t ≥ f* − ε) ≥ 1 − ε
Taking ε → 0: lim_{t→∞} P(f*_t ≥ f*) = 1
By Durrett’s Theorem 2.5.2 (convergence in probability → almost sure convergence):
P(lim_{t→∞} f*_t = f*) = 1
This establishes that GEMS converges to a local optimum with probability 1.
Corollary A1. 
(Expected Convergence Time)
Under Assumptions (A1)–(A3) with α = 1.0 and D0 = 0.10, GEMS achieves ε-optimality in expected time:
E [ T _ ε ] ≤ C · N · M · log ( 1 / ε )
where C > 0 depends on problem characteristics, N is population size, M is dimensionality, and ε is optimality tolerance.
Proof Sketch. 
Exponential decay combined with Lévy flights yields log-linear convergence [57].
  • Local vs. Global: Convergence is to a local optimum. Global optimality requires additional assumptions.
  • Empirical Validation: Table 2 shows P(f ≥ 0.95f*) = 0.95 by iteration 40, supporting the log-linear rate.
  • Parameters: Convergence holds for wide ranges, but rate is optimized with α = 1.0 and D0 = 0.10.
  • Literature: Proof follows [58] but adapts to GEMS-specific mechanisms (MPA + HGSO + adaptive switching + Cauchy mutation). □

References

  1. Luca, M.; Zervas, G. Fake it till you make it: Reputation, competition, and Yelp review fraud. Manag. Sci. 2016, 62, 3412–3427. [Google Scholar] [CrossRef] [Scilit]
  2. Zhang, Y.; Yin, D.; Davison, B.D. Detection of fake and misleading reviews. In Proceedings of the IEEE International Conference on Big Data, Orlando, FL, USA, 15–18 December 2021; pp. 2458–2467. [Google Scholar]
  3. Gu, A.; Dao, T. Mamba: Linear-time sequence modeling with selective state spaces. arXiv 2023, arXiv:2312.00752. [Google Scholar] [CrossRef] [Scilit]
  4. Snoek, J.; Larochelle, H.; Adams, R.P. Practical Bayesian optimization of machine learning algorithms. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), Lake Tahoe, NV, USA, 3–6 December 2012; pp. 2951–2959. [Google Scholar]
  5. Abd Elaziz, M.; Hosny, K.M.; Salah, A.; Darwish, M.M.; Lu, S.; Sahlol, A.T. New machine learning method for image-based diagnosis of COVID-19. PLoS ONE 2020, 15, e0235187. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  6. Faramarzi, A.; Heidarinejad, M.; Stephens, B.; Mirjalili, S. Equilibrium optimizer: A novel optimization algorithm. Knowl.-Based Syst. 2020, 191, 105190. [Google Scholar] [CrossRef] [Scilit]
  7. Hashim, F.A.; Houssein, E.H.; Mabrouk, M.S.; Al-Atabany, W.; Mirjalili, S. Henry gas solubility optimization: A novel physics-based algorithm. Future Gener. Comput. Syst. 2019, 101, 646–667. [Google Scholar] [CrossRef] [Scilit]
  8. Zhao, Y.; Li, T.; Yuan, Q.; Deng, S. How to detect fake online physician reviews: A deep learning approach. Digit. Health 2024, 10, 1–13. [Google Scholar] [CrossRef] [Scilit]
  9. Geetha, S.; Elakiya, E.; Kanmani, R.S.; Das, M.K. High performance fake review detection using pretrained DeBERTa optimized with Monarch Butterfly paradigm. Sci. Rep. 2025, 15, 7445. [Google Scholar] [CrossRef] [Scilit]
  10. Singh, U.P.; Kaur, N. Deep learning based online fake review detection technique. J. Ambient Intell. Humaniz. Comput. 2024, 16, 179–188. [Google Scholar] [CrossRef] [Scilit]
  11. Wang, X.; Zhang, H.; Chen, L. Large language model meets chaos: A new deep learning model for fake review detection. Expert Syst. Appl. 2025, 268, 125468. [Google Scholar]
  12. Hosseinzadeh, R.; Sadeghzadeh, M. Attention mechanisms in transformers: A general survey. J. AI Data Min. 2025, 13, 359–368. [Google Scholar]
  13. Dao, T.; Gu, A. Transformers are SSMs: Generalized models and efficient algorithms through structured state space duality. In Proceedings of the International Conference on Machine Learning (ICML); PMLR: Cambridge, MA, USA, 2024. [Google Scholar]
  14. Zhu, L.; Liao, B.; Zhang, Q.; Wang, X.; Liu, W.; Wang, X. Vision mamba: Efficient visual representation learning with bidirectional state space model. arXiv 2024, arXiv:2401.09417. [Google Scholar] [CrossRef] [Scilit]
  15. Lieber, O.; Lenz, B.; Bata, H.; Cohen, G.; Osin, J.; Dalmedigos, I.; Safahi, E.; Meirom, S.; Belinkov, Y.; Shalev-Shwartz, S.; et al. Jamba: A hybrid transformer-mamba language model. arXiv 2024, arXiv:2403.19887. [Google Scholar] [CrossRef] [Scilit]
  16. Zhu, X.; Ruan, Q.; Qian, S.; Zhang, M. A hybrid model based on transformer and Mamba for enhanced sequence modeling. Sci. Rep. 2025, 15, 11428. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  17. Qu, H.; Ning, L.; An, R.; Fan, W.; Derr, T.; Liu, H.; Xu, X.; Li, Q. A survey of mamba. arXiv 2024, arXiv:2408.01129. [Google Scholar] [PubMed]
  18. Pilault, J.; Fathi, M.; Firat, O.; Pal, C.; Bacon, P.L.; Goroshin, R. Block-state transformers. Adv. Neural Inf. Process. Syst. 2024, 36, 7311–7329. [Google Scholar]
  19. Lenz, B.; Lieber, O.; Arazi, A.; Bergman, A.; Manevich, A.; Peleg, B.; Aviram, B. Jamba: Hybrid transformer-mamba language models. In The Thirteenth International Conference on Learning Representations; OpenReview: San Diego, CA, USA, 2025. [Google Scholar]
  20. Ibrahim, M.Q.; Hussein, N.K.; Guinovart, D.; Qaraad, M. Optimizing Convolutional Neural Networks: A Comprehensive Review of Hyperparameter Tuning Through Metaheuristic Algorithms. Arch. Comput. Methods Eng. 2025, 32, 5123–5160. [Google Scholar] [CrossRef] [Scilit]
  21. Gülsün, B.; Aydin, M.R. Optimizing a Machine Learning Algorithm by a Novel Metaheuristic Approach: A Case Study in Forecasting. Mathematics 2024, 12, 3921. [Google Scholar] [CrossRef] [Scilit]
  22. Purnomo, H.; Gonsalves, T.; Mailoa, E.; Santoso, F.J.; Pribadi, M.R. Metaheuristics approach for hyperparameter tuning of convolutional neural network. J. RESTI (Rekayasa Sist. dan Teknol. Informasi) 2024, 8, 340–347. [Google Scholar] [CrossRef] [Scilit]
  23. Bahrami, A.; Rakhshaninejad, M.; Ghousi, R.; Atashi, A. Tuning hyperparameters of machine learning algorithms and deep neural networks using metaheuristics: A bioinformatics study on biomedical and biological cases. Comput. Biol. Med. 2021, 139, 104494. [Google Scholar]
  24. Faramarzi, A.; Heidarinejad, M.; Mirjalili, S.; Gandomi, A.H. Marine predators algorithm: A nature-inspired metaheuristic. Expert Syst. Appl. 2020, 152, 113377. [Google Scholar] [CrossRef] [Scilit]
  25. Papalkar, R.R.; Jadhav, J.; Pattewar, T.; Thorat, V.; Morey, P.; Deshmukh, M.; Jagdale, R. WACSO: Wolf crow search optimizer for convolutional neural network hyperparameter optimization. Neural Process. Lett. 2025, 57, 31. [Google Scholar] [CrossRef] [Scilit]
  26. Hashim, F.A.; Houssein, E.H.; Hussain, K.; Mabrouk, M.S.; Al-Atabany, W. A modified Henry gas solubility optimization for solving motif discovery problem. Neural Comput. Appl. 2020, 32, 10759–10771. [Google Scholar] [CrossRef] [Scilit]
  27. Ali, Y.; Awwad, E.M.; Al-Razgan, M.; Maarouf, A. Hyperparameter search for machine learning algorithms for optimizing the computational complexity. Processes 2023, 11, 349. [Google Scholar] [CrossRef] [Scilit]
  28. Ekachandra, K.; Utami, N.; Suhanto, A. Optimizing long short-term memory hyperparameter for cryptocurrency sentiment analysis with swarm intelligence algorithms. Int. J. Artif. Intell. 2025, 14, 2753–2764. [Google Scholar] [CrossRef] [Scilit]
  29. Chen, Y.; Wang, L.; Zhang, H. Particle swarm optimization-based NLP methods for optimizing automatic document classification and retrieval. PLoS ONE 2025, 20, e0325851. [Google Scholar]
  30. Tiwari, D.; Bhati, B.S.; Nagpal, B.; Al-Rasheed, A.; Getahun, M. A swarm-optimization based fusion model of sentiment analysis for cryptocurrency price prediction. Sci. Rep. 2025, 15, 8119. [Google Scholar] [CrossRef] [Scilit]
  31. Nayak, G.H.H.; Alam, M.W.; Avinash, G.; Kumar, R.R.; Ray, M.; Singh, K.N. Meta-transformer: Leveraging metaheuristic algorithms for agricultural commodity price forecasting. J. Big Data 2025, 12, 138. [Google Scholar] [CrossRef] [Scilit]
  32. Nasir, M.U.; Earle, S.; Cleghorn, C.W.; James, S.; Togelius, J. LLMatic: Neural Architecture Search via Large Language Models and Quality Diversity Optimization. In Proceedings of the Genetic and Evolutionary Computation Conference (GECCO), Melbourne, VIC, Australia, 14–18 July 2024; pp. 1–9. [Google Scholar]
  33. Yao, J.; Liu, X.; Chen, W. Research on hybrid strategy Particle Swarm Optimization algorithm and its applications. Sci. Rep. 2024, 14, 76010. [Google Scholar] [CrossRef] [Scilit]
  34. Raiaan, M.A.K.; Sakib, S.; Fahad, N.M. A systematic review of hyperparameter optimization techniques in Convolutional Neural Networks. Decis. Anal. J. 2024, 11, 100470. [Google Scholar] [CrossRef] [Scilit]
  35. Mumtahina, U.; Alahakoon, S.; Wolfs, P. Hyperparameter tuning of load-forecasting models using metaheuristic optimization algorithms: A systematic review. Mathematics 2024, 12, 3353. [Google Scholar] [CrossRef] [Scilit]
  36. Liu, Y.; Li, T.; Dwivedi, K.; Kang, Y.; Guo, T.; Ishwar, P.; Kambhampati, U. Rethinking attention with performers. In Proceedings of the International Conference on Learning Representations (ICLR); OpenReview: San Diego, CA, USA, 2021. [Google Scholar]
  37. Somvanshi, J.; Islam, M.M.; Mimi, M.S. From S4 to Mamba: A Comprehensive Survey on Structured State Space Models. arXiv 2025, arXiv:2503.18970. [Google Scholar]
  38. Alam, M.; Cevallos, B.; Flores, O. Yelp dataset analysis using scalable big data. arXiv 2021, arXiv:2104.08396. [Google Scholar] [CrossRef] [Scilit]
  39. Khalil, A.; Alodibat, S.; Al-Madi, N. Fine-Tuning Fake Review Detection Models with Genetic Algorithms. In Proceedings of the 2025 International Conference on New Trends in Computing Sciences (ICTCS); IEEE: New York, NY, USA, 2025; pp. 176–183. [Google Scholar]
  40. Ennaouri, M.; Zellou, A. Machine learning approaches for fake reviews detection: A systematic literature review. J. Web Eng. 2023, 22, 821–848. [Google Scholar] [CrossRef] [Scilit]
  41. Sobol, I.M. On the distribution of points in a cube and the approximate evaluation of integrals. USSR Comput. Math. Math. Phys. 1967, 7, 86–112. [Google Scholar] [CrossRef] [Scilit]
  42. Johnson, D.S.; Aragon, C.R.; McGeoch, L.A.; Schevon, C. Optimization by simulated annealing: An experimental evaluation; part II, graph coloring and number partitioning. Oper. Res. 1991, 39, 378–406. [Google Scholar] [CrossRef] [Scilit]
  43. Viswanathan, G.M.; Afanasyev, V.; Buldyrev, S.V.; Murphy, E.J.; Prince, P.A.; Stanley, H.E. Lévy flight search patterns of wandering albatrosses. Nature 1996, 381, 413–415. [Google Scholar] [CrossRef] [Scilit]
  44. Jindal, N.; Liu, B. Opinion spam and analysis. In Proceedings of the International Conference on Web Search and Data Mining, Barcelona, Spain, 11–12 February 2008; pp. 219–230. [Google Scholar]
  45. McAuley, J.; Leskovec, J. Hidden factors and hidden topics: Understanding rating dimensions with review text. In Proceedings of the 7th ACM Conference on Recommender Systems, Hong Kong, China, 12–16 October 2013; pp. 165–172. [Google Scholar]
  46. Li, H.; Chen, Z.; Liu, B.; Wei, X.; Shao, J. Spotting fake reviews via collective positive-unlabeled learning. In Proceedings of the IEEE International Conference on Data Mining, Shenzhen, China, 14–17 December 2014; pp. 899–904. [Google Scholar]
  47. Bergstra, J.; Bengio, Y. Random search for hyper-parameter optimization. J. Mach. Learn. Res. 2012, 13, 281–305. [Google Scholar]
  48. Thornton, C.; Hutter, F.; Hoos, H.H.; Leyton-Brown, K. Auto-WEKA: Combined selection and hyperparameter optimization of classification algorithms. In Proceedings of the 19th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Chicago, IL, USA, 12 October 2013; pp. 847–855. [Google Scholar]
  49. Frazier, P.I. A tutorial on Bayesian optimization. arXiv 2018, arXiv:1807.02811. [Google Scholar] [CrossRef] [Scilit]
  50. Shi, Y.; Eberhart, R. A modified particle swarm optimizer. In Proceedings of the IEEE International Conference on Evolutionary Computation, Anchorage, AK, USA, 4–9 May 1998; pp. 69–73. [Google Scholar]
  51. Mirjalili, S. How effective is the grey wolf optimizer in training multi-layer perceptrons. Appl. Intell. 2015, 43, 150–161. [Google Scholar] [CrossRef] [Scilit]
  52. Devlin, J.; Chang, M.-W.; Lee, K.; Toutanova, K. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT 2019), Minneapolis, MN, USA, 2–7 June 2019; pp. 4171–4186. [Google Scholar] [CrossRef] [Scilit]
  53. Yang, X.-S. Metaheuristic Optimization: Algorithm Analysis and Open Problems; Springer: Berlin, Heidelberg, 2011. [Google Scholar]
  54. Heidari, A.A.; Pahlavani, P. An efficient modified grey wolf optimizer with Lévy flight for optimization tasks. Appl. Soft Comput. 2017, 60, 115–134. [Google Scholar] [CrossRef] [Scilit]
  55. Bergstra, J.; Bardenet, R.; Bengio, Y.; Kégl, B. Algorithms for hyper-parameter optimization. In Proceedings of the Advances in Neural Information Processing Systems (NeurIPS), Granada, Spain, 12–15 December 2011; pp. 2546–2554. [Google Scholar]
  56. Fawcett, T. An introduction to ROC analysis. Pattern Recognit. Lett. 2006, 27, 861–874. [Google Scholar] [CrossRef] [Scilit]
  57. Levin, D.A.; Peres, Y.; Wilmer, E.L. Markov Chains and Mixing Times; American Mathematical Society: Providence, RI, USA, 2009. [Google Scholar]
  58. Saravanan, G.; Yuvaraj, V.; Ramasubramanian, B.; Lakshmi Devi, R.; Afsar Ali, M.; Akshaya, T.R. A Unified Framework for Swarm Intelligence to Enhance Convergence and Reliability. In Proceedings of the 7th International Conference on Electrical, Control and Instrumentation Engineering (ICECIE); IEEE: New York, NY, USA, 2025; pp. 246–250. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.