/ Модель

Характеристики

Лицензия
Apache 2.0
Архитектура
mirage_md · dense
Базовая модель
Qwen3-Omni-30B-A3B-Thinking
Библиотека
transformers
Опубликована
27 окт 2026

mirage-md

ЭмбеддингиТекст → embedding3 профессии

MIRAGE-MD предсказывает амплитуды fMRI-ответов для областей мозга по изображениям и коротким видео, опционально используя аудио и транскрипцию.

170скачиваний за 30 дней0лайковвеса обновлены27 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

MIRAGE-MD — мультимодальная модель исследовательской группы EPFL NeuroAI для предсказания откликов мозга на изображения и короткие видео. Она извлекает представления из замороженной Qwen3-Omni-30B-A3B-Thinking и преобразует их в амплитуды fMRI-ответов для 1 412 областей мозга. Модель дообучена на пяти наборах fMRI-данных: Courtois NeuroMod, BOLD Moments, McMahon et al., NSD и THINGS-fMRI; доступны отдельные линейные головы для 30 участников.

На вход подаются изображения или видео; можно дополнительно учитывать аудиодорожку и временно размеченную транскрипцию. Видео обрабатывается последовательностью кадров и временных окон, а результатом служат числовые оценки отклика для каждого окна либо изображения. Модель предназначена для исследовательской разметки коллекций стимулов и изучения связи визуального и мультимодального содержимого с мозговыми ответами.

В опубликованных тестах точность зависит от набора данных и выбранной головы; собственная голова участника обычно превосходит групповые. Аудио и транскрипты ухудшают предсказания голов, обученных только на изображениях или видеокадрах. Видео длиннее примерно 20 секунд не проверялись, новые участники не поддерживаются, а для обработки требуется значительный объём GPU-памяти. Модель распространяется под лицензией Apache-2.0.

Сценарии применения

  • предсказание мозговых откликов на изображения
  • оценка fMRI-ответов на короткие видеоклипы
  • разметка коллекций изображений предсказанными нейронными ответами
  • сравнение откликов мозга на визуальные стимулы
  • исследование влияния аудио и речи на предсказания мозговых ответов

Ограничения

Групповые головы обычно менее точны, чем голова отдельного участника; головы, обученные только на визуальных данных, теряют точность при добавлении аудио или транскрипции. Видео длиннее примерно 20 секунд не тестировались, модель не адаптируется к новым участникам и требует до 70 ГБ видеопамяти.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

MIRAGE-MD

NeurIPS 2026 OpenReview arXiv Project Page

MIRAGE-MD (multi-dataset) predicts fMRI responses to images and short videos. It reads hidden states from a frozen Qwen3-Omni-30B-A3B-Thinking and maps them to response amplitudes in 1,412 brain parcels. It uses the MIRAGE architecture (NeurIPS 2026), trained on five fMRI datasets instead of one: Courtois NeuroMod (Friends and Movie10, the data of the original MIRAGE), BOLD Moments and McMahon et al. (3 s video clips), and NSD and THINGS-fMRI (natural images). It reads a video's frames; its audio track and a transcript can be added.

Quick start

pip install torch "transformers>=4.57,<5.22" "av>=14" pillow torchvision
from transformers import AutoModel

model = AutoModel.from_pretrained(
    "epfl-neuroai/mirage-md", revision="v1", trust_remote_code=True
).to("cuda")

clip = model.encode_video("clip.mp4")
clip.betas.shape  # (windows, 1412), one row per ~3 s
clip.windows  # [(0.0, 3.0), (3.0, 6.0), ...] in seconds

image = model.encode_image("photo.jpg")  # also a PIL image or an HxWx3 uint8 array
image.betas.shape  # (1, 1412)
image.windows  # None

with_sound = model.encode_video("clip.mp4", audio=True, transcripts="clip_words.tsv")

A transcript is a list of (word, onset_s, duration_s) or a .tsv/.csv file with word, onset and duration (or end) columns.

