ConceptioArchivearXiv CS
arXiv CSopen access

Transformer-Guided Swarm Intelligence for Frugal Neural Architecture Search

Unknown · 2026 · arxiv_cs
arXiv CS · Papers · License: Open Access · 2026
Open Source ↗Direct PDF ↓
machine learning, deep learning, neural networks

Transformer-Guided Swarm Intelligence for Frugal Neural Architecture Search Romain Amigon

arXiv:2607.11826v1 [cs.LG] 13 Jul 2026

Université du Québec à Chicoutimi (UQAC) Saguenay, Canada Email: [email protected] / [email protected]

Abstract—Neural Architecture Search (NAS) has automated the design of deep learning models but traditionally requires massive computational resources, often measured in thousands of GPU-days. In this paper, we propose a frugal and memetic NAS framework designed to democratize architecture design on consumer-grade hardware. Our approach combines the global macro-search capabilities of an autoregressive Transformer controller, trained via Reinforcement Learning (RL), with the local micro-exploitation of an Artificial Bee Colony (ABC) algorithm. To prevent premature convergence during the RL phase, we introduce a dynamic entropy mechanism that forces topological exploration upon detection of performance stagnation. Evaluated on a standard GPU (NVIDIA RTX 3060), our hybrid method effectively resolves the ”cold-start” problem inherent in metaheuristics. By algorithmically penalizing network depth, our framework actively mitigates model bloat: on the CIFAR10 dataset, it discovers an efficient architecture reaching 84.85% accuracy with only ∼174,000 parameters—significantly smaller than standard baselines like ResNet-20—in 3 hours of search time. Furthermore, we demonstrate the framework’s flexibility by applying it to credit card fraud detection, directly optimizing the F1-Score on highly imbalanced tabular data to reach a F1-Score of 0.71 with a compact network of ∼4,600 parameters. These results suggest that our approach can yield tailored, accessible, and highly parameter-efficient deep learning models suitable for edge deployment. Index Terms—Neural Architecture Search, Transformer, Artificial Bee Colony, Frugal AI, Reinforcement Learning, Memetic Algorithms.

I. I NTRODUCTION The design of neural networks has historically been dominated by an empirical approach, where hyperparameters and topology are chosen based on human experience. While Neural Architecture Search (NAS) has formalized this process by automating the discovery of optimal topologies, early Reinforcement Learning (RL) based methods faced prohibitive costs. Foundational works required hundreds of GPUs running for weeks [1]. Today, the field of NAS faces two intertwined challenges. The first is over-parameterization: the literature tends to produce architectures that are computationally redundant relative to the intrinsic complexity of their task. The second is a methodological gap in optimization. Traditional NAS controllers often rely on Recurrent Neural Networks (RNNs or LSTMs), which suffer from an information bottleneck. In a neural network, the choice of a specific layer strongly dictates the necessity of subsequent layers. LSTMs struggle to cap-

ture these long-range topological dependencies. Furthermore, while RL excels at finding a global macro-architecture, it is notoriously inefficient at fine-tuning continuous, micro-level hyperparameters. This paper presents nas-torch, a highly modular, ”whitebox” NAS framework specifically designed for applied engineering and resource-constrained environments. This work does not target state-of-the-art accuracy on large benchmarks, but rather serves as a proof of concept to demonstrate that highly efficient, task-specific feature extractors can be generated autonomously on hardware as constrained as a single consumer GPU. Rather than targeting marginal accuracy gains on massive compute clusters, our approach prioritizes democratic accessibility and structural flexibility. To this end, nas-torch provides a suite of plug-and-play frugal optimizers—including Random Search, Simulated Annealing, Artificial Bee Colony (ABC), and an autoregressive Transformer—while allowing researchers to easily integrate custom search algorithms. The primary objective of this paper is to benchmark these diverse optimization strategies under strict computational budgets and demonstrate how algorithmic hybridization can resolve their inherent individual limitations. For instance, while pure swarm metaheuristics struggle with the ”coldstart” problem in vast topological spaces, and Reinforcement Learning controllers lack micro-tuning granularity, we show that fusing them into a memetic pipeline (Transformer-guided ABC) effectively mitigates these bottlenecks. Ultimately, the framework completes this hybridized, highly efficient search in 3 hours on standard consumer-grade hardware. Our main contributions include: 1) We replace the RNN controller with a lightweight autoregressive Transformer controller containing ∼68,000 parameters, which organically leverages causal sequence representations to integrate smoothly as a structural prior into the memetic pipeline. 2) A multi-objective reward function integrating a strict depth penalty to actively penalize model bloat for embedded and edge deployment. 3) A memetic optimization pipeline bridging the macro/micro gap (Transformer ”warm-start” followed by local ABC micro-exploitation) that significantly reduces the computational search cost compared to historical RL frameworks.

