[Paper Review] Drop, Swap, and Generate: A Self-Supervised Approach for Generating Neural Activity
This paper proposes Swap-VAE, a self-supervised generative model that disentangles neural activity into content (behavior-related) and style (dynamics-related) factors using neuron dropout and temporal jittering augmentations. By combining instance-specific alignment loss with a beta-VAE framework and introducing BlockSwap for enhanced invariance, the method achieves state-of-the-art decoding accuracy (85.04% on Chewie-1) without labels, enabling interpretable, disentangled representations of primate motor cortex activity.
Meaningful and simplified representations of neural activity can yield insights into <i>how</i> and <i>what</i> information is being processed within a neural circuit. However, without labels, finding representations that reveal the link between the brain and behavior can be challenging. Here, we introduce a novel unsupervised approach for learning disentangled representations of neural activity called <i>Swap-VAE</i>. Our approach combines a generative modeling framework with an <i>instance-specific alignment</i> loss that tries to maximize the representational similarity between transformed views of the input (brain state). These transformed (or augmented) views are created by dropping out neurons and jittering samples in time, which intuitively should lead the network to a representation that maintains both temporal consistency and invariance to the specific neurons used to represent the neural state. Through evaluations on both synthetic data and neural recordings from hundreds of neurons in different primate brains, we show that it is possible to build representations that disentangle neural datasets along relevant latent dimensions linked to behavior.
Motivation & Objective
- To address the challenge of learning disentangled, interpretable representations of neural population activity without labeled behavioral data.
- To develop a self-supervised method that captures both temporal consistency and invariance to specific neurons in neural representations.
- To enable generation of realistic neural activity patterns while isolating latent factors linked to behavior and movement dynamics.
- To quantify representation quality using general-purpose metrics that assess disentanglement of content and style factors.
- To explore whether preparation demands in behavioral tasks influence the degree of neural disentanglement.
Proposed method
- The model uses a variational autoencoder (beta-VAE) with separate content and style latent spaces to reconstruct neural activity from both components.
- It applies data augmentations—neuron dropout and temporal jittering—to create two views of the same brain state, promoting invariance to specific neurons and time shifts.
- An instance-specific alignment loss is applied to the content representations of the two augmented views to maximize their similarity.
- A novel BlockSwap augmentation is introduced, where content variables from two views are swapped, and the model is trained to reconstruct the original view from the swapped content.
- The model jointly optimizes reconstruction loss and alignment loss, with the BlockSwap loss enhancing disentanglement and robustness.
- The method is evaluated on synthetic data and real neural recordings from two non-human primates (Chewie-1 and Mihi), with ablation studies to validate component contributions.
Experimental results
Research questions
- RQ1Can self-supervised learning with simple augmentations disentangle neural activity into behavior-related (content) and dynamics-related (style) factors without labels?
- RQ2How does the BlockSwap augmentation improve disentanglement and representation quality compared to standard contrastive or reconstruction losses?
- RQ3Does the degree of neural disentanglement vary with behavioral task structure, such as preparation requirements?
- RQ4To what extent can the model generate realistic neural activity while preserving interpretable disentangled representations?
- RQ5How do different data augmentation strategies (spatial, temporal, combined) affect the performance of the disentanglement objective?
Key findings
- The proposed Swap-VAE model achieved a decoding accuracy of 85.04% on the Chewie-1 dataset, significantly outperforming vanilla VAE and beta-VAE baselines.
- Including the BlockSwap loss improved performance over baseline models, with the highest accuracy achieved when both alignment and BlockSwap losses were used.
- Removing the L2 alignment loss had minimal impact when BlockSwap was present, indicating that BlockSwap alone provides strong inductive bias for content invariance.
- The model with combined spatial and temporal augmentations (S+T-Aug) outperformed models using only spatial or temporal augmentations, highlighting the importance of multi-modal augmentation.
- Mihi, who required a preparatory delay before movement, showed more pronounced disentanglement than Chewie, suggesting that preparation may lead to more structured neural representations.
- Ablation studies confirmed that all components of the proposed loss—reconstruction, alignment, and BlockSwap—contribute to improved disentanglement and robustness.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.