Evaluating Neural Data Tokenizers: A Framework for Assessing Learned Representations of Spiking Activity

Federico D'Agostino, Alex Gilbert, Susanne Keller, Jaivardhan Kapoor, Nicolas Reategui, Vedang Lad, Matthias Kuemmerer, Jai Bhagat, Emin Orhan, Hasan A. Bedel, Nikos Karantzas, Fabian H. Sinz, Surya Ganguli, Jakob H. Macke, Alexander S. Ecker, Katrin Franke, Sophia Sanborn, Matthias Bethge, Andreas S. Tolias, Konstantin F. WillekearXiv 2026

TL;DR

Before you can build a "foundation model" for the brain, you have to translate raw, crackly electrical spikes from neurons into mathematical tokens a Transformer can actually read. This paper systematically decouples and tests how we "tokenize" neural activity, revealing a crucial trap: a tokenizer that reconstructs brain signals with near-perfect accuracy can still produce completely useless representations for predicting behavior or sensory input.

What Problem Does This Paper Address?

Imagine listening to a stadium full of people clapping—sparsely, erratically, and at sub-millisecond speeds—where the crowd changes every day. That is what raw single-neuron "spiking" data looks like.

In text and vision AI, tokenization (chopping words into sub-words or images into patches) is treated as a crucial, standalone engineering step. Yet in neuroscience, as researchers race to build brain foundation models, tokenization is usually an afterthought—baked implicitly into end-to-end training for a single specific task. Furthermore, spikes are sparse, binary, noisy, and recorded from different sets of neurons every session, meaning off-the-shelf audio or EEG tokenizers don't transfer easily.

Until now, nobody knew what makes a good standalone neural spike tokenizer. If you compress spikes into tokens and can reconstruct the original spikes perfectly, does that mean your tokens are ready for any downstream neuroscience task? (Spoiler: No.)

Figure 1: The neural spike tokenization problem. A. A tokenizer maps a population spike train to a latent token sequence and back. Two objectives trade off: the reconstructed spike train should resemble the input, and the latents should expose structure useful to downstream tasks. B. We propose explicit desiderata for neural tokenizers. C. We introduce a multi-axis evaluation framework providing diagnostic views for different use cases and failure modes in tokenization for neural data, shown here for two example tokenizers (a VAE and compressed sensing architecture) across all axes.

Methods

The authors treat the neural tokenizer as a modular encoder-decoder pair ($x \to z \to \hat{x}$) and establish four core desiderata: reconstruction fidelity, downstream utility, cross-instance generalization, and compression.

Rather than relying on a single misleading leaderboard score, they introduce a 7-axis evaluation framework:

  1. Single-neuron reconstruction (e.g., spike timing precision, firing rates; anchored against a rate-matched random Poisson baseline).
  2. Population firing statistics (cross-neuron timing and correlations).
  3. Downstream decoding (predicting physical behavior, like cursor movement, from frozen tokens using linear probes and attention-based POYO decoders).
  4. Downstream encoding (predicting neural token responses from visual images).
  5. Latent structure & robustness (geometric similarity to inputs and stability under noise).
  6. Generalization (performance retention on unseen sessions, subjects, and datasets).
  7. Compression (ratio of input bits to output bits).

To test this framework, they built a "zoo" of 47 tokenizers (ntt) spanning a wide design space: continuous (VAE) vs. discrete codebooks (VQ, FSQ), convolutional vs. transformer architectures, wavelets, PCA, compressed sensing, and single-neuron (compressing time per unit) vs. population tokenizers (mixing units together at finer time steps).

The tokenizer design space

Datasets

