18Scientific Computing

MEG Speech Decoding

#ModelScoreStepsIn tokOut tokAvg costAvg time
1Claude Fable 5.1
0.2924
±0.043
21932.5M174k$20.4715.8h
2GPT-5.6
0.2447
±0.060
24971.4M145k$75.646.7h
3Grok 4.6
0.2100
±0.065
535121.4M713k$129.1116.6h
4GLM-5.3
0.1361
±0.090
37885.6M270k$33.7417.4h
5DeepSeek V4 Flash Exp
0.1288
±0.065
41081.1M256k$1.5315.5h
6Kimi K3
0.1102
25632.2M173k$14.9018.4h
7Gemini 3.7 Flash
0.0811
±0.047
28041.5M130k$9.856.9h
8Muse Spark 1.2
0.0769
±0.074
20259.3M260k$13.613.8h
9Qwen3.8-Max
0.0489
±0.069
38557.1M348k$16.8019.5h
10Inkling
0.0000
±0.000
1365.6M31k$5.451.7h

Background

Magnetoencephalography (MEG) records the magnetic fields produced by neural activity with millisecond resolution, and decoding heard speech from those recordings is a frontier problem in neuro-AI. The signal is faint and noisy, hundreds of sensor channels mix overlapping neural sources, and word-evoked responses vary across recordings — so a decoder that memorizes session quirks collapses on held-out data.

This task uses continuous LibriBrain recordings aligned to audiobook speech: given a recording and the sample index where a word was heard, the decoder must rank the vocabulary by how likely each word is to be the one the listener heard. The design space is deliberately open — from classical feature pipelines to end-to-end networks or adapting pretrained speech and MEG foundation models — but the result must survive sealed evaluation slices that stress rare words and long-duration generalization.

Task

Build a word decoder and keep the complete replayable deliverable under /app/meg_decoder/: predict.py, model.py, run_summary.json, and a trained checkpoint/.

  • predict.py is invoked with --data-dir, --checkpoint, and --output-path, reads MEG recordings, event metadata, sensor metadata, and the vocabulary, and writes one JSONL row per input example_id.
  • Each row must contain a deterministic ranked list of at least ten unique vocabulary IDs (word_ids); duplicate or out-of-vocabulary IDs invalidate the row.
  • A full inference batch must finish within 30 minutes without internet or external services.
  • Rankings must materially respond to the supplied MEG signals rather than relying on event identifiers or fixed vocabulary priors — a counterfactual probe enforces this.
  • The complete /app/meg_decoder/ directory must be no larger than 2.5 GB.

What The Agent Gets

Labeled LibriBrain development data under /data: training and validation splits with continuous MEG arrays in recordings.zarr, word-onset events with labels in events.parquet, sensor metadata, the complete vocabulary.json, and — for the training split only — the aligned stimulus audio. Optional pretrained checkpoints are staged offline under /models: the facebook/w2v-bert-2.0 speech encoder, the pnpl/MEG-XL MEG foundation model, and google-t5/t5-large. The pinned Python stack includes torch and torchaudio 2.6.0 (CUDA), transformers, mne, librosa, zarr, pandas, and scikit-learn, with one GPU available. A fail-closed scaffold sits at /app/meg_decoder/ and /app/validate_predictions.py checks outputs locally. The machine is offline; a sandbox-timer CLI reports the remaining budget.

Verification

A clean-room verifier evaluates a read-only snapshot of /app/meg_decoder/ on sealed hidden data, stripping every label-bearing column from the events it hands to the decoder and locking /data, /models, and the workspace to root during replay. Inference runs as the unprivileged agent user with a 30-minute cap on the full batch.

  • Quality is scored per workload — held-out recordings, recording shift, rare words, and long duration (weighted 0.4/0.2/0.2/0.2) — using a chance-adjusted composite of macro top-10 accuracy (60%), macro MRR (25%), and macro top-1 accuracy (15%), combined across workloads by a smoothed geometric mean and calibrated onto the final reward scale.
  • A determinism probe reruns the full batch and requires identical top-10 rankings.
  • A signal-counterfactual probe time-shifts the real MEG while preserving event IDs and onsets; at least 50% of each top-10 ranking must change, defeating decoders that ignore the signal.
  • Contract and safeguard gates are binary: format violations, missing or duplicate predictions, a failed or nondeterministic replay, insufficient signal turnover, or an oversized deliverable zero the result.

Environment

Base imagenvidia/cuda:12.4.1-cudnn-devel-ubuntu22.04
Tools availableCUDA, PyTorch, C/C++ toolchain, Python 3
Compute8 CPUs · 64 GB RAM
GPU1× GPU (L4, A10G, L40S, or H100)
Time limit20h

References

  • LibriBrain (CC BY-NC 4.0): Human MEG recordings, event annotations, sensor metadata, and aligned stimulus audio are derived from this dataset; usage retains its participant-data and citation requirements. Split preparation, decoding scaffolding, and verification code are original to this benchmark.
  • w2v-bert-2.0 (MIT): Optional offline speech encoder staged under /models.
  • MEG-XL (MIT): Optional MEG foundation-model checkpoint staged under /models.
  • T5-Large (Apache-2.0): Optional text-decoder checkpoint staged under /models.