NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

NeuroLens: Learning Latent Embeddings of Neural Semantics from Chronic Recordings

Hanrui Lyu, Baiyuan Chen, Tianshu Tan, Matthew R. Whiteway, Maxwell D. Melin, Ji Xia, Linyang He, Bradly C. Stadie, Anne Churchland, Liam Paninski, Yizi ZhangarXiv 2026

TL;DR

NeuroLens is a self-supervised framework that uses a Joint-Embedding Predictive Architecture (JEPA) to learn stable, denoised latent representations from chronic neural recordings. By predicting future states in a latent space rather than reconstructing raw activity, it effectively separates task-relevant neural "semantics" from recording instabilities like electrode drift and neuron loss.

What Problem Does This Paper Address?

Neuroscientists want to track how neural activity changes as an animal learns over weeks or months. However, chronic recordings are notoriously "nonstationary." Over time, electrodes drift, signal quality degrades, and the specific set of neurons being recorded changes.

Current analytical tools struggle to distinguish between representational plasticity (real biological changes due to learning) and recording instability (noise from the hardware). Most existing models either try to reconstruct every noisy spike—which preserves recording-specific artifacts—or require heavy supervision for specific tasks, making them less useful for discovering general-purpose neural structures.

Methods

The authors introduce NeuroLens, which shifts the focus from reconstructing observations to predicting latent states. It is built on three main pillars:

  1. Joint-Embedding Predictive Architecture (JEPA): Unlike standard autoencoders that try to recreate raw input, NeuroLens predicts the latent embedding of future neural activity. This forces the model to ignore transient, unpredictable noise and focus on the underlying "semantic" structure of the population dynamics.
  2. Day-Adaptive Encoder: To handle the fact that different neurons are recorded on different days, the model uses a cross-attention mechanism. It identifies neurons not by a fixed ID, but by a "signature" composed of physiological stats (firing rates, autocorrelograms, and population coupling) calculated from a few calibration trials.
  3. Shared Temporal Predictor: A causal transformer models the dynamics in latent space. Because this predictor is shared across all recording days, it encourages the model to find a stable, common latent space even as the input population shifts.

To prevent the latent space from "collapsing" (where the model predicts a constant value to minimize error), they use a regularizer called SIGReg, which ensures the embeddings maintain a healthy, Gaussian-like distribution.

Figure 1: NeuroLens framework. (A) Model overview. A day-adaptive encoder maps spike counts at each time bin to latent representations, and an autoregressive (AR) predictor shared across days predicts future latents from past latents. The model is trained using a latent prediction loss together with SIGReg loss to prevent representation collapse. (B-C) Day-adaptive cross-attention encoder based on calibration data. At each time bin, an MLP independently projects each neuron’s spike count into a neuron token. These tokens serve as the keys and values of the cross-attention module. Because attention is permutation-invariant, we distinguish neuron identities using calibration trials sampled from each recording day. From these trials, we compute firing-rate statistics, autocorrelograms (ACGs), and population coupling to generate a signature for each neuron. A second MLP maps these signatures to neuron embeddings, which are concatenated with brain- region embeddings and added to the corresponding neuron tokens. Learned queries then aggregate the variable- length sequence of neuron tokens through cross-attention, producing a fixed number of latent embeddings for the AR predictor. Processing each time bin independently prevents temporal leakage, while calibration-based neuron embeddings enable adaptation to previously unseen neural populations across recording days.

Datasets

The model was validated on two challenging chronic datasets:

  • IBL Chronic Neuropixels: Data from a mouse learning a visual decision-making task over three months (53 sessions). The number of recorded neurons fluctuated between 159 and 498 across multiple brain regions.
  • Human Chronic Utah Array: Data from two participants (T12 and T15) with ALS-induced paralysis attempting to speak. This includes recordings over 4 to 20 months, focusing on decoding phonemes and high-level sentence meanings (embeddings).

