Reading time: about 8 minutes · 29 November 2026 · arXiv, 2026

This paper shows how a pretrained spiking decoder can be realigned to a later day’s cortical recordings by matching only its membrane-potential statistics, without new movement labels.

Background

An intracortical brain–computer interface (iBCI) records spikes from electrodes in cortex and turns them into a command, such as decoded hand velocity. After a decoder is trained, the same implant is meant to last. In practice the recordings drift: electrode micromotion, changes in which units are visible, and shifts in firing statistics can all change the spike-to-movement map. A model that worked on day 0 can lose accuracy on day k, even on the same kind of task.

Test-time adaptation (TTA) keeps a model trained with labels on a source session and adjusts it on a new target session using only the new neural recordings. A strong recent method, NoMAD, aligns latent dynamical states of a deep recurrent model and has supported stable primate decoding over months. It works, but the architecture is heavy, typically a variational autoencoder with gated recurrent layers, and it usually runs on coarser time bins.

A spiking neural network (SNN) communicates with discrete spikes. Each unit holds an internal voltage, the membrane potential: input current charges it, a spike is emitted when a threshold is crossed, and the voltage is then reset. Because spikes are sparse, SNNs are attractive for low-power decoding. The question is whether an SNN can be adapted across days as effectively as a much larger deep model, using only a short unlabeled snippet of the new session.

Problem

The practical problem is long-term decoding without a fresh labeled mapping session every day. Methods that work well on primate reaching have been computationally expensive, and a poor match for implantable or edge hardware.

Inside an SNN, a session shift changes the spike input and, with it, the hidden membrane-potential trajectories. If those voltages on day k can be brought back in line with the voltages the pretrained model produced on day 0, later layers that already know how to read movement from that internal state may work again—without new velocity labels. The update must also be small, and some target sessions may have drifted too far for any unlabeled alignment from a single source day. The method therefore needs a recording-based check of source–target compatibility.

Method

Membrane Potential Alignment (MPA) has two stages. First, an SNN is trained with supervision on day 0, mapping binned cortical spikes to hand velocity. Second, on day k, the movement readout stays frozen and only a small set of adaptation parameters is updated so that the hidden membrane-potential distribution on day k matches the distribution of the frozen day-0 model on day-0 data.

Figure 1. Membrane Potential Alignment (Tang, 2026, Fig. 1). Top: a source-day SNN is trained with a supervised mean-squared-error loss on hand velocity. Bottom: on a later day the movement readout and most weights stay fixed, and only a small adapter is updated by matching hidden membrane-potential distributions with a KL penalty; no new velocity labels are used.

Figure 1. Membrane Potential Alignment (Tang, 2026, Fig. 1). Top: a source-day SNN is trained with a supervised mean-squared-error loss on hand velocity. Bottom: on a later day the movement readout and most weights stay fixed, and only a small adapter is updated by matching hidden membrane-potential distributions with a KL penalty; no new velocity labels are used.

The neuron is a leaky integrate-and-fire (LIF) cell:

ui(t) = β ui(t − 1) + Ii(t) − Si(t − 1) Vth,

where β is a leak, Ii(t) is input current, Vth is the threshold, and Si(t − 1) is the previous spike. After a spike the authors use a soft reset: the threshold is subtracted, but residual voltage is kept. A hard reset would send every suprathreshold state back to zero and make the voltage distribution less useful for matching.

MPA treats one hidden layer’s voltages as a continuous internal code. Over a batch of B windows of length T, the voltages form N = B × T vectors, whose mean and covariance define a Gaussian p(u) = N(μ, Σ). Let p0 be that Gaussian for the frozen model on day-0 data, and pk for the adapted model on day-k data. The loss is the Kullback–Leibler divergence DKL(p0 ∥ pk).

To avoid overfitting a short unlabeled recording, only a first-layer LoRA update is trained—the layer that sees the shifted spikes. A frozen weight W becomes W′ = W + AB, with thin rank-r matrices A and B, and A starts at zero so the model begins identical to the pretrained decoder. Later layers stay frozen. With r = 8, fewer than 9% of parameters are updated.

Two metrics, computed from recordings alone, flag hard targets. Representational similarity turns each session into the off-diagonal of its channel-by-channel Pearson correlation matrix and correlates those two vectors. Grassmann distance fits a 10-dimensional PCA subspace to each session and measures how far the subspaces have rotated. In this dataset, unsupervised alignment fails when the mismatch is large on both metrics at once.

Experiments

The data are the public reaching recordings of Makin, O’Doherty, Cardoso and Sabes (2018). The study uses 23 sessions from Monkey 1 (Indy), each with 96 channels, collected from 15 September 2016 to 24 January 2017. Spikes and velocity are both handled in 4 ms bins, following NeuroBench. Only movement-active segments are kept, and each session is split 50% / 25% / 25% into train, validation and test.

The SNN has three fully connected hidden layers of 64 LIF neurons (β = 0.96, Vth = 1.0, fast-sigmoid surrogate gradient of slope 20, dropout 0.2). Training uses 50-timestep windows. Day-0 pretraining minimizes a temporally weighted mean-squared error that emphasizes later steps, with AdamW, learning rate 0.001, batch size 256 and 10 epochs. At test time the network is run in a streaming fashion over the full test set. For TTA, rank-8 LoRA weights on the first layer are trained for 10 epochs (learning rate 0.0005, batch size 1024, cosine annealing), and the checkpoint with the lowest validation KL is kept. Pretraining is repeated with five random seeds.

The main baseline is NoMAD, reimplemented in PyTorch, checked on the original paper’s data, then transferred with the same hyperparameters. It bins spikes at 20 ms and aligns a latent dynamical model with gated recurrent layers. Frozen LFADS and a frozen SNN are also reported. The task is self-paced grid reaching to random targets, less constrained than the center-out task in the original NoMAD study.

Results

Table 1 takes the first October 2016 session (indy_20161005_06) as day 0 and adapts to ten later sessions through day 22. On day 0, the supervised SNN reaches a mean R² of 0.59 ± 0.01, and LFADS reaches 0.53 ± 0.05. Without adaptation both models fall on later days: the frozen SNN has a mean R² of 0.09 across the ten targets. MPA raises that mean to 0.33 and improves 9 of the 10 sessions. It outperforms NoMAD on three positively decoded days (1, 6 and 22) and stays close on most of the others. Both methods fail on day 8 (MPA: −0.04 ± 0.02).

Figure 2. Single-session decoding on 17 October (day 12, seed 1) (Tang, 2026, Fig. 2). Without test-time adaptation, predicted x- and y-velocity stay near zero (R² = 0.072 and 0.098). With MPA, both axes track the true velocity more closely (R² = 0.474 and 0.449).

Figure 2. Single-session decoding on 17 October (day 12, seed 1) (Tang, 2026, Fig. 2). Without test-time adaptation, predicted x- and y-velocity stay near zero (R² = 0.072 and 0.098). With MPA, both axes track the true velocity more closely (R² = 0.474 and 0.449).

A single-seed example on 17 October (day 12) makes the same point in traces: without TTA the SNN sits near R² ≈ 0.08; with MPA, both x- and y-velocity rise to R² ≈ 0.46. Pretraining on a different source day (indy_20160915_01) shows the same pattern: the frozen model drops, sometimes below zero, and MPA restores both short- and longer-interval targets.

Compatibility metrics help explain the failures. Relative to the 5 October source, the failed 13 October (day 8) session has the second-lowest representational similarity and the highest Grassmann distance among 22 targets. The 24 January 2017 session has the lowest similarity and one of the highest Grassmann distances; both NoMAD and MPA fail to recover positive R² there. By contrast, 6 December and 20 December still support successful TTA despite relatively low similarity.

Figure 3. Compatibility of later sessions with the 5 October source (Tang, 2026, Fig. 4). (a) Representational similarity of correlation structure; (b) Grassmann distance between neural subspaces. Red bars mark failures. 13 October has the second-lowest similarity and the highest Grassmann distance; 24 January also fails. 6 December and 20 December still succeed despite relatively low similarity.

Figure 3. Compatibility of later sessions with the 5 October source (Tang, 2026, Fig. 4). (a) Representational similarity of correlation structure; (b) Grassmann distance between neural subspaces. Red bars mark failures. 13 October has the second-lowest similarity and the highest Grassmann distance; 24 January also fails. 6 December and 20 December still succeed despite relatively low similarity.

MPA also works with very little data. On the 17 October target, a substantial R² gain remains with as little as 1.88 s of source data and 1.28 s of target alignment data. In those tests the batch was smaller and the epoch count was adjusted so that the number of gradient updates stayed constant. Figure 5 reports TTA R² for seven fractions of the target training set, from 0.25% to 5% (1.28 s to 25.72 s), under four source-data budgets.

Figure 4. MPA with limited data, evaluated on the 17 October target (Tang, 2026, Fig. 5). Panels vary day-0 source data from 0.5% (1.88 s) to 10% (37.66 s); the x-axis is the fraction of day-k training data used for alignment, from 0.25% (1.28 s) to 5% (25.72 s). A substantial R² gain remains with only 1.88 s of source data and 1.28 s of target alignment data (a).

Figure 4. MPA with limited data, evaluated on the 17 October target (Tang, 2026, Fig. 5). Panels vary day-0 source data from 0.5% (1.88 s) to 10% (37.66 s); the x-axis is the fraction of day-k training data used for alignment, from 0.25% (1.28 s) to 5% (25.72 s). A substantial R² gain remains with only 1.88 s of source data and 1.28 s of target alignment data (a).

Analysis

The main result is not that the SNN beats NoMAD in every session, but that a much simpler spike-based decoder, updated only in a low-rank first layer by matching voltages, can reach a similar unsupervised recovery—and at 4 ms resolution rather than 20 ms. Moving 9 of 10 October targets, and taking one example from about 0.08 to about 0.46, shows that the KL objective on membrane potentials carries usable information about the session shift.

Decoding does not decay monotonically with calendar time: some later days are easier than earlier ones, which fits session-specific recording instabilities rather than a simple clock. When a target sits far from the source in both correlation structure and subspace orientation, unlabeled alignment does not rescue it. The two metrics therefore offer a practical test of whether a stored day-0 model is a reasonable starting point. A few seconds of unlabeled spikes can recover a large fraction of the TTA gain. The update is small enough to be a candidate for on-device learning, though this paper evaluates the algorithm in software, not on neuromorphic hardware.

Summary

MPA keeps a supervised SNN trained on one day’s reaching data and, on later days, updates fewer than 9% of its parameters so that hidden membrane-potential distributions line up again. On a month of 96-channel recordings from one monkey, that unlabeled alignment raises mean velocity R² from 0.09 to 0.33, stays competitive with NoMAD, works with seconds of data, and comes with two recording-based checks for when a target session is too far to adapt.

References

Tang, G. (2026). Test-Time Adaptation of Spiking Neural Networks for Intracortical Neural Decoding using Membrane Potential Alignment. arXiv:2606.14866.

Makin, J. G., O’Doherty, J. E., Cardoso, M. M., & Sabes, P. N. (2018). Superior arm-movement decoding from cortex with a new, unsupervised-learning algorithm. Journal of Neural Engineering, 15(2), 026010.

Karpowicz, B. M., Ali, Y. H., Wimalasena, L. N., Sedler, A. R., Keshtkaran, M. R., Bodkin, K., Ma, X., Rubin, D. B., Williams, Z. M., Cash, S. S., et al. (2025). Stabilizing brain-computer interfaces through alignment of latent dynamics. Nature Communications, 16, 4662.

Hu, E. J., Shen, Y., Wallis, P., Allen-Zhu, Z., Li, Y., Wang, S., Wang, L., & Chen, W. (2022). LoRA: Low-rank adaptation of large language models. ICLR.

Yik, J., et al. (2025). The NeuroBench framework for benchmarking neuromorphic computing algorithms and systems. Nature Communications, 16, 1545.

Hueber, P., Tang, G., Sifalakis, M., Liaw, H. P., Micheli, A., Tomen, N., & Liu, Y. H. (2024). Benchmarking of hardware-efficient real-time neural decoding in brain–computer interfaces. Neuromorphic Computing and Engineering, 4(2), 024008.

Figures are from Tang (2026), arXiv:2606.14866.