Pith. sign in

REVIEW 3 major objections 5 minor 13 references

A continuous autoregressive transformer pretrained on mouse calcium imaging, with its backbone frozen, generalizes to new mouse, larval zebrafish, and C. elegans datasets for neural forecasting and behavior decoding.

Reviewed by Pith at T0; open to challenge. T0 means a machine referee read the full paper against a public rubric. the ladder, T0–T4 →

T0 review · deepseek-v4-flash

2026-07-31 23:54 UTC pith:AYSR5TMV

load-bearing objection Useful cross-species transfer benchmark, but the 'consistently outperforms' claim needs error bars and significance tests before I'd trust the headline. the 3 major comments →

arxiv 2607.23258 v1 pith:AYSR5TMV submitted 2026-07-25 cs.AI cs.LG

CAPT: A Multi-task Continuous Autoregressive Transformer enabling Cross-dataset and Cross-species Transfer for Calcium Population Dynamics

classification cs.AI cs.LG
keywords calcium imagingfoundation modelautoregressive transformercross-species transferneural population forecastingbehavior decodingcontinuous tokenizationNeuroPAL cell identity
verification ladder T0 review T1 audit T2 compute T3 formal T4 reserved

The pith

A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.

The paper proposes CAPT, a transformer that models continuous calcium-imaging traces directly, without first turning them into discrete tokens. Pretrained on a large mouse dataset, the model's backbone is frozen and only small per-dataset neuron/session embeddings or task-specific decoders are updated. Across eight independent datasets spanning mice, larval zebrafish, and C. elegans, this frozen backbone forecasts neural activity and decodes behavior better than specialized and general-purpose baselines. In C. elegans, the learned neuron embeddings also support cross-dataset identification of cell identity using NeuroPAL labels. The authors argue this is evidence that a simple continuous autoregressive objective can produce a reusable neural foundation model for calcium imaging.

Core claim

CAPT's central claim is that a single continuous autoregressive transformer, pretrained with mean-squared-error next-patch prediction on one mouse calcium-imaging dataset, produces representations reusable across datasets, paradigms, and species. The authors show that freezing the pretrained backbone and updating only trainable neuron/session embeddings (for forecasting) or a task head (for behavior decoding) consistently outperforms specialized forecasting and decoding models, including on larval zebrafish and C. elegans, whose recording rates, neuron counts, and anatomy differ substantially from the mouse source. Additionally, linear classifiers on CAPT neuron embeddings recover NeuroPAL-d

What carries the argument

Continuous patch tokenization: each neuron trace is cut into non-overlapping patches of length L=8 samples and projected directly into model space with a linear layer plus learnable neuron and session embeddings; the Dual-axis Transformer processes them with causal temporal attention across time and neuron-axis attention across the population, and predicts the next continuous patch in raw trace space under an MSE loss. Two corruptions (pseudo scheduled sampling and temporal neighborhood replacement) make training robust to imperfect histories. The same continuous tokens are used for pretraining, forecasting, and as input to a nonlinear low-rank per-neuron readout for behavior decoding; keepi

Load-bearing premise

The fixed patch length of 8 samples is assumed to give temporally commensurate tokens across datasets, even though it spans roughly 0.5 seconds of mouse data, 0.8–5 seconds of zebrafish data, and about 4.8 seconds of C. elegans data; if normalized calcium dynamics are not scale-invariant across those durations, the frozen temporal attention weights lose their meaning.

What would settle it

Retrain CAPT with per-dataset patch lengths chosen to equalize real time per patch, and compare with the fixed L=8 result on larval zebrafish and C. elegans forecasting. If per-dataset patch alignment substantially improves or fixed L=8 fails on a new species at a different sampling rate, the cross-species transfer claim rests on a coincidental token size rather than a general mechanism.

Watch this falsifier — get emailed when new claim-graph text bears on it.