Key Insights and Ideas

  • Latent Prediction as a Denoising Filter: By predicting in latent space, NeuroLens acts as a natural filter. It captures the "predictable" parts of neural activity—which tend to be behaviorally relevant—while discarding the "unpredictable" noise inherent in raw spike counts.
  • Stability Amidst Decay: One of the most striking findings is that NeuroLens maintains a stable "effective rank" (a measure of latent dimensionality) over months, even as the number of recorded neurons steadily declines. In contrast, reconstruction-based models see their latent dimensionality collapse along with the neuron count.
  • Semantic vs. Sensorimotor: NeuroLens shows a significant advantage in decoding high-level "semantic" variables (like a mouse's choice or the meaning of a sentence) compared to low-level variables (like wheel speed or phonemes). This suggests the JEPA objective is particularly good at capturing cognitive-level information.

Key Results

  • Superior Decoding: On the IBL dataset, NeuroLens improved choice decoding by 6% over causal Neural Data Transformers (NDT). On human speech data, it outperformed causal NDT by a massive 38% on sentence-embedding retrieval.
  • Few-Shot Adaptation: The model can adapt to a brand-new recording day using just 64 unlabeled calibration trials. This "gradient-free" adaptation allows it to outperform other state-of-the-art supervised models like SPINT and POSSM that require more data or fine-tuning.
  • Visualizing Learning: As the mouse learns, the latent trajectories for "left" vs. "right" choices become increasingly distinct in the NeuroLens space, providing a clear window into the learning process.
Figure 2: NeuroLens improves decoding of decision-related and semantic information from mouse and human intracortical recordings. (A) Chronic multi-area Neuropixels recordings from a mouse reporting left or right stimulus location by turning a wheel (choice). (B) Across 14 test sessions, NeuroLens achieves lower latent effective rank, better choice decoding, and comparable movement decoding relative to causal NDT. Both models outperform decoding using raw neural activity (Spike). (C) Latent trajectories for left- and right-choice trials, projected onto the first three principal components (PCs), from April to June. Dark (light) lines show trial averages (individual trials). As the animal learns the task, trajectories for the two choices become increas- ingly separated, with clearer separation in NeuroLens than in causal NDT. We apply linear discriminant analysis (LDA) to the first three PCs to quantify this separation with balanced classification accuracy. (D) Multi-area Utah array recordings from two human participants as they attempted to speak displayed sentences. (E) Neu- roLens improves sentence-embedding decoding over causal NDT with comparable phoneme decoding. Lower phoneme error rate (PER) and higher top-5 sentence retrieval accuracy indicate better decoding performance. Boxplots summarize five random seeds. We report average top-5 accuracy across held-out days. Each day has a candidate pool of 288 ∼448 sentences, which keeps chance level low (1∼2%). (F) For each trial, we aver- age neural latents from causal NDT and NeuroLens across time bins, project them onto the first three PCs, and compare them with ground-truth sentence embeddings from all-MiniLM-L6-v2 (Reimers & Gurevych, 2019). Trials are colored by semantic topic; NeuroLens shows clearer semantic separation than causal NDT, quantified by LDA balanced accuracy.

Limitations and Future Work

While NeuroLens is robust to recording drift, the authors note it does not yet explicitly disentangle changes caused by learning from changes in the animal's behavior (like moving its head differently).

Future work could involve:

  • Joint Behavioral Modeling: Incorporating video or kinematic data directly into the self-supervised loop to better separate motor noise from cognitive signals.
  • Multi-Area Interactions: Modeling how different brain regions communicate and how those inter-regional "conversations" evolve during learning.
  • Scaling: Testing the architecture on even larger, multi-animal datasets to see if a "foundation model" for neural semantics is possible.

Summary updated

BibTeX
@misc{lyu2026neurolens,
  author = {Hanrui Lyu and Baiyuan Chen and Tianshu Tan and Matthew R. Whiteway and Maxwell D. Melin and Ji Xia and Linyang He and Bradly C. Stadie and Anne Churchland and Liam Paninski and Yizi Zhang},
  title = {{NeuroLens: Learning Latent Embeddings of Neural Semantics from Chronic Recordings}},
  year = {2026},
  eprint = {2610.02864},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.02864},
}
Figure