4) The demonstration of the framework’s domain agnosticism and practical flexibility, successfully optimizing tabular regression, medical classification, and highly imbalanced industrial fraud data on a single GPU. The source code is publicly available at: https://github.com/ Romain-Amigon/nas-torch II. R ELATED W ORK Reinforcement Learning NAS: The approach pioneered by Zoph & Le used Recurrent Neural Networks updated via Policy Gradient to generate architectures from scratch [1]. While groundbreaking, these fundamental methods suffer from severe computational overhead (up to 22,400 GPU-days), isolating NAS research within well-funded industrial laboratories. NAS Acceleration: To mitigate this cost, structural shortcuts like Weight Sharing (ENAS) [2] or differentiable continuous spaces (DARTS) [3] were introduced, bringing search times down to a few GPU-days. However, continuous relaxation methods like DARTS can be unstable, sometimes suffering from performance collapse by over-selecting skip-connections. Furthermore, these methods are often tightly coupled to specific cell-based templates, lacking the general-purpose flexibility required to process non-vision modalities without manual restructuring. Transformers in NAS: More recently, the state-of-the-art has shifted towards utilizing Large Language Models (LLMs) to guide architecture search via code generation (e.g., GPTNAS [5]). However, free-form LLM editors suffer from ”Functional Entanglement”—inadvertently breaking topological constraints by modifying operators and wiring simultaneously. Such entanglement can be mitigated by constraining the LLM editing process, but existing approaches rely on heavy external models (e.g., DeepSeek-R1) acting as code editors. Our work positions itself differently: rather than relying on heavy LLMs that require external scaffolding, we build a compact, mathematically constrained Transformer generating discrete tokens. Paired with a swarm intelligence metaheuristic, this ensures topological validity and rapid convergence on consumer-grade hardware. Swarm Intelligence and Metaheuristics: Beyond gradientbased and evolutionary methods, Swarm Intelligence algorithms—such as Particle Swarm Optimization (PSO) and Ant Colony Optimization (ACO)—have been leveraged to navigate discrete NAS spaces [7]. While these swarm methods excel at local exploitation, they inherently suffer from the ”cold-start” problem: the swarm is typically initialized randomly, wasting computational budgets evaluating sub-optimal architectures. Our memetic framework explicitly addresses this bottleneck. We utilize the Transformer as a topological prior to ”warmstart” the ABC algorithm, combining global structural intelligence with fine-grained local exploitation in a single pipeline. Synthesis and Positioning: Existing NAS paradigms often force applied engineers into compromises: RL is computationally prohibitive [1], continuous relaxations are domainrigid [3], modern LLM controllers are over-parameterized, and pure Swarm methods suffer from cold-start inefficiencies [7].

By using a lightweight Transformer to provide a topologically sound warm-start to a swarm metaheuristic, nas-torch offers a fast, stable, and frugal alternative tailored for accessible AI development. III. P ROPOSED M ETHODOLOGY: AUTOREGRESSIVE T OPOLOGY G ENERATION A. Problem Formulation and Search Space Traditionally, the design of neural network architectures is a manual process followed by weight optimization. Mathematically, this involves defining a function g that maps a weight space to a function space F, which is the inference in neural network, where the objective is to optimize the weights w ∈ Rn for a given training set: g : Rn → F

(1)

Our framework introduces a higher level of abstraction by defining a mapping function f that accepts a specific architectural configuration as input and returns the corresponding function g. An architecture is represented by its topology, modeled as a graph A, and its layer-specific hyperparameters X. To facilitate the search process, we encode these dimensions into a unified representation matrix Θ. Consequently, the mapping is defined as: f :Θ→F

(2)

f (θ) = gθ

(3)

The primary objective of this research is to develop and evaluate a Transformer optimizer trained by reinforcement learning that maximizes the performance of the function f over a validation dataset Dval : θ∗ = arg max Perf(f (θ), Dval ) θ∈Θ

Fig. 1. Overview state diagram of nas-torch

(4)

B. Autoregressive Transformer Controller

C. Dynamic Entropy for Exploration

Inspired by the foundational work on Neural Architecture Search [1], we use a controller network to generate the architectural hyperparameters of neural networks as a variablelength sequence. However, to better capture long-range topological dependencies, we replace the traditional Recurrent Neural Network (RNN) with a Transformer controller. We frame the generation process as a Natural Language Processing (NLP) task. The search space is discretized into a vocabulary of tokens (e.g., conv_3_16, resblock_32, flatten). The Transformer, utilizing positional encoding and a causal mask, generates the topology sequentially. The list of tokens predicted by the controller can be viewed as a sequence of actions a1:T designed to construct a child network. At the end of the proxy training phase, this child network achieves an accuracy R on the held-out validation set. We use this performance metric as the reward signal to train the controller via reinforcement learning. More concretely, we ask our controller to maximize its expected reward, represented by J(θc ):

To prevent premature convergence, the entropy of the probability distribution is integrated into the loss: Loss = (− log(P ) × Advantage) − (β × Entropy). We implement a variable_entropy function: if the score stagnates for N iterations, β increases, forcing the Transformer to generate divergent sequences to escape local minima.

J(θc ) = EP (a1:T ;θc ) [R]

(5)

Since the reward signal R is non-differentiable, we use the REINFORCE policy gradient method. To reduce high variance, we introduce a baseline term b, calculated as the moving average of previous architecture scores:

∇θc J(θc ) =

T X

  EP ∇θc log P (at |a1:(t−1) ; θc )(R − b) (6)

t=1

Crucially, to combat model bloat and force the controller to favor frugal architectures, the raw accuracy is not used directly. Instead, we compute a multi-objective reward incorporating a length penalty: Reward = Accuracy − (λ × Depth). The gradient update thus intrinsically teaches the Transformer to find the optimal trade-off between predictive power and architectural simplicity. The continuous architecture space is discretized into a finite vocabulary of functional tokens. Specifically, our framework utilizes a strict dictionary of 15 precise tokens: • Convolutions: conv_3_16, conv_3_32, conv_5_16 (denoting kernel size and output channels). • Residual Blocks: resblock_16, resblock_32. • Pooling: pool_2 (Max Pooling) and avgpool (Global Average Pooling). • Dense Layers: linear_32, linear_64. • Regularization: dropout_0.2, dropout_0.5. • Normalization: bn2d (spatial) and bn1d (flattened context). • Structural: flatten and the terminal stop token. The Transformer, utilizing positional encoding and a causal mask, selects from this vocabulary to generate the topology sequentially until the stop token is predicted or the maximum depth is reached.

D. Proxy Evaluation Strategy Training every generated architecture to full convergence is computationally expensive. Therefore, we utilize a low-fidelity proxy evaluation strategy. During the search, each candidate is evaluated on a lowfidelity proxy built from the training set only: 40% of the training images are used to train the candidate for a small number of epochs (typically 10), and a disjoint 10% split is held out to score it. The official test set is never accessed during the search and is used only once, to evaluate the final architecture after full training. The final score assigned to the architecture is its best accuracy (or F1-Score) achieved on the validation split automatically generated by the framework from the train dataset given. To validate the reliability of this low-fidelity proxy, we conducted a rank correlation analysis. We sampled 15 architectures generated by the ABC optimizer and trained them for both 10 epochs (proxy) and 100 epochs (full training). The Spearman’s rank correlation coefficient (ρ) between the proxy scores and the final accuracies is 0.721 (p-value = 0.0024). This statistically significant correlation confirms that the proxy provides a robust ranking signal, justifying its use to guide the search process efficiently. It is important to note that these 15 architectures were sampled from the ABC optimizer’s trajectory rather than a uniform random distribution. While this introduces a selection bias towards higher-performing regions, it accurately reflects the proxy’s reliability within the actual subspace explored during the memetic search. To further ensure frugality, a strict Early Stopping mechanism (patience) is implemented: if the validation accuracy stagnates, the training is preemptively halted. The framework also dynamically infers the nature of the task from the dataset labels to assign the appropriate loss function (CrossEntropyLoss for multiclass or BCEWithLogitsLoss for binary tasks). Finally, if a generated architecture is topologically invalid, the evaluation method safely intercepts the exception and returns a score of −∞, penalizing the genome without crashing the overall search process. IV. P ROPOSED M ETHODOLOGY: M EMETIC S WARM E XPLOITATION To compare our Transformer Optimizer, we developed alternative optimizers based on metaheuristics : Simulated Annealing, Genetic Algorithm and mainly, Artificial Bee Colony.

A. Topological Consistency and Dynamic Parsing

Fig. 2. Proxy Evaluation Pipeline for each architecture