Audio and transcripts are off by default. Only the Friends heads were trained with them. The BOLD Moments, McMahon, NSD and THINGS-fMRI stimuli were shown without sound, so those heads learned from frames and images alone. Audio also changes how Qwen reads the frames, and it makes predictions for silent experiments worse: on the held-out BOLD Moments clips, default drops from 0.186 to 0.158 with the clips' own soundtracks and to 0.157 with unrelated speech. A transcript without audio changes little (0.179). Turn them on for stimuli people hear as well as see, mainly with readout="dataset:friends".

trust_remote_code=True runs modeling_mirage_md.py from this repository; pin revision to the version you reviewed. from_pretrained loads the adapter (1.24 B parameters, from this repository) and Qwen3-Omni, which it downloads from Qwen's repository at a pinned revision. Qwen3-Omni passes through CPU memory on its way to the GPU and needs about 60 GB of GPU memory in bfloat16, so use an 80 GB GPU.

Feature caching

The backbone takes nearly all the compute, so extract features once and reuse them with any readout:

paths = ["clip1.mp4", "clip2.mp4", "photo.jpg"]
features = model.extract_features(paths)  # list of Features, one per file
outputs = model.predict(features)  # list; outputs[i].betas is (windows, 1412)
nsd = model.predict(features, readout="dataset:nsd")
heads = model.predict(features, readout="subjects")  # each .betas is (windows, 30, 1412)

To compute betas from saved features without Qwen, load only the adapter with AutoModel.from_pretrained(..., load_backbone=False).

paths can mix videos and images; files ending in .jpg, .jpeg, .png, .bmp, .gif, .webp or .tif(f) are read as images and everything else as video. Pass kind="image" or kind="video" to override this, audio=True to read audio tracks, and transcripts=[...] (one per file, or None) to add words. While the GPU works on one group of files, the next group is decoded on CPU threads.

Readouts

There is one linear head per training subject (30 in total). A readout chooses which heads to average:

readout=Heads
"default"Videos: Friends + BOLD Moments. Images: NSD + THINGS-fMRI
"all"All five datasets
"dataset:<name>"One dataset: friends, bold-moments, mcmahon, nsd, things
"subject:<dataset>:<id>"One subject, for example "subject:nsd:sub-01" (see model.subjects)
"subjects"All 30 heads, stacked

Group readouts give each dataset the same weight, and each subject the same weight within a dataset. A single subject's output is in that dataset's z-scored units; group outputs mix datasets, so treat their scale as approximate.

Performance

Mean Pearson r over cortical parcels on each dataset's held-out stimuli, averaged over its subjects, with video frames or images as input. Group readouts are scored against every subject of the dataset.

ReadoutBOLD MomentsMcMahonNSDTHINGS-fMRI
Each subject's own head0.2250.2640.1980.134
default0.1860.2080.1480.121
all0.1840.2430.1380.110
dataset:bold-moments0.2040.1920.1130.096
dataset:friends0.1310.1680.0920.076
dataset:mcmahon0.1370.2430.1030.077
dataset:nsd0.1660.1960.1590.099
dataset:things0.1220.1320.0910.127

default uses the video heads for BOLD Moments and McMahon and the image heads for NSD and THINGS-fMRI. A dataset's own heads score best on it, or tie with all (McMahon). For stimuli unlike any training set, use default or all. Friends is not shown: its held-out data are continuous recordings, which this table does not cover.

Speed

Time after loading, on one GPU, with the default batch_windows=8. Videos: 64 clips from Koala-36M (mostly 360p, 4-20 s, mean 9.2 s). Images: 256 NSD images.

GPUSeconds per second of videoVideo clips per hourImages per second
A100 80 GB0.351,10013
H100 80 GB0.132,90052
H200 141 GB0.123,15055

Video cost grows with duration: at 0.13 s per second of video, a million 10 s clips take about 370 H100 hours. predict (any readout) takes 5-20 ms per file, so trying other readouts on cached features costs almost nothing. Peak GPU memory is 70 GB; batch_windows=16 is 5-10% faster and needs 75 GB. Loading takes 7-9 minutes, mostly reading Qwen3-Omni's 60 GB of weights from disk; the first run downloads them.

