Meta AI Releases Brain2Qwerty v2: A Non-Invasive MEG Brain-to-Text Pipeline Decoding Typed Sentences at 61% Word Accuracy
Meta AI simply launched Brain2Qwerty v2. It decodes pure sentences from non-invasive mind recordings in actual time. The system reads magnetoencephalography (MEG) indicators whereas an individual sorts. It reconstructs what they typed, with no implant and no surgical procedure. This is the follow-up to Brain2Qwerty v1, launched in February 2025. Meta can also be releasing the complete 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 indicators, with no implant or surgical procedure.
- It reaches 61% common phrase accuracy (39% WER), up from 8% for prior non-invasive strategies.
- The finest 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 is 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 contributors. Each 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 right native errors utilizing broader context.
Importantly, that is analysis, not a product. The decoder shouldn’t be a shopper gadget, and it was examined on a small group of volunteers.
The knowledge was collected with Spain’s BCBL (Basque Center on Cognition, Brain and Language). It belongs to that analysis middle.
How the Decoding Pipeline Works
Earlier non-invasive methods 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 elements: a convolutional encoder, a transformer, and a character-level language mannequin.
The convolutional encoder reads uncooked MEG indicators. It learns options immediately from the info 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 consequence. Each maps to a concrete engineering resolution groups will acknowledge.
- Deep studying replaces hand-crafted occasion detection.
- Large language fashions are fine-tuned to extract semantic representations.
- AI brokers iteratively refined the decoding pipeline by automated code improvement. Final coaching configurations had been nonetheless chosen manually by devs
Fine-tuning massive language fashions on neural knowledge provides semantic context. That context bridges noisy mind recordings and coherent language output.
In observe, the language mannequin rejects character sequences that type no actual phrases. It pushes the decoder towards sentences a human would plausibly sort.
Here is an illustrative sketch of the revealed structure. It mirrors the described elements 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.
Reflects the elements 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 mean phrase accuracy fee of 61%. That corresponds to a phrase error fee (WER) of 39%.
For the perfect 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 stories that different non-invasive strategies reached solely 8% phrase accuracy.
Accuracy additionally improves log-linearly with knowledge quantity. More recording hours predictably elevate 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 knowledge alone.
| Metric | Brain2Qwerty v2 | Prior non-invasive strategies |
|---|---|---|
| Average phrase accuracy | 61% | 8% |
| Average phrase error fee (WER) | 39% | — |
| Best participant phrase accuracy | 78% | — |
| Recording technique | 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 Changed
Brain2Qwerty v1 and v2 report completely different metrics, so evaluate them rigorously. v1 was measured at character stage, v2 at phrase stage.
| Aspect | Brain2Qwerty v1 (Feb 2025) | Brain2Qwerty v2 (Jun 2026) |
|---|---|---|
| Devices | MEG and EEG | MEG |
| Participants | 35 wholesome volunteers | 9 volunteers |
| Data | Typed sentences | ~22,000 sentences, 10 hours every |
| Reported consequence | Up to 80% of characters (MEG) | 61% common phrase accuracy |
| Representation stage | Character-level | Character, phrase and sentence-level |
| Real-time decoding | Not emphasised | Real-time sentence decoding |
v1 additionally confirmed MEG decoding was at least twice higher than the EEG system. EEG indicators are noisier, which limits accuracy.
Use Cases With Examples
- The major motivation is restoring communication. Millions of individuals have mind lesions that stop them from talking or transferring.
- Invasive strategies like stereotactic electroencephalography and electrocorticography already feed a neuroprosthesis to an AI decoder. But they require neurosurgery and are laborious to scale.
- A non-invasive decoder may widen entry. A affected person may probably sort 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 undertaking 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 device. It frames how a lot new recording knowledge might elevate accuracy.
Interactive Explainer
Strengths and Limitations
Strengths:
- Reaches 61% common phrase accuracy from non-invasive MEG, up from an 8% prior baseline.
- Uses end-to-end deep studying as an alternative of hand-crafted occasion detection.
- Accuracy scales log-linearly with knowledge, giving a transparent path to enchancment.
- Full coaching code for v1 and v2 is publicly launched below CC BY-NC 4.0.
- Architecture reuses normal elements: convolutional encoder, transformer, character-level language mannequin.
Limitations:
- MEG requires a magnetically shielded room and a nonetheless topic, limiting sensible use.
- Results come from volunteer contributors, not sufferers with mind accidents.
- The license is non-commercial, proscribing product deployment.
- The v2 dataset is below embargo till paper acceptance, so solely v1 knowledge is offered now.
- The v2 outcomes come from a preprint; the v1 examine was peer-reviewed in Nature Neuroscience.
- A 39% phrase error fee nonetheless trails surgical-implant efficiency.
Check out the Paper, Repo and Technical details. Also, be happy to observe us on Twitter and don’t neglect to hitch our 150k+ML SubReddit and Subscribe to our Newsletter. Wait! are you on telegram? now you can join us on telegram as well.
Need to companion with us for selling your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar and so forth.? Connect with us
The submit Meta AI Releases Brain2Qwerty v2: A Non-Invasive MEG Brain-to-Text Pipeline Decoding Typed Sentences at 61% Word Accuracy appeared first on MarkTechPost.
