potentialpaper

SpikeSSL: A Universal Spike Inference Framework with Dynamics-Informed State-Space Layers

Chenghao Yue, Siming Xing, shuran liu, Angran Li, Yuanlong Zhang

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Two-photon calcium imaging is a standard tool for recording large neural populations in vivo, yet inferring spikes accurately across the growing diversity of calcium indicators remains an open problem. Existing supervised methods achieve reasonable in-domain accuracy but generalize poorly to unseen indicators, because different indicators induce distinct fluorescence kinetics and signal statistics while existing architectures remain relatively simple generic temporal regressors without dynamics-matched inductive bias. We propose SpikeSSL, a universal spike inference framework whose temporal backbone is a bank of bidirectional IIR state-space layers broadly motivated by calcium dynamics. A multi-modal conditioning encoder maps indicator identity, sampling rate, and trace-level signal statistics into a global conditioning vector that modulates the backbone via Adaptive Layer Normalization, while a heteroscedastic variance head provides calibrated per-frame uncertainty. On a benchmark with five fixed evaluation splits built from 33 public ground-truth datasets, SpikeSSL achieves state-of-the-art performance in both in-domain and zero-shot leave-one-indicator-out settings. We also develop a biophysical simulation pipeline capable of generating paired fluorescence-spike traces with systematically varied kinetic parameters, spike statistics, response nonlinearities, baseline drift, and noise. Using this pipeline, we synthesize approximately 11{,}000 simulated traces. Augmenting training with these data effectively closes the cross-indicator domain gap and improves zero-shot generalization. Code is publicly available at https://github.com/detimage123/SpikeSSL.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:44 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

Reviewers lean positive overall (accept to borderline reject), agreeing SpikeSSL addresses a practically important problem — generalizing spike inference across calcium indicators — with a well-motivated architecture, though several question how "universal" and "zero-shot" the method's claims really are.

  • Multiple reviewers want the zero-shot claim stress-tested: one asks for comparison against indicator-specific oracle models to clarify whether SpikeSSL can replace specialized training or is mainly valuable when target data is unavailable, while another notes the AdaLN conditioning uses target-domain trace statistics at test time, which may make the setting closer to few-shot adaptation than true zero-shot generalization.
  • Reviewers flagged incomplete statistical rigor and mixed evidence for individual components — no standard deviations or significance tests in the main results or ablation tables, and one reviewer noted the simulation-augmentation pipeline doesn't uniformly help (it slightly hurts on the Other-RCaMP split), warranting more analysis of when it helps or hurts.
  • The most critical reviewer raised practical limitations (bidirectional layers preclude real-time use, a fixed 0.5 gating threshold lacking sensitivity analysis, and susceptibility of global statistics to motion artifacts/baseline drift) and requested an ablation removing indicator ID to isolate the true source of generalization.
Final justification

The authors provided substantial rebuttals to the primary reviewer concerns, and the paper will be stronger as a result. The two most substantive reviewers both recommended acceptance, and the reviewer with the least substantive comments did not engage with the rebuttal. I think this is a solid paper and I recommend acceptance.

Area Chair zvfS · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

Reviewers lean positive overall (accept to borderline reject), agreeing SpikeSSL addresses a practically important problem — generalizing spike inference across calcium indicators — with a well-motivated architecture, though several question how "universal" and "zero-shot" the method's claims really are.

  • Multiple reviewers want the zero-shot claim stress-tested: one asks for comparison against indicator-specific oracle models to clarify whether SpikeSSL can replace specialized training or is mainly valuable when target data is unavailable, while another notes the AdaLN conditioning uses target-domain trace statistics at test time, which may make the setting closer to few-shot adaptation than true zero-shot generalization.
  • Reviewers flagged incomplete statistical rigor and mixed evidence for individual components — no standard deviations or significance tests in the main results or ablation tables, and one reviewer noted the simulation-augmentation pipeline doesn't uniformly help (it slightly hurts on the Other-RCaMP split), warranting more analysis of when it helps or hurts.
  • The most critical reviewer raised practical limitations (bidirectional layers preclude real-time use, a fixed 0.5 gating threshold lacking sensitivity analysis, and susceptibility of global statistics to motion artifacts/baseline drift) and requested an ablation removing indicator ID to isolate the true source of generalization.
Final justification

The authors provided substantial rebuttals to the primary reviewer concerns, and the paper will be stronger as a result. The two most substantive reviewers both recommended acceptance, and the reviewer with the least substantive comments did not engage with the rebuttal. I think this is a solid paper and I recommend acceptance.

Reviewer bS29OpenReview ↗
Rating
3/6
Confidence
3/5
Quality
2/4
Clarity
2/4
Significance
2/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes a universal spike inference framework, SpikeSSL, that infers neuronal spike rates from two-photon calcium imaging data across different, unseen calcium indicators. It combines dynamics knowledge with bidirectional state-space layers to extract temporal features. The paper also creates a biophysical simulation pipeline for data augmentation. Experimental results show that the method achieves SOTA performance.

Strengths and weaknesses

Strengths:

  1. Combining dynamics knowledge with state-space layers gives the framework strong zero-shot generalization capabilities.
  2. The biophysical simulation pipeline provides high-quality data augmentation, helping the framework achieve state-of-the-art performance.
  3. The framework achieves SOTA performance across multiple diverse datasets.

Weaknesses:

  1. The bidirectional nature of the state-space layers inherently relies on future context, rendering the proposed method unsuitable for real-time inference applications.
  2. The rigid choice of a 0.5 gating threshold tends to inadvertently suppress genuine weak signals, particularly in low signal-to-noise ratio (SNR) regimes.
  3. The global statistics are highly特 susceptible to distortion induced by localized motion artifacts or baseline drifts.
Questions

