CEBRA
Convolutional encoder that embeds neural recordings in a low-dimensional latent space by contrastive learning.
Neuroscience signals · 18 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Neuroscience signals
- Parameters
- 17.3K
- Operations
- 18
- Framework
- PyTorch
- Recurrent
- No
- Published
- Nature 2023
- Authors
- Steffen Schneider, Jin Hwa Lee, Mackenzie Weygandt Mathis
- License
- Apache-2.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m15069
- Graph hash
- cfac3cf01417c482ef227f3dbe6f2af23428032251129ffbe4416d0c8fbede46
- Skeleton hash
- 0eb00c35fdb72b9f94bfa4c5a3198bcb79c197e3acf0af628b43c850783b5619
- Architecture hash
- 31e8407be4e0a73956782c94032a7c20fe40f683e252752cfb658d9480647c94
- Diagram SHA-256
- c25c78b073b40731bfa90180402eb005823052d7f088acb047a9cde01f7117a1
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
This model is the CEBRA encoder in its hypothesis-guided form, CEBRA-Behavior, in which user-defined behavior labels shape the embedding.
CEBRA is a self-supervised method that produces low-dimensional latent embeddings of neural recordings, conditioned on behavior, on time, or on both. The name stands for Consistent EmBeddings of high-dimensional Recordings using Auxiliary variables. The paper presents it as filling a gap: non-linear techniques that explicitly and flexibly use joint behavior and neural data were lacking.
The method combines ideas from non-linear independent component analysis with contrastive learning. Behavior variables or time shape the distribution of positive and negative pairs, and a non-linear encoder, here a convolutional neural network, is trained on them with a contrastive objective. The same model can be trained hypothesis-guided with behavior labels (CEBRA-Behavior), with time only (CEBRA-Time), or as a hybrid. The method does not rely on data augmentation.
The encoder with a receptive field of 10 samples is a convolutional network with five time convolutional layers: the first has kernel size 2, and the next three have kernel size 3 and skip connections. The final layer maps the hidden dimensions to the output dimension, and the feature vector is normalized after it unless a mean squared error similarity is used. The paper uses this receptive field of 10 samples in its rat, monkey and mouse experiments, except for the Neuropixels dataset.
Key idea. CEBRA trains a neural network encoder with a contrastive objective and a data sampling scheme based on behavior or time, giving consistent latent embeddings of neural recordings.
- CEBRA
- Consistent EmBeddings of high-dimensional Recordings using Auxiliary variables
- CEBRA-Behavior
- CEBRA-Time
- neural latent embeddings
- contrastive learning
- neural recordings
- behavior decoding
- dimensionality reduction
- neuroscience
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{schneider2022learnablelatentembeddingsjoint,
title={Learnable latent embeddings for joint behavioral and neural analysis},
author={Steffen Schneider and Jin Hwa Lee and Mackenzie Weygandt Mathis},
year={2022},
eprint={2204.00673},
archivePrefix={arXiv},
primaryClass={cs.LG},
doi={https://doi.org/10.1038/s41586-023-06031-6},
url={https://arxiv.org/abs/2204.00673},
}