Code and supplementary materials the paper "Human Language Network Modeling with Selective State Spaces".
- To run our code, first download the data files from the Original "Simultaneously uncovering the patterns of brain regions involved in different story reading subprocesses" (Wehbe et al 2014) study.
- The current setup runs the models locally so please ensure you have sufficient computational resources.
- Use the file
mamba_gpt_fmri_pipeline.ipynbto load the text and process it before getting model activations and correlating them with the fMRI data for each subject - To skip to the results,
generate_plots.ipynballows the user to combine different brain ROIs and plot the weighted average correlation of different brain areas with the model activations.
@InProceedings{BrainMamba_2026,
author = {Sari Sadiya, and Anthea Hohmann, and Gemma Roig},
title = {Human Language Network Modeling with Selective State Spaces},
booktitle = {ArXiv},
month = {January},
year = {2026}
}