Q1: In the ablation study, the authors do not evaluate the performance without the indicator ID. Incorporating this specific baseline is highly desirable, as it would conclusively demonstrate the true source of the model's generalization capability.

Q2: The choice of a fixed 0.5 threshold for noise filtering during inference lacks sufficient justification. To ensure the reliability of the core claims, the authors should include a threshold sensitivity study (e.g., varying from 0.3 to 0.7) to verify the model’s stability under different filtering regimes.

Q3: In Figure 2, the LN layer is erroneously drawn on the residual path, which contradicts the architectural diagram provided in the Appendix.

Limitations

No.

Formatting concerns

No.

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Q1. Ablation without indicator ID

We thank the reviewer for requesting this decisive control. In LOIO, SpikeSSL is given an unknown indicator code (ID=0), never the held-out dye label. We trained and evaluated a version without the discrete-ID branch. Mean correlation decreases only slightly from 0.654 to 0.647. Thus, cross-indicator generalization does not depend strongly on indicator ID. Sampling rate and the seven statistics computed from the input window provide complementary metadata for the conditioned dynamics.

ID has a larger role in the in-domain setting, where it is observed and can capture domain-specific regularities. Mean correlation decreases from 0.741 to 0.703, a drop of 3.8 points.

Pearson correlation (r)

Setting V1-OGB V1-GCaMP6s V1-GCaMP8 Other-RCaMP SC-GCaMP6s Mean Corr.
LOIO with unknown ID 0.650 0.509 0.853 0.717 0.542 0.654
LOIO without ID branch 0.646 0.500 0.849 0.708 0.532 0.647
In-domain full model 0.743 0.579 0.915 0.731 0.736 0.741
In-domain without ID branch 0.700 0.546 0.881 0.694 0.694 0.703

Q2. Gate-threshold sensitivity

We appreciate this important robustness check. We swept the inference threshold τ\tau from 0.2 to 0.8 while keeping the trained model fixed. The default τ=0.5\tau=0.5 gives the highest mean correlation at 0.654. Mean normalized error is lowest at τ=0.6\tau=0.6. Mean absolute bias decreases through τ=0.7\tau=0.7 as the gate becomes more conservative. Correlation is the most valuable metric for this task, so we use the correlation-optimal threshold of 0.5.

Correlation r

τ\tau V1-OGB V1-GCaMP6s V1-GCaMP8 Other-RCaMP SC-GCaMP6s Mean Corr.
0.2 0.620 0.503 0.814 0.684 0.521 0.628
0.3 0.644 0.513 0.848 0.712 0.538 0.651
0.4 0.644 0.515 0.851 0.714 0.546 0.654
0.5 0.650 0.509 0.853 0.717 0.542 0.654
0.6 0.646 0.487 0.851 0.720 0.537 0.648
0.7 0.647 0.457 0.850 0.715 0.530 0.640
0.8 0.643 0.418 0.849 0.712 0.519 0.628

Normalized error

τ\tau V1-OGB V1-GCaMP6s V1-GCaMP8 Other-RCaMP SC-GCaMP6s Mean Error
0.2 2.909 1.036 0.594 1.833 0.900 1.454
0.3 2.604 0.982 0.555 1.564 0.903 1.322
0.4 2.282 0.957 0.530 1.393 0.907 1.214
0.5 1.979 0.944 0.513 1.269 0.911 1.123
0.6 1.701 0.939 0.501 1.172 0.917 1.046
0.7 1.848 1.209 0.634 1.398 1.190 1.256
0.8 1.825 1.441 0.748 1.516 1.429 1.392

Normalized bias

τ\tau V1-OGB V1-GCaMP6s V1-GCaMP8 Other-RCaMP SC-GCaMP6s Mean absolute Bias
0.2 1.632 −0.467 0.012 1.181 −0.863 0.831
0.3 1.322 −0.558 −0.033 0.910 −0.873 0.739
0.4 0.990 −0.623 −0.065 0.736 −0.882 0.659
0.5 0.675 −0.677 −0.091 0.606 −0.892 0.588
0.6 0.379 −0.726 −0.114 0.502 −0.902 0.525
0.7 0.088 −0.774 −0.138 0.406 −0.914 0.464
0.8 −0.199 −0.826 −0.167 0.295 −0.928 0.483

Q3. Figure 2 LayerNorm placement

Thank you for raising this potential ambiguity. In both Figure 2 and Supplementary Figure 8(a), AdaLN is applied within the IIR branch before the residual addition. The two diagrams are therefore consistent. We apologize that the current drawing can be read differently and will make the labels and caption clearer.


Q4. Bidirectional layers and real-time inference

We appreciate this practical concern. Spike inference is predominantly an offline analysis task, and our benchmarks follow that setting. We agree that SpikeSSL is not a causal frame-by-frame filter because the bidirectional IIR block uses bounded future context within each window. However, inference uses sliding windows rather than whole-recording batches, so the model never needs an entire recording in memory. On an A100, a single-window forward pass is about 29 times faster than 30 Hz frame arrival. Overlapping windows can therefore keep pace with acquisition in many laboratory settings, although the method remains noncausal within a window.


Q5. Motion artifacts and baseline drift

We thank the reviewer for highlighting this failure mode. Our statistics are computed per window rather than over a whole trial, but this does not make SpikeSSL invariant to artifacts. On perturbed LOIO traces, drift is the dominant degradation. Motion alone is milder, and combined drift and motion also reduce performance. We will add this limitation and recommend standard motion correction and baseline detrending before inference.

Pearson correlation (r)

Condition V1-OGB V1-GCaMP6s V1-GCaMP8 Other-RCaMP SC-GCaMP6s Mean Corr.
Clean 0.650 0.509 0.853 0.717 0.542 0.654
Baseline drift 0.636 0.392 0.605 0.665 0.478 0.555
Sparse motion artifacts 0.618 0.466 0.835 0.702 0.500 0.624
Drift + motion 0.620 0.409 0.673 0.684 0.463 0.570
Authors · CommentOpenReview ↗

