Abstract
dc:description.abstractModern language models are built on the Transformer architecture, whose self-attention mechanism, though powerful, incurs quadratic computational and memory costs. More recently, State Space Models such as Mamba have emerged as efficient alternatives with linear complexity, and hybrid architectures like Jamba have shown that the two paradigms can be combined. However, the design of these hybrids remains a manual, expert-driven process, and the potential of Evolutionary Computation to explore the vast combinatorial space of possible layer arrangements has received limited attention in the literature.This dissertation presents an exploratory study of whether Evolutionary Computation can automatically design hybrid Transformer–Mamba architectures for text classification. Using a variable-length binary genotype that specifies the type of each layer, the algorithm evolves populations of candidate architectures, evaluating their fitness through a short, budget-limited training. The best architectures are then further trained and compared against hand-crafted baselines.To evaluate the proposed approach, we conduct two separate experiments targeting different text classification tasks: the AG News dataset for English news categorization and the PROPOR corpus for Portuguese scientific field classification. For each task, we evolve populations of variable-length genotypes defining the number and type of layers, perform multiple independent evolutionary runs,and subject the best genotypes to extended training. The evolved architectures are compared against relevant baselines, including the pre-trained Mini-Jamba model, Transformer models of comparable size, and, for the Portuguese task, the fine-tuned AMALIA model.Experiments on both tasks reveal performance gains. On the AG News dataset,the best evolved architecture reaches 0.926 F1-score with only 44.5M parameters, matching the larger pre-trained Mini-Jamba (69.5M) while outperforming a deeper from-scratch hybrid. On the Portuguese PROPOR corpus, a 43.4M-parameter evolved model achieves 0.85 F1, surpassing the fine-tuned 9B-parameter AMALIA model by 0.9 points. In both tasks, the evolutionary search consistently converges to compact, Mamba-dominant architectures that are remarkably parameter-efficient, approaching the performance of heavily pre-trained Transformers while being trained entirely from scratch on task-specific data.Beyond the specific outcomes, this work demonstrates that Evolutionary Computation can serve as an approach for architectural exploration even at the scale of modern language models. It establishes a first baseline at the intersection of neuroevolution and hybrid sequence models Transformer-Mamba, offering a launching zone for future research into automated architecture design for efficient language understanding.
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Obrist, Filipe de Ornelas Diogo
- Advisor dc:contributor.advisor
-
- Correia, João Nuno Gonçalves Costa Cavaleiro
Subjects
dc:subject × 8Rights
dc:rights- Statement dc:rights
-
- openAccess
- Language dc:language.iso
- eng
Identifiers
dc:identifier.*- Dc Identifier Tid
- 204413915