potentialpaper

Learning Interpretable Switching Dynamics in Shared Neural-Behavioral Latent Space

Yongxu Zhang, Josue Ortega Caro, Rachel L. Oren, Michael James Higley, Jessica Cardin, Anne Churchland, Shreya Saxena

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. Modern recording technologies enable simultaneous measurement of high-dimensional neural activity and rich behavioral variables, creating both an opportunity and a modeling challenge: identifying the shared latent structure that mediates the brain-behavior relationship and the underlying dynamics through which it evolves across behavioral states. Existing approaches focus on different parts of this challenge: shared representation learning methods identify neural-behavioral subspaces but typically do not model dynamical structure, while dynamical models capture temporal variation and discrete state transitions in neural activity, but do not explicitly disentangle shared neural-behavioral structure from modality-specific variability. We introduce Switching Shared Latent Dynamics (SSLD), a unified framework that learns a latent representation shared between neural activity and behavior and endows this shared space with nonlinear switching recurrent dynamics to reflect the hypothesis that behaviorally relevant neural representations exhibit structured dynamical changes across behavioral states. Complementary private latent variables capture modality-specific variability, providing a window into neural activity that does not directly interact with behavior. We evaluate SSLD on a simulated dataset and four diverse experimental datasets spanning species, brain regions, and recording modalities: monkey motor and premotor cortex during reaching, somatosensory cortex during a bump task, widefield calcium imaging across mouse dorsal cortex during (a) self-initiated decision-making and (b) spontaneous movements. Across all four datasets, SSLD accurately reconstructs neural and behavioral signals, recovers discrete states in the dynamics that align with experimentally defined behavioral epochs, and isolates behaviorally-relevant neural information in the shared latent while preserving private neural variability. Ablations confirm that shared representation learning, behavioral supervision, and switching dynamics each contribute to performance. SSLD offers an interpretable approach to modeling shared neural-behavioral dynamics that complements ongoing efforts toward foundation models for neuroscience.

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:46 UTC.

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

The authors provide a SSLD, a method for inferring switching dynamics from neural-behavioral data using an autoencoding approach. The method is evaluated and compared qualitatively against other approaches on a range of datasets, and qualitatively benchmarked against an MLP, k-means, and HMM model.

Given the richness of (in particular generative) models for inferring switching dynamics, reviewers found it important to do a thorough comparison against SOTA methods published over the past years. While the behavioral-neural setting is important and a novelty of the algorithm, there are ways for building "naiive" neural-behavioral baselines from existing models (by e.g. concatenating the input modalities, etc.). Another concern from reviewers are the decoding score, where evaluation is quite narrow.

After the initial submission of the paper, the single most convincing addition would be the addition of additional comparisons. The paper would get increasingly impressive if improvements over more existing switching linear dynamics algorithms could be demonstrated.

During the rebuttal and discussion, the authors made an effort to provide such comparisons and propose unsupervised extensions of their algorithm. The changes to the camera-ready are summarized below this meta-review; beyond the adaptations to the main paper, I find it important that the authors also include all comparisons (with a rigorous explanation of the experimental setup and the code to reproduce) of the additional comparisons that were conducted.

As one reviewer notes, one strength of the paper is the presentation of the problem itself, and the set of benchmarks used for evaluation in this paper.

Final justification

The reviewer comments and the main concerns outlined in the initial meta-review were sufficiently addressed, I recommend acceptance of the paper.

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

The authors provide a SSLD, a method for inferring switching dynamics from neural-behavioral data using an autoencoding approach. The method is evaluated and compared qualitatively against other approaches on a range of datasets, and qualitatively benchmarked against an MLP, k-means, and HMM model.

Given the richness of (in particular generative) models for inferring switching dynamics, reviewers found it important to do a thorough comparison against SOTA methods published over the past years. While the behavioral-neural setting is important and a novelty of the algorithm, there are ways for building "naiive" neural-behavioral baselines from existing models (by e.g. concatenating the input modalities, etc.). Another concern from reviewers are the decoding score, where evaluation is quite narrow.

After the initial submission of the paper, the single most convincing addition would be the addition of additional comparisons. The paper would get increasingly impressive if improvements over more existing switching linear dynamics algorithms could be demonstrated.

During the rebuttal and discussion, the authors made an effort to provide such comparisons and propose unsupervised extensions of their algorithm. The changes to the camera-ready are summarized below this meta-review; beyond the adaptations to the main paper, I find it important that the authors also include all comparisons (with a rigorous explanation of the experimental setup and the code to reproduce) of the additional comparisons that were conducted.

As one reviewer notes, one strength of the paper is the presentation of the problem itself, and the set of benchmarks used for evaluation in this paper.

Final justification

The reviewer comments and the main concerns outlined in the initial meta-review were sufficiently addressed, I recommend acceptance of the paper.

3 comments
Authors · CommentOpenReview ↗

We thank the AC very much for the meta-review and for highlighting where additional contributions would strengthen the paper, especially additional comparisons against other methods. Below we summarize the substantial additional experiments we have already run during the rebuttal period in response to the reviewers.

In response to Reviewer 5NAs, Reviewer NitD, and Reviewer aujA, we have added the following across the reaching and bump datasets:

  1. Additional baselines, i.e., SLDS, rSLDS, and SRNN (all switching models), as well as an LSTM classifier. These are in addition to HMM and K-Means, which were already included in our original submission.

  2. We implemented a fully unsupervised version of SSLD (no behavioral-state prior), which outperforms all four unsupervised baselines (SLDS, rSLDS, HMM, K-Means) on state alignment accuracy. This is a particularly valuable outcome of reviewers’ suggestions.

  3. An LSTM decoder baseline for behavior decoding directly from neural activity, broadening the decoding evaluation beyond linear decoding, per AC, Reviewer NitD and Reviewer aujA's concern that the decoding score was narrow.

  4. New option of disentanglement object with an orthogonality constraint, removing the requirement that shared and private latents match in dimensionality, with results compared across dimensionalities.

  5. An ablation replacing the Transformer encoders with simple two-layer MLP encoders, showing comparable performance on some datasets, thus identifying the MLP as a lighter-weight option for smaller datasets.

  6. Full architectural specification of every model component (transformer encoder, shared/private projections, decoder, SRNN generative model), plus quantitative neural and behavioral reconstruction error (MSE) across all four datasets.

  7. Robustness checks: performance across varying amounts of training data, stability of the discrete-state count K across sessions/trials, and cross-validation details.

Together, these additions substantially broaden our comparison against existing switching dynamical systems (SRNN, SLDS, rSLDS) and existing decoding approaches (LSTM), and we find that SSLD outperforms or matches all of them on both state recovery and behavior decoding.

