Neural MSA
Scaling a neural network that solves DNA MSA for real-world use.
I’m a B.Sc. student in Psychology at McGill University. My research focuses on building transformer-based models for cognitive tasks and DNA multiple sequence alignment, as well as developing open-source pipelines for behavioral data modeling. I’m especially interested in aligning artificial neural networks with human brain activity to gain insight into cognition. My long-term goal is to contribute to clinical psychology by using machine learning and neural network models to study how pathologies develop in the brain and at the genetic level.
Modeling brain activity for different tasks to understand how the brain solves them; comparing control and experimental groups.
Improving heuristic/hand-crafted pipelines by leveraging neural networks to enhance measurement quality.
Making computational research more accessible through reusable packages.
Lucas Gomez, Aziz Ktari, Hao Yuan, Bai Pouya Bashivan (2025). Data on the Brain and Mind (NeurIPS Workshop). [Published] · also accepted at COSYNE 2026 · Link
Working memory supports a broad spectrum of behaviors and higher cognitive abilities, with the prefrontal cortex playing a central role in this capacity. Although prior work has identified which brain regions are engaged in specific working memory tasks, and in some cases how they contribute, we still lack a general framework that can predict which regions will be recruited in novel tasks, what information they represent, and the computations they perform. To address this gap, we trained a single neural network on millions of visual decision-making tasks with sensory-realistic inputs, aiming to build a generalized model of working memory. We evaluated the model against an fMRI dataset spanning 12 tasks and hundreds of distinct conditions, testing its ability to capture neural activity across the brain, with a focus on the prefrontal cortex. Our results show that large models trained on a broad distribution of tasks can predict brain activity zero-shot, outperforming even models trained directly on the target tasks. This ability improves further with model size, which consistently enhances prediction accuracy. Furthermore, analyses of layer-to-region correspondences largely conformed with the theories of hierarchical organization along the rostro-caudal axis of the prefrontal cortex. These findings suggest that neural network models hold significant potential not only for simulating neural activity in regions previously difficult to model, but also for revealing how the brain encodes, organizes, and manipulates task information during working memory.
Aziz Ktari, Yanan Liu, Emir Sahin, Paul Masset (2026). Canadian Association for Neuroscience (CAN) . [Accepted]
Coming soon!
Research ways to improve Multiple sequence alignment tools using ANNs (2025).
Scaling a neural network that solves DNA MSA for real-world use.
Aligning model activations with PFC fMRI; encode/delay phase analyses.
Pluggable Pipeline for RL/choice/bandit agents that handles simulation, recovery, fitting and plotting.
When I come up with an idea for an app I’d find useful, I enjoy coding it for myself. I find it fun, and it lets me integrate all the features I want that I might not find combined, or even available, in other apps.
I play basketball and soccer, and I’m also part of a dodgeball team. I enjoy watching MMA and soccer with friends.
Email: aziz.ktari@mail.mcgill.ca
Location: Montréal, Canada
I’m open to collaborations and mentorship discussions on applying artificial neural networks to study clinical pathologies, from genetic risk factors and physiological markers to brain activity patterns and patient-specific differences. Always happy to connect with researchers exploring how machine learning can reveal early indicators and mechanisms of mental health conditions.