How it works

  1. Input. Videos are decoded with PyAV. Every 0.5 s, the model looks at the preceding 4 s, sampled at 2 frames per second (at most 8 frames), and, with audio=True, at the preceding 60 s of sound; a transcript adds the words spoken so far. An image is a single step. This follows how the training features were extracted (frames only for the clip and image datasets; frames, sound and transcripts for Friends and Movie10).
  2. Backbone. Qwen3-Omni's thinker runs on each step in bfloat16, with the sound interleaved with the frames. Its 49 hidden states are pooled per input: the video tokens of the last two frames (all image tokens for an image), the audio token at the step, and the tokens of each word, giving 49 × 2048 features per step.
  3. Adapter. A MIRAGE encoder (layer pooling with learned queries for each input, then a causal temporal transformer) turns the steps into a sequence of states. Inputs that are missing enter as zeros, as in training. See the paper for the architecture.
  4. Output. For a video, the states are averaged within windows of about 3 s: a clip of length T gets max(1, round(T / 3)) windows of nearly equal length. Each window, or the single state of an image, is mapped to 1,412 response amplitudes by the readout.

The outputs are response amplitudes (betas): one value per parcel for each window or image, like the targets of the clip and image datasets.

Training data

DatasetStimuliSubjectsScan hours
Friends and Movie10 (Courtois NeuroMod)TV episodes and 44 film segments5336
BOLD Moments1,102 video clips, 3 s1068
McMahon et al. 2023250 video clips, 3 s418
NSD70,566 natural images8285
THINGS-fMRI8,740 object images343

For the clip and image datasets, the targets are single-trial GLM betas, averaged over repetitions and z-scored per subject.

Parcels

1,412 parcels, in this order:

IndicesAtlasCoverage
0-999Schaefer 2018, 1,000 parcels, 7 networkscortex
1000-1357Cole-Anticevic network partition (CAB-NP)subcortex, cerebellum and brainstem
1358-1411Tian 2020, scale IVsubcortex

model.parcels lists each parcel's label, atlas, hemisphere and network. Parcels 532 (7Networks_RH_Vis_33) and 902 (7Networks_RH_Cont_Cing_1) have no vertices on the fsLR-32k surface, so they had no training data. The model returns NaN for them, and the cortical scores above use the other 998.

Intended use and limitations

MIRAGE-MD is meant for research: labeling image and video collections with predicted brain responses, and studying how those responses vary across stimuli.

  • The clip and image heads never saw audio or transcripts, and audio makes their predictions worse (see the note under Quick start).
  • Group readouts are less accurate than a subject's own head (by 0.01-0.06 r in the table above).
  • Inputs longer than about 20 s are untested. Split long videos into clips of 20 s or less; each clip starts without context from the previous one. Every sampled frame of a file is held in memory, so keep inputs to a few minutes.
  • Each head models one training subject; the model does not adapt to new people.

Provenance

The adapter was converted from the training checkpoint and checked against the training code: on the same features, the betas agree to within 4e-6 of their standard deviation. From image and video files through Qwen, the betas correlate with the training pipeline's at r ≥ 0.999 on 60 test stimuli, close to the training pipeline's own run-to-run agreement (r ≥ 0.9996).

License

The code and adapter weights are released under Apache-2.0. Qwen3-Omni, which is downloaded from Qwen's repository, is also Apache-2.0. The heads were trained on these datasets, each under its own terms:

DatasetTerms
Courtois NeuroMod (Friends, Movie10)CNeuroMod data transfer agreement
BOLD MomentsCC0
McMahon et al. 2023CC0
NSDCC0
THINGS-fMRICC0

Citation

@inproceedings{gokce2026mirage,
  title     = {{MIRAGE}: Adaptive Multimodal Gating for Whole-Brain f{MRI} Encoding},
  author    = {Abdulkadir Gokce and Badr AlKhamissi and Martin Schrimpf},
  booktitle = {The Fortieth Annual Conference on Neural Information Processing Systems},
  year      = {2026},
  url       = {https://openreview.net/forum?id=o0Kim6sdzg}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Нельзя запустить

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

Класс архитектуры
MirageMDModel
Ревизия весов
a008a7b

0 моделей