arXiv:2610.03001cs.LGOct 2026

Manuscript Offprint

arXiv:2610.03001

Neural Data Needs Semantic Tokenization: Behavioral Events as Boundaries of Session-Transferable Tokens

Sangyoon Bae, Jiook Cha

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Extracellular electrophysiology records a different set of neurons in every session. Neural foundation models embed each neuron and each session into their tokens, so every new session is an input they have never seen, and they fail to generalize to it. A tokenizer for new sessions needs a unit that every session shares and that carries behavior. Population activity offers such a unit. It evolves on a low-dimensional manifold that persists across neuronal turnover and across animals once sessions are aligned. This manifold changes regime at task events such as stimulus onset and movement onset. Within each regime the population occupies a state, the part of the manifold it spans between two events, and each state carries its own behavioral meaning. We propose Tokenization with States (TWS), which segments each trial, one repetition of the task, at these events and converts every state into tokens of population geometry, with no neuron or session embedding. On held-out International Brain Laboratory (IBL) sessions, TWS decodes movement even from regime boundaries that carry no information about the target, while a per-neuron foundation model pretrained on those sessions decodes at chance. Frozen after training on mice alone, TWS transfers to macaques and Utah arrays with only a linear probe. On reach direction, a target that its boundaries do not define, it achieves a Matthews correlation of 0.23, where the event time alone achieves 0.01. For cross-session generalization, the token matters more than the model on top.

1 INTRODUCTION

Every extracellular electrophysiology session records a different set of neurons. Electrode positions shift between Neuropixels insertions, impedance changes alter unit isolation with Utah arrays, and spike sorting yields different populations even from identical trajectories (Jun et al., 2017; Dhawale et al., 2017; Steinmetz et al., 2021). Every new session is therefore out-of-distribution by default. Neural foundation models are exposed to this shift, because every token they build carries the identity of one neuron and of the session it came from. Neuron overlap across sessions is typically zero (Appendix A): no neuron label recurs, so per-neuron tokens form a vocabulary that is entirely session-specific and collapses on unseen sessions.

A tokenizer for new sessions therefore needs a unit with two properties: (1) a single decoder can use it in every session, and (2) it carries behavioral meaning. We look for such a unit in population activity, the joint activity of the recorded neurons. It evolves on a low-dimensional manifold (Cunningham & Yu, 2014; Gallego et al., 2017). This manifold separates into distinct regimes at behavioral events such as movement onset (Vyas et al., 2020; Churchland et al., 2012). 1^{1} Elsayed et al. (2016) showed that at movement onset population activity moves into a subspace orthogonal to the one it occupied during preparation. (1) The manifold is shared across sessions. The same latent dynamics persist across months of neuronal turnover (Gallego et al., 2020) and across animals (Safaie

1^{1}These regimes differ from the events of event segmentation theory (Appendix B).

Figure

Figure 1: Overview of Tokenization with States (TWS). Each session records a different set of neurons. TWS segments every trial into behavioral states at task events and converts each state into tokens without neuron identity, so all sessions share one token space. States S0 to S2 are the states k=1,2,3k=1, 2, 3 of Algorithm 1, and τ1\tau_1 and τ2\tau_2 are the event times shifted by two trainable offsets shared by all sessions.

et al., 2023). These studies align each session to the shared structure with a transform such as CCA, and a unit that describes the manifold without neuron identity needs no such alignment. (2) The manifold carries behavior. Within the window between two behavioral events, it tracks what the animal does (Safaie et al., 2023). The manifold of population activity between two behavioral events therefore meets both requirements, and we use it as the unit of a token (Appendix C).

Language modeling has shown that the definition of a token matters. Whole words form a closed vocabulary that cannot represent unseen words (Sennrich et al., 2016). Single characters carry little meaning on their own and produce long sequences. Subword tokenizers such as BPE (Sennrich et al., 2016) and SentencePiece (Kudo & Richardson, 2018) occupy an intermediate level of granularity. They learn reusable, semantic units below the level of whole words from the frequency of character sequences. Neural data show both failure modes. Per-neuron tokens form a closed vocabulary, and single time bins, like single characters, carry little meaning on their own.

We therefore propose a new tokenizer that converts each behavioral regime of a trial, one repetition of the task from stimulus to response, into a token of the population manifold: Tokenization with States (TWS; Figure 1), where a state is the population activity of one behavioral regime. Many controlled electrophysiology experiments record the time of each task event of a trial, such as stimulus onset and the first movement. TWS segments the trial at these times and converts the activity of each regime into a few tokens: the subspace that this activity spans, built from all recorded neurons without their order, so the tokens need no neuron or session embedding. A backbone then mixes these tokens into a prediction of behavior. What the tokens carry therefore bounds what any backbone can decode, and for cross-session generalization the tokenizer decides more than the model on top.

Contributions.

• Tokens built per behavioral regime rather than per neuron prevent decoding from collapsing on sessions with new neurons. On unseen IBL sessions TWS decodes movement even when its regime boundaries carry no information about the target, while a per-neuron foundation model decodes at chance even after pretraining on those sessions and their movement labels.

• A frozen TWS trained on mice transfers to other laboratories, to macaques and to Utah arrays. On choice and reach direction, targets that the token boundaries do not define, a linear probe on it outperforms every baseline of Table 4, including a per-neuron foundation model trained on the target datasets themselves.

• A token space shared by every session lets a decoder fit on a few sessions generalize to the others. On reaction time, a probe fit on five sessions outperforms every baseline of Table 1 fit on all sessions.