Improving Neural Decoding Performance for Language BCIs by Explicitly Modeling Context-Induced Noise

Yao Jia, Xianhan Tan, Binli Luo, Yueming Wang, Yu QiNeurIPS 2026

TL;DR

Brain-computer interfaces (BCIs) that translate neural activity into speech or text often stumble over "noisy" brain signals, typically treating all trial-by-trial signal variations as random static to be filtered out. This paper reveals that in language, much of that variability is actually context-induced—like how your mouth shapes the "b" in bag differently than in obtain—and carries vital clues rather than garbage. By explicitly separating random biological static from context-driven shifts, the authors build a decoder that suppresses the bad noise, leverages the good, and substantially boosts brain-to-text accuracy.

What Problem Does This Paper Address?

Imagine trying to read someone’s mind—literally—by listening to intracortical electrodes while they attempt to speak or imagine handwriting. A notoriously frustrating property of the brain is non-stationarity: neural signals drift and shift from trial to trial, even when a person repeats the exact same word.

Historically, BCI decoders borrowed intuitions from simple motor tasks (like moving a robotic arm) and treated all neural variability as random, stochastic noise. In language, however, variability is a two-headed beast:

  1. Stochastic Noise: Random neural firing or recording artifacts that blur the boundary between similar units (e.g., making /b/ look like /d/).
  2. Context-Induced Noise: Subtle shifts in neural representation caused by surrounding letters or phonemes—such as how a handwritten "t" looks different in tap versus the -tion in mention.
Figure 1: Illustration of neural variability in neural decoding. Top: The ideal latent space shows two well-separated clusters for /b/ and /d/. Bottom: The two key components contribute to neural variability. Left: the inherent Stochastic Noise increases the distribution variance of the two phonemes. Right: Context-Induced Noise leads to shifts in neural space.

Standard decoders either ignore context at the neural level (relying on an external language model at the very end to fix typos) or accidentally scrub away helpful contextual cues while trying to denoise the signal. The authors ask: can we teach a neural decoder to tell these two variabilities apart and treat them differently?

Methods

Instead of mapping brain signals to rigid, deterministic points like standard Transformers do, the authors propose a probabilistic, uncertainty-aware framework built around three novel modules following a standard Transformer feature extractor:

Figure 2: The uncertainty-aware decoding framework for language BCIs. The model consists of three modules: (1) Stochastic Encoder projects raw neural signals into a distribution latent space; (2) Neural Variability Decomposition disentangles the latent scale into an Aleatoric part (signal noise) and an Epistemic part (contextual ambiguity) under an orthogonality constraint; (3) Hybrid Distance Attention integrates Bilinear Distance Attention (refined by a Modulation Term R) and Wasserstein Distance Attention to capture reliable temporal features for downstream tasks.
  • Stochastic Encoding: Projects raw neural features into Gaussian distributions (a mean state $\mu$ and local variation scale $\sigma$), allowing the model to represent both what the brain is saying and how reliable that signal is.
  • Neural Variability Decomposition: Splits variability into two distinct uncertainty proxies kept separate by an orthogonality constraint (minimizing Pearson correlation so they don't learn the same thing):
  • Aleatoric uncertainty ($\sigma_{ale}$) captures random stochastic noise, supervised by overall predictive entropy (high when noise corrupts evidence across the board).
  • Epistemic uncertainty ($\sigma_{epi}$) captures context-induced ambiguity, estimated via Monte Carlo sampling and supervised by the margin between the top two predicted classes (high when two specific phonemes are competing).
  • Hybrid Distance Attention (HDA): Replaces standard dot-product self-attention. It measures relationships between time steps using both feature-level (weighted Mahalanobis-like) and distribution-level (2nd-order Wasserstein) distances. Crucially, it injects a routing bias: it penalizes attention between time steps with mismatched random noise (preventing noisy signals from contaminating clean ones) while rewarding attention between high-ambiguity and low-ambiguity steps (letting clear surrounding context disambiguate fuzzy phonemes).

Datasets

No new datasets were introduced; the authors evaluated their framework on three publicly available invasive (intracortical) human BCI datasets, plus an official competition leaderboard:

  • Speech I (Willett et al., 2023): Attempted speech covering 9,647 sentences and 39 phoneme classes.
  • Speech II (Card et al., 2024): Attempted speech covering 8,015 sentences and 39 phonemes.
  • Handwriting (Willett et al., 2021): Imagined handwriting covering 730 sentences and 26 letters.
  • Brain-to-Text Benchmark ’24: Official hidden-test competition benchmark for standardized sentence-level speech evaluation.

Key Insights and Ideas

  • Over-denoising is dangerous: In hyperparameter sensitivity tests on Speech II, cranking up the penalty weight on stochastic noise ($\lambda_{ale}$) past 0.1 caused decoding accuracy to catastrophically collapse from 86% down to 23%. Aggressive denoising tricks the model into throwing out subtle, useful contextual signals along with the bathwater.
  • The two uncertainties behave differently as accuracy drops: Calibration analysis showed that as random (aleatoric) noise rises, accuracy degrades linearly. By contrast, context-induced (epistemic) uncertainty follows a sharp negative exponential curve—accuracy plunges early during context confusion, pinpointing contextual disambiguation as a primary bottleneck in BCI decoding.
  • Built-in "I don't know" button for clinical safety: Because the model explicitly tracks its own uncertainty, clinicians can set a threshold to automatically reject high-uncertainty decoding attempts, steadily boosting the effective accuracy of accepted outputs.

Key Results

The framework was tested across three clinical tasks—unit decoding, future-step phoneme forecasting (for low-latency BCIs), and neural signal imputation (simulating dead electrodes)—consistently outperforming RNNs, TCNs, Transformers, Mamba, and modern time-series models:

  • Unit-Aligned Decoding: Achieved top accuracy across datasets, reaching 80.2% on Speech I (+2.1% over vanilla Transformer at $T=40$), 88.6% on Speech II ($T=50$), and 69.7% on Handwriting (+7.1% over Transformer at $T=40$).
  • Official Benchmark: Plugging their modules into a strong Time-Masked Transformer (TMT) backbone reduced hidden-test Word Error Rate (WER) on the Brain-to-Text Benchmark ’24 from 8.18% to 7.25% (with a 5-gram LM + OPT-6B). An ensemble of ten decoders paired with a fine-tuned Llama 3.1 8B pushed WER down to 4.85% (vs. 5.68% for baseline TMT).
  • Forecasting & Imputation: Improved short-horizon phoneme forecasting by +7.4 percentage points over the strongest baseline on Speech II ($K=2$ steps ahead) and achieved the lowest signal reconstruction error (MSE/MAE) across all datasets.

Limitations and Future Work

  • Parametric assumptions: Modeling neural states as simple diagonal Gaussians may be too rigid; the authors suggest exploring non-parametric latent spaces or flow-based generative models to capture complex, non-linear neural manifolds.
  • Computational overhead: Computing hybrid bilinear and Wasserstein distances adds computational cost compared to standard attention, which matters for real-time implanted devices.
  • Single-subject scope & proxy interpretation: Each dataset comes from a single participant, meaning results prove within-subject robustness across sessions rather than cross-subject generalization. Furthermore, the learned uncertainties are mathematical, task-calibrated proxies—confirming their exact physiological origins will require external biological validation.

Summary updated

Abstract

Language brain-computer interfaces (BCIs), including speech and handwriting BCIs, hold significant promise for restoring communication in individuals with paralysis. However, the performance of current language BCIs remains limited due to the non-stationarity of neural activity. Existing neural decoding approaches typically treat neural non-stationarity as stochastic noise. For language BCIs, however, the noise is more complex due to the influence of semantic context in language sequences. For example, the articulation of the same phoneme can vary subtly depending on its surrounding content. Such context-induced variations introduce additional noise into neural representations and can confuse neural decoders, yet this issue has been largely overlooked in previous studies. Here, we propose explicitly modeling these context-induced noises to enhance neural decoding performance in language BCIs. Our key insight is that, unlike stochastic noise, context-induced noise carries useful information that can help the decoder disambiguate linguistically similar units. Therefore, by separating and modeling context-induced noise, we achieve improved decoding performance for language BCIs. Experiments on multiple datasets demonstrate improved decoding under controlled comparisons, and an enhanced system integrating our method performs well on the official Brain-to-Text Benchmark '24.
BibTeX
@inproceedings{jia2026improving,
  author = {Yao Jia and Xianhan Tan and Binli Luo and Yueming Wang and Yu Qi},
  title = {{Improving Neural Decoding Performance for Language BCIs by Explicitly Modeling Context-Induced Noise}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=uBEKcgOVRy},
}
Figure