Accurate Decoding of Natural Sentences from Non-Invasive Brain Recordings

Mingfang Zhang, Jarod Lévy, Cedric Rommel, Jérémy Rapin, Corentin Bel, Julie Bonnaire, Daniel Nieto, Pierre Bourdillon, Svetlana Pinet, Stéphane d'Ascoli, Thomas Moreau, Jean-Rémi KingarXiv 2026

TL;DR

Brain2Qwerty v2 is a non-invasive brain-computer interface (BCI) framework that decodes natural sentences from continuous magnetoencephalography (MEG) recordings during a typing task. By combining an asynchronous deep learning encoder with a fine-tuned Large Language Model (LLM), the system achieves an average word error rate of 39%. Crucially, the model's performance scales log-linearly with data volume, showing that non-invasive methods can begin to bridge the gap with risky, surgical brain implants.

What Problem Does This Paper Address?

Invasive BCIs (intracranial implants) have recently achieved remarkable success in restoring communication for paralyzed individuals, enabling them to type or speak via neural signals. However, neurosurgery carries significant medical risks, long-term neuroinflammatory challenges, and high logistical barriers to widespread clinical adoption.

Non-invasive alternatives like electroencephalography (EEG) and functional MRI (fMRI) suffer from poor signal-to-noise ratios or low temporal resolution. Magnetoencephalography (MEG) offers a sweet spot of high temporal resolution and decent spatial coverage, but previous decoding attempts lagged far behind invasive methods. Specifically, prior work relied on synchronous decoding—requiring exact knowledge of when a keystroke occurred—which limits real-time application. Furthermore, these models struggled to generate coherent sentences from noisy character-level predictions due to a lack of data scale and language context.

Methods

Brain2Qwerty v2 introduces a three-level architecture designed to jointly extract character, word, and sentence-level information from continuous brain signals:

  1. Asynchronous Encoder: A hierarchical network consisting of a spatial convolutional feature extractor (BrainModule) and a Conformer sequence model. It uses a Connectionist Temporal Classification (CTC) loss to align continuous MEG signals directly to character sequences without needing exact keystroke timings.
  2. CTC Tokenizer & Aligner: To bridge the gap between continuous brain signals and discrete language tokens, the authors designed a tokenizer that chunks MEG embeddings based on predicted "space" keys. These chunks are averaged into "MEG word tokens" and mapped into the LLM's embedding space using a Multi-Layer Perceptron (MLP) trained with a contrastive SigLIP loss and Dynamic Time Warping (DTW).
  3. NeuroLLM: A pretrained causal language model (Qwen3-4B) fine-tuned via Low-Rank Adaptation (LoRA). It receives a multimodal prompt containing both the noisy CTC text predictions and the continuous MEG word tokens to autoregressively generate the final sentence. To prevent overfitting across subjects, the authors used a Model Soup approach, training independent adapters per subject and averaging their weights.
Overview of the asynchronous decoding approach and data scaling.

Additionally, the authors experimented with Auto Research, deploying autonomous AI agents (powered by Claude Opus 4.6 via Cursor) to iteratively optimize the machine learning pipeline's hyperparameters and codebase.

Datasets

  • EnglishBCBL (New): A newly introduced large-scale dataset containing 22,000 sentences typed by 9 healthy native English speakers. Each participant was recorded for 10 hours across 10 sessions. The stimuli consisted of 2,560 unique, simple English sentences generated by Llama 4.
  • SpanishBCBL: A baseline dataset from prior work consisting of 19 participants recorded for 1 hour each, utilizing a much smaller vocabulary of 128 unique sentences repeated multiple times.

Key Insights and Ideas

  • Log-Linear Scaling Laws: Asynchronous decoding performance improves log-linearly with data volume, showing no signs of saturation even at 90 total hours of aggregated data. This implies that simply collecting more non-invasive data is a viable lever to match invasive BCI performance.
  • Diversity Trumps Repetition: Sentence variety is an independent axis of data quality. Encoders trained on a diverse set of unique sentences achieved significantly lower error rates than those trained on repeated sentences, even when the total sentence count was perfectly matched.
  • The LLM Actually "Reads" the Brain: The fine-tuned LLM does not merely act as an advanced spell-checker for the encoder's text output. Ablation studies proved that removing the continuous "MEG tokens" significantly degraded performance, meaning the LLM actively extracts residual semantic information directly from the brain signal to guide its text generation.

Key Results

  • Word Error Rate (WER): Brain2Qwerty v2 achieved an average WER of 39% across all subjects, substantially outperforming the Encoder-alone baseline (55%) and the previous Encoder + N-gram baseline (43%).
  • Top-Tier Performance: For the best participant, the model achieved a 22% WER, perfectly decoding 28% of the test sentences verbatim and decoding nearly half (47%) with one word error or less.
Performance comparison across different decoding metrics and subjects.
  • Sensor Ablation Success: Simulating a lower-channel setup revealed that reducing the sensors from a full 306-channel cryogenic system down to 153 channels (typical of wearable, room-temperature Optically Pumped Magnetometer [OPM] helmets) only caused a minor performance drop of ~5.7 percentage points in WER. This demonstrates a clear path toward deployable, everyday BCI hardware.

Limitations and Future Work

  • Inter-Subject Variability: Large performance gaps persist between participants (e.g., the worst subject achieved only a 4% perfect decoding rate). Future work will focus on cross-subject transfer learning and self-supervised pretraining to stabilize performance.
  • Clinical Translation: The study was conducted on healthy volunteers physically typing on a keyboard. It remains a critical challenge to validate whether this framework can decode attempted movements or speech in paralyzed patients where actual physical feedback is absent.
  • Real-Time Latency: The current architecture is non-causal, meaning it processes the entire sentence at once. To be practically useful as a real-time communication aid, the pipeline must be adapted into a causal framework to minimize latency.

Summary updated

BibTeX
@misc{zhang2026accurate,
  author = {Mingfang Zhang and Jarod Lévy and Cedric Rommel and Jérémy Rapin and Corentin Bel and Julie Bonnaire and Daniel Nieto and Pierre Bourdillon and Svetlana Pinet and Stéphane d'Ascoli and Thomas Moreau and Jean-Rémi King},
  title = {{Accurate Decoding of Natural Sentences from Non-Invasive Brain Recordings}},
  year = {2026},
  eprint = {2608.18114},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.18114},
}
Figure