If this is right

  • If true, a single frozen backbone can serve as a general feature extractor for calcium imaging, so new datasets require only small per-session or per-neuron embeddings rather than full retraining.
  • Cross-species transfer would mean shared low-level dynamics across mouse, fish, and worm calcium signals are captured by the same temporal attention weights, opening the door to multi-species pretraining.
  • Because embeddings line up with anatomical cell identity across datasets, the same functional coordinates could link calcium activity to connectomic and transcriptomic atlases in C. elegans and beyond.
  • The simple MSE objective removes the need for a separate vector-quantization tokenizer, reducing hyperparameters and keeping forecasting in the trace domain.
  • The authors note transfer gains are smaller than in-domain gains, implying the source distribution still constrains the backbone and that wider pretraining data is the next step.

Where Pith is reading between the lines

These are editorial extensions of the paper, not claims the author makes directly.

  • A testable extension: fix patch length per dataset so each patch covers the same real time rather than a constant L=8; if performance survives, the mechanism is scale-invariant calcium dynamics, and if not, the fixed-token assumption is load-bearing.
  • If the shared embedding space holds, one could predict NeuroPAL identities for unannotated neurons by nearest-neighbor transfer, effectively using CAPT as a functional cell-identity mapper.
  • Because the decoder readout is low-rank per neuron, behavior decoding performance likely depends on global neuron ordering and alignment; comparing with permutation-invariant readouts would isolate whether population-level structure or per-neuron alignment drives transfer.
  • CAPT embeddings could provide a common latent space for cross-species registration of neural populations, a step the paper gestures at but does not implement.

Editorial analysis

A structured set of objections, weighed in public.

Desk editor's note, referee report, simulated authors' rebuttal, and a circularity audit.

Referee Report

3 major / 5 minor

Summary. The paper introduces CAPT, a continuous autoregressive transformer for calcium imaging population dynamics. CAPT tokenizes single-neuron calcium traces into continuous temporal patches, projects them with neuron/session embeddings, and trains a dual-axis transformer with an MSE next-patch objective. After pretraining on a large mouse dataset (Tseng et al.), the backbone is frozen and only dataset-specific embeddings or decoding heads are trained for transfer. The authors evaluate CAPT on neural population forecasting and behavior decoding across eight external mouse, zebrafish, and C. elegans datasets, comparing with POCO, POYO+, and CalM. They report that CAPT consistently outperforms the baselines, and additionally show that CAPT embeddings support NeuroPAL-based neuron identity classification across C. elegans datasets. The paper includes detailed dataset descriptions, hyperparameter tables, ablations, and additional results in appendices.

Significance. If the reported transfer results are statistically robust, the paper would be a valuable step toward general-purpose calcium-imaging foundation models: the frozen-backbone transfer protocol is clean, the benchmark spans three species and multiple laboratories, and the NeuroPAL embedding analysis is a useful extension beyond predictive accuracy. The authors provide extensive implementation detail, consistent preprocessing, and ablate key design choices. However, the central comparative claim currently rests on point estimates without uncertainty quantification, and the fixed patch-length tokenization raises a cross-species architectural concern. These issues are fixable within the scope of the paper and do not invalidate the approach, but they must be addressed before the headline claim can be accepted.