Dear Reviewer,

Thank you again for highlighting these practical concerns. We added the indicator-ID ablation, a gate-threshold sensitivity study, clarification of the LayerNorm placement, and stress tests under baseline drift and motion artifacts. We also clarified that SpikeSSL targets offline inference and remains noncausal within each bounded window. We would be grateful to know whether these results address your main concerns.

Best regards, The authors

Authors · CommentOpenReview ↗

Dear Reviewer,

Thank you again for carefully identifying these important practical concerns and for giving us the opportunity to strengthen the work. With the author-reviewer discussion period nearing its conclusion, we would be sincerely grateful if you could briefly indicate whether the added indicator-ID ablation, threshold-sensitivity analysis, artifact robustness tests, and clarification of the noncausal offline setting have adequately addressed your concerns. We fully appreciate the time required for reviewing, and any further feedback from you would be extremely helpful to us. We remain ready to clarify any unresolved issue before the discussion closes.

Best regards, The authors

Reviewer zGCBOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper presents SpikeSSL, a spike inference framework for calcium imaging trace that aims to generalize across calcium indicators. The method uses bidirectional IIR state-space layers motivated by first-order calcium dynamics, together with conditioning based on indicator identity, sampling rate, and trace-level statistics to modulate the IIR backbone. The overall goal is to infer the underlying spike-rate signal from fluorescence traces in a way that is more robust across different indicators and experimental conditions. The authors also construct a simulation pipeline to generate synthetic data with diverse statistics. These simulated traces are then used as augmentation during training. The results suggest that this augmentation improves SpikeSSL and also helps other learned baselines compared to training without synthetic data. The method is evaluated on a datasets spanning multiple calcium indicators, using both in-domain and held-out evaluations. SpikeSSL outperforms existing baselines such as OASIS, and CASCADE.

Strengths and weaknesses

The paper addresses an important and practically relevant problem. Generalizing spike inference across calcium indicators is difficult and useful, especially because paired electrophysiology/calcium ground truth is expensive to collect. The model design is coherent with the problem at hand: the IIR layers are well matched to calcium decay dynamics, the conditioning mechanism is reasonable, and the simulation augmentation is motivated by the fact that real-wrold labels for this task are limited. The evaluation compares against standard baselines and shows improvements in both in-domain and held-out settings. The ablations also suggest that different components of the model are useful. Overall, the evaluation setup and reported metrics are sensible.

However, I have several concerns, listed below.

  1. The scope of the zero-shot setting seems limited, and some technical details remain unclear for realistic zero-shot deployment. SpikeSSL conditions through AdaLN on indicator identity, sampling rate, and trace-level statistics. If these statistics require many samples from the target experiment, then although no model update is performed, the method still uses target-domain fluorescence to estimate the statistics of the held-out setting. This weakens the zero-shot claim and makes it closer to a few-shot target-domain adaptation and should be clarified/discussed. In particular, the authors should explain whether these statistics are computed from the whole target dataset or only few trace samples from target dataset, and how performance changes when only limited target-domain fluorescence is available.

  2. Relatedly, the paper’s evaluation setting is label-free with respect to the held-out target recordings, but it is not a fully unseen sensor benchmark or does not strictly leave one lab out for evaluation. The splits are held-out distribution shifts within the same setup, and some involve closely related indicator variants. Therefore, the results support transfer across selected held-out conditions, but they do not fully establish "universal" zero-shot generalization across labs or unseen indicators.

  3. The scaling discussion is limited to model-size scaling and leaves the data-scaling question open. The paper states that further scaling SpikeSSL does not yield additional gains. However, this does not answer whether performance is limited by data diversity, synthetic-data quality, or model capacity or design. It would be helpful to report data-scaling curves, such as performance versus the amount of real data or synthetic data, or the number of indicators included during training. This would clarify whether the method has saturated because of data limitations and what the expected upper limit might be as more paired calcium/electrophysiology data become available in the future.

  4. Statistical significance is not sufficiently reported. The main result tables give point estimates, but I did not see standard deviations across random seeds or significance tests for the method comparisons. This is especially relevant for Table 4, where the ablations are reported as single mean-correlation values with no standard deviations, even though some component gains are modest.

  5. The role of the simulator need more evidence or discussion. Table 3 shows that simulation improves the mean correlation, but it does not improve every split. For example, the Other-RCaMP split slightly decreases compared with SpikeSSL without simulation. This suggests that the simulator is not uniformly beneficial. More analysis of when synthetic data helps or hurts, and discussion scenarios where it would hurt, would strengthen the paper.

Questions
  1. How much target-domain data is needed to compute the trace statistics used for AdaLN conditioning?
  2. At test time, is the held-out indicator encoded as an unknown indicator, as its true indicator ID, or through another metadata representation? If the unknown-indicator embedding is used, how is this embedding trained?
  3. The paper defines the combined form of the structural penalty in Equation 10 and describes the three components in words. However, I could not find explicit mathematical definitions for LoverL_{{over}}, LpeakL_{{peak}}, and LbiasL_{{bias}} in the main text or appendix. For reproducibility, the deatils and exact formulas should be reported.
Limitations

Yes

Final justification

Most of my concerns have been addressed, and I will keep my positive score while raising my confidence to 4.

The zero-shot setup is now much clearer: LOIO uses the unknown indicator ID, trace statistics are computed only from the current unlabeled input window, and there is no target domain update. This resolves my main concern that the setup might be closer to few-shot adaptation.

The added clarifications of loss formulas, results for scaling of data, seeded results for the main experiments and ablations, and analysis of when simulation helps also strengthen the paper.

Formatting concerns

--

5 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Q1. How much target-domain data is used for trace statistics?

Thank you. The seven statistics are computed from the current input window, so LOIO uses one unlabeled window with no target-domain pool, labels, or update. This is per-window conditioning, not few-shot adaptation. Pooling 5, 20, or all windows does not improve correlation, showing that performance is independent of target-domain data volume.

Mean Corr. Per-window Pool 5 windows Pool 20 windows Pool all windows
LOIO 0.654 0.649 0.650 0.650

Q2. Test-time encoding of a held-out indicator

Thank you. LOIO always uses the reserved unknown code (ID=0), never the dye label. Because ID=0 is neither used nor optimized during training, it carries no target-domain information, and inference relies on sampling rate, window statistics, and the trace. Removing the ID branch changes LOIO correlation only from 0.654 to 0.647, versus 0.741 to 0.703 in-domain, confirming that ID mainly benefits observed domains. Split-wise results and the shuffled-ID control appear in our response to Reviewer tRGu, Q4.


Q3. Explicit definitions for Eq. (10)

Thank you. Let wt∈0,1w_t\in\\{0,1\\} be the valid-frame mask and Z=∑twtZ=\sum_t w_t. All sums are over valid frames. The overestimation term is Lover=Z−1∑twtmax⁡(s^t−st,0)2L_{\mathrm{over}}=Z^{-1}\sum_t w_t\max(\hat{s}_t-s_t,0)^2.

For Q=t:st≥q0.9(s)Q=\\{t:s_t\ge q_{0.9}(s)\\}, let NQN_Q be its size and hδh_\delta be the Huber loss. The peak term is Lpeak=NQ−1∑t∈Qhδ(max⁡(st−s^t,0))L_{\mathrm{peak}}=N_Q^{-1}\sum_{t\in Q}h_\delta(\max(s_t-\hat{s}_t,0)).

The bias term is Lbias=(Z−1∑twts^t−Z−1∑twtst)2L_{\mathrm{bias}}=(Z^{-1}\sum_t w_t\hat{s}_t-Z^{-1}\sum_t w_ts_t)^2.

The structural term is Lstruct=βoverLover+βpeakLpeak+λμLbiasL_{\mathrm{struct}}=\beta_{\mathrm{over}}L_{\mathrm{over}}+\beta_{\mathrm{peak}}L_{\mathrm{peak}}+\lambda_\mu L_{\mathrm{bias}}.

We use βover=3.0\beta_{\mathrm{over}}=3.0, βpeak=0.3\beta_{\mathrm{peak}}=0.3, λμ=0.5\lambda_\mu=0.5, δ=0.1\delta=0.1, and q=0.9q=0.9. We will add these equations to the appendix.


Q4. Scope of “universal” zero-shot generalization

We thank the reviewer for inviting us to clarify this point. Our corpus aggregates ground-truth recordings from many labs, sensors, species, regions, cell types, and protocols, not one setup (Supplementary Table 6). LOIO excludes every recording of the held-out family and performs no target-domain update. Real indicators are not deterministic kernels. Traces vary across indicators and repeated recordings. Figure 1 in the main paper shows this heterogeneity. We therefore quantify isolated-spike rise time, decay time, and SNR in the public recordings compiled by CASCADE.

Indicator family n Rise μ±σ Decay μ±σ SNR μ±σ
Cal-520 6 0.086±0.085 0.253±0.094 5.533±2.295
GCaMP5k 36 0.079±0.095 0.073±0.058 3.934±0.904
GCaMP6f 907 0.061±0.071 0.119±0.120 5.570±4.358
GCaMP6s 436 0.104±0.095 0.177±0.173 5.713±3.011
GCaMP6s spinal 180 0.112±0.164 0.155±0.199 5.210±2.906
GCaMP7f 57 0.030±0.025 0.070±0.058 6.125±4.398
GCaMP8 variants 2,967 0.018±0.020 0.083±0.060 6.417±4.017
Interneurons mixed 102 0.037±0.056 0.050±0.044 3.886±0.936
OGB-1 330 0.094±0.073 0.193±0.155 7.141±9.075
R-CaMP 260 0.082±0.069 0.235±0.201 10.831±11.666
Unknown 619 0.096±0.122 0.138±0.143 5.689±4.283
XCaMPgf 37 0.028±0.031 0.060±0.044 4.511±2.445
jGECO1a 96 0.066±0.056 0.126±0.092 6.110±3.671
jRCaMP1a 56 0.146±0.166 0.261±0.198 11.627±26.422

Rise-time standard deviation exceeds the mean for GCaMP6f, GCaMP8 variants, and XCaMPgf, showing substantial within-family heterogeneity. Across families, mean decay ranges from 0.050 s for mixed interneurons to 0.261 s for jRCaMP1a, while mean SNR ranges from 3.886 to 11.627 with markedly different dispersions. These event-level summaries are distinct from the baseline-aware exponential τ\tau reported separately. Together, the within-family dispersion and cross-family shifts in rise, decay, and SNR confirm a substantial domain gap. Here, “universal” means one model that transfers across this diverse multi-laboratory benchmark without target labels or retraining. We therefore believe that “universal” is not an overclaim.


Q5. Data scaling

Thank you. We vary real data, synthetic data, and indicator coverage across five LOIO splits with fixed evaluation.

Real-recording fraction 25% 50% 75% 100%
Corr. 0.564 0.614 0.637 0.654
Error 1.791 1.534 1.133 1.123
Absolute bias 1.187 1.081 0.583 0.588
Synthetic-data fraction 0% 25% 50% 75% 100%
Corr. 0.654 0.667 0.679 0.692 0.704
Error 1.123 1.118 1.113 1.108 1.103
Absolute bias 0.588 0.564 0.539 0.514 0.490
Indicator families 4 8 13
Corr. 0.543 0.583 0.654
Error 1.140 1.204 1.123
Absolute bias 0.871 0.811 0.588

More real data, more synthetic data, and broader indicator coverage improve mean correlation. We therefore conclude that data quantity is the primary limitation.


Q6. Variability, significance, and ablations

We thank the reviewer for pressing on statistical rigor. Across seeds {42, 2719, 8888, 1337, 2025}, LOIO is 0.660±0.0160.660\pm0.016 and in-domain is 0.739±0.0040.739\pm0.004, within 0.006 and 0.002 of seed 42 (0.654 and 0.741). This supports robustness. Bias denotes mean absolute bias, and both tables will enter the appendix.

Five-seed LOIO results

Split Corr. Error Signed Bias
V1-OGB 0.666 ± 0.030 1.096 ± 0.513 −0.309 ± 0.574
V1-GCaMP6s 0.507 ± 0.022 0.951 ± 0.008 −0.780 ± 0.069
V1-GCaMP8 0.864 ± 0.013 0.531 ± 0.015 −0.054 ± 0.213
Other-RCaMP 0.724 ± 0.013 1.141 ± 0.157 0.445 ± 0.267
SC-GCaMP6s 0.539 ± 0.018 0.889 ± 0.046 −0.840 ± 0.082
Mean 0.660 ± 0.016 0.922 ± 0.116 0.486±0.074

Five-seed in-domain results

Split Corr. Error Signed Bias
V1-OGB 0.729 ± 0.017 0.875 ± 0.062 −0.131 ± 0.180
V1-GCaMP6s 0.575 ± 0.009 0.948 ± 0.005 −0.779 ± 0.031
V1-GCaMP8 0.917 ± 0.005 0.487 ± 0.044 0.036 ± 0.059
Other-RCaMP 0.748 ± 0.019 1.025 ± 0.137 0.149 ± 0.130
SC-GCaMP6s 0.728 ± 0.009 0.825 ± 0.036 −0.784 ± 0.050
Mean 0.739 ± 0.004 0.832 ± 0.021 0.376±0.069

We also report error and mean absolute bias for removal and cumulative build-up. All entries are mean±std across the same five seeds. The bidirectional IIR backbone, multi-modal conditioning, gate head, and variance head each contribute positively, so the model is not redundant.

Removal ablations under LOIO

Variant Mean Corr. Mean Error Mean absolute Bias
− AdaLN 0.604±0.014 1.276±0.103 0.456±0.061
− statistics 0.626±0.012 1.213±0.091 0.556±0.073
− bidirectional IIR 0.597±0.016 1.377±0.120 0.719±0.086
− variance head 0.611±0.013 1.243±0.112 1.005±0.105
− gate 0.624±0.011 1.153±0.084 0.402±0.057
Full SpikeSSL 0.660±0.016 0.922±0.116 0.486±0.074

Cumulative build-up under LOIO

Stage Mean Corr. Mean Error Mean absolute Bias
1D U-Net backbone 0.481±0.022 1.173±0.101 0.788±0.088
Transformer backbone 0.484±0.020 1.197±0.104 0.618±0.074
Bidirectional IIR backbone 0.539±0.018 1.191±0.101 0.757±0.083
+ Indicator ID 0.550±0.017 1.167±0.096 0.696±0.079
+ Sampling rate 0.554±0.016 1.175±0.098 0.672±0.077
+ Signal statistics 0.576±0.015 1.145±0.091 0.703±0.081
+ AdaLN 0.594±0.014 1.153±0.087 0.696±0.076
+ Gate 0.612±0.013 1.117±0.082 0.665±0.071
+ Variance head 0.660±0.016 0.922±0.116 0.486±0.074

Q7. When simulation helps or hurts

We thank the reviewer for requesting a mechanism-level analysis. We repeated LOIO with simulation across five seeds and measured each target gap in the exact conditioning space of SpikeSSL. Each 188-frame window uses log sampling rate, standard deviation, skewness, excess kurtosis, and autocorrelation at lags 1, 3, 5, and 10. After robust scaling, we compute 512-projection sliced Wasserstein-1 distance. Each ΔW1\Delta W_1 is the real-only gap minus the equal-sampled real-plus-simulation gap, so positive values indicate better alignment. AC averages the four autocorrelation terms, while shape averages standard deviation, skewness, and kurtosis.

Split No-sim Corr. +Sim Corr. Δ\Delta Corr. Δ\DeltaSWD ΔW1\Delta W_1 AC ΔW1\Delta W_1 shape ΔW1\Delta W_1 Kurt.
V1-OGB 0.666 ± 0.030 0.704 ± 0.012 +0.038 +0.013 −0.111 +0.008 −0.132
V1-GCaMP6s 0.507 ± 0.022 0.531 ± 0.008 +0.024 +0.065 +0.197 −0.031 +0.094
V1-GCaMP8 0.864 ± 0.013 0.914 ± 0.015 +0.050 −0.090 −0.124 −0.157 −0.260
Other-RCaMP 0.724 ± 0.013 0.712 ± 0.009 −0.012 +0.018 +0.110 −0.051 −0.180
SC-GCaMP6s 0.539 ± 0.018 0.677 ± 0.010 +0.138 +0.126 +0.187 +0.065 +0.202
Mean 0.660 ± 0.016 0.708 ± 0.011 +0.048

The results reveal two mechanisms. SC-GCaMP6s has the largest overall (+0.126), temporal (+0.187), and shape (+0.065) gap reductions and the largest correlation gain (+0.138), while V1-GCaMP6s benefits from better autocorrelation alignment (+0.197). Other-RCaMP exposes a diagnostic failure mode. Simulation improves its autocorrelation alignment (+0.110) but worsens shape (−0.051), especially kurtosis (−0.180), consistent with incomplete coverage of red-indicator nonlinear statistics. Its −0.012 correlation change remains within five-seed variation, indicating no reliable gain rather than harm. GCaMP8 improves despite a larger marginal SWD. Since Wasserstein distance is label agnostic, this is consistent with paired synthetic supervision regularizing the inverse mapping across broader dynamics. Thus, simulation helps through target-gap closure or dynamics diversity, but may cause negative transfer if mismatched synthetic or conditional dynamics are overweighted. Reweighting or rejecting simulated windows by target-relative statistics from unlabeled traces provides a direct mitigation. We will describe simulation as broadly beneficial with a diagnosable, non-uniform failure mode.

Authors · CommentOpenReview ↗

Dear Reviewer,

Thank you again for your detailed feedback. We clarified that the trace statistics are computed only from the current unlabeled input window, added the no-ID ablation, explicit loss definitions, data-scaling results, five-seed statistics, and further analysis of when simulation helps or does not help. We would appreciate knowing whether these additions resolve your main concerns.

Best regards, The authors

Authors · CommentOpenReview ↗

Dear Reviewer,

Thank you again for the considerable time and care you have devoted to evaluating our work. With the author-reviewer discussion period nearing its conclusion, we would be sincerely grateful if you could briefly let us know whether our additional clarifications and experiments have adequately addressed your main concerns regarding the zero-shot setting, statistical rigor, and simulation augmentation. We fully understand how demanding the reviewing period is, and any further guidance from you would be extremely valuable to us. We remain ready to clarify any unresolved point before the discussion closes.

Best regards, The authors

Reviewer tRGuOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
4/4
Significance
3/4
Originality
4/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The topic of this paper is the spike inference from calcium imaging data. The main gap/challenge in the field is that different calcium indicators can have different fluorescence dynamics, so a model trained on one indicator may not work well on another. SpikeSSL is proposed to address this problem. From my understanding, the model uses temporal layers inspired by calcium decay, and it also uses information such as the indicator identity, sampling rate, and simple statistics of the trace to condition its prediction.

The authors also generate simulated calcium traces to increase the diversity of training data. Experimentally, they compare SpikeSSL with OASIS, MLSpike, CASCADE, and ENS2ENS^2 on several public ground-truth datasets. The main empirical finding is that SpikeSSL performs better than these baselines in both the in-domain setting and the leave-one-indicator-out setting (LOIO), and that adding simulated data further improves generalization to held-out indicators.

Strengths and weaknesses

The motivation of the paper is good. Different calcium indicators are used across labs, brain regions, animal species, and experimental preparations, and their fluorescence dynamics can vary substantially. Therefore, a method that generalizes across indicators without requiring a separately optimized model for each new condition would be useful.

I think using state-space layers as a dynamics-informed backbone is a smart idea, and conditioning the model on indicator identity, sampling rate, and trace stats is also well motivated. The model’s performance on the proposed benchmark is strong, especially in the zero-shot LOIO setting.

Weakness:

The paper does not clearly establish what is gained over indicator-specific supervised models. The motivation suggests that a universal model can reduce the need to train separate models for each indicator. However, if enough ground-truth data are available for a particular indicator, users would presumably prefer the model that performs best on that indicator, even if it is not universal. Therefore, it is important to know whether SpikeSSL is mainly useful when target-indicator ground truth is unavailable, or whether it also remains competitive when indicator-specific training is possible.

The current experiments mostly compare SpikeSSL with other baselines in unified or zero-shot settings. I do not see a direct comparison against oracle models trained or fine-tuned specifically on the target indicator. If ground-truth data for indicator A are available, a specialized model may still outperform the universal model on A. Without this comparison, I think the paper supports the claim that SpikeSSL is strong for cross-indicator transfer, but not the stronger claim that it can replace indicator-specific optimization.

Relatedly, the paper should clarify the data regime in which the method is intended to be used. If no target-indicator data are available, the LOIO result is relevant. If a small amount of target data is available, it would be useful to see few-shot fine-tuning results. If abundant target data are available, the right comparison is against fully indicator-specific models. These are different practical settings, and the current paper does not clearly distinguish them.

The second point is that the current LOIO setting may mix several kinds of domain shift. The held-out groups appear to differ not only in indicator identity, but also in neuron type, brain region, brain stat, imaging condition and so on. It is hard to know from the current evidence whether the gain comes from better modeling of indicator kinetics specifically, or from more general robustness to dataset shift.

Finally, the “dynamics-informed” interpretation is plausible but not fully demonstrated. The IIR recurrence resembles decay, but I am not sure that the learned effective decay rates actually correlate with known indicator kinetics.

Questions

Can the authors compare SpikeSSL with indicator-specific oracle models? For example, for each target indicator, train or fine-tune a model using the target indicator’s training data and evaluate it on the corresponding test data. This would help clarify whether SpikeSSL can replace indicator-specific optimization, or whether its main value is in the setting where target-indicator ground truth is unavailable.

Can the authors clarify the intended data regime for this method? Is SpikeSSL mainly designed for the no-target-data setting, the few-target-data setting, or the abundant-target-data setting? If a small amount of target-indicator data is available, a few-shot fine-tuning experiment would be useful.

Can the authors further disentangle the LOIO result? The current held-out splits may mix indicator shift with brain region, brian state, and imagie condition. It would be helpful to know whether the performance gain remains when these factors are separated as much as possible. If this is not possible with the current dataset, I think this limitation should be stated more clearly.

Can the authors show whether the learned effective decay rates are related to known indicator kinetics? For example, do slow indicators lead to slower learned decay constants than fast indicators? This would help support the “dynamics-informed” interpretation. What happens if the indicator identity is intervened? This would help clarify whether the model is truly adapting to trace dynamics, or whether it mainly benefits from having the correct domain.

Limitations

