TL;DR
This paper investigates how to best select data for pretraining neural foundation models on neuroscience datasets, which are notoriously variable. They found that not all data sessions are equally valuable, and a small subset of carefully selected sessions can outperform pretraining on the entire dataset, challenging traditional scaling law assumptions for this domain.
What Problem Does This Paper Address?
Modern machine learning has seen tremendous success with "foundation models" pretrained on vast datasets. This paradigm is now being applied to neuroscience, aiming to build models that can understand complex neural activity recorded across different sessions, animals, and even brain regions. However, neural data is inherently noisy and variable. Neuronal firing is stochastic, and brain dynamics can change over time (non-stationarity). This variability raises a crucial question: can simply adding more pretraining data overcome these challenges and lead to better, more generalizable models? Or, more importantly, do all data sessions contribute equally to these performance gains? Existing studies often lack the fine-grained analysis needed to answer this, making it unclear if traditional "scaling laws" (where more data always leads to predictable improvements) apply to neuroscience data.
Methods
The core of this work is a novel session selection procedure. The authors first train individual "single-session" models, each consisting of a transformer backbone and session-specific input/output layers (called "stitchers"). They then use these pretrained models to fine-tune on a specific "heldout" session. By freezing the transformer weights and only training the stitchers, the fine-tuning performance becomes a strong indicator of how well the pretraining session's learned features align with the heldout session's data.
Models are then ranked based on this single-session fine-tuning performance. This ranking is used to guide the selection of pretraining data for larger-scale experiments. They compare three data selection strategies:
- Random: Sessions are chosen randomly.
- Ranked: Sessions are chosen in descending order of their single-session fine-tuning performance.
- Rank Reversed: Sessions are chosen in ascending order (worst performing first).
These strategies are then used to pretrain models incrementally, and their performance on heldout sessions is evaluated using the bits-per-spike (BPS) metric, a standard measure of how well a model predicts neural activity.
Datasets
The study utilizes the RepeatedSite (RS) dataset from the International Brain Laboratory (IBL). This dataset contains multi-brain-region, multi-animal neural recordings from mice performing a visual decision-making task. The authors used 89 out of 91 sessions, excluding those with fewer than 100 trials. Five sessions were held out for finetuning and evaluation.
Key Insights and Ideas
- Not all data is created equal: The most striking finding is that the "quality" or "informativeness" of pretraining sessions varies significantly. Some sessions are much more beneficial for learning generalizable representations than others.
- Session selection beats brute force: A small number of carefully selected sessions (ranked by their alignment with heldout data) can lead to better downstream performance than pretraining on a much larger, randomly selected set of sessions, or even the entire dataset.
- Challenging scaling laws: Traditional scaling laws, which predict performance improvements with increasing data size, may not directly apply to neural data without careful consideration of data variability and selection. The benefits of adding more data might plateau or even decrease if the added data is not "aligned" with the target task.
- Performance-based ranking is key: The proposed session selection method, based on single-session fine-tuning performance, proved effective and validated by the "rank reversed" experiments yielding worse results.
- Metadata is insufficient: Simple session metadata (like number of trials or neurons) explains only a small fraction of the variance in session importance, suggesting that intrinsic data distribution shifts are the primary drivers.
Key Results
- Models pretrained on as few as five selected sessions outperformed models pretrained on the entire dataset of 84 sessions.
- On average, models using rank-ordered session data achieved 4% greater improvement over the baseline than models using random-ordered session data.
- Models trained on just five ranked sessions achieved 86% of the best model performances achieved with all 40 ranked sessions, demonstrating high data efficiency.
- The ranked session selection strategy consistently outperformed random selection across all heldout sessions, with statistical significance particularly pronounced in low-data regimes (fewer than ten sessions).
Limitations and Future Work
- Model-dependent ranking: The ranking procedure is inherently tied to the specific model architecture (NDT) and task (forward prediction). While effective, it's an open question whether this ranking generalizes to other model types or tasks.
- Session metadata limitations: The authors found that session metadata alone could only explain 24% of the variance in session importance, highlighting the difficulty of predicting session value without direct model evaluation.
- Future work: The paper suggests a need for more rigorous scaling analyses in future neuroscience foundation model research. It also points towards developing methods for optimally selecting pretraining data to maximize efficiency and performance, rather than relying on simply accumulating more data. Further investigation into the underlying reasons for session variability and its impact on representation learning is also warranted.
Summary updated