major comments (3)
  1. [§5.1–5.4, Figs. 2–5] The central claim that CAPT 'consistently outperforms' baselines is supported only by point estimates. The main transfer comparisons in Figs. 3 and 5, and the embedding classification in Fig. 4, lack error bars, number of seeds, and significance tests. Several margins are very small; for example, Brysch forecasting correlation is 0.1895 for CAPT versus 0.1872 for CalM. Appendix A describes a hierarchical aggregation (per neuron, per trial, per session) that could support paired tests, and Appendix E reports standard deviations for only one comparison (Table 11), but not for the main tables. The limitation paragraph in §6 also acknowledges that transfer gains are generally smaller, making the missing uncertainty quantification more consequential. Please add confidence intervals or error bars, report the number of seeds, and provide paired significance tests with multiple-comparison correc
  2. [§3.1, Appendix D, Table 1] The patch length L=8 is used for all datasets, but it is selected on 6 Hz mouse pretraining data (Appendix D). At target sampling rates, the same L corresponds to very different real-time windows: about 0.5 s at 10 Hz (Sun) and about 4.8 s at 1.67 Hz (C. elegans). The frozen temporal attention is therefore asked to operate over substantially different temporal receptive fields. The ablation in Table 9 only varies L on the 6 Hz source subset and does not test whether L=8 is appropriate for 1.67–15.6 Hz target data. This is load-bearing for the cross-species transfer claim because the continuous patch tokenization is the main mechanism that makes the traces commensurable. Please either adapt L to each target dataset's sampling rate, add a per-dataset patch-length sensitivity analysis, or explicitly show that the real-time span of a patch does not affect the transfer conclusions.
  3. [§4.3, Appendix B, Appendix E, Fig. 5] Baseline comparability is not fully established. POCO is restricted to fixed context/horizon of 40/24 steps (Appendix B), and for the Lavian whole-brain dataset it is reported as 'unavailable' because the downstream setup is incompatible (Appendix E). Thus the claim that CAPT outperforms specialized baselines on all transfer datasets is partly a consequence of protocol constraints rather than model quality alone. Similarly, POYO+ fine-tuning only adjusts sequence length and latent step based on real time; Table 11 shows that in-domain POYO+ performs much better than cross-species fine-tuning, which supports the authors' distribution-shift interpretation but does not fully establish that the fine-tuning protocol is equally favorable to all methods. Please either evaluate all baselines under the same transfer protocol where possible, or clearly qualify the comparisons for which a baseline
minor comments (5)
  1. [Appendix B, POCO paragraph] Typo: the text says 'we freeze the POYO backbone' but should say 'POCO backbone'.
  2. [Fig. 3E/F] The decoding R2 axis is shown from 0 to 1, but the text reports negative values such as -0.0124 for POYO+ on Atanas head-angle decoding. The negative bars are likely clipped or invisible; please adjust the axis or annotate the values.
  3. [§5.4, Fig. 4B] The embedding classification results would be easier to interpret with details on SVM hyperparameters, class sizes, and whether the 5-fold CV is stratified; also, the 'chance' levels should state whether they are based on label permutation or majority-class proportion.
  4. [Table 9] The ablation table reports mean±std but not the number of sessions or seeds; adding the number of runs would help assess the stability of the patch-length comparison.
  5. [§2.2] The related work section introduces 'POCO' for forecasting and 'POYO+' for decoding, but the names are close; a brief clarifying sentence distinguishing them would improve readability.

Circularity Check

0 steps flagged

No circular derivation; central transfer claims rest on external benchmarks. Minor self-citation to CalM/DAT backbone is not load-bearing.

full rationale

The paper's derivation chain is empirical rather than definitional. CAPT is pretrained with the autoregressive MSE objective in Eq. (6), which predicts future continuous patches from past patches, and transfer is tested on eight independent datasets with the pretrained backbone frozen and only neuron/session embeddings or decoding heads updated. The central claim—that CAPT consistently outperforms specialized and general-purpose baselines on cross-dataset and cross-species forecasting and decoding—is evaluated on external held-out data, not derived from the training objective. No equation reduces a reported prediction to a fitted input: patch length L=8 is chosen by ablation, and the NeuroPAL identity analysis uses labels that were not part of forecasting or decoding training. The only notable self-citation is the DAT backbone and evaluation protocol taken from CalM [Xu et al., 2026], which shares two authors with this paper; however, CAPT's contribution is a different continuous patch tokenization and a continuous autoregressive objective, and the transfer evidence is independent of that citation. Thus the self-citation is not load-bearing. Statistical concerns raised by the skeptical reader—such as the absence of error bars or significance tests on small margins like Brysch 0.1895 vs 0.1872—are evidentiary limitations, not circularity.

Axiom & Free-Parameter Ledger

5 free parameters · 5 axioms · 0 invented entities