A major challenge in discrete NAS is ensuring that randomly mutated architectures remain mathematically valid. Modifying layers often leads to spatial dimension mismatches (e.g., connecting a convolutional layer directly to a linear layer without flattening). To address this, we developed a dynamic parser named DynamicNet. Before instantiating the PyTorch model, a topological reconciliation algorithm (_reconnect_layers) simulates a forward pass using a dummy tensor featuring the exact input shape of the dataset. As the tensor traverses the proposed computational graph, the parser automatically infers and injects the correct spatial and channel dimensions into the subsequent layers. This mechanism guarantees that any generated architecture will be natively evaluable, effectively eliminating compilation crashes during the automated search. B. Topological Mutation Operator To navigate the discrete search space, we designed a robust topological mutation operator (neighbor). When modifying an architecture, this operator randomly selects between four actions: altering continuous hyperparameters (e.g., modifying kernel sizes or channel depths), swapping activation functions, adding a layer, or removing a layer. To maintain coherence, a contextual verification mechanism (is_linear_context_check) ensures that spatial operations (such as 2D Convolutions) are never inserted into flattened or linear spaces. V. M EMETIC F INE -T UNING VIA A RTIFICIAL B EE C OLONY While the Transformer controller excels at extracting robust global macro-structures, it lacks the granularity to effectively fine-tune continuous hyperparameters. During preliminary experiments comparing Simulated Annealing (SA), Genetic Algorithms (GA), and the Artificial Bee Colony (ABC) algorithm, ABC demonstrated the highest stability and performance for local exploitation. The architecture generated by the Transformer is injected as a ”Warm-Start” food source into the ABC metaheuristic. Employed and onlooker bees systematically explore the topological neighborhood using the aforementioned neighbor operator. Crucially, the ABC algorithm features a limit mechanism acting as a strict anti-stagnation protocol: if exploring the neighborhood of a specific architecture yields no improvement after a predefined number of trials, the scout bees abandon that region of the search space and reinitialize the food source. This prevents the swarm from being trapped in local minima and extracts the final percentages of performance from the Transformer’s blueprint. VI. E XPERIMENTS AND R ESULTS A. Controller Architecture and Experimental Setup

Fig. 3. Global Optimizer Pipeline for each optimizer

Designed specifically for frugality, the Transformer controller operates on a discrete search space mapped to a vocabulary of 15 functional tokens.

The model embeds these tokens into a continuous representation of dimension dmodel = 64, augmented by sinusoidal positional encodings. The core sequence modeling is handled by a 2-layer Transformer encoder, utilizing 4 parallel attention heads (nhead = 4) and a feedforward network dimension of 128 (dmodel × 2). Regularization is applied via a dropout rate of 0.1. Optimized using Adam with a learning rate of 0.01, this controller contains approximately 68,000 trainable parameters. This minimal footprint ensures that the reinforcement learning policy updates execute in milliseconds, allowing the framework to run seamlessly on a constrained mobile GPU (NVIDIA GeForce RTX 3060 6GB) without memory bottlenecks. B. Domain Agnosticism and Optimization Baselines To validate the mathematical stability of our framework across diverse data modalities, we evaluated the optimizers on standard baseline datasets before tackling complex computer vision tasks. These included tabular regression (California Housing) and binary medical classification (Breast Cancer). We compared the generative controllers against traditional metaheuristics (Simulated Annealing and Artificial Bee Colony). TABLE I BASELINE P ERFORMANCE ON TABULAR DATASETS

Task

Algorithm

Test Score (Avg ± Std)

California Housing (Regression)

Simulated Annealing ABC Algorithm LSTM Controller (RL) Transformer Controller

-0.40 ± 0.03 (Neg MSE) -0.32 ± 0.01 (Neg MSE) -0.39 ± 0.01 (Neg MSE) -0.36 ± 0.04 (Neg MSE)

Breast Cancer (Binary Class.)

Simulated Annealing ABC Algorithm LSTM Controller (RL) Transformer Controller

96.48% ± 1.76% 99.56% ± 0.54% 99.56% ± 0.54% 98.90% ± 0.70%

As detailed in Table I, the Artificial Bee Colony (ABC) algorithm proved robust across all modalities. On the Breast Cancer dataset, both the ABC and the RL controllers quickly reached the dataset’s theoretical accuracy ceiling (99.56%), discovering the absolute optimal architecture for this problem in less than a minute. However, the regression task revealed a critical vulnerability in standard sequence-generating controllers. While the ABC algorithm reached a highly competitive Negative Mean Squared Error of -0.32 (rivaling manually tuned ensemble methods like Gradient Boosting), the classical LSTM-based RL controller effectively collapsed, returning a sub-optimal negative MSE of -0.39. This collapse can be attributed to the nature of the policy gradient updates. In classification, accuracy provides a naturally bounded reward signal [0, 1]. In regression, the reward relies on an unbounded negative error metric. Without strict reward scaling, high variance in the regression proxy causes severe instability in the LSTM’s policy gradient, preventing it