The authors curated a standardized benchmark of 10 public extracellular electrophysiology datasets totaling over 14 billion sorted spikes (plus 5.5 billion proprietary spikes used solely for scaling tests).

  • Diversity: Spans 3 species (mouse, macaque, ferret), 3 recording technologies (Neuropixels, Utah arrays, linear arrays), and diverse brain regions (visual/motor cortex, cerebellum, hippocampus, etc.), including major sets like the IBL Brain-wide Map, Allen Visual Coding/Behavior, C4, Perich–Miller, and Cowley–Smith.
  • Generalization Splits: Data is partitioned into four increasingly strict tiers: held-out time within a session ($xT$), held-out sessions ($xS$), held-out subjects ($xSub$), and completely held-out datasets/species ($xSrc$).

Key Insights and Ideas

  • The Reconstruction Trap: Reconstruction fidelity and downstream utility sharply dissociate. Take Compressed Sensing: it uses a fixed random projection with zero learned structure. Its decoder reconstructs spike trains beautifully (0.93 score), yet its latent space has collapsed geometry, leaving simple linear probes nearly blind to behavior. Optimizing reconstruction alone is easy—and deeply misleading.
  • Decoding $\neq$ Encoding: A tokenizer whose tokens are great for reading out motor movement isn't guaranteed to be good at predicting brain responses to visual stimuli. No single tokenizer dominates all seven axes.
  • Time vs. Space Trade-off: Single-neuron tokenizers compress time and keep neurons separate (leaving it to downstream models to figure out how neurons interact). Population tokenizers mix neurons immediately, capturing cross-neuron structure early, though they currently trail single-neuron models on downstream encoding and decoding.
  • Keep It Simple (For Now): Despite the allure of discrete tokens for LLM-style training, discrete codebooks were unstable to train and scored lower across most axes. A modest continuous convolutional VAE over short 100 ms windows proved the most reliable all-rounder.

Key Results

  • High Fidelity & Generalization: The top single-neuron model (Conv-VAE at 100 ms) hits 0.98 on single-neuron reconstruction and 0.72 on population statistics (where 0 is the Poisson baseline and 1 is ceiling). Across all 47 models, reconstruction generalizes well to new subjects, retaining an average score ratio of 0.84 even on completely unseen datasets/species.
  • Frozen Tokens Rival End-to-End Models: When plugged into a POYO temporal decoder on macaque reaching data, frozen Conv-VAE tokens match the performance of POYO's native, jointly trained spike-time input layer ($R^2 \approx 0.85$–$0.86$ on multi-session decoding) and achieve a 0.53 composite behavioral decoding $R^2$.
  • Window Length Hurts: Stretching single-neuron token windows from 100 ms to 1 second for higher compression causes Conv-VAE reconstruction to plummet from 0.98 to -0.01 (worse than random rate-matched spikes).

Limitations and Future Work

  • Modalities & Fixed Rates: The benchmark only covers spike-sorted electrophysiology (excluding calcium imaging and LFP) and assumes fixed-rate tokenization, leaving out event-based or variable-length designs.
  • Full-Scale Validation: While tested on standalone encoding and decoding architectures, the ultimate test—swapping these tokenizers inside a massive, unified brain foundation model—remains future work.
  • The Open Objective Question: Because reconstruction loss doesn't guarantee useful latent structure, neuroscience still needs its own version of NLP's "next-token prediction"—a self-supervised objective that forces spike tokenizers to learn universally useful representations, alongside hybrid architectures that gracefully compress both neurons and time.

Summary updated

BibTeX
@misc{dagostino2026evaluating,
  author = {Federico D'Agostino and Alex Gilbert and Susanne Keller and Jaivardhan Kapoor and Nicolas Reategui and Vedang Lad and Matthias Kuemmerer and Jai Bhagat and Emin Orhan and Hasan A. Bedel and Nikos Karantzas and Fabian H. Sinz and Surya Ganguli and Jakob H. Macke and Alexander S. Ecker and Katrin Franke and Sophia Sanborn and Matthias Bethge and Andreas S. Tolias and Konstantin F. Willeke},
  title = {{Evaluating Neural Data Tokenizers: A Framework for Assessing Learned Representations of Spiking Activity}},
  year = {2026},
  eprint = {2611.38540},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.38540},
}
Figure