The central claim rests on empirical transfer experiments, not a mathematical derivation. The listed free parameters are hand-chosen hyperparameters, and the axioms are domain assumptions about cross-species comparability and split hygiene. No new physical entities are postulated.

free parameters (5)
  • patch_length L = 8
    Chosen via ablation on a 12-session pretraining subset (Appendix D); determines temporal scale of tokens and is assumed transferable across sampling rates.
  • scheduled_sampling_max_probability = 0.6
    Hand-set hyperparameter for augmentation strength (Table 7); affects robustness of autoregressive training.
  • neighborhood_replacement_probability = 0.1
    Hand-set hyperparameter (Table 7); controls temporal corruption of input trace.
  • decoder_rank = 16
    Hand-set for the behavior decoding head (Table 8); affects decoder capacity.
  • temporal_smoothing_kernel_size = 9
    Hand-set for behavior decoder temporal convolution (Table 8).
axioms (5)
  • domain assumption Z-scored, causally smoothed calcium traces from different species preserve shared temporal structure sufficient for cross-species transfer
    Used throughout transfer experiments (Section 5.2-5.3); if false, the central transfer result would fail.
  • domain assumption Pseudo-trial segmentation with temporal splits and block-random splits yields independent train/test sets without leakage
    Appendix A describes split protocols; the validity of reported generalization depends on this.
  • domain assumption Freezing the backbone and adapting only embeddings/heads is a meaningful test of representation transfer
    Section 3.4 formalizes transfer; this is a design choice that defines the claim.
  • domain assumption The dual-axis transformer architecture from CalM is an appropriate inductive bias for population dynamics
    The backbone is inherited from a self-cited prior model (Xu et al., 2026); CAPT assumes this architecture generalizes across species.
  • domain assumption NeuroPAL labels are a valid ground truth for cell identity, and linear SVM on frozen embeddings reveals representational structure
    Section 5.4 relies on NeuroPAL annotations; classification scores are interpreted as evidence of shared identity-related structure.

pith-pipeline@v1.3.0-alltime-deepseek · 16258 in / 12529 out tokens · 114058 ms · 2026-07-31T23:54:44.576049+00:00 · methodology

0 comments
read the original abstract

Large-scale calcium imaging has created an opportunity to build foundation-style models for neural population dynamics, but a central question remains unresolved: \textbf{whether a model pretrained on one collection of recordings can generalize to new datasets, experimental paradigms, and even species.} Existing approaches are often designed for specific tasks and evaluated on a single dataset, making it unclear whether their learned representations are reusable for new calcium trace datasets. To tackle this gap, we present \textbf{CAPT}, a \textbf{C}ontinuous \textbf{A}utoregressive \textbf{P}opulation \textbf{T}ransformer for calcium population dynamics. CAPT models continuous calcium traces directly through a continuous patch tokenization strategy and is trained autoregressively, enabling end-to-end pretraining and adaptation to diverse downstream tasks. We first pretrain CAPT on a large-scale mouse calcium imaging dataset and evaluate its transferability across independent mouse, larval zebrafish, and \textit{C. elegans} datasets collected by different laboratories. In these transfer settings, the pretrained backbone is frozen and only adaptation modules are updated. Across neural population forecasting and behavior decoding tasks, CAPT consistently outperforms specialized and general-purpose baselines. Alongside predictive performance, multimodal analyses using NeuroPAL annotations in \textit{C. elegans} datasets show that CAPT embeddings form a shared functional space across datasets and capture anatomical cell-identity-related structure. These results suggest that the continuous autoregressive modeling opens up possibilities for a simple route towards general-purpose neural foundation models for calcium imaging, which can generalize across datasets, experimental paradigms, and species.

Figures

Figures reproduced from arXiv: 2607.23258 by Xinhong Xu, Yimeng Zhang, Yuanlong Zhang.