from converging to a stable macro-architecture. Although the Transformer handled this variance slightly better (achieving a peak Negative MSE of -0.31 during its best run, while maintaining an average performance of -0.36 ± 0.04 across seeds), this experiment confirmed that generative controllers struggle with micro-parameter tuning on continuous regression tasks, heavily justifying the need for a memetic swarm finetuning phase. It is worth acknowledging that on these low-dimensional baseline tasks, the LSTM and Transformer controllers perform comparably, with the LSTM even matching the best classifier on the Breast Cancer dataset. This behavior is consistent with the architectural requirements of these tasks: the optimal topologies are inherently shallow, and the long-range topological dependencies that motivate self-attention only emerge in deeper search spaces. Consequently, these small-scale results do not empirically isolate the Transformer’s contribution. A controlled ablation contrasting an LSTM-based warm-start against the Transformer-based warm-start on a long-sequence search space such as CIFAR-10 is left for future work. C. Implementation Details and Hyperparameters For full reproducibility, the core hyperparameters are defined as follows. Transformer controller: child networks are trained with Adam (lr = 10−3 ); the controller uses Adam (lr = 10−2 ) over batches of 16 sampled architectures. The depth penalty is λ = 0.5 and the initial entropy coefficient β = 0.05; upon N = 5 stagnant iterations, β is multiplied by 1.5 (capped at 0.5). Maximum depth is bounded at 20 layers for CIFAR-10 and 50 for the tabular tasks. • Metaheuristics: ABC uses a colony of P = 20 bees and an abandonment threshold limit = 5. SA uses T0 = 100 with a cooling rate of 0.99. The SA neighbourhood and ABC employed/onlooker phases share the same neighbor mutation operator. • Proxy evaluation: each candidate is trained for 10 epochs (Adam, lr = 10−3 ) on a 40% training split and ranked on a disjoint 10% validation split; the official test set is never used during search. The proxy uses accuracy for classification and Average Precision (AUPRC) for the imbalanced fraud task. An internal patience of 2 epochs halts stagnant trainings. • Budget and fairness: we report the number of proxy evaluations (not iterations) as the comparable budget unit. On CIFAR-10, the hybrid runs 20 Transformer iterations (batch 16) followed by 15 ABC iterations; SA runs 800 iterations and ABC-only 30. To match budgets, Random Search is allotted the same number of evaluations as the hybrid. The ABC early-stopping patience is 15 within the hybrid and 5 for the standalone ABC baseline. • Final training: the selected architecture is trained for 100 epochs (Adam, lr = 10−3 , cosine annealing, batch 512) with RandomCrop(32, padding=4) and RandomHorizontalFlip augmentation. For fraud,

the decision threshold is selected on validation over [0.05, 0.99] and applied once to the test set. • Reproducibility: all metrics are averaged over 3 seeds [42, 43, 44] with sample standard deviation. Experiments use TF32 matmul and cudnn.benchmark; reported variance therefore includes both seed-to-seed and run-torun numerical variability on the RTX 3060. D. Memetic Ablation Study and Fair Comparison (CIFAR-10) We compared our approach against Random Search, pure Simulated Annealing (SA), and standalone ABC under a strictly matched evaluation budget. As shown in Table II, hybridization largely outperforms isolated methods. Left to its own devices (Cold-Start), the ABC standalone struggles to navigate the macro-architecture space. Coupled with the Transformer acting as a macro-topological filter, the memetic framework reaches 84.85% (± 2.88%) in ∼3.2 hours of search time. Crucially, Table II demonstrates the effectiveness of our multi-objective reward. When the depth penalty (malus) is removed, the framework achieves a higher accuracy of 86.82% but at the cost of significant model bloat (∼229k parameters). Activating the malus restricts the capacity to ∼174k parameters, proving that the reward function successfully navigates the Pareto frontier of Frugal AI. As shown in Table II, we evaluated the algorithms under a strictly matched evaluation budget. While Simulated Annealing (SA) achieves the highest absolute accuracy (87.21%), it does so by generating massive architectures (∼294k parameters). SA’s lack of a structural penalty appears to incentivize capacity expansion rather than targeted feature learning, continuously stacking layers to force accuracy improvements. Consequently, evaluating these oversized models drastically inflates the computational cost, pushing the search time to nearly 2 hours. Consistent with the literature, Random Search (RS) proves to be a highly robust baseline (83.51%). However, evaluating RS purely on average performance masks its fundamental lack of reliability. While RS occasionally stumbles upon a compact model (averaging ∼133k parameters) purely by stochastic chance, it provides no structural intelligence. As the complexity of the dataset or the search space scales, the probability of RS randomly guessing an optimal topology drops. By contrast, our memetic approach provides a policy-driven trajectory. Unlike a stochastic warm-start (e.g., seeding the swarm with the best architecture found via Random Search), the Transformer provides a probabilistically learned structural prior. The 1.34% accuracy gap achieved by our full-budget Hybrid method over RS is mathematically significant within such a strictly bounded macro-search space. Because the Transformer’s policy gradient actively learns the architectural constraints via the Advantage metric, it autonomously directs the swarm away from barren topological plateaus and towards the Pareto frontier.

