Skip to content

Brain-to-Text: rescoring an RNN decoder

Turning brain-implant signals into text by treating a pretrained RNN's output as a first draft and correcting it with an online n-gram language model.

Abstract ​

Brain-to-Text '25[1] asks for the sentence a participant was trying to say, decoded from neural signals recorded by a brain implant[2][3], and scores it on Word Error Rate (WER). Rather than retrain the supplied RNN decoder, this entry keeps it as-is and corrects its output with an online n-gram language model[4], then ensembles the two.

Introduction ​

The competition ships a pretrained RNN. Its raw decodes are close but noisy: roughly the right sounds, sometimes the wrong words. That is a language problem more than a signal problem.

The RNN already hears the sounds. What it's missing is a sense of which words usually come together.

So the effort goes into the part that knows about language, not into the decoder.

kaggle.comBrain-to-text '25 ↗Decode intracortical neural activity during attempted speech into words

Progress ​

Methodology ​

  1. Raw decodes. Run the pretrained RNN unchanged.
  2. Rescoring. An online n-gram model looks at the words around each position and asks whether the decoded word fits there. "Online" means its counts keep updating as decodes arrive, rather than being frozen after one pass over a corpus.
  3. Ensemble. Combine the RNN and rescored outputs, so the n-gram model cannot overrule a confident RNN on its own.

Results and Conclusion ​

No WER figures yet. The next step is to measure WER before and after rescoring on the same split; without that comparison there is no way to tell whether the language layer helps.

References ​

  1. Kaggle. Brain-to-Text '25. https://www.kaggle.com/competitions/brain-to-text-25 (opens in new tab) ↩︎

  2. Willett, F. R. et al. (2023). A high-performance speech neuroprosthesis. Nature, 620, 1031–1036. https://doi.org/10.1038/s41586-023-06377-x (opens in new tab) ↩︎

  3. Card, N. S. et al. (2024). An Accurate and Rapidly Calibrating Speech Neuroprosthesis. New England Journal of Medicine, 391, 609–618. https://doi.org/10.1056/NEJMoa2314132 (opens in new tab) ↩︎

  4. Jurafsky, D. & Martin, J. H. Speech and Language Processing (3rd ed. draft), Chapter 3: N-gram Language Models. https://web.stanford.edu/~jurafsky/slp3/ (opens in new tab) ↩︎