Area Chair yzM5 · CommentOpenReview ↗

Dear authors,

thank you for the summary. On top of the various new result tables you shared with individual reviewers, it would be very useful for me if you could share the final variant and layout of the main result Table 1 ("State Alignment Accuracy across Datasets") with the added algorithms and variants, as a summary to this comment:

The single most convincing addition would be the addition of additional comparisons. The paper would get increasingly impressive if improvements over more existing switching linear dynamics algorithms could be demonstrated.

In can you plan a re-organization of paper tables and figures in the main paper, a short summary of that would also be helpful.

Authors · CommentOpenReview ↗

Dear Area Chair,

We thank you for your comments. Here, we summarize the main result Table 1 ("State Alignment Accuracy across Datasets") with the added algorithms and variants you suggested.

The single most convincing addition would be the addition of additional comparisons. The paper would get increasingly impressive if improvements over more existing switching linear dynamics algorithms could be demonstrated.

We compared SSLD against supervised baselines suggested by our reviewers, and unsupervised SSLD against common unsupervised baselines. Across all four datasets, both the supervised and unsupervised versions of SSLD outperform or perform comparably to the baselines. In addition, as suggested by reviewer NitD, we implemented several alternative disentanglement objective functions. We will include all of these results in the paper.

Comparison between SSLD and supervised baselines

SSLD (Supervised) SRNN (supervised) LSTM Decoder (supervised)
Reaching Dataset State Accuracy 0.96±0.04 0.95±0.04 0.95±0.00
Bump Dataset State Accuracy 0.99±0.00 0.99±0.01 0.96±0.00
Decision-making Dataset State Accuracy 0.95±0.04 0.94±0.03 0.85±0.01
Spontaneous Dataset State Accuracy 0.51±0.23 0.50±0.02 0.48±0.05

Comparison between unsupervised SSLD and unsupervised baselines

Unsupervised SSLD SLDS rSLDS HMM K-Means SRNN (unsupervised)
Reaching Dataset State Accuracy 0.81±0.06 0.22±0.10 0.21±0.14 0.23±0.11 0.36±0.06 0.74±0.10
Bump Dataset State Accuracy 0.80±0.27 0.79±0.10 0.62±0.06 0.57±0.20 0.74±0.16 0.83±0.16
Decision-making Dataset State Accuracy 0.56±0.15 0.35±0.01 0.30±0.03 0.27±0.11 0.21±0.07 0.30±0.18
Spontaneous Dataset State Accuracy 0.49±0.05 0.42±0.10 0.37±0.06 0.31±0.21 0.20±0.18 0.21±0.10

Comparison between SSLD with different disentanglement objectives

SSLD (CS) SSLD (Orthogonal with same dimension of 8) SSLD (Orthogonal with lower behavioral dimension of 4) SSLD (Total Correlation with same dimension of 8) SSLD (Total Correlation with lower behavioral dimension of 4)
Reaching Dataset State Accuracy 0.96±0.04 0.95±0.04 0.95±0.06 0.96±0.02 0.96±0.03
Bump Dataset State Accuracy 0.99±0.00 0.99±0.00 0.99±0.00 0.99±0.00 0.99±0.00

re-organization of paper tables and figures in the main paper

As we're unable to post figures in the rebuttal, we summarize our plan here:

Tables: We plan to include all three comparisons above in the main text, as suggested by you and all reviewers. We will also include model parameter tables in the supplementary, as suggested by reviewers 5NAs and NitD, and add results for SSLD with a Transformer encoder and an MLP encoder in the supplementary, as suggested by reviewer NitD. We will include reconstruction MSE for neural activity and behavior in the supplementary, as suggested by reviewer aujA, along with POYO results as a baseline for behavior decoding, also suggested by reviewer aujA.

Figures: We will replot Figures 2C, 3C, 4E, and 5E to report results from the LSTM decoder, as suggested by reviewers NitD and aujA, and redraw the icons in Figures 2 and 3 for clarity, as suggested by reviewer aujA.

Reviewer aujAOpenReview ↗
Rating
5/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

In this work, the authors present SSLD, a model which learns behaviorally-relevant latent representations of neural data by training three sets of latents, neural private, shared, and behavior private. The shared latents are further modelled using a Switching RNN which uses a markov state to switch between various dynamics (modelled with rnns) at each time point. One one synthetic and 4 real datasets, the authors demonstrates SSLDs ability to accurately reconstruct neural and behavioral data, as well ash demonstrate how the switching dynamical states align with behavior conditions. In datasets with continuous behavior, they also show how flow fields in the shared space differ by state. The authors also test a number of ablations to validate design choices made in the model.

Strengths and weaknesses

Strengths

  • The authors test their model on a variety of datasets
  • The motivation for such a decoder is well-established
  • Despite small size, the figures are comprehensive
  • The model itself is described in extensive mathematical detail
  • The inclusion of switching dynamics makes for some fascinating visualizations of flow fields at different behavioral states.

Weaknesses

  • The figures are very small and hard to read. Consider condensing some of the Methods section (and moving to supplement) to make room.
  • While the paper includes ablation tests and state alignment comparisons, it lacks any comparison to existing comparable decoding approaches. While maximizing behavioral decoding may not be the sole focus, existing decoding paradigms would likely outperform SSLD (e.g. decoding with an LSTM on MC Maze, for example). The related works sections mentions many potential baselines to compare to.
  • The conclusion section needs expanding, I would be interested in more thoughts on what the anticipated scientific outcomes or use cases would be for an approach like this. Even talking more about what's going on in those flow fields.

Overall, I think this is a well written publication with robust analyses, but it's significance could be improved by putting it in context with existing work.

Questions

Major Questions:

  • Can you make the figures larger/easier to parse?
  • Can you include comparisons to existing baselines?
  • Can you include some more quantification of reconstruction accuracies (e.g. Line 205 simply states 'SSLD accurately reconstructed both')

Minor Questions/Comments (by line where relevant):

  • 187: Did you look at any other gradient-based approaches (e.g. Adam)?
  • 2A,2B: What does 'Low Medium High' signify here?
  • 2B,3B: What is the purpose of include the 'shared vs. private latent' diagram here?
  • 225: Phrasing here is confusing 'highly correlated and rarely related' are both of these talking about the relationship between private neural and condition similarity?
  • 244: I'm a little confused about this ablation, did you still have RNNs for each state but decide which one to use via kmeans determined clusters at each timepoint?
  • Were the RNNs re-initialized after switching to different states?
  • Formatting could be improved, figures and tables are a bit all over the place.
Limitations

yes

Final justification

The authors have fully addressed my concerns, so I have adjusted my significance score to good, and overall score to accept.

Formatting concerns

Citations may be formatted incorrectly?

7 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank you very much for your review and for giving us a positive score. Your comments pushed us to strengthen several aspects of this work, and we address each of your questions in detail below.

Weakness 1 and major question1: The figures are very small and hard to read. Consider condensing some of the Methods section (and moving to supplement) to make room.

We thank you for pointing this out and for your advice. We will revise the figure and table accordingly. We will also move some of the Methods and Results to supplementary material.

Weakness 2 and major question 2: Comparison to baselines.

We thank you for raising this important concern. We compared SSLD against several switching dynamical system baselines, as well as an unsupervised version of SSLD, on the reaching and bump datasets. For decoding behavioral state directly from neural activity, we additionally tested an LSTM baseline. We report these results in the table below, and found that SSLD still outperforms, or performs comparably to, these baselines.

Datasets SSLD Unsupervised SSLD SLDS rSLDS HMM K-Means SRNN (supervised) LSTM Decoder (supervised)
Reaching Dataset State Accuracy 0.96±0.04 0.81±0.06 0.22±0.10 0.21±0.14 0.23±0.11 0.36±0.06 0.95±0.04 0.95±0.00
Reaching Dataset Behavior Decoding from Shared Latent 0.51±0.12 0.36±0.15 N/A N/A N/A N/A N/A N/A
Bump Dataset State Accuracy 0.99±0.00 0.80±0.27 0.79±0.10 0.62±0.06 0.57±0.20 0.74±0.16 0.99±0.01 0.96±0.00
Bump Dataset Behavior Decoding from Shared Latent 0.80±0.09 0.80±0.07 N/A N/A N/A N/A N/A N/A

Weakness 3: expand conclusion

We thank you very much for pointing this out. We have revised our conclusion as below.

“Here, we introduce SSLD, a model that combines shared neural-behavioral representation learning with switching dynamics. By placing switching in the shared latent space, SSLD isolates behaviorally relevant neural dynamics and captures structured state transitions. Across datasets, it performs accurate reconstruction, aligns inferred states with behavior, and yields interpretable latent dynamics.

SSLD allows us to examine the common neural-behavioral dynamics through established dynamical systems techniques such as flow fields and line attractor scores. Across many tasks encompassing motor control and decision-making, the recovered flow fields have consistent signatures: the line attractor score rises after target or stimulus onset, exceeds 1 during movement or accumulation, then decays toward a baseline. In reaching and bump-task data, this mirrors the shift from flexible preparatory dynamics to a stable execution attractor; in decision-making, it mirrors a line attractor supporting evidence accumulation. In spontaneous movement, flow fields stay comparatively stable and state alignment is weaker, reflecting the more continuous structure of naturalistic behavior. These results suggest that jointly modeling shared structure and switching dynamics is key for linking neural activity to behavior. This approach can be used to ask whether the same computation recruits similar dynamics across settings, for example, testing whether the preparatory-to-execution shift we found in reaching and the bump task also appears in other motor or sensory areas, or whether the accumulation-like dynamics we saw in decision-making generalize to other evidence-based tasks. In naturalistic settings without predefined labels, such as spontaneous movement, SSLD's inferred switches could identify candidate internal states for experimentalists to test independently.

Several limitations remain. The current framework treats neural-behavioral coupling as internally driven, without explicitly modeling external inputs or interventions; future work will incorporate input-driven or causal components to account for external perturbations. Another limitation is that SSLD is currently formulated for two modalities, neural activity and behavior; extending the shared-private latent structure to more than two modalities is a natural next step but raises questions of how to scale the shared-latent decomposition and switching dynamics as the number of modalities grows. No negative societal impact is noted.”

Major question 3: quantification of reconstruction accuracies

We thank you for asking this question. We now include quantitative results for both neural and behavioral reconstruction, which we present here for your review.

Mean Squared Error Reaching Bump Decision-making Spontaneous
Neural Reconstruction 0.003±0.002 0.0022±0.0003 9.54e-5±9.26e-5 0.0003±0.001
Behavioral Reconstruction 0.002±0.003 0.0002±0.0001 0.0001±0.0002 9.58e-5±2.67e-5

Minor question 1: Did you look at any other gradient-based approaches (e.g. Adam)

We apologize for this error. We originally used SGD, but found that Adam gave slightly better results, so we switched optimizers; we will update this in the main text. We thank you for catching this, and we will also release our code to ensure reproducibility.

Minor question 2: What does 'Low Medium High' signify here?

These refer to high, medium, and low amplitude of neural activity. In our revised figures, we have replaced this qualitative labeling with specific numerical values to avoid confusion.

Minor question 3: What is the purpose of include the 'shared vs. private latent' diagram here?

This section of the figure is intended to focus on the analysis of the shared and private latents. We will revise the figure to make this clearer.

Minor question 4: Phrasing here is confusing 'highly correlated and rarely related' are both of these talking about the relationship between private neural and condition similarity?

We meant that the private latents are highly correlated with each other, but rarely correlated with condition similarity. We have revised the sentence to read: "The private neural latent is highly self-consistent but shows little relationship to condition similarity."

Minor question 5: I'm a little confused about this ablation, did you still have RNNs for each state but decide which one to use via kmeans determined clusters at each timepoint?

To clarify, we first trained SSLD without switching dynamical systems, then fit k-means on the shared latent to test whether the latent could still be state-dependent in the absence of switching dynamics. This failed, demonstrating the importance of switching dynamical systems for recovering state-dependent dynamics.

Minor question 6: Were the RNNs re-initialized after switching to different states?

Yes, each RNN was initialized randomly.

Minor question 7: Formatting could be improved, figures and tables are a bit all over the place.

We thank you for pointing this out, and will revise the figure and table accordingly.

Reviewer aujA · CommentOpenReview ↗

Response to Rebuttal

Thank you for your response!

W1 and Q1: Thank you for addressing this!

W2 and Q2: Thank you for adding these comparisons. In rereading my review, I seem to have assumed that the comparison methods (SLDS, etc.) were also capable of providing behavior decoding - which seems like it may not be the case. Because of this, you are right to compare the methods in their ability to accurately infer the behavior states rather than the actual behavior. Asking for behavior decoding added on top of those methods may be a bit out of scope for this study (although nice if possible).