This behavioral difference is clearly highlighted by the ablation study. Without the depth penalty, the Hybrid method aggressively matches the SA’s brute-force performance (86.82%) but balloons to ∼229k parameters. When the depth penalty is activated, the Hybrid method overtakes Random Search (84.85% vs 83.51%) while maintaining a highly frugal footprint (∼174k parameters). Furthermore, exploring the extremes of this Pareto frontier reveals that individual runs can achieve great scores: for instance, Seed 43 of the fullbudget hybrid reached a peak accuracy of 88.17%, directly rivaling the best Simulated Annealing results but requiring over 130,000 fewer parameters than the SA’s equivalent peak. Ultimately, this proves that even under strict operational constraints, the Transformer-guided swarm reliably guarantees highly optimized topologies without relying on luck or endless parameter scaling. While manual architectures like ResNet-20 (∼270k parameters) achieve ∼91.25% accuracy on CIFAR-10, our framework’s objective is strict parameter frugality without human intervention. Our memetic search autonomously discovers architectures that are 1.5 to 5 times smaller depending on the configuration (see Section VI-F) than ResNet-20, proving its effectiveness for environments where memory footprint is the primary bottleneck. It is worth noting the significant discrepancy in the number of evaluations for the standalone ABC algorithm (∼415 evaluations) compared to the allocated budget of the other methods. This lower evaluation count is not an artificial constraint, but a direct consequence of the algorithm repeatedly triggering the early-stopping mechanism (patience) across all random seeds. Initialized randomly in a vast, discrete topological space (the ”Cold-Start” effect), the standalone bee swarm fundamentally lacks global orientation. Its local mutation operators fail to find a viable gradient of improvement, causing the population to stagnate almost immediately in barren plateaus or poor local minima, which aborts the search. This premature convergence perfectly illustrates why swarm metaheuristics fail in isolation for macro-topological routing, and strongly justifies the necessity of our Transformer’s ”warm-start” blueprint to guide the swarm toward fruitful regions of the search space. Our standalone metaheuristic results are consistent with prior swarm-based NAS. Lankford and Grimes [7] report a mean ACO accuracy of 82.2% (peak 84.8%) on CIFAR10 under a comparable depth-bounded setting, in the same range as our isolated ABC and Random Search baselines. Notably, they also observe that doubling the swarm size yields only a ∼1.2% accuracy gain while roughly doubling run time—mirroring our finding that allocating more budget to an unguided swarm offers diminishing returns and motivating the Transformer warm-start. E. Comparison with State-of-the-Art NAS Methods After validating the core mechanics of our memetic approach, we contextualize nas-torch within the broader NAS literature. Table III summarizes this comparison on the CIFAR10 dataset.

TABLE II C OMPREHENSIVE NAS P ERFORMANCE C OMPARISON ON CIFAR-10 (B UDGET & A BLATION )

Evals (Avg)

Accuracy (Avg ± Std)

Params (Avg)

Time (min)

Random Search Simulated Annealing ABC Only

∼770 ∼800 ∼415

83.51% ± 1.32% 87.21% ± 1.61% 76.19% ± 1.55%

∼133k ∼294k ∼247k

∼29 ∼109 ∼16

Hybrid (Malus + Early Exit) Hybrid (Malus + Full Budget) Hybrid (No Malus + Full Budget)

∼770 ∼1000 ∼1000

83.39% ± 1.75% 84.85% ± 2.88% 86.82% ± 1.74%

∼97k ∼174k ∼229k

∼80 ∼192 ∼233

Algorithm Configuration

It is crucial to acknowledge that comparing these methods directly involves fundamentally different search space paradigms. Leading methods like NAS with RL [1] and DARTS [3] perform a micro-search over highly complex cell structures (e.g., inverted residuals, dilated or separable convolutions) which are then stacked sequentially. While this yields massive theoretical capacity, it drastically inflates both the search space size and the final inference latency on edge devices. Because our primary goal is democratic accessibility and strict frugality, nas-torch deliberately restricts its macrosearch space to standard operations. Therefore, the significantly lower Search Cost of our method is the direct result of an intentional structural trade-off: sacrificing micro-cell complexity to ensure rapid convergence and low-latency topologies on consumer hardware. TABLE III E FFICIENCY AND PARAMETER C OMPARISON WITH SOTA NAS M ETHODS ON CIFAR-10 Method