Figure 1
Figure 1. Figure 1: Pretraining pipeline for CAPT. The first input patch is kept unchanged, i.e., xe ss n,1 = xn,1. For temporal neighborhood replacement, let un,t denote the input history after optional pseudo scheduled sampling. We perturb input time points by mixing them with nearby previous values from the same trace: xe nr n,t = (1 − λnrrn,t)un,t + λnrrn,txn,max(t−δ,1), δ ∼ Uniform{1, . . . , R}, (8) where rn,t ∼ Bernoul… view at source ↗
Figure 2
Figure 2. Figure 2: Performance of CAPT on pretraining dataset. (A) Illustration of CAPT on forecasting task. (B) Neural population forecasting performances on the pretraining mouse dataset. (C) Example trace visualization. (D) Illustration of CAPT on behavior decoding tasks. (E) Behavior decoding performances on the pretraining mouse dataset. 5 Experiments and Results For all datasets, we split trials or pseudo-trials into t… view at source ↗
Figure 3
Figure 3. Figure 3: Performance of CAPT on diverse transfer datasets. (A) (B) Neural population forecasting and behavior decoding performances on Sun., CaLiAli. and Park. mouse datasets. (C) (D) Neural population forecasting and behavior decoding performance on Brysch. and Lavian. zebrafish datasets. (E) (F) Forecasting and decoding performance on Copper. and Atanas. C. elegans datasets. As shown in Figure 3A, B, CAPT consist… view at source ↗
Figure 4
Figure 4. Figure 4: Neural embedding analysis with NeuroPAL information. (A) UMAP Visualization of top-5 most abundant NeuroPAL-labelled embeddings. (B) Classification performances on pooled embedding of Copper. and Atanas datasets. (C) Confusion matrix of CAPT. (D) Cross-dataset classification performances. To further quantify this structure, we perform cell-identity classification using pooled neuron embed￾dings with the 20… view at source ↗
Figure 5
Figure 5. Figure 5: Performance of CAPT on additional transfer datasets. (A) Neural population forecasting on Palieri. zebrafish datasets. (B) Neural population forecasting on the whole brain subset from Lavian. zebrafish datasets. AIB AIZ ASG AVA AVE AVJ AWC CEP I1 I2 IL1 IL2 M3 NSM OLL OLQ RI RMD RME SAA SMD URB URX URY AIB AIZ ASG AVA AVE AVJ AWC CEP I1 I2 IL1 IL2 M3 NSM OLL OLQ RI RMD RME SAA SMD URB URX URY 0 1 2 3 4 5 6… view at source ↗
Figure 6
Figure 6. Figure 6: Embedding analysis for POCO baseline. (A) 2d UMAP visualization for POCO neural embeddings (B) Confusion matrix of cell-type classification from POCO neural embeddings 18 [PITH_FULL_IMAGE:figures/full_fig_p018_6.png] view at source ↗

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Reference graph

Works this paper leans on

