NeuroLens: Learning Latent Embeddings of Neural Semantics from Chronic Recordings
Organizations: Northwestern University · University of Cambridge · Johns Hopkins University · Columbia University ·
Abstract
Understanding how neural activity represents higher-order cognition and how these representations evolve over time has long been a central pursuit in neuroscience. However, current analytical tools cannot easily distinguish representational plasticity from recording instability in chronic neural recordings. Here, we introduce NeuroLens (Latent Embeddings of Neural Semantics), a self-supervised model based on the Joint-Embedding Predictive Architecture (JEPA) framework that learns denoised, semantically informative latents from chronic neural recordings. An adaptive encoder maps changing neural populations into a common latent space, while a temporal predictor learns structure that supports prediction of future latent states. By predicting in latent space, NeuroLens captures temporally predictable structure and reduces sensitivity to transient, recording-specific variability. Across chronic intracortical data in mice and humans, the learned representations improve decoding of decision-making and semantic task variables. Multi-day pretraining enables generalization to future sessions, rapid few-shot adaptation to unseen neural populations, and more stable decoding over time than state-of-the-art baselines. Together, these results establish NeuroLens as a new paradigm for studying how neural representations change during learning and over long timescales.
Figures & tables
Appendix figures & tables11 assets
Supplementary material from the paper’s appendix.
Appendix
| Movement Behavior ( ) | Choice (Balanced Accuracy) | |||
|---|---|---|---|---|
| Session | Single-day | 39-day pretrained | Single-day | 39-day pretrained |
| 2023-05-18 | 0.42 | 0.47 | 0.72 | 0.76 |
| 2023-05-22 | 0.41 | 0.48 | 0.63 | 0.76 |
| 2023-05-24 | 0.35 | 0.44 | 0.83 | 0.61 |
| 2023-05-30 | 0.38 | 0.47 | 0.63 | 0.69 |
| 2023-06-09 | 0.33 | 0.42 | 0.67 | 0.82 |
| Movement Behavior ( ) | Choice (Balanced Accuracy) | |||
|---|---|---|---|---|
| Session (Day) / Neuron ID | ||||
| 2023-05-24 | 0.44 | 0.43 | 0.88 | 0.82 |
| 2023-06-05 | 0.38 | 0.36 | 0.95 | 0.93 |
| 2023-06-12 | 0.38 | 0.36 | 0.94 | 0.93 |
| PER (Phoneme) (%) | Top-5 Accuracy (Sentence) (%) | |||
|---|---|---|---|---|
| Held-Out Day / Per-Day FiLM | ||||
| 2022-08-11 | 27.23 | 27.50 | 51.39 | 40.62 |
| 2022-08-13 | 26.90 | 27.51 | 48.61 | 44.10 |
| 2022-08-18 | 35.19 | 32.39 | 34.38 | 32.81 |
| 2022-08-23 | 34.60 | 36.48 | 35.27 | 30.80 |
| 2022-08-25 | 36.83 | 38.78 | 31.47 | 30.13 |
| IBL | Human | |
|---|---|---|
| Stage 1 | 39 training days, with labels used only for supervised baselines | Pooled T12 and T15 training data, with labels used only for supervised baselines |
| Stage 2 | Backbone frozen; only update the read-in layers required to map new neural populations to the latent space, and the task-specific decoder heads | Full end-to-end finetuning (updating the backbone, read-in, and decoder heads) |
| Shared Transformer Backbone | Backbone Parameters | ||||
|---|---|---|---|---|---|
| Hyperparameter | IBL | Human | Model | IBL | Human |
| Layers | 6 | 6 | NeuroLens | 3.58M | 7.29M |
| Embedding dimension | 192 | 384 | Causal NDT | 3.28M | 7.29M |
| Attention heads | 8 | 6 | POSSM | 3.57M | 7.27M |
| FFN dim | 1024 | 768 | SPINT | 3.55M | — |
| Activation | GELU | GELU | CEBRA | 0.31M | 0.44M |
| Hyperparameter | IBL | Human |
|---|---|---|
| Input representation | Binned spike counts | 5-bin time patches |
| Input dimension | neurons | 1280 (T12); 2560 (T15) |
| Latent dimension | 192 | 384 |
| Attention heads | 8 (predictor) & 1 (encoder) | 6 |
| FFN dimension | 1024 (predictor) & 256 (encoder) | 768 |
| Dropout | 0.1 | 0.1 |
| Hyperparameter | IBL | Human |
|---|---|---|
| Input representation | Binned spike counts | 5-bin time patches |
| Latent dimension | 192 | 384 |
| # of attention heads | 8 | 6 |
| FFN dimension | 1024 | 768 |
| Dropout | 0.2 | 0.2 |
| Context window size | 59 preceding bins | All preceding patches |
| Hyperparameter | IBL | Human |
| Input representation | Spike events | 5-bin time patch |
| Latent dimension | 256 | 192 |
| # of latents per time step | 1 | 1 |
| # of cross-attention heads | 1 | 1 |
| Cross-attention head dimension | 32 | 64 |
| GRU depth | 2 | 8 |
| Hyperparameter | IBL |
|---|---|
| Input representation | Binned spike counts |
| Latent dimension | 256 |
| Cross-attention depth | 2 |
| # of attention heads & head dimension | 4 & 64 |
| FFN dimension | 2944 |
| Activation | ReLU |
| Hyperparameter | IBL | Human |
|---|---|---|
| Input representation | Binned spike counts | 5-bin time patch |
| Encoder | offset10-model | MLP read-in + 3 conv blocks |
| Embedding dimension | 192 | 192 |
| Conv block latent dimension | 128 | 192 |
| Receptive field | 10 time bins | 10 time patches |
| Positional embedding | None | None |
| Hyperparameter | IBL |
|---|---|
| Input representation | Spike events |
| Latent dimension | 192 |
| # of latents per time step | 2 |
| Latent grid step | 1 bin (16.7 ms) |
| # of cross-attention heads & head dimension | 2 & 32 |
| Time positional embedding | RoPE |
Self-Supervised Time Series Representation Learning
Self-supervised time series representation learning uses unlabeled sequences to learn features that transfer to forecasting, classification, and anomaly detection.
See all 144 papers