Tuesday, June 30, 2026

Meta AI Releases Brain2Qwerty v2: A Non-Invasive MEG Mind-to-Textual content Pipeline Decoding Typed Sentences at 61% Phrase Accuracy


Meta AI simply launched Brain2Qwerty v2. It decodes pure sentences from non-invasive mind recordings in actual time. The system reads magnetoencephalography (MEG) alerts whereas an individual sorts. It reconstructs what they typed, with no implant and no surgical procedure. That is the follow-up to Brain2Qwerty v1, launched in February 2025. Meta can also be releasing the total coaching code for each variations. The pipeline combines a convolutional encoder, a transformer, and a character-level language mannequin.

TL;DR

  • Brain2Qwerty v2 decodes typed sentences from non-invasive MEG alerts, with no implant or surgical procedure.
  • It reaches 61% common phrase accuracy (39% WER), up from 8% for prior non-invasive strategies.
  • The perfect participant hit 78% phrase accuracy, with over half of sentences at one phrase error or much less.
  • The pipeline pairs a convolutional encoder, transformer, and character-level language mannequin, plus fine-tuned LLMs.
  • Accuracy scales log-linearly with knowledge; coaching code for v1 and v2 is launched below CC BY-NC 4.0.

What’s Brain2Qwerty v2?

Brain2Qwerty v2 is a brain-to-text decoder. It maps uncooked mind exercise to characters, then to phrases and sentences.

Meta educated it on roughly 22,000 sentences from 9 volunteer members. Every participant was recorded for 10 hours whereas actively typing.

Recordings come from a MEG gadget. MEG measures the magnetic fields produced by neuronal exercise, sampled at excessive temporal decision.

The mannequin leverages character, phrase and sentence-level representations. That layered design lets it appropriate native errors utilizing broader context.

Importantly, that is analysis, not a product. The decoder will not be a client gadget, and it was examined on a small group of volunteers.

The info was collected with Spain’s BCBL (Basque Middle on Cognition, Mind and Language). It belongs to that analysis heart.

How the Decoding Pipeline Works

Earlier non-invasive programs relied on hand-crafted pipelines to detect neural occasions. Brain2Qwerty v2 replaces that step with end-to-end deep studying.

Per Meta’s repository, the mannequin combines three parts: a convolutional encoder, a transformer, and a character-level language mannequin.

The convolutional encoder reads uncooked MEG alerts. It learns options straight from the information as an alternative of utilizing engineered occasion detectors.

The transformer fashions longer-range construction throughout the sign. The character-level language mannequin then constrains the output towards believable textual content.

Meta analysis workforce describes 3 ways AI permits the outcome. Every maps to a concrete engineering resolution groups will acknowledge.

  1. Deep studying replaces hand-crafted occasion detection.
  2. Giant language fashions are fine-tuned to extract semantic representations.
  3. AI brokers iteratively refined the decoding pipeline by means of automated code improvement. Ultimate coaching configurations have been nonetheless chosen manually by devs

Nice-tuning giant language fashions on neural knowledge provides semantic context. That context bridges noisy mind recordings and coherent language output.

In follow, the language mannequin rejects character sequences that kind no actual phrases. It pushes the decoder towards sentences a human would plausibly kind.

Right here is an illustrative sketch of the printed structure. It mirrors the described parts and isn’t Meta’s actual coaching code.

import torch
import torch.nn as nn

class Brain2QwertySketch(nn.Module):
    """Illustrative: convolutional encoder -> transformer -> char-level head.
    Displays the parts Meta describes, not the official implementation."""
    def __init__(self, n_meg_channels=306, d_model=256, n_chars=40):
        tremendous().__init__()
        # 1) Convolutional encoder over uncooked MEG channels x time
        self.encoder = nn.Sequential(
            nn.Conv1d(n_meg_channels, d_model, kernel_size=7, padding=3),
            nn.GELU(),
            nn.Conv1d(d_model, d_model, kernel_size=5, padding=2),
            nn.GELU(),
        )
        # 2) Transformer fashions temporal construction
        layer = nn.TransformerEncoderLayer(d_model, nhead=8, batch_first=True)
        self.transformer = nn.TransformerEncoder(layer, num_layers=6)
        # 3) Character-level head; a language mannequin refines this downstream
        self.char_head = nn.Linear(d_model, n_chars)

    def ahead(self, meg):           # meg: (batch, channels, time)
        x = self.encoder(meg)         # (batch, d_model, time)
        x = x.transpose(1, 2)         # (batch, time, d_model)
        x = self.transformer(x)       # contextualized options
        return self.char_head(x)      # (batch, time, n_chars)

To work with Meta’s actual code, clone the repository and examine each variations:

git clone https://github.com/facebookresearch/brain2qwerty
# brain2qwerty_v1/ and brain2qwerty_v2/ maintain the coaching code

The Accuracy Numbers

Brain2Qwerty v2 achieves a median phrase accuracy price of 61%. That corresponds to a phrase error price (WER) of 39%.

For the very best participant, the mannequin reaches 78% phrase accuracy. For that participant, over half of sentences had one phrase error or much less.

The prior baseline issues right here. Meta reviews that different non-invasive strategies reached solely 8% phrase accuracy.

Accuracy additionally improves log-linearly with knowledge quantity. Extra recording hours predictably increase accuracy within the reported vary.

That scaling habits is the important thing declare for builders. It suggests the hole with surgical implants may slender by means of knowledge alone.

Metric Brain2Qwerty v2 Prior non-invasive strategies
Common phrase accuracy 61% 8%
Common phrase error price (WER) 39%
Finest participant phrase accuracy 78%
Recording methodology MEG, non-invasive Non-invasive
Scaling habits Log-linear with knowledge

These numbers come from volunteers in a managed setting. They aren’t medical outcomes for sufferers with mind accidents.

v1 vs v2: What Modified

Brain2Qwerty v1 and v2 report totally different metrics, so examine them fastidiously. v1 was measured at character stage, v2 at phrase stage.

Facet Brain2Qwerty v1 (Feb 2025) Brain2Qwerty v2 (Jun 2026)
Gadgets MEG and EEG MEG
Contributors 35 wholesome volunteers 9 volunteers
Knowledge Typed sentences ~22,000 sentences, 10 hours every
Reported outcome As much as 80% of characters (MEG) 61% common phrase accuracy
Illustration stage Character-level Character, phrase and sentence-level
Actual-time decoding Not emphasised Actual-time sentence decoding

v1 additionally confirmed MEG decoding was at the very least twice higher than the EEG system. EEG alerts are noisier, which limits accuracy.

Use Instances With Examples

  • The first motivation is restoring communication. Thousands and thousands of individuals have mind lesions that stop them from talking or shifting.
  • Invasive strategies like stereotactic electroencephalography and electrocorticography already feed a neuroprosthesis to an AI decoder. However they require neurosurgery and are arduous to scale.
  • A non-invasive decoder may widen entry. A affected person may doubtlessly kind sentences with out an implant, utilizing solely exterior recordings.
  • For researchers, the launched code helps reproducible neuroscience. A lab may retrain the pipeline by itself MEG dataset.
  • For AI engineers, the mission is a template for biosignal decoding. The convolutional-encoder-plus-transformer sample transfers to different biosignal duties.
  • For knowledge scientists, the log-linear scaling result’s a planning software. It frames how a lot new recording knowledge could elevate accuracy.

Interactive Explainer


Related Articles

Latest Articles