Search Space

Params (Millions)

Search Cost (GPU-days)

Accuracy

NAS with RL [1] AmoebaNet-A [6] DARTS [3] ENAS [2]

Complex Cells Complex Cells Complex Cells Complex Cells

37.4 3.2 3.3 4.6

22,400 3,150 1.5 0.45

96.35% 96.66% 97.00% 97.11%

*Note: Methods above operate on micro-cell spaces; direct accuracy comparison is not meaningful. Transf. + ABC(no malus+ full budget) Simulated Annealing

Standard Layers Standard Layers

0.190–0.281 0.237–0.360

0.16 0.084

85% – 88% 86% – 89%

By completing the architectural search in approximately 0.16 GPU-days, our framework is highly resource-efficient. However, as noted in the literature, raw GPU-days can be a misleading metric due to generational hardware improvements. To ensure a fair comparison, we normalize the search cost by the theoretical FP32 compute power of the hardware used (TFLOPS-days). Our search on a consumer-grade RTX 3060 (∼13 TFLOPS) yields a normalized cost of roughly 2.08 TFLOPS-days. In contrast, the foundational NAS with RL [1] utilizing K40 GPUs (∼4.3 TFLOPS) required over 96,000 TFLOPS-days, while more efficient gradient-based methods like DARTS [3] on GTX 1080 Ti (∼11.3 TFLOPS) require approximately 17 TFLOPS-days. While this theoretical peak FP32 normalization does not account for memory-bound operational bottlenecks or effective hardware utilization rates, it provides a strict lowerbound estimation demonstrating that our memetic approach re-

duces the computational overhead by roughly 6–7× lower than DARTS, while discovering highly compact feature extractors suitable for accessible AI development. Beyond gradient-based methods, swarm-based NAS also incurs substantial wall-clock cost: on CIFAR-10, the PSO and ACO searches of Lankford and Grimes [7] required between 9 (ACO) and 22 (PSO) hours on a GTX 1080 Ti, with run time scaling sharply as the swarm size grows. Our memetic search completes in at most a few hours on more modest hardware, underscoring the practical accessibility of the framework. F. Architectural Frugality and Parameter Efficiency The impact of our memetic framework lies in its inherent parameter efficiency. For context, standard architectures commonly deployed on CIFAR-10, such as ResNet-18 or MobileNetV2, contain approximately 11 million and 3.4 million parameters, respectively. By integrating a length penalty directly into the Transformer’s reward function, our framework actively selects against model bloat. The final architectures discovered by our optimizers are compact. For instance, an early-stopping variant of the hybrid model generated by Seed 42 achieved 81.47% accuracy with only 50,650 parameters, and Seed 43 reached 83.82% with 77,002 parameters. While state-of-the-art hand-crafted models like ResNet-20 achieve higher absolute accuracy (∼91.25%) with approximately 270,000 parameters, our results should be interpreted as a proof of concept for fully autonomous, resource-constrained NAS. A common alternative for edge deployment is applying network pruning or quantization to such oversized models. However, pruning inherently relies on human expert design to establish the initial macro-architecture and requires a massive computational budget to pre-train the dense network before compression. In contrast, our framework operates with zero human bias. It autonomously discovers functional architectures that are 1.5× to 5× smaller than ResNet-20 directly from scratch. Although this yields a lower absolute accuracy on CIFAR-10, it successfully demonstrates that highly efficient, task-specific feature extractors can be generated entirely automatically on a standard 6GB consumer GPU. This effectively democratizes the architectural design process, allowing researchers and engineers to bypass heavy pre-training phases and human empirical tuning entirely.

G. Flexibility & Imbalanced Data (Credit Card Fraud) To demonstrate the agnosticism of our framework, we tested it on a massively asymmetric tabular bank fraud dataset (where frauds represent merely 0.2% of the ∼284,000 total transactions). The reward function was rewritten to optimize the F1Score rather than pure Accuracy. Entirely autonomously, the framework converged to an architecture reaching an F1-Score of 0.7178 ± 0.0279 (Recall: 0.8095, Precision: 0.6467) and an AUPRC of 0.7698. While heavily tuned gradient boosting methods can achieve higher absolute scores on this dataset, our NAS framework automatically designed a neural feature extractor containing only 4,614 parameters. This highlights the framework’s ability to adapt to non-vision modalities and optimize threshold-independent metrics without human intervention. H. Search Space Capacity Bottleneck (CIFAR-100) To evaluate the scalability of our restricted search space, we conducted a memetic search on the more complex CIFAR100 dataset. For this stress test, the optimizers utilized the full evaluation budget (without early stopping) while strictly retaining the depth penalty (λ = 0.5). The results across three random seeds are detailed in Table IV. TABLE IV H YBRID NAS P ERFORMANCE ON CIFAR-100 (100 E POCHS )

