arXiv:2610.02864cs.LGOct 2026

Manuscript Offprint

arXiv:2610.02864

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 Zhang

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.

1 INTRODUCTION

Learning continually reshapes the relationship between neural activity and behavior over extended timescales (Peters et al., 2014). Understanding this process requires tracking how task-relevant population dynamics emerge, persist, and reorganize across days (Wang et al., 2026). Advances in chronic recordings increasingly enable such longitudinal measurements (Melin et al., 2024; Bimbard et al., 2025; Skromne Carrasco et al., 2026), but electrode drift, signal degradation, and changes in the recorded neurons can obscure learning-related changes in neural activity (Karpowicz et al., 2024). This challenge motivates methods that capture genuine representational plasticity while remaining robust to recording nonstationarity.

Existing approaches address recording nonstationarity through statistical and deep-learning-based neural manifold alignment (Karpowicz et al., 2025; Gallego et al., 2020), recalibration-based test-time adaptation (Fan et al., 2023; Feghhi et al., 2026), and transformer-based in-context learning (Le et al., 2026). These methods improve decoding stability across recording days, but many are tailored to specific decoding tasks or compensate for distribution shifts in observed activity without explicitly separating task-relevant structure from recording variability. These limitations motivate a general-purpose framework that accommodates changing neural populations while preserving biological changes in the representations themselves.

Self-supervised learning (SSL) provides a foundation for learning such representations beyond a specific decoding task. However, many existing approaches reconstruct observed neural activity,

†^{\dagger}Corresponding authors: hanruilyu2029@u.northwestern.edu, yizzhang@stanford.edu which may retain recording-specific details alongside behaviorally relevant structure (Ye & Pandarinath, 2021; Zhang et al., 2024). For example, probe drift can alter which neurons are recorded even when the underlying population dynamics remain stable. Reconstruction-based models must account for these changes in the observations, although they may be unrelated to the neural computation of interest (Rule et al., 2020). Joint-embedding predictive architectures (JEPAs) instead predict masked or future representations in latent space (Assran et al., 2023). This objective emphasizes predictable structure without requiring the model to reproduce every detail of the recorded activity. Applied to chronic neural recordings, it may yield latents that are less sensitive to recording instability while capturing information relevant to behavior and cognition.

Building on this principle, we introduce NeuroLens (Latent Embeddings of Neural Semantics), a self-supervised model that learns denoised, semantically informative neural latents through causal prediction in latent space (Maes et al., 2026). The model integrates two complementary components. An adaptive neural encoder uses cross-attention to accommodate varying neuron counts across days and infers neuron identities from a few calibration trials, mapping each day's neural population into a common latent space. A causal transformer predictor then predicts future latent embeddings, with parameters shared across days to encourage a stable, predictive structure. These components enable adaptation to changing neural populations while capturing temporal regularities across days.

Across chronic intracortical data in mice (Melin et al., 2024) and humans (Willett et al., 2023; Card et al., 2024), we demonstrate that NeuroLens learns latent embeddings that improve decoding of visual decision-making and semantic task variables. After multi-day pretraining, the model generalizes to future sessions and supports rapid, gradient-free few-shot adaptation to unseen neural populations, outperforming state-of-the-art (SOTA) neural decoding baselines. Despite substantial neuron loss and day-to-day drift in neural activity, interpretability analyses indicate that NeuroLens learns temporally consistent representations with a stable effective rank over time. These results provide a foundation for tracking task-relevant population dynamics over long timescales. The contributions of this work include:

• A self-supervised framework that learns denoised, semantically informative neural representations through prediction in latent space.

• An architecture that balances flexibility and stability through an adaptive neural encoder and a shared temporal predictor, enabling rapid generalization to unseen neural populations.

• A framework for learning task-relevant representations that are robust to recording nonstationarity, enabling new analyses of how neural latent states evolve over time.

References (66)