Abstract
Invasive Brain-Computer Interfaces (iBCIs) are transitioning from laboratory settings to wearable, on-edge applications. This shift requires neural decoding backbones that are accurate, low-latency, and easily adaptable to daily signal drift. This paper benchmarks four architectures—GRU, Transformer, RWKV, and Mamba—using primate motor cortex data. Our results show that while GRUs are reliable for small datasets, linear-attention models like RWKV and Mamba offer superior inference speed and follow scaling laws for improved accuracy. Mamba, in particular, demonstrates the fastest recalibration times, making it a prime candidate for next-generation wearable iBCI systems.
Introduction
The development of invasive Brain-Computer Interfaces (iBCIs) has reached a critical juncture. While current systems can restore significant motor function, they often rely on bulky, power-hungry hardware. To make iBCIs practical for daily use, decoding must occur "on-edge" on wearable devices. This transition introduces a "trilemma" of balancing decoding accuracy, minimizing latency for natural control, and ensuring rapid adaptability to neural signal drift.
Traditional models like Gated Recurrent Units (GRUs) are limited by serial processing, while Transformers face quadratic computational costs. This study investigates whether newer architectures, specifically RWKV and Mamba, can address these limitations and serve as efficient backbones for future iBCI applications.
Methods
The researchers compared four distinct backbone models: GRU, Transformer, RWKV (Receptance Weighted Key Value), and Mamba (Selective State Space Model). These were evaluated across four experimental scenarios: single-session decoding, multi-session integration, new session fine-tuning (calibration), and model scaling.
The study utilized 30 sessions of neural recordings from a 96-channel Utah microelectrode array implanted in the primary motor cortex of a nonhuman primate. The task involved a random target reaching exercise. Neural signals were processed into binned spike counts and smoothed before being fed into the decoding models to predict finger velocity.
Results
Performance and Scaling
The study revealed that Mamba and RWKV exhibit superior scaling properties compared to traditional RNNs. While GRU performance plateaued, Mamba's accuracy continued to improve with increased parameters, reaching a peak $R^2$ score of 0.851 at 3 million parameters. Conversely, the Transformer model struggled to converge, suggesting its dense attention mechanism may be inefficient for neural spike data.
Efficiency and Calibration
In terms of inference speed, RWKV and Mamba were significantly faster than the GRU, with RWKV achieving the lowest latency (0.303s per batch). Mamba also proved most efficient for daily recalibration, requiring only 178 seconds to recover performance on new sessions, compared to 214 seconds for the GRU. This speed is crucial for minimizing the "morning calibration" burden on BCI users.
Discussion and Conclusion
The findings suggest that Mamba is the strongest candidate for a universal iBCI backbone, offering an optimal balance of accuracy, scaling potential, and inference speed. While the study was limited to a single subject and task, the results highlight the potential of linear-complexity models to overcome the computational bottlenecks of current iBCI systems.
Future work should focus on achieving "zero-shot" decoding to eliminate the need for daily calibration and validating these architectures across more complex, multi-modal tasks. Additionally, measuring actual power consumption on edge-specific hardware will be essential for the final deployment of wearable neuroprosthetics.
Summary updated