Seed

Accuracy

Params

Search Time

42 43 44

57.58% 52.71% 46.79%

∼449k ∼232k ∼3.10M

∼49 min ∼53 min ∼67 min

52.36% ± 5.40%

∼1.26M

∼56 min

Mean

The average accuracy of 52.36% (± 5.40%) indicates a clear mathematical limit of our restricted macro-vocabulary. While the framework successfully extracts features up to a certain point (reaching 57.58% on Seed 42), resolving a 100class problem typically requires advanced macro-cells (e.g., Inverted Residuals, Dense blocks) rather than simple standard convolutions. Furthermore, this experiment exposes the vulnerability of our highly frugal proxy evaluation split. On CIFAR-100, allocating 10% of the data to validation leaves only ∼50 images per class. This extremely low sample density injects severe noise into the reward signal during the 10-epoch proxy training. Crucially, as observed in Seed 44 (which exploded to ∼3.10M parameters), this proxy noise can become so erratic that it occasionally overwhelms the regularizing effect of the depth penalty. Forced to complete its full evaluation budget without early stopping, the controller stacked layers uncontrollably in a failing attempt to fit the unstable validation signal. This confirms that while our framework is highly efficient for targeted tasks and edge deployment, scaling to massive multi-class datasets will require both enriching the search space and stabilizing the proxy sampling strategy.

VII. C ONCLUSION This paper presented a memetic NAS framework validating the hypothesis that it is possible to automatically generate high-performing and tailored networks without requiring supercomputers. By coupling the generative intelligence of a dynamic entropy autoregressive Transformer with the granular optimization of a bee swarm, the architecture search gains in stability, efficiency, and frugality. Future work will proceed along three primary axes. First, to overcome the capacity bottleneck identified on complex datasets like CIFAR-100, we plan to enrich our search space vocabulary with more advanced, modern macro-cells (such as Inverted Residuals or Dense Blocks). The modular nature of our layer classes ensures that the Transformer will be able to orchestrate these complex blocks without requiring changes to the underlying search algorithm. Second, we aim to integrate training-free evaluation metrics (Zero-Cost Proxies, such as SynFlow or Fisher Information [4]) to further reduce the proxy evaluation time from minutes to mere milliseconds. Finally, we will focus on establishing a strict hardware-aware Pareto front by incorporating direct latency and memory footprint measurements into the multi-objective reward function, fully realizing the vision of surgical, edge-ready AI deployment. ACKNOWLEDGMENT The author would like to thank Florentin THULLIER for his guidance throughout this project, and Kevin BOUCHARD for his valuable feedback and proofreading. R EFERENCES [1] B. Zoph and Q. V. Le, ”Neural Architecture Search with Reinforcement Learning,” in Proc. of ICLR, 2017. [2] H. Pham, M. Y. Guan, B. Zoph, Q. V. Le, and J. Dean, ”Efficient Neural Architecture Search via Parameter Sharing,” in Proc. of ICML, 2018. [3] H. Liu, K. Simonyan, and Y. Yang, ”DARTS: Differentiable Architecture Search,” in Proc. of ICLR, 2019. [4] M. S. Abdelfattah, A. Mehrotra, Ł. Dudziak, and N. D. Lane, ”Zero-Cost Proxies for Lightweight NAS,” in Proc. of ICLR, 2021. [5] C. Yu, X. Liu, Y. Wang, Y. Liu, W. Feng, D. Xiong, C. Tang, and J. Lv, ”GPT-NAS: Evolutionary Neural Architecture Search with the Generative Pre-Trained Model,” arXiv preprint arXiv:2305.05351, 2025. [6] E. Real, A. Aggarwal, Y. Huang, and Q. V. Le, ”Regularized Evolution for Image Classifier Architecture Search,” in Proc. of AAAI, 2019. [7] S. Lankford and D. Grimes, ”Neural Architecture Search using Particle Swarm and Ant Colony Optimization,” arXiv preprint arXiv:2403.03781, 2024. [8] L. Li and A. Talwalkar, ”Random Search and Reproducibility for Neural Architecture Search,” in Proc. of UAI, 2019.

Record · ID 363240 · SHA-256 d5e33ac56156c935
Retrieved via Conceptio — every document is proof-bundled with source, license, and retrieval metadata.