On the Neural Architecture of Language Models

dc.contributor.authorGaudreault, Tristan
dc.contributor.supervisorMao, Yongyi
dc.date.accessioned2026-07-07T14:45:13Z
dc.date.issued2026-07-07
dc.description.abstractModern large-scale sequence modeling requires architectures that can represent long-range dependencies while remaining computationally efficient. Transformers dominate many sequence modeling tasks because self-attention enables expressive and highly parallel computation, but its quadratic time and memory costs become prohibitive for long sequences. Recurrent models such as Long Short-Term Memory (LSTM) networks provide nonlinear state updates and strong state-tracking capabilities, however, their sequential dependency structure limits parallel execution. Recent works have proposed a variety of efficient sequence models, though many achieve scalability by simplifying nonlinear transition dynamics, imposing structural constraints, or approximating attention. This thesis asks whether recurrent computation can be reorganized for parallel execution while preserving the nonlinear gated dynamics of LSTMs. To address this question, this thesis introduces the Parallel Recursive LSTM (PR-LSTM), a hierarchical recurrent architecture that replaces sequential recurrence with recursive nonlinear state composition over a balanced computation tree. Input tokens are independently mapped to latent states, which are then recursively merged by a learned gated composition block. Rather than requiring an associative operator, as in parallel scan methods, PR-LSTM uses the reduction tree only to define the order of computation. This preserves gated recurrent state representations while reducing recurrent parallel depth from linear to logarithmic. PR-LSTM is evaluated on formal-language benchmarks that isolate core sequence-modeling capabilities, including finite-state tracking, counting, copying, retrieval, and stack-like memory, with emphasis on out-of-distribution length generalization. Empirically, PR-LSTM generalizes to longer sequences on more tasks than standard RNN, LSTM, and Transformer baselines. These results show that recurrent computation can be reorganized hierarchically to improve parallel execution without restricting transition dynamics to linear or associative forms. Overall, this thesis positions hierarchical recurrence as a promising alternative for scalable sequence modeling, combining nonlinear state composition with logarithmic recurrent execution depth.
dc.identifier.urihttp://hdl.handle.net/10393/51815
dc.identifier.urihttps://doi.org/10.20381/ruor-32061
dc.language.isoen
dc.publisherUniversité d'Ottawa / University of Ottawa
dc.rightsAttribution 4.0 Internationalen
dc.rights.urihttp://creativecommons.org/licenses/by/4.0/
dc.subjectParallel recurrence
dc.subjectRecurrent neural networks
dc.subjectLSTM
dc.subjectHierarchical sequence modelling
dc.subjectLong sequence modelling
dc.titleOn the Neural Architecture of Language Models
dc.typeThesis
thesis.degree.disciplineGénie / Engineering
thesis.degree.levelMasters
thesis.degree.nameMCS
uottawa.departmentScience informatique et génie électrique / Electrical Engineering and Computer Science

Fichiers

Trousse originale

Voici les éléments 1 - 1 sur 1
En cours de chargement...
Vignette d'image
Nom:
Gaudreault_Tristan_2026_thesis.pdf
Taille:
1.9 MB
Format:
Adobe Portable Document Format

Trousse de licence

Voici les éléments 1 - 1 sur 1
En cours de chargement...
Vignette d'image
Nom:
license.txt
Taille:
2.51 KB
Format:
Item-specific license agreed upon to submission
Description: