Reading time: about 8 minutes · 6 November 2026 · NeurIPS 2023

Every day a brain-computer interface is switched on, it listens to a slightly different set of neurons — and the decoder usually has to be rebuilt from scratch. Azabou and colleagues turn that problem upside down: they treat every single spike as a token, the way a language model treats a word, and train one transformer called POYO (Pre-training On manY neurOns) across hundreds of recording sessions, so that a new session or even a new animal can be adapted in about a minute of training.

1. What is “neural population decoding”?

Neurons talk in brief electrical pulses called spikes. An electrode array placed in the motor cortex of a monkey picks up the voltage traces of dozens to hundreds of neurons while the animal moves a cursor or its hand. Decoding means running this in reverse: given the spike trains, predict what the animal was doing, for example the horizontal and vertical velocity of its hand (vx, vy). Doing this from a whole population of neurons at once is neural population decoding, and it is the core computation inside many brain-computer interfaces.

How good is a decoder? The paper reports R² (the coefficient of determination): 1.0 means the prediction matches the true velocity perfectly, and lower values mean more of the movement is missed.

2. Why is it so hard to reuse a decoder?

Raw electrode voltage is first turned into spikes by spike sorting: an algorithm clusters spike waveforms by shape and assigns each cluster to a “unit” (roughly one neuron). Some datasets also use simpler threshold crossings instead of sorted units. Either way, the result is a list of units, numbered 1, 2, 3, …

Here is the catch. Each recording day is a session, and the electrodes drift a little, so the units you see on Tuesday are not the units you saw on Monday. A different monkey has completely different neurons. “Unit 17” in one session has no relation to “unit 17” in another, and even the number of units changes. A classical decoder has one input slot per unit, so it only works for the exact session it was trained on. As the authors note, the neuron sets differ across sessions, subjects and labs, which makes it hard to merge many recordings into one model.

3. The key idea: one spike, one token

Language models turn text into a sequence of tokens. POYO does the same with spikes. Each spike becomes one token, built from two things: (1) a learned unit embedding, a vector that stands for “the neuron that fired” and is learned during training, and (2) the timestamp of the spike. A one-second window with 300 spikes is therefore 300 tokens; with 3,000 spikes, 3,000 tokens. Nothing requires a fixed number of units, so recordings with different units can all be fed into the same model.

Figure A (schematic, self-drawn). Panel A: two sessions record different, unlabeled units, so unit numbers cannot be matched across them. Panel B: each spike is turned into a token made of the unit's embedding plus the spike time.

Figure A (schematic, self-drawn). Panel A: two sessions record different, unlabeled units, so unit numbers cannot be matched across them. Panel B: each spike is turned into a token made of the unit’s embedding plus the spike time.

4. How POYO processes the tokens

A one-second window can contain thousands of spike tokens, and standard self-attention compares every token with every other token, which becomes very expensive. POYO borrows the PerceiverIO design to avoid that. The intuition:

  • Attention lets each item “ask a question” and take a weighted average of the other items that look relevant to it.
  • A small set of learned latent tokens (a few hundred) first asks the question to the spike tokens (cross-attention), compressing thousands of spikes into a compact summary.
  • Several self-attention layers then let the latent tokens talk to each other. The cost depends on the small number of latents, not on the number of spikes.
  • Finally, query tokens ask the latents for the answer at specific moments (a second cross-attention), and a linear layer turns each answer into (vx, vy). Because queries can be placed at any time, POYO can output behavior at any time points. Each query carries a timestamp plus a session embedding that tells the model which session it is in.

Time enters through rotary position encoding, which lets attention depend on how far apart two events are in time rather than on absolute clock values.

Figure 1. POYO overview. Top left: raw spikes become tokens made of a unit embedding and a timestamp. Top right: behavior queries made of a timestamp and a session embedding. Bottom: cross-attention compresses spike tokens into learned latents, self-attention processes them, a second cross-attention reads out predictions at the query times, and a linear layer outputs (v_x, v_y).

Figure 1. POYO overview. Top left: raw spikes become tokens made of a unit embedding and a timestamp. Top right: behavior queries made of a timestamp and a session embedding. Bottom: cross-attention compresses spike tokens into learned latents, self-attention processes them, a second cross-attention reads out predictions at the query times, and a linear layer outputs (vx, vy).

5. First result: one model, many sessions, better than single-session models

The authors trained POYO on monkey motor cortex recordings in two tasks: a center-out (CO) reaching task and a random target (RT) task, both with the hand moving a manipulandum. They started with 100 sessions from 3 monkeys. Training one model separately per session gave an average R² of 0.9347 on CO and 0.8402 on RT. A single large model, POYO-mp (24 layers), trained on all 100 sessions together (9,789 units and 4,367 neuron-hours of recording) reached 0.9512 on CO and 0.8788 on RT. The same data, pooled, simply works better than each session on its own.

Figure 2. Multi-session decoding with POYO-mp. Panels A and B: task sketches and examples of ground-truth (black) versus POYO-mp (green) hand velocity, v_x and v_y, in several monkeys and sessions. Panels C and D: average R² × 100 for single-session models (gray, 93.47 for CO and 84.02 for RT) and POYO-mp (green, 95.12 and 87.88). In the scatter plots, each dot is one session; dots above the diagonal are sessions where the multi-session model wins, and circle size shows training set size.

Figure 2. Multi-session decoding with POYO-mp. Panels A and B: task sketches and examples of ground-truth (black) versus POYO-mp (green) hand velocity, vx and vy, in several monkeys and sessions. Panels C and D: average R² × 100 for single-session models (gray, 93.47 for CO and 84.02 for RT) and POYO-mp (green, 95.12 and 87.88). In the scatter plots, each dot is one session; dots above the diagonal are sessions where the multi-session model wins, and circle size shows training set size.

Making the model bigger helped as well: with more parameters (3.8M, 7.4M, 13M) and more training tokens, performance kept rising, and by the largest setting, training on more data had lifted the random-target score by about 4% over the single-session baseline (0.8402 to 0.8788).

6. Transfer to new days, new animals, new tasks

How do you adapt a pretrained model to a brand-new session whose units it has never seen? POYO offers two options:

  • Unit identification: freeze all the weights and learn only the new unit embeddings (plus a new session embedding) by gradient descent. This takes less than a minute on a single GPU.
  • Full fine-tuning: first do unit identification, then unfreeze and train the whole model on the new session.

The authors tested on held-out sessions from the same monkey (Monkey C, a new day), where unit identification alone (0.9675) was already comparable to a single-session model trained from scratch (0.9682) and fine-tuning went beyond it (0.9708). They then tested on a monkey that was never seen in pretraining (Monkey T). On the new animal in the center-out task (average R² over 6 sessions), the Wiener filter scored 0.6387, a GRU 0.8041, an MLP 0.8577, and a single-session POYO 0.9194; POYO-mp with unit identification reached 0.9012 and with fine-tuning 0.9379. On the random-target task, POYO-mp fine-tuning reached 0.8105, against 0.7467 for the MLP and 0.6967 for the GRU.

Figure 4 shows why this is practical. With only a handful of labeled trials the fine-tuned model is far ahead of a model trained from scratch, and unit identification gets close to its final accuracy within about 460 training steps, while training from scratch needs several thousand.

Figure 4. Sample and compute efficiency. Panel (a): held-out center-out session from Monkey C; panel (b): random-target session from Monkey T, a new subject. In each pair, the left plot shows R² against the number of sample trials for single-session models (blue), fine-tuned POYO (red) and, in (a), a GRU (black). The right plot shows R² against training steps, where unit identification (red) reaches its plateau within about 460 steps, long before training from scratch (blue).

Figure 4. Sample and compute efficiency. Panel (a): held-out center-out session from Monkey C; panel (b): random-target session from Monkey T, a new subject. In each pair, the left plot shows R² against the number of sample trials for single-session models (blue), fine-tuned POYO (red) and, in (a), a GRU (black). The right plot shows R² against training steps, where unit identification (red) reaches its plateau within about 460 steps, long before training from scratch (blue).

7. Scaling to POYO-1 and a public benchmark

POYO-1 was pretrained on a much larger collection: recordings from seven non-human primates in three labs, spanning 158 sessions, more than 27,373 units and 16,473 neuron-hours. It was trained for 5 days on 8 GPUs. Even with the datasets mixing sorted single units and threshold crossings, it transferred well. On the Neural Latents Benchmark (NLB), which contains new animals and a different recording setup, the Maze task (Monkey L) POYO-1 with unit identification alone scored R² 0.9329, above AutoLFADS+linear (0.9062), GRU (0.8887) and MLP (0.8794); with fine-tuning it reached 0.9482. On the NLB RTT task (Monkey I), fine-tuned POYO-1 scored 0.7378, above the MLP (0.6953) and the single-session POYO (0.6850).

Why this matters

For decades each decoder had to be trained on one day of one animal’s neurons. POYO shows that when spikes are tokens, recordings from different days, animals, and labs can live in one model, and that the model gets better with more data. A new session no longer needs a new model, only a few new embeddings that take about a minute to learn. That is a path toward calibrating brain-computer interfaces faster and building pretrained foundation models for neural data.

Takeaway

  • POYO turns every spike into a token (unit embedding + timestamp), so the model accepts any number of units from any session.
  • A PerceiverIO-style encoder compresses the spikes into a small set of latents, and timestamped queries read out behavior.
  • One multi-session model beat single-session models (CO 0.9512 vs 0.9347; RT 0.8788 vs 0.8402), and new sessions adapt by learning only new unit embeddings in under a minute.
  • POYO-1, pretrained on seven monkeys, transferred to the NLB benchmarks and outperformed several baselines.

References and resources

  • Azabou, M., Arora, V., Ganesh, V., Mao, X., Nachimuthu, S., Mendelson, M., Richards, B., Perich, M., Lajoie, G., & Dyer, E. L. (2023). A Unified, Scalable Framework for Neural Population Decoding. NeurIPS 2023. arXiv:2310.16046 · Project page
  • Figures 1, 2 and 4 are taken from the arXiv version of the paper (arXiv v1, released under arXiv’s non-exclusive license to distribute; copyright remains with the authors), and the schematic is self-drawn. Please confirm rights before publishing these figures on the public blog.