TRACE: Contrastive Learning for Multi-Trial Time Series Data in Neuroscience

Abstract

Modern neural recording techniques such as two-photon imaging or Neuropixel probes allow to acquire vast time-series datasets with responses of hundreds or thousands of neurons. Contrastive learning is a powerful self-supervised framework for learning representations of complex datasets. Existing applications for neural time series rely on generic data augmentations and do not exploit the multi-trial data structure inherent in many neural datasets. Here we present TRACE, a new contrastive learning framework that averages across different subsets of trials to generate positive pairs. TRACE allows to directly learn a two-dimensional embedding, combining ideas from contrastive learning and neighbor embeddings. We show that TRACE outperforms other methods, resolving fine response differences in simulated data. Further, using in vivo recordings, we show that the representations learned by TRACE capture both biologically relevant continuous variation, cell-type-related cluster structure, and can assist data quality control.

Cite

Text

Schmors et al. "TRACE: Contrastive Learning for Multi-Trial Time Series Data in Neuroscience." Advances in Neural Information Processing Systems, 2025.

Markdown

[Schmors et al. "TRACE: Contrastive Learning for Multi-Trial Time Series Data in Neuroscience." Advances in Neural Information Processing Systems, 2025.](https://mlanthology.org/neurips/2025/schmors2025neurips-trace/)

BibTeX

@inproceedings{schmors2025neurips-trace,
  title     = {{TRACE: Contrastive Learning for Multi-Trial Time Series Data in Neuroscience}},
  author    = {Schmors, Lisa and Gonschorek, Dominic and Böhm, Jan Niklas and Qiu, Yongrong and Zhou, Na and Kobak, Dmitry and Tolias, Andreas S. and Sinz, Fabian H. and Reimer, Jacob and Franke, Katrin and Damrich, Sebastian and Berens, Philipp},
  booktitle = {Advances in Neural Information Processing Systems},
  year      = {2025},
  url       = {https://mlanthology.org/neurips/2025/schmors2025neurips-trace/}
}