However, when I mentioned the LSTM, I should have specified that I meant for it to be a baseline for the continuous behavior reconstruction/prediction, although it is interesting to see that it was able to accurately predict behavior states as well!! With respect to this intention (comparing full behavior reconstruction), is it possible to compare to relevant models like POYO? The difference in the application of a technique like SSLD versus POYO and more traditional decoding approaches is clear, but having a decoding baseline to compare to may lend itself to more 'trust' in the relevance of the dynamics produced by the model.

Also, is there a reason for not repeating these comparisons on the other two datasets?

Finally, given that the SRNN achieves comparable performance to SSLD, some clarification is needed on what particular advantages SSLD provides over SRNN - in the related work you mentioned that the previous frameworks 'infer switches directly from neural activity without explicitly tying them to behaviorally shared later structure.' If this explicitly tying does not provide significant advantages to inferring behavior states, why else is it relevant to include? I apologize if I am misunderstanding things here, I could just be confused.

W3: Thank you!

Q3: Thank you for including this!

Minor Questions: All have been addressed.

Overall the authors have addressed my concerns well. However, I do have a couple of follow-up questions, so will keep my overall score the same for the time being.

Authors · CommentOpenReview ↗

We thank you for acknowledging that we addressed your concerns. Regarding your new questions, we have some follow-up results:

Q1. Baseline for continuous behavior prediction: We used an LSTM to decode behavior directly from neural activity, and report the comparison below. We find that decoding from the shared latent of SSLD outperforms, or performs comparably to, decoding directly from neural activity.

LSTM Decoder Shared Latent Neural Activity
Reaching Dataset 0.86±0.04 0.85±0.10
Bump Dataset 0.89±0.01 0.64±0.01

Additionally, we thank the reviewer for pointing out POYO, which is an important baseline for behavior prediction. We note that POYO is not able to infer switches in neural dynamics; however, we are now incorporating it as a baseline for behavior decoding and will update the results shortly.

Q2: We apologize for not including the other two datasets. Due to the limited rebuttal window, we were unable to complete experiments on all four datasets in time. We also note that the two datasets included here are standard benchmarks, which we believe offer a fairer basis for comparing models. We will complete the remaining analyses for other datasets and post the results as soon as they are available.

Q3: We thank you for your question. We would like to first clarify that SRNN is unsupervised in its original paper; we adapted it to a supervised version for this comparison. The resulting state-inference accuracies of the original SRNN are 0.74±0.10 for Reaching and 0.83+-0.16 for Bump, both lower than SSLD.

More importantly, our goal is not merely to infer neural states, which, as you note, supervised SRNN can already do. We aim to obtain a behaviorally relevant latent from which switches can also be derived. Identifying a shared neural and behavioral space lets us disentangle the neural latent directly linked to behavior from modality-specific variability, and reveal how this behaviorally relevant structure changes across behavioral states. SSLD is therefore a more interpretable model of neural-behavioral interaction than switching dynamical systems applied to neural activity alone. Additionally, our ablation study shows that the latent learned by SRNN alone carries substantially less behavioral information than the latent learned by SSLD.

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

The paper proposes Switching Shared Latent Dynamics (SSLD), a dynamical systems model that learns switching nonlinear recurrent dynamics in a shared bahavioral-neural latent space. The model also infers private latent variables (without explicit dynamics) to capture neural activity that does not directly correspond to behavior, or vice versa. The shared latent dynamics are parameterized as a switching RNN. Latent variables are inferred via linear projections of modality-specific encodings produced by transformers; private latents are extracted deterministically, which shared latents are inferred along with switching dynamics states via variational inference. During training, inferred switching states are encouraged to align with behavioral states via a cross-entropy loss. During test time, only continuous behavioral and neural data are used to infer switching state sequence. Observations are reconstructed by decoder networks from appropriate concatenated latent vectors. To promote disentanglement between inferred shared and private variables, a Cauchy-Schwarz divergence loss is used, similar to the previous SharedAE method, which was concerned only with separating shared and private latent variables.

On simulated data, SSLD reconstructs the observations and recovers the ground-truth switching states. On monkey M1 and dorsal premotor recordings during reaching, the model accurately reconstructed activity, behavior was decodable from shared and private behavioral latents, but not private neural latents. Similarity of shared latent trajectories corresponded strongly to the similarities between reach trajectories. Inferred switching states aligned nearly perfectly with behavioral epochs. The method performed similarly well on a recording of monkey somatosensory cortex during a bump task, and widefield calcium imaging data from mouse dorsal cortex during decision making and spontaneous movement. Across each dataset, ablations of the nonlinear encoders, behavioral observations, and switching recurrent dynamics confirmed the necessity of each component for identifying dynamical regimes in shared behavioral-neural space. The supplement Appendix shows model performance at varying shared latent dimensionalities.

Strengths and weaknesses

The model is well-motivated and potentially impactful, as it unifies two largely separate lines of working in neuroscience modeling: shared latent variable modeling of neural activity and behavior, and switching dynamical systems models of neural activity.

While much of the validation is quite thorough, linear decoding scores can underestimate the true level of contamination in the private neural latents, especially since the model uses nonlinear encoders/decoders and the true relationship between neural activity and behavior is not necessarily linear. This may explain the moderately high correlation between similarities computed from private neural latents and task conditions in Figs 2 and 3, despite behavioral decoding performance being near zero. If this does correspond to contamination, it would weaken interpretations of the dynamics found by the model, since they would describe imperfectly separate information. Modifying the decoding score/similarity correlation calculations to account for nonlinear relationships may also increase the reported alignment between the similarities from shared latents and task conditions.

My primary concern is the choice of disentanglement objective. If it is unchanged from previous work, the Cauchy-Schwarz divergence based loss requires that the latent spaces have the same dimensionality. This seems like a strong, likely inappropriate assumption, as some brain areas may have many dimensions of activity that are not directly related to a low-D behavioral observation like position during reaching. Conversely, an area's activity could encode only one or a few aspects of rich high-D behavioral observations. Additionally, given that the latent variables in different spaces map to observations in different, highly nonlinear ways (i.e. shared variable 1 affect observations differently than private behavioral variable 1), it is not clear that reducing the similarity between their probability distributions strongly encourages them to correspond to statistically independent factors of variation. This may explain the moderately high similarity correlations between task conditions and private neural latents mentioned above.

A more minor concern is that the behavior-based prior could obscure finer-grained transitions between regimes, though this is noted by the authors as a limitation, and I believe that applying the model could yield considerable insight into datasets despite this limitation.

I otherwise found the variety of real datasets impressive, and the experiments with ablation and varying dimensionality are thorough and validate the corresponding choices made in the paper.

Questions

Major