13 extracted references · 1 canonical work pages

  1. [2]

    During fine-tuning, we freeze the POYO backbone and the conditioning MLP, and only update the neural and session embeddings. Table 2: Hyperparameters used for training POCO model Hyperparameter Value MLP hidden size 1024 Decoder layers 1 Decoder hidden size 128 Number of heads 16 Latent tokens 8 FFN hidden size 1024 Compression Factor 8 POYO+ For POYO+ [A...

  2. [3]

    The pretrain backbone is kept frozen across all fine-tuning experiments

    For cross-dataset fine-tuning, we only adjust the sequence length and latent step based on real time to match sampling rates across different datasets. The pretrain backbone is kept frozen across all fine-tuning experiments. For within-dataset fine-tuning, the decoder head is frozen, and only the neural and session embeddings are updated. For cross-datase...

  3. [5]

    Omni- mouse: Scaling properties of multi-modal, multi-task brain models on 150b neural tokens.arXiv preprint arXiv:2604.18827,

    Konstantin F Willeke, Polina Turishcheva, Alex Gilbert, Goirik Chakrabarty, Hasan A Bedel, Paul G Fahey, Yongrong Qiu, Marissa A Weis, Michaela Vystrˇcilová, Taliah Muhammad, et al. Omni- mouse: Scaling properties of multi-modal, multi-task brain models on 150b neural tokens.arXiv preprint arXiv:2604.18827,

  4. [6]

    Continuous calcium traces are divided into non-overlapping temporal patches, and the model predicts the next continuous patch directly in the original trace space

    C Model and hyperparameters For CAPT, we pretrain a continuous patch-based autoregressive backbone on the multi-session forecasting task. Continuous calcium traces are divided into non-overlapping temporal patches, and the model predicts the next continuous patch directly in the original trace space. We use mean squared error as the forecasting objective....

  5. [7]

    Self-supervised foundation model for calcium-imaging population dynamics.arXiv preprint arXiv:2604.04958,

    Xinhong Xu, Yimeng Zhang, Qichen Qian, and Yuanlong Zhang. Self-supervised foundation model for calcium-imaging population dynamics.arXiv preprint arXiv:2604.04958,

  6. [8]

    Representation learning for neural population activity with neural data transformers.arXiv preprint arXiv:2108.01210,

    Joel Ye and Chethan Pandarinath. Representation learning for neural population activity with neural data transformers.arXiv preprint arXiv:2108.01210,

  7. [13]

    We train for 200 epochs during pretraining and all fine-tuning tasks and the checkpoint with the best validation Pearson correlation is selected

    For forecasting and decoding fine-tuning, we adopt the same fine-tuning strategy as described above for CalM. We train for 200 epochs during pretraining and all fine-tuning tasks and the checkpoint with the best validation Pearson correlation is selected. Table 7: Hyperparameters used for CAPT backbone Hyperparameter Value Patch length 8 Model dimension 5...

  8. [2006]

    Inpainting the neural picture: Inferring unrecorded brain area dynamics from multi-animal datasets.arXiv preprint arXiv:2510.11924,

    Ji Xia, Yizi Zhang, Shuqi Wang, Genevera I Allen, Liam Paninski, Cole Lincoln Hurwitz, and Kenneth D Miller. Inpainting the neural picture: Inferring unrecorded brain area dynamics from multi-animal datasets.arXiv preprint arXiv:2510.11924,

  9. [2011]

    Umap: Uniform manifold approximation and projection for dimension reduction.arXiv preprint arXiv:1802.03426,

    Leland McInnes, John Healy, and James Melville. Umap: Uniform manifold approximation and projection for dimension reduction.arXiv preprint arXiv:1802.03426,

  10. [2013]

    Neu- roformer: Multimodal and multitask generative pretraining for brain data.arXiv preprint arXiv:2311.00136,

    Antonis Antoniades, Yiyi Yu, Joseph Canzano, William Wang, and Spencer LaVere Smith. Neu- roformer: Multimodal and multitask generative pretraining for brain data.arXiv preprint arXiv:2311.00136,

  11. [2022]

    elegans) and covering diverse experimental paradigms

    12 A Dataset In this work, we use a collection of calcium imaging datasets spanning three species (mouse, larval zebrafish, andC. elegans) and covering diverse experimental paradigms. In total, the datasets comprise 676,424 neurons and 530 sessions. All neural traces are smoothed and z-score normalized, while behavioral variables are z-score normalized be...

  12. [2025]

    Decoding dynamic visual experience from calcium imaging via cell-pattern-aware ssl.arXiv preprint arXiv:2510.18516,

    Sangyoon Bae, Mehdi Azabou, Jiook Cha, and Blake Richards. Decoding dynamic visual experience from calcium imaging via cell-pattern-aware ssl.arXiv preprint arXiv:2510.18516,

  13. [2026]

    Christian Brysch, Claire Leyden, and Aristides B

    URL https://datadryad.org/dataset/doi: 10.5061/dryad.w9ghx3g4v. Christian Brysch, Claire Leyden, and Aristides B. Arrenberg. Functional architecture underlying binocular coordination of eye position and velocity in the larval zebrafish hindbrain.BMC Biology, 17(1):110,