Learning Time-Scale Invariant Population-Level Neural Representations

Eshani Patel, Yisong Yue, Geeling Chau · DOI

Abstract

Current neural foundation models for brain activity often suffer from "brittleness" regarding input signal duration. When the time-scale of recordings changes between pretraining and downstream application, performance frequently collapses. We introduce Time-scale Augmented Pretraining (TSAP), a strategy that exposes models to diverse signal lengths during pretraining. This approach creates "time-scale invariant" representations that generalize across different neuroscientific tasks and unseen window sizes, enabling a single generalist model to replace multiple scale-specific specialists.

Introduction: The Brittleness of Neural Foundation Models

In the development of foundation models for the brain, researchers typically employ a two-stage architecture: a temporal encoder (e.g., BrainBERT) processes individual electrode channels into embeddings, which are then aggregated by a population-level transformer (PopT) to capture spatial patterns across the brain. However, these models are highly sensitive to preprocessing. A model pretrained on 5-second chunks often fails when applied to 1-second bursts—a significant limitation for clinical applications like Brain-Computer Interfaces (BCIs) where neural events occur at varying temporal scales.

Methods: Time-Scale Augmented Pretraining (TSAP)

The proposed TSAP framework addresses this sensitivity by modifying the pretraining pipeline. Instead of training on a fixed window length, the model is exposed to recording segments of varying lengths (1, 2, 4, and 5 seconds).

TSAP architecture compared to previous scale-specific approaches.

The pipeline consists of:

  1. Temporal Encoding: Raw intracranial EEG (iEEG) signals are converted into temporal embeddings using a frozen BrainBERT model.
  2. Spatial Integration: These embeddings, combined with 3D electrode coordinates, are processed by a population transformer.
  3. Scale Invariance: By forcing the model to process the same underlying neural signal at different scales, the transformer learns to ignore window-size artifacts and focus on invariant neural population dynamics.

Experimental Setup

The study utilized the BrainTreeBank dataset, featuring high-fidelity iEEG from 10 subjects watching movies. Models were pretrained on 19 movies and evaluated on 7 movies across two auditory-linguistic tasks: Word Onset detection (identifying speech occurrence) and Sentence Onset detection (identifying the start of a sentence).

Key Results and Discussion

PCA analysis revealed that standard temporal encoders produce scale-specific clusters in the embedding space, which standard models overfit to. TSAP successfully mixes these clusters, creating a universal representation of brain activity.

Performance recovery and interpolation across varying time-scales.

Key findings include:

  • Performance Recovery: TSAP consistently recovered performance lost due to scale mismatch. For Word Onset detection on 1s intervals, TSAP improved ROC-AUC from ~0.717 (5s-pretrained) to 0.777, even outperforming models trained specifically on 1s data.
  • Interpolation Power: Strikingly, the model pretrained on 1s, 2s, 4s, and 5s windows performed excellently on a 3-second window it had never seen during pretraining. This indicates the model learned a continuous understanding of time-scales rather than just memorizing specific lengths.
  • Generalization: TSAP matched or exceeded the performance of "interval-specific" models across nearly all tested lengths, demonstrating that a single generalist model can effectively replace multiple specialist models.

Conclusion and Future Directions

TSAP provides a robust method for learning time-scale invariant neural representations. While this study kept the temporal encoder frozen, future work may involve building invariance directly into the temporal encoders themselves. Additionally, exploring other preprocessing factors like sampling rates and frequency filters, or adopting "patching" strategies similar to Vision Transformers, could further enhance the robustness of neural foundation models.

Summary updated

BibTeX
@misc{patel2025learning,
  author = {Eshani Patel and Yisong Yue and Geeling Chau},
  title = {{Learning Time-Scale Invariant Population-Level Neural Representations}},
  year = {2025},
  eprint = {2511.13022},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.13022},
}
Figure