Papers › MIRAGE: Adaptive Multimodal Gating for Whole-Brain fMRI Encoding

MIRAGE: Adaptive Multimodal Gating for Whole-Brain fMRI Encoding

28 May 2026arXiv:2605.29850added by Syntology

Abdulkadir Gokce, Badr AlKhamissi, Martin Schrimpf

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Recent progress in task-optimized neural networks has established encoding models as a powerful tool for predicting brain responses to naturalistic stimuli, yet most existing approaches rely on unimodal representations. The emergence of omni-modal foundation models and rich multimodal neural datasets enables encoding models that jointly integrate visual, auditory, and linguistic information across subjects. We introduce MIRAGE, a brain encoding framework for predicting whole-brain fMRI responses to naturalistic audiovisual stimuli. MIRAGE achieves state-of-the-art performance via a native multimodal backbone and adaptive feature gating across layers. These representations are then combined with a transformer-based brain encoder and a subject-specific linear head over the cortical parcels. Controlled comparisons show that natively multimodal features consistently outperform post-hoc aggregation of independent unimodal features, across architectural levels and backbones. Beyond predictive accuracy, the learned attention weights are directly inspectable to interpret the modality-specific gating profile over the backbone, and each modality traces a distinct anatomical pattern across cortex. Together, these results propose adaptive layer-wise aggregation of natively multimodal features as a generalizable, interpretable, and accurate approach for whole-brain encoding.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2605.29850")

Code

Syntology Ran 30 of 41 code samples harvested from 1 repository linked to this paper; 11 have no recorded run. Of those that ran: 2 ran · honoured contract; 5 ran · our draft was wrong; 23 ran with no contract checked.

By repository: found in paper text by Syntology: 41 samples from 1 repository, 30 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

epflneuroailab/mirage found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

41 samples harvested; 30 ran; 2 honoured the contract we drafted; 11 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
5ran · our draft was wrong
23ran
11unverified

Licence: 0 of the 41 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from epflneuroailab/mirage. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

AdaptiveAvgTemporalReducer epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · bdf34d142202b61a · report
CatAggregator epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology ran · metamorphic tier: well formed Apache-2.0 (permissive) · c2594d1e4d22954e · report
CatLayerPooler epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · 29dd6bc71fee2173 · report
Conv1dTemporalReducer epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology ran Apache-2.0 (permissive) · 3414d33e85582f53 · report
CrossAttentionInterpolationTemporalReducer epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology ran Apache-2.0 (permissive) · 5d120c81ea7e2ebe · report
GroupLinearHead epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology ran Apache-2.0 (permissive) · 6c7ce4c9a7889eba · report
GroupResidualSubjectHead epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology ran Apache-2.0 (permissive) · d9c415ab7e9ea01a · report
IdentityLayerPooler epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology ran Apache-2.0 (permissive) · c23ed0b4a693062e · report
IdentityTemporalReducer epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology ran · metamorphic tier: invariant fingerprinted Apache-2.0 (permissive) · 8e4a78e884c17c97 · report
LayerCrossAttentionPooler epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology ran Apache-2.0 (permissive) · 07d7727d41635bef · report
LayerSelfAttentionPooler epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology ran Apache-2.0 (permissive) · 46959113073f6eaf · report
MeanAggregator epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology ran · metamorphic tier: well formed Apache-2.0 (permissive) · 589dcb72adc22bbd · report
MeanLayerPooler epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology ran · metamorphic tier: invariant fingerprinted Apache-2.0 (permissive) · 0871a59c0f7e9078 · report
ModalityProjector epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology ran Apache-2.0 (permissive) · 8f663cc2eb003e9b · report
ModalitySelfAttentionAggregator epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology ran Apache-2.0 (permissive) · 98e4723594ac02a2 · report
SubjectLinearHead epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology ran Apache-2.0 (permissive) · d801121550a0a6de · report
SubjectQueryCrossAttentionHead epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology ran Apache-2.0 (permissive) · 54fb7b4f0a85e894 · report
SubjectShiftedCrossAttentionInterpolationTemporalReducer epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology ran Apache-2.0 (permissive) · 48903652439efad2 · report
SumAggregator epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology ran · metamorphic tier: well formed Apache-2.0 (permissive) · 2de834c277ce11ad · report
TemporalEncoder epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology ran Apache-2.0 (permissive) · c487ea3382c73e4e · report
_AttentionPoolerBase epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology ran Apache-2.0 (permissive) · f29f6a59819301c0 · report
_default_modality_stack epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology ran Apache-2.0 (permissive) · fd815bbbe0638c96 · report
_default_readout_config epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology ran Apache-2.0 (permissive) · 26f82874b21db6a3 · report
_normalize_prediction_mode epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · a7c78a3335d0882f · report
_normalize_readout_config epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · ca89046d37f804f1 · report
_pooler_defaults epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · ff62e0d0e2158711 · report
_sinusoidal_layer_positions epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology ran · honoured contract fingerprinted Apache-2.0 (permissive) · d695096a137fe8f8 · report
build_aggregator epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · b8f600dd1667fb31 · report
build_projectors epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology ran · our draft was wrong Apache-2.0 (permissive) · d0c13de0a2974a31 · report
layer_pooler_output_dim epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology ran · honoured contract Apache-2.0 (permissive) · 438ff1b11da853b4 · report
BaseBrainEncoder epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 261520210e7da4fc · report
LowRankSubjectHead epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 984d63bcdb6a0c9a · report
ParcelMLPHead epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 71623edf16f081b4 · report
SigmoidGateAggregator epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 131ce27c65253bdb · report
SoftmaxGateAggregator epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 65cb79b3f988860a · report
SubjectConditionedGateAggregator epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 10afe4e4b801a9f1 · report
SubjectTokenConditionedGroupHead epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology unverified Apache-2.0 (permissive) · fd925ab8a603ee17 · report
SubjectTokenConditionedHead epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 6acc2bc4c5925703 · report
build_head epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 63dea3514ef83a16 · report
build_layer_pooler epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology unverified Apache-2.0 (permissive) · f63759d7f9a21827 · report
build_temporal_reducer epflneuroailab/mirage/src/brain_enc/models/base_brain_encoder.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 50b83917247cf1ff · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2605.29850, was issued in May 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections