Attention-based Routing for Interpretable Multimodal Brain Encoding
Abstract
Understanding how the brain processes information across sensory modalities in naturalistic settings remains a central challenge in cognitive computational neuroscience. Despite recent progress in multimodal brain encoding driven by the rapid advancement of deep learning, many existing approaches combine representations from pretrained modality-specific models using static aggregation or linear readouts, and therefore do not explicitly capture how information is selectively integrated across cortical regions. Here, we introduce Multi-Modal Brain Encoding with Attention Routing (MM-BEAR), a neural encoding framework that models multimodal integration as a routing problem. Building on the previously proposed BEAR brain-encoding framework, MM-BEAR introduces a cross-attention mechanism for multimodal stimuli, in which learnable parcel-level queries dynamically select and aggregate modality-specific representations from visual, auditory, and linguistic inputs. This design is not only parameter-efficient but also yields parcel-specific multimodal representations that support a flexible linear readout for predicting brain responses at various spatial resolutions. We evaluate MM-BEAR on naturalistic video-viewing data, including both in-distribution and out-of-distribution stimulus conditions. The model is able to accurately predict parcel-level and vertex-level fMRI responses and generalizes across stimulus distributions. Furthermore, the learned attention patterns provide a structured basis for analyzing modality integration across cortical parcels, linking parcel-specific routing profiles to established functional brain networks. Together, these results suggest that attention–based routing offers a principled computational framework for modeling multimodal integration in the human brain. Our code is available at https://github.com/kriegeskorte-lab/multimodalbrainencoder.