The current main limitation is that the paper does not clearly show whether SpikeSSL is better than models trained specifically for one indicator. The LOIO setting may also mix indicator differences with other dataset differences.

Final justification

After considering the rebuttal and discussion, I will keep my score at 5. The indicator-specific and few-shot experiments address my main concern and clarify the practical value of SpikeSSL in the current limited-data setting. The mini-domain and learned-dynamics analyses also strengthen the paper. Some questions remain about the abundant-target-data setting, complete separation of domain shifts, and direct interpretation of the learned decay parameters. I view these as limitations rather than critical flaws.

Formatting concerns

No

4 comments
Authors · RebuttalOpenReview ↗
Rebuttal

Q1. Comparison to indicator-specific models

Thank you for this important question. We added a CASCADE-compatible per-indicator comparison across all 13 indicator families. Each row holds out one recording of that indicator and uses all remaining recordings of that indicator for specific-model training. The universal models are trained by pooling the training recordings from all 13 indicators. All four conditions use the same held-out recording in each row.

Pearson correlation (r)

Indicator CASCADE-spec SpikeSSL-spec CASCADE-univ SpikeSSL-univ
OGB1 0.663 0.760 0.583 0.728
Cal520 0.721 0.633 0.647 0.693
GCaMP5k 0.687 0.520 0.688 0.695
GCaMP6f 0.500 0.626 0.416 0.562
GCaMP6s 0.262 0.435 0.279 0.628
GCaMP7f 0.776 0.508 0.412 0.816
GCaMP8f 0.753 0.928 0.815 0.933
GCaMP8m 0.799 0.939 0.809 0.928
GCaMP8s 0.884 0.927 0.767 0.912
R-CaMP 0.309 0.555 0.644 0.691
jRCaMP1a 0.689 0.538 0.662 0.769
jGECO1a 0.736 0.613 0.672 0.790
XCaMPgf 0.797 0.537 0.446 0.833
Mean Corr. 0.660 0.655 0.603 0.768

The two specific models are nearly tied on average, but win on different indicators. SpikeSSL-specific is weaker than CASCADE-specific on some indicators, consistent with underfitting when the larger model receives only limited per-indicator data. On other indicators it is stronger, showing that it can learn the relevant dynamics when the data are sufficiently informative. This mixed result is expected in the low-data specific setting.

CASCADE-specific is stronger than CASCADE-universal overall, 0.660 versus 0.603, and on eight of 13 indicators, indicating a limitation when its architecture pools heterogeneous recordings. SpikeSSL instead benefits from pooling, which raises mean correlation from 0.655 to 0.768, gives the best result on eight of 13 indicators, and exceeds SpikeSSL-specific on nine. The parameter-matched main-paper comparisons show that this gain is not explained by model size. These results also clarify practical use. SpikeSSL-universal is used directly without labels, fine-tuned once at least five target neurons are labeled, and compared against indicator-specific training when labels are abundant. It leads our 13-family comparison overall, 0.768 versus 0.655.


Q2. Few-shot fine-tuning

Thank you for asking about the low-data regime. For each split, we first set aside 20 target-domain neurons as a support pool and evaluate on all remaining traces. For k>0k>0, we fine-tune from the k=0k=0 universal LOIO pretrained weights using kk labeled neurons from this pool.

Pearson correlation (r)

k V1-OGB V1-GCaMP6s V1-GCaMP8 Other-RCaMP SC-GCaMP6s Mean Corr.
0 0.622 0.466 0.843 0.696 0.493 0.624
1 0.488 0.324 0.766 0.649 0.606 0.567
3 0.509 0.389 0.888 0.683 0.545 0.603
5 0.521 0.412 0.895 0.718 0.648 0.639
10 0.621 0.459 0.862 0.721 0.714 0.675
20 0.707 0.548 0.892 0.725 0.722 0.719

At k=1k=1, mean rr is 0.567, below the zero-shot value of 0.624. Target-domain recordings are themselves diverse in morphology and kinetics, so fitting only a few support neurons cannot adapt to all remaining target-domain traces. Performance improves as kk grows. It first exceeds zero-shot at k=5k=5 with mean r=0.639r=0.639 and reaches 0.719 at k=20k=20.


Q3. Disentangle LOIO

Thank you for pointing out that LOIO mixes indicator identity with other dataset shifts. We constructed mini-domain splits that hold one indicator fixed and vary a single additional factor. The other shift types are excluded from each experiment’s data pool.

Indicator Shift varied Train → Eval
GCaMP6f Species Mouse V1 (DS09–11, X-DS09/10) → Zebrafish (DS06–08)
GCaMP6f Cell type Mouse V1 excitatory + PV/SST/VIP interneurons → DS33 interneuron panel
GCaMP6s Tissue Brain cortex inhibitory V1 (DS41) → Spinal cord excitatory (DS40)

Within each row, brain region, species, and cell class are held as consistent as the underlying public recordings allow for that shift. For example, the species split fixes GCaMP6f and imaging conditions but changes species and anatomical target. The cell-type split fixes mouse V1 and GCaMP6f but changes the labeled cell population. The tissue split fixes GCaMP6s kinetics but changes organ. SpikeSSL attains the highest correlation on all three splits and remains substantially better than every preceding method on the primary metric.

Mini-domain results. Each table reports Pearson correlation, normalized error, and signed bias. Higher correlation and lower error or absolute bias are better.

Species shift, GCaMP6f

Method Corr. Error Bias
OASIS 0.191 0.982 −0.945
MLSpike 0.085 1.130 −0.706
CASCADE 0.540 1.304 0.539
ENS2 0.476 1.266 0.229
SpikeSSL 0.636 0.952 −0.442

Cell-type shift, GCaMP6f

Method Corr. Error Bias
OASIS 0.266 0.985 −0.974
MLSpike 0.098 1.015 −0.897
CASCADE 0.574 0.977 −0.144
ENS2 0.584 0.898 −0.680
SpikeSSL 0.673 0.931 −0.798

Tissue shift, GCaMP6s

Method Corr. Error Bias
OASIS 0.365 0.975 −0.964
MLSpike 0.307 1.005 −0.919
CASCADE 0.226 1.083 −0.442
ENS2 0.278 1.092 −0.391
SpikeSSL 0.542 0.911 −0.592

Q4. Learnable decay vs. kinetics and indicator ID intervention

Thank you for these two mechanistic questions.

Learnable decay vs. indicator kinetics. We report four complementary quantities. Ref. τ is the catalogue decay time. Measured τ is fitted from isolated real fluorescence responses at 30 Hz using a joint baseline and exponential fit, not model weights. ‖W_α‖ and ACF τ are extracted from a separate SpikeSSL model trained for each indicator family.

The conditioned IIR rate α\alpha is a bank of channel-wise values, and the matrix WαW_\alpha maps the condition vector to its shift. We use the Frobenius norm ‖W_α‖ to measure how strongly conditioning moves the learned α\alpha bank. Its magnitude is not a time constant and has no fixed proportional relation to τ. The norms differ markedly across indicators, showing indicator-dependent effects on the α\alpha bank. Conversely, the three GCaMP8 variants have similar norms (5.35, 6.11, and 5.94), consistent with their similar fast kinetics. These differences and similarities show that the model learns indicator-specific dynamics. ACF τ is fitted from IIR-output autocorrelation. It is positively correlated with measured τ (Spearman ρ = 0.886, p = 5.6×10⁻⁵), although not in a strict one-to-one ratio. Together, the weight and output readouts show that SpikeSSL is informed by indicator dynamics rather than using a fixed shared kernel.

Indicator Ref. τ (ms) ‖W_α‖ Measured τ (data, ms) ACF τ (ms)
GCaMP8f 60 5.35 175 145
GCaMP8s 70 5.94 314 165
GCaMP8m 80 6.11 136 132
GCaMP7f 100 0.60 223 154
XCaMPgf 120 0.39 179 152
GCaMP6f 180 5.44 212 140
Cal520 200 0.41 878 178
GCaMP5k 250 0.50 547 163
R-CaMP 280 0.25 535 171
jRCaMP1a 280 0.74 756 163
jGECO1a 300 0.81 572 162
GCaMP6s 600 4.64 912 192
OGB1 750 2.59 854 191

Indicator ID intervention (LOIO and in-domain, Pearson r). The LOIO baseline uses the reserved ID=0. Removing the ID branch only reduces LOIO correlation from 0.654 to 0.647, so zero-shot transfer does not strongly rely on ID. In this setting, the model can still use the sampling rate, window statistics, and trace. In-domain training receives the correct ID. Shuffling it at inference then reduces correlation from 0.741 to 0.578, showing that an inconsistent ID substantially disrupts the model’s judgment. Removing the ID branch in-domain gives 0.703, showing that ID primarily captures observed domain-specific regularities.

Setting V1-OGB V1-GCaMP6s V1-GCaMP8 Other-RCaMP SC-GCaMP6s Mean Corr.
LOIO baseline (ID=0) 0.650 0.509 0.853 0.717 0.542 0.654
LOIO without ID branch 0.646 0.500 0.849 0.708 0.532 0.647
In-domain full model 0.743 0.579 0.915 0.731 0.736 0.741
In-domain shuffled ID 0.587 0.457 0.791 0.619 0.437 0.578
In-domain without ID branch 0.700 0.546 0.881 0.694 0.694 0.703

Authors · CommentOpenReview ↗

Dear Reviewer,

Thank you again for your constructive review. Following your suggestions, we added indicator-specific comparisons across 13 indicator families, few-shot adaptation results, controlled mini-domain experiments, and analyses relating the learned dynamics to indicator kinetics. We would be grateful to know whether these additions address your main concerns, and we are happy to clarify any remaining questions.

Best regards, The authors

Reviewer tRGu · CommentOpenReview ↗

Thank you for the detailed rebuttal and the additional experiments. The indicator-specific comparison directly addresses my main concern. From my understanding, under the current data setting, the universal SpikeSSL performs better on average than both SpikeSSL-specific and CASCADE-specific models. The few-shot results also make the practical use case clearer. When very little target data are available, zero-shot inference seems to work better, while fine-tuning becomes helpful when more labeled neurons are available.

For my second concern, I think the mini-domain experiments are helpful. They show that SpikeSSL also performs well under species, cell-type, and tissue shifts. However, some of these splits still change more than one factor at the same time. Therefore, I think these results mainly support the general robustness of the model to dataset shift, rather than fully separating the effect of indicator kinetics.

The additional analysis of the learned dynamics is also helpful. The correlation between the IIR-output timescale and the measured indicator kinetics, together with the indicator-ID intervention, gives stronger support to the dynamics-informed interpretation. However, the relationship between the learned decay parameters and the actual biophysical time constants is still somewhat indirect.

Overall, the rebuttal addresses most of my concerns and increases my confidence in the paper. I will keep my rating at 5. I think this is a strong paper for this specific problem. The remaining questions about the abundant-target-data setting, mixed domain shifts, and the interpretation of the learned dynamics are not serious enough to change my accept decision, but they also make it difficult for me to increase the rating to 6. I do not think more rebuttal experiments are necessary, but I encourage the authors to clarify these points in the revised paper.

Authors · CommentOpenReview ↗

Dear Reviewer,

Thank you very much for your thoughtful follow-up and positive assessment. We greatly appreciate your careful consideration of the additional experiments and clarifications, and we will incorporate the remaining points regarding the abundant-data setting, mixed domain shifts, and interpretation of the learned dynamics into the revised manuscript.

Best regards,
The authors

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…