The major score-driving concerns for me are related to limitations of the disentanglement objective, which could undermine interpretations drawn from the fit model.

  1. Does the CS-divergence based disentanglement used here also require each latent space to have the same dimensionality, as in the SharedAE paper? I am concerned that this is an overly restrictive requirement that could result in poor fit to some datasets, though it could in theory be addressed with regularization (e.g. group sparsity on some latents to encourage them to be completely unutilized, if the model is given more dimensions than needed for some latent spaces).

  2. Could the authors use a more expressive/nonlinear method to assess the amount of contamination in the neural latents? Given the apparent limitations in the disentanglement objective and the moderately high similarity correlations, the linear decoding scores reported in the paper may underestimate the true amount of behavioral information in each latent space. Correlations from something like cross-validated DeepCCA between behavioral observations and latent spaces would be an appropriate metric. Showing that a nonlinear method also finds low contamination (perhaps even with misspecified dimensionality) would go a long way to reduce my concerns about the disentanglement.

A more holistic solution may be to adopt a different disentanglement objective. Though I understand that the authors may not have enough time to swap out the disentanglement method during the rebuttal period, they may want to explore disentangling objectives that do not require spaces to have the same dimensionality, or those that more strongly encourage disentangling (e.g. adversarial approaches [1-2], crossed encoders/reconstruction objectives [1, 3-4], or a multi-view total-correlation based disentangling [4])

[1] Koukuntla, S. et al. Unsupervised discovery of the shared and private geometry in multi-view data. Preprint at https://doi.org/10.48550/arXiv.2408.12091 (2025).

[2] Lyu, Q., Fu, X., Wang, W. & Lu, S. Understanding Latent Correlation-Based Multiview Learning and Self-Supervision: An Identifiability Perspective. in (2021).

[3] Karakasis, P. A. & Sidiropoulos, N. D. Revisiting Deep Generalized Canonical Correlation Analysis. IEEE Transactions on Signal Processing 71, 4392–4406 (2023).

[4] Lee, M. & Pavlovic, V. Private-Shared Disentangled Multimodal VAE for Learning of Hybrid Latent Representations. Preprint at https://doi.org/10.48550/arXiv.2012.13024 (2020).

Minor

  1. How were the dynamics of the simulated data generated? Appendix A mentions that private latents were generated from a Gaussian distribution and the switching latent switched a single time halfway through the timecourse, but there is no mention of what the shared dynamics were.

  2. Could the authors provide more information about the specific transformer architectures used for each dataset, and any training hyperparameters (e.g. learning rate) that would be required to replicate the results in the paper? I did not find these in the appendix?

  3. Did the authors perform an ablation of the transformers to see if they are necessary as opposed to e.g. MLPs? If this doesn't reduce the model's performance (i.e. reconstruction, dynamics fitting, disentanglement), replacing the transformers with less data-hungry architectures would broaden the use cases of the method.

Limitations

yes

Final justification

The authors were receptive to flaws I raised regarding the disentangling objective and showed that an orthogonality and total correlation results yield similar disentangling quality while not requiring private and shared latent spaces to be equal dimensionality. They also used an LSTM to better estimate the amount of behavioral information in each latent space. The total-correlation disentangling resulted in lower decodability of behavioral information from the private neural latent space, indicating better disentangling than the original Cauchy-Schwarz divergence objective.

The authors also addressed minor issues including performing an ablation study of the transformer -- showing that an MLP performs similarly on modest dataset sizes, and providing more details about the architectures/simulations in the paper. The authors have also acknowledged that none of objectives they tested have strong disentangling guarantees (as opposed to e.g. adversarial approaches), and will include a discussion paragraph to discuss this and future directions for stronger disentangling.

All my concerns have been addressed fairly thoroughly, so I have raised my score.

Formatting concerns

None

7 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank you very much for your review. Your feedback has been extremely helpful in strengthening our work, and we have done our best to address your questions below.

Weakness 1 and major question 1: the choice of disentanglement objective.

We thank you for raising this important concern. Based on this feedback, we implemented an orthogonality constraint on the latent space as an alternative option to the Cauchy-Schwarz divergence term. Unlike CS divergence, an orthogonality constraint does not require the private and shared latents to have the same number of dimensions. We first standardize each feature over the sample dim, then penalize the mean squared entry of the empirical cross-correlation matrix between the two latents [Bousmalis et al. 2016]. We chose orthogonality because it is a closed-form penalty requiring no extra network components or adversarial training, which we could not stabilize reliably within the rebuttal window, and, orthogonality could also address the concern on requiring the shared and private spaces to match in dimensionality.

We report the comparison in the table below. We found that orthogonality performs comparably to CS divergence when the dimensionality is matched, and SSLD with orthogonality at lower dimensionality performs slightly worse in the reaching dataset but comparable in the bump dataset. That said, as you point out, CS divergence loss in SSLD has the limitation that its elements must share the same dimensionality, and orthogonality resolves this. We will therefore include orthogonality as an additional regularization option, which will be valuable in settings that require differing latent dimensionalities.

That said, we agree orthogonality is a weaker disentanglement guarantee than the reviewer's suggestions. We plan to explore Lee & Pavlovic's [4] total-correlation-based disentangling as a follow-up during the rebuttal period, since their private-shared disentangled multimodal VAE has an architecture similar to ours, making it the most direct substitution for our current loss term. We will report this comparison if it is possible to perform during the rebuttal period, or if not, before publication. We are also happy to test any other specific method suggested by you or other reviewers. We thank you again for this valuable suggestion.

Datasets SSLD (CS) SSLD (Orthogonal with same dimension of 8) SSLD (Orthogonal with lower behavioral dimension of 4)
Reaching Dataset State Accuracy 0.96±0.04 0.95±0.04 0.95±0.06
Reaching Dataset Behavior Decoding 0.51±0.12 0.53±0.14 0.46±0.19
Bump Dataset State Accuracy 0.99±0.00 0.99±0.00 0.99±0.00
Bump Dataset Behavior Decoding 0.80±0.09 0.80±0.09 0.79±0.07

Weakness 2 and major question 2: a more expressive/nonlinear method to assess the amount of contamination in the neural latents.

We thank you for raising this question. We tested an LSTM decoder for decoding behavioral activity from the latent space, and found that this nonlinear decoder did improve the R2R^2 score. The private neural latent has a positive R2R^2 score for decoding behavior; however, these scores remain much lower than those from the shared latent space. As a baseline, we also shuffled the behavior labels and attempted to decode this shuffled behavior from the private neural latent, and found that the difference between this baseline and the private latent's actual decoding performance is small. We therefore believe the disentanglement is working to separate behaviorally-relevant information into the shared latent, as intended. We also agree that CS divergence may not be an optimal method, and we will revise the paper based on your review to provide additional options for disentanglement (as detailed above). We hope this addresses your concern, and we are happy to answer any further questions. We thank you again for raising this point.

LSTM Decoder Shared PN PB Neural Neural (PCA) Baseline (from PN to shuffled behavior)
Reaching Dataset 0.86±0.04 0.18±0.16 0.81±0.04 0.85±0.10 0.88±0.06 0.11±0.15
Bump Dataset 0.89±0.01 0.23±0.02 0.83±0.07 0.64±0.01 0.70±0.01 0.00+0.00

Minor question 1: How were the dynamics of the simulated data generated? Appendix A mentions that private latents were generated from a Gaussian distribution and the switching latent switched a single time halfway through the timecourse, but there is no mention of what the shared dynamics were.

We thank you for pointing this out. The shared latent is generated as a switching linear dynamical system with a small deterministic jump at the switch point. For the first dynamical system, z evolves under rotational dynamics with a contraction factor of 0.99 and a rotation angle of -0.15, so z spirals slowly inward while rotating clockwise. At the second dynamical system, a fixed offset of (0.3, -0.3) is added to z, and from that point on it evolves under a second rotation with angle of 0.25. We will include more detailed information in Appendix A and release full code to reproduce this simulated data upon publication.

Minor question 2: Could the authors provide more information about the specific transformer architectures used for each dataset, and any training hyperparameters (e.g. learning rate) that would be required to replicate the results in the paper? I did not find these in the appendix?

We thank you for pointing this out. Reviewer 5NAs has the same question. We fully recognize the importance of these details for assessing and reproducing our model. We will include all parameters and structural details in the supplementary material and release the full code to reproduce our results upon publication. For your review now, we include the architectural details of the model below.

Module Sub-component Type / Layer Details
Neural Encoder in_proj Linear input_shape -> hidden_shape
pos_enc Sinusoidal positional encoding max_len = 10000
encoder TransformerEncoder layers = 2, heads = 1, d_model = hidden_shape, dim_feedforward = 4x hidden_shape, activation = ReLU, norm_first = True, batch_first = True
mean_proj MLP head Linear(hidden->64) -> ReLU -> Linear(64->hidden)
latent sampling Reparameterization
Behavior Encoder in_proj Linear input_shape -> hidden_shape
pos_enc Sinusoidal positional encoding Positional encoding
encoder TransformerEncoder layers = 2, heads = 1, d_model = hidden_shape, dim_feedforward = 4x hidden_shape, activation = ReLU, norm_first = True, batch_first = True
mean_proj MLP head Linear(hidden->64) -> ReLU -> Linear(64->hidden)
latent sampling Reparameterization
Decoder neural_encoder Linear embedding_dim -> bottleneck_dim
beh_encoder Linear embedding_dim -> bottleneck_dim
fusion Linear 2 x bottleneck_dim -> global_latent_dim
neuralprivate Linear bottleneck_dim -> neural_private_dim
behprivate Linear bottleneck_dim -> beh_private_dim
SRNN Generative rnns ModuleList of num_tv x nn.RNN 1 layer each, input_size = input_shape, hidden_size = hidden_shape
transitions nn.RNNCell hidden_shape -> num_tv^2 (transition logits)
initials Parameter vector length num_tv
Emission (neural) MLP Linear(hidden+neural_private->32) -> ReLU -> Linear(32->64) -> ReLU -> Linear(64->input_shape)
Emission (behavior) MLP Linear(hidden+beh_private->32) -> ReLU -> Linear(32->64) -> ReLU -> Linear(64->beh_shape)
inference Forward-backward (Baum-Welch) over num_tv discrete states per timestep
Parameters (bump dataset as an example) Hidden shape: [2,4,8,16]; bottleneck_shape: 16; total_epochs: 4000; lr: 0.001; coef_cross: 0.5; coef_cross_beh: 10; batch_size: 32; alp1: 2e4; alp2: 2e4; alp3: 2e4

Minor question 3: Did the authors perform an ablation of the transformers to see if they are necessary as opposed to e.g. MLPs? If this doesn't reduce the model's performance (i.e. reconstruction, dynamics fitting, disentanglement), replacing the transformers with less data-hungry architectures would broaden the use cases of the method.

We thank the reviewer for this question. We tried an MLP encoder - two linear layers with ReLU activations - on the reaching and bump datasets, with results reported below. SSLD performs comparably with the Transformer and MLP encoders, with the Transformer showing a slight numerical edge. We believe the MLP encoder is well-suited to smaller datasets, such as many neural recordings, while the Transformer encoder should scale better to larger datasets - particularly relevant to our future goal of building foundation models. We therefore plan to offer the MLP encoder as an option for users with smaller datasets, while retaining the Transformer encoder for future scaling.

Datasets SSLD with Transformer Encoder SSLD with MLPs encoder
Reaching Dataset Neural Reconstruction 0.003±0.002 0.003±0.002
Reaching Dataset Behavioral Reconstruction 0.002±0.003 0.003±0.005
Reaching Dataset State Accuracy 0.96±0.04 0.96±0.05
Reaching Dataset Behavior Decoding from Shared Latent 0.51±0.12 0.29±0.17
Bump Dataset Neural Reconstruction 0.002±0.0003 0.002±0.0003
Bump Dataset Behavioral Reconstruction 0.0002±0.0001 0.0002±0.0002
Bump Dataset State Accuracy 0.99±0.00 0.99±0.01
Bump Dataset Behavior Decoding from Shared Latent 0.80±0.09 0.85±0.07
Authors · CommentOpenReview ↗

Dear reviewer, we have an update on using SSLD with total correlation loss, as suggested by you (Lee et al., 2020). We find that SSLD with total correlation also performs well; however, CS divergence, orthogonality constraints, and total correlation loss show no significant differences overall, with each outperforming the others on some metrics but not all. That said, we agree that orthogonality and total correlation losses do not require matching dimensionality, making them more flexible. We will therefore add total correlation loss as an additional optional training objective for our model. We appreciate your suggestion again.

SSLD (CS) SSLD (Orthogonal, same dim of 8) SSLD (Orthogonal, lower behavioral dim of 4) SSLD (Total Correlation, same dim of 8) SSLD (Total Correlation, lower behavioral dim of 4)
Reaching Dataset State Accuracy 0.96±0.04 0.95±0.04 0.95±0.06 0.96±0.02 0.96±0.03
Reaching Dataset Behavior Decoding 0.51±0.12 0.53±0.14 0.46±0.19 0.51±0.14 0.42±0.19
Reaching Dataset Private Neural Latent Behavior Decoding (lower is better) -0.15±0.17 -0.15±0.27 -0.01±0.18 -0.14±0.17 -0.02±0.22
Bump Dataset State Accuracy 0.99±0.00 0.99±0.00 0.99±0.00 0.99±0.00 0.99±0.00
Bump Dataset Behavior Decoding 0.80±0.09 0.80±0.09 0.79±0.07 0.77±0.10 0.79±0.09
Bump Dataset Private Neural Latent Behavior Decoding (lower is better) -0.13±0.27 -0.13±0.28 -0.18±0.25 -0.14±0.28 -0.19±0.24
Reviewer NitD · CommentOpenReview ↗

I appreciate your efforts a more powerful behavioral decoder and implementing new disentangling objectives, especially in the short rebuttal timeline!

It is reassuring that the LSTM behavior decoding from the private neural latent space is not much higher than with shuffled behavior on the bump dataset, though there is a (perhaps negligible) difference of around 0.1 on the reaching dataset. I am still a bit hesitant to conclude that the disentangling is effective enough for the model's latents/dynamics to be interpretable as purely behavioral/purely neural/shared between neural and behavioral for each latent space. It seems like the new LSTM decoding results you reported correspond to decoding continuous behavioral observations in Figures 2C and 3C? If this is right, could you explain more about how the label shuffling was performed for continuous target values?

A couple of (hopefully) quick follow-up analyses would address my remaining concerns:

  1. A shuffled behavioral label control for results in Figures 2E and 3E. The moderately high similarity correlation between neural latents and behavioral condition was the main empirical observation about potentially imperfect disentangling that concerned me. If you can show that the similarity correlation between neural latents (obtained with any one disentangling objective) and behavioral conditions is not considerably higher than the shuffled control, I will raise my score.
  2. For the CS vs TC vs Orthogonal disentangling table in your second comment, could you report LSTM decoding results for the behavioral decoding? This seems to be a more reliable indicator of how much behavioral information is in each latent space (since earlier you reported a ~0.3 R^2 increase over the linear decoder from multiple latent spaces for the reaching dataset)

I think it would also be good to add a few sentences to the Discussion regarding the guarantees/conceptual limitations of the disentangling methods tested, comments on sources and/or interpretations of the remaining decodability of behavior from the private neural latents, and perhaps potential future exploration of stronger disentangling guarantees (if you think they would be necessary).

Thank you again for your efforts to address my comments!

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

The authors introduce a new technique to identify latent dynamics shared by behavioral and neural measurements made in neuroscience tasks. These dynamics can switch between discrete hidden states allowing it to explain data spanning distinct dynamical regimes. Parameters are optimized by minimizing a combinination of variational loss, switching loss to align with behavior and cauchy-schwarz loss to orthogonalize shared and private latent dynamics. They apply the technique to four different datasets from monkeys and mice and demonstrate that the latents are interpretable and correspond to different behavioral epochs.

Strengths and weaknesses

The main strength of the work is in identifying an important open problem in the field, conceptualizing the solution as a natural extension of recent techniques for switching linear dynamical systems models, applying the model to diverse datasets, and clear quantification of the model performance. The overall model architecture is sound and appropriate for the problem and I find this paper pretty strong in terms of significance and originality.

The main weakness is that the formulation relies on behavioral prior for training the model. In my view this makes the technique more similar to targeted dimensionality reduction with the addition of switching temporal dynamics. The authors mention this as a limitation but this is a major one as it excludes the possibility of applying it to paradigms that incorporate free-form behaviors that come with no labels where techniques like this will prove to be especially useful/important. Moreover several architectural details are left out of the paper which makes it difficult to assess the model. These issues weaken the quality and clarity of the work.

Questions
  1. The model features transformer encoders, shared/private encoder networks, decoder networks, and SRNN, but the architectural details are missing. What are the number of transformer layers, attention heads, hidden units, encoder dimensionality, and activation functions?

  2. Is the process noise QzQ_z diagonal, isotropic, low-rank, or unconstrained?

  3. The reconstruction loss appears be influenced equally by neural and behavioral data but they have very different dimensionalities in the datasets so it is a bit surprising that the reconstruction quality is good for both modalities.

  4. Hyperparameters: How are DsD_s, DpnD_{pn}, DpbD_{pb}, KK and CS regularization parameters (λ1\lambda_1, λ2\lambda_2, …) chosen?

  5. How are behavioral state priors obtained? Is K chosen to match the number of behavioral states?

  6. How was the train/test split done? Are the results robust across sessions?

  7. How does test performance depend on the amount of training data?

Limitations

Yes, the main shortcoming is the reliance on behavioral prior I mentioned above which the authors mention in the paper. But I am not sure if this can be addressed in the revision without substantially changing the approach to optimizing the model.

Final justification

Score revised based on the updated results showing reasonably good performance of an unsupervised variant of the model.

Formatting concerns

None

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We thank you very much for your review. Your comments are valuable and have helped us improve our work a lot. We have tried our best to address your questions and respond in detail below.

Weakness 1: The formulation relies on behavioral prior for training the model, making it similar to targeted dimensionality reduction, and excludes application to free-form, unlabeled behavior.

We thank you for raising this important point. To directly test this, we trained a fully unsupervised version of SSLD, without any behavioral-state prior, on the reaching (Dataset 1) and bump (Dataset 2) datasets. We found that the neural states recovered by this unsupervised model still align well with behavioral states, though the alignment is somewhat weaker than in the supervised version. We report the alignment accuracy for both versions on both datasets in the table below. We also report this accuracy for other unsupervised switching models, - SLDS and rSLDS (new baselines)- while including HMM and K-Means in the table (already present in our original submission). We found that unsupervised SSLD outperforms all four unsupervised baselines.

These results indicate that SSLD is feasible as a fully unsupervised model. That said, since we operate in the multimodal setting where behavioral activity is available, using behavioral states as priors remains a natural and useful option in this setting. We therefore plan to retain both versions in the paper: the fully unsupervised model for settings without behavioral labels, and the supervised model as an option for users with a reasonable behavioral prior.

Datasets SSLD (Supervised) Unsupervised SSLD SLDS rSLDS HMM K-Means SRNN (supervised) LSTM Decoder (supervised)
Reaching Dataset State Accuracy 0.96±0.04 0.81±0.06 0.22±0.10 0.21±0.14 0.23±0.11 0.36±0.06 0.95±0.04 0.95±0.00
Reaching Dataset Behavior Decoding 0.51±0.12 0.36±0.15 N/A N/A N/A N/A N/A N/A
Bump Dataset State Accuracy 0.99±0.00 0.80±0.27 0.79±0.10 0.62±0.06 0.57±0.20 0.74±0.16 0.99±0.01 0.96±0.00
Bump Dataset Behavior Decoding 0.80±0.09 0.80±0.07 N/A N/A N/A N/A N/A N/A

Weakness 2: Moreover several architectural details left out of the paper which makes it difficult to assess the model.

We thank you for pointing this out. We agree that these details are important for assessing and reproducing the model. Below, we expand on Section 3; we will include all these parameters and architectural details in the supplementary material, along with the full code for reproducing the results in this paper upon publication. For your review now, we include the architectural details of the model below.

Module Sub-component Type / Layer Details
Neural Encoder in_proj Linear input_shape -> hidden_shape
pos_enc Sinusoidal positional encoding max_len = 10000
encoder TransformerEncoder layers = 2, heads = 1, d_model = hidden_shape, dim_feedforward = 4x hidden_shape, activation = ReLU, norm_first = True, batch_first = True
mean_proj MLP head Linear(hidden->64) -> ReLU -> Linear(64->hidden)
latent sampling Reparameterization
Behavior Encoder in_proj Linear input_shape -> hidden_shape
pos_enc Sinusoidal positional encoding Positional encoding
encoder TransformerEncoder layers = 2, heads = 1, d_model = hidden_shape, dim_feedforward = 4x hidden_shape, activation = ReLU, norm_first = True, batch_first = True
mean_proj MLP head Linear(hidden->64) -> ReLU -> Linear(64->hidden)
latent sampling Reparameterization
Decoder neural_encoder Linear embedding_dim -> bottleneck_dim
beh_encoder Linear embedding_dim -> bottleneck_dim
fusion Linear 2 x bottleneck_dim -> global_latent_dim
neuralprivate Linear bottleneck_dim -> neural_private_dim
behprivate Linear bottleneck_dim -> beh_private_dim
SRNN Generative rnns ModuleList of num_tv x nn.RNN 1 layer each, input_size = input_shape, hidden_size = hidden_shape
transitions nn.RNNCell hidden_shape -> num_tv^2 (transition logits)
initials Parameter vector length num_tv
Emission (neural) MLP Linear(hidden+neural_private->32) -> ReLU -> Linear(32->64) -> ReLU -> Linear(64->input_shape)
Emission (behavior) MLP Linear(hidden+beh_private->32) -> ReLU -> Linear(32->64) -> ReLU -> Linear(64->beh_shape)
inference Forward-backward (Baum-Welch) over num_tv discrete states per timestep
Parameters (bump dataset as an example) Hidden shape: [2,4,8,16]; bottleneck_shape: 16; total_epochs: 4000; lr: 0.001; coef_cross: 0.5; coef_cross_beh: 10; batch_size: 32; alp1: 2e4; alp2: 2e4; alp3: 2e4

Question 1: The model features transformer encoders, shared/private encoder networks, decoder networks, and SRNN, but the architectural details are missing. What are the number of transformer layers, attention heads, hidden units, encoder dimensionality, and activation functions?

We thank you for this question. We provide the relevant details in our response to Weakness 2 above, and will include all of this information in the supplementary material, along with the full code to reproduce our results.

Question 2: Is the process noise diagonal, isotropic, low-rank, or unconstrained?

We thank you for pointing this out. In SSLD, we use a diagonal noise covariance, we use 1e-4; we also tried learning this noise via the inference network, but found little difference in performance between the fixed and learned versions. This choice is consistent with existing work, e.g., Dong et al., 2020 (SNLDS) and Zhang et al., 2024 (SRNN).

Question 3: The reconstruction loss appears be influenced equally by neural and behavioral data but they have very different dimensionalities in the datasets so it is a bit surprising that the reconstruction quality is good for both modalities.

We thank you for pointing this out. Yes, you are right that these differ substantially in scale. In our model training, we used PyTorch's built-in ‘clip_grad_norm_’ to normalize the gradient for each part of our model, so the influence of this loss imbalance should not be substantial.

Question 4: How are hyperparameters chosen?

We thank you for your question. We provide a comparison across different dimensionalities of the model in Supplementary C and Figures G2, G3, and G4. For the CS regularization parameter, we swept values ranging from 500 to 50,000 and used the best-performing value to report results for each dataset.

Question 5: How are behavioral state priors obtained? Is K chosen to match the number of behavioral states?

We thank you for asking this important question. In the manuscript (supervised SSLD), K was chosen by experimental design, i.e., set equal to the number of behavioral states. However, this is not a necessary constraint for the unsupervised version. In the unsupervised setting, we found empirically that K = number of behavioral states still gives the best result.

We tested a range of K values for unsupervised SSLD. For example, in the bump dataset, 77.12% of trials converge to 2 states even when K is set to 3; in the reaching dataset, 52% of trials converge to 5 states even when K is set to 6.

Additionally, since behavior is stable across time by experimental design, we would expect the inferred neural states to be similarly stable when K is chosen correctly. In the reaching dataset, K=5 gives the most stable results across trials, measured as mean correlation across trials: 0.95 for K=6 and 0.76 for K=4, compared with 0.98 for K=5. A useful baseline for this metric is the mean correlation across behavioral states, which is 0.99. Thus, K = number of behavioral states also gives the best results in terms of stability.

For the supervised version, K is fixed by the behavioral prior, which by construction has the same number of states as the true behavioral states, so there is no free choice of K to compare in that setting.

Question 6: How was the train/test split done? Are the results robust across sessions?

We thank you for asking this. We use 5-fold cross-validation, and all numerical results, including standard deviation, are reported on the held-out test data for each session. The low standard deviation indicates that variance across sessions is low. We will also include session-specific results as plots in the supplementary material, to further demonstrate stability across sessions.

Question 7: How does test performance depend on the amount of training data?

We thank you for your question. We trained SSLD on varying amounts of the reaching dataset and reported state alignment accuracy and behavioral decoding performance (R2R^2) below. We did not find much difference in performance across the amounts of training data tested.

60% of the full dataset as training data: state accuracy 0.96 ± 0.02, R2R^2 0.49 ± 0.20. 75% of the full dataset as training data: state accuracy 0.96 ± 0.03, R2R^2 0.50 ± 0.20

We will extend this analysis to additional datasets and a wider range of training data amounts to further test the performance of SSLD as a function of data availability.

Comments on the paper

1 comment
Authors · CommentOpenReview ↗

Dear reviewers,

We hope our rebuttal has addressed your concerns. Please let us know if you have any further questions. Thank you for your time and consideration.

Best,

All authors

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

Missing a submission?

Loading the discussion…