CORNN: Convex optimization of recurrent neural networks for rapid inference of neural dynamics

Advances in optical and electrophysiological recording technologies have made it possible to record the dynamics of thousands of neurons, opening up new possibilities for interpreting and controlling large neural populations in behaving animals. A promising way to extract computational principles from these large datasets is to train data-constrained recurrent neural networks (dRNNs). Performing this training in real-time could open doors for research techniques and medical applications to model and control interventions at single-cell resolution and drive desired forms of animal behavior. However, existing training algorithms for dRNNs are inefficient and have limited scalability, making it a challenge to analyze large neural recordings even in offline scenarios. To address these issues, we introduce a training method termed Convex Optimization of Recurrent Neural Networks (CORNN). In studies of simulated recordings, CORNN attained training speeds ~100-fold faster than traditional optimization approaches while maintaining or enhancing modeling accuracy. We further validated CORNN on simulations with thousands of cells that performed simple computations such as those of a 3-bit flip-flop or the execution of a timed response. Finally, we showed that CORNN can robustly reproduce network dynamics and underlying attractor structures despite mismatches between generator and inference models, severe subsampling of observed neurons, or mismatches in neural time-scales. Overall, by training dRNNs with millions of parameters in subminute processing times on a standard computer, CORNN constitutes a first step towards real-time network reproduction constrained on large-scale neural recordings and a powerful computational tool for advancing the understanding of neural computation.

Paper

Similar papers

Peer review

Reviewer mPZo7/10 · confidence 5/52023-06-27

Summary

The motivation behind this paper is to replace FORCE/RLS fitting of biologically-flavored RNNs to data by a faster and more robust alternative training scheme. This is accomplished by 1) altering the training objective to a cross-entropy loss; 2) using an approximate pre-computable Hessian to facilitate the use of Newton steps; 3) use of a suitable fixed point initialization; 4) using teacher forcing (training only one-step losses); 5) employing ADMM to enforce constraints (e.g., no self-excitation). Experiments show improvements to various metrics, including accuracy of recovered weights, fits to observed activity, and runtime. The stated goal of the project is to produce a method fast enough for real-time analysis, though this work focuses only on weight inference and fitting accuracy of the firing rates. Still these models are increasingly used in the field to fit neural data, so better algorithms for doing so are needed.

Strengths

- Good algorithm performance as assessed along multiple dimensions (speed, inference accuracy, reconstruction accuracy). - Thoughtful comparisons to other baseline models. - Emphasis on real-time and streaming settings. - Experiments targeting model mismatch. - ADMM approach allows for many different types of potential constraints.

Weaknesses

- Addresses some key sources of potential model error but not others (e.g., correlated noise, wrong nonlinearity, mismatch between network timescale and measurement timescale for some data types). - No experiments on real data. Even if accuracy of weight recovery is impossible to assess, reconstruction accuracy would be.

Questions

- It is unclear to me what the difference is between panels A and B of Figure 3. Just different parameters? It would help if this were reflected in the titles. - Figure 4: I realize that the authors would like to zoom in to show differences between models, but the choice of y axis range obscures the fact that these are modest to minor differences between the models. - The authors use correlation between the true and inferred weights as their accuracy measure, but this (so far as I can see) first noted in the caption to Figure 4, even though it occurs in Figure 3.

Rating

7: Accept: Technically solid paper, with high impact on at least one sub-area, or moderate-to-high impact on more than one areas, with good-to-excellent evaluation, resources, reproducibility, and no unaddressed ethical considerations.

Confidence

5: You are absolutely certain about your assessment. You are very familiar with the related work and checked the math/other details carefully.

Soundness

3 good

Presentation

3 good

Contribution

3 good

Limitations

1. Equation (1) is not the usual form for the equations defining these networks (e.g., refs 22, 24). Typically, the leak term is on the voltage variable, not the firing rate, and the nonlinear transfer is from voltage to firing rate, not input current to effective drive. It looks to me as if this choice is essential to make the cross-entropy convex in $\theta$. If so, this should be discussed, since it's a qualitatively minor change that has large implications for the feasibility of the approach. 2. As noted above, it seems to me there are five distinct technical pieces, and it is not always clear what is doing the heavy lifting. For instance, Figure 3 (and S3) seems to indicate that initialization in these models is doing a huge amount of work, which is unsurprising but not well emphasized in the text. Better delineation in the main text of which choices are most important to the results would be helpful.

Reviewer Gp7K8/10 · confidence 4/52023-07-03

Summary

The paper introduces a new method for training RNNs that allows fast convergence which could make realtime parameter update possible.

Strengths

- The method conceptually is simple and intuitive. - It tackles an important problem which is the time consuming nature and computing intensivity of ML models - It achieves impressive results through simple hacks - One possible use of this is also quick experimentation with RNN models - Outlier detection is included

Weaknesses

- The methods section is easy to understand until the end of setion 2.3 where there are many equations with variables that are not defined either in the main text or in the SM (any equation in the main text has to be defined very explicitly in the main text). - To evaluate the value of this implementation on the proposed application, I would appreciate a comparison of the speed of computation to the sampling rates of data collection and intervention delivery. - I would have appreciated results experimenting on real data and comparing neural dynamics computed via this method compared to other methods

Questions

NA

Rating

8: Strong Accept: Technically strong paper, with novel ideas, excellent impact on at least one area, or high-to-excellent impact on multiple areas, with excellent evaluation, resources, and reproducibility, and no unaddressed ethical considerations.

Confidence

4: You are confident in your assessment, but not absolutely certain. It is unlikely, but not impossible, that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work.

Soundness

4 excellent

Presentation

3 good

Contribution

4 excellent

Limitations

NA

Reviewer GD245/10 · confidence 3/52023-07-05

Summary

The paper proposes a convex loss for training data constrained recurrent neural networks (dRNNs). This is achieved by performing the optimization in the $d_{t,i}$ space instead of $r_{t,i}$ space (as defined in the paper) and using cross-entropy instead of $l_2$ loss. The authors discuss that this choice makes the optimization convex, and using a weighting scheme they show that a pre-computed inverse Hessian (using the data correlation) makes the optimization much faster than original BPTT or FORCE algorithms. Results are shown on synthetic chaotic rate networks under model misspecification as well as noise and subsampling. Better accuracies and faster runtimes suggest that CoRNN has desirable properties compared to baselines.

Strengths

* Developing tools for online experimentation and targeted manipulation of brain circuits is a significant problem. Given the current experimental advances in the neuroscience field these tools are in crucial demand to help us understand geometrical and computational properties of the brain networks. This makes the problem considered by this paper timely and significant. * Arguably one of the main bottlenecks of this online experimentation is fitting/inference time complexity. This paper takes a step towards speeding up the optimization by convexifying the loss and pre-computing objects to avoid additional computational burden. * The motivation is clear and the presentation of the paper is logical, understandable, and easy to follow.

Weaknesses

Below I've included a list of questions and concerns. In summary, I believe that the experimental part of the paper can be improved by a large margin. Specifically since the method is pitched as a general purpose optimization framework it's important to present results on more complex synthetic datasets as well as real neuroscience dataset where the performance of the model is well investigated under various parameter changes. In addition, I think the discussion section can be further improved by being more upfront about the limitations of the work and paths for future work. > 81 extraction, especially with thousands of neurons, requires GPUs, leaving only the CPU for dRNNs. * I'm a little confused by this repeating statement, can we not use multiple GPUs? Is this a constraint for the specific hardware you're using or a more fundamental constraint? * Eq. 1: correct me if I'm wrong but most of the theoretical neuroscience work is done on the equation where the nonlinearity is applied pre-summation $\tau \frac{dr_i}{dt} = -r_i + \sum w_{ij} \phi(r_j)$. Although from a model capacity perspective, the two models are shown to have similar capacities the one I included here is more biologically relevant. Can this be implemented in your approach and can you include some results on this alternative model? * Related to this, the framework seems to heavily rely on the specific instantiation of the network dynamics. For example, given a different form, we cannot immediately consider the loss form of $d_{t,i}$ and use its linear+sigmoid form. This seems to be an important limitation and some discussion on how to extend this to other forms of ODE would be helpful. > 114 $d_{t,i} = \tanh(\hat{z})$ * Should it be $\hat{z}_{t,i}$? * Why is (5) convex with respect to $\theta$? Is this a trivial fact that the authors leave it unexplained? * Equation 7 is playing a crucial role in the optimization, can the authors bring the proof to the main text instead of SM? * Based on (S4), we can in principle use other nonlinearities and a corresponding weighting function $c_{t,i}$ right? **Figures** * Fig. 1 seems to be over-promising. Although in principle dRNNs can lead to the applications that are discussed but those are not shown in the current work. Unless those applications are not shown in real data/simulations I recommend rewording/having a more concise Fig. 1 that focuses on the contributions. Usually, Fig. 1 is a schematic of what's done in the paper, not an idealistic scenario that can be done in future studies. * Fig. 3: The colors are very hard to see, specifically because the error bars are too small, can the authors change the formatting to make it easier to read? After reading this paper two times I'm still unsure what "teacher enforcing" means in this context and how it's achieved in various percentages. Instead of these two parameter configurations, can the authors show these as line plots when changing the parameters more continuously on a certain range that includes the performance extremes? Related to this, are the claims true about this specific instantiation of the network or does it hold if we change the noise model? For example, intuitively, cross-entropy loss corresponds to the log probability of a categorical distribution, and as the authors show it provides a better surrogate for the data generated from normal distribution. What if we change the noise model to something like a Poisson or some noise model that's not independent across different time points? * Does the result hold if we change the dynamical regime of the network? In neuroscience, previous work has hypothesized various network mechanisms such as limit cycles, multi-stability, input-driven networks, transitions between multiple attractors, etc. Is it possible to show results on these other regimes to ensure that the presented optimization framework is not beneficial for a particular regime? Can the authors include experiments with varying the dimension of the chaotic attractor or a more complex data-generating model as opposed to a simple chaotic (low-d) rate network? * Fig. 4B: The result is a little surprising for me, how can the accuracy go down for other methods? Aren't all of these methods guaranteed to converge to a local minimum? Are the authors controlling for the initialization of the parameters? * Are the times reported in Fig. 4 CPU times or GPU times? * Fig. 5: In (A) there are these weird bumps/spikes in the network output. It looks like the errors are happening in a space that's not within the null space of the output. Whereas my experience with the flip-flop task is that BPTT errors don't look weird like this. Is this due to the specific architecture chosen or is this a result of the convex loss/optimization framework? * Fig. 7: miss-matched -> mismatched * I'm again surprised that the network can account for the common inputs/unobserved nodes. I think it's an established fact that by just using observational data no method can generically recover the weights in the presence of common inputs and unobserved nodes. This might be the result of the specific data-generating model that's used here. A discussion on this would be helpful to point to the limitations of the work. * Although the work is motivated by neuroscience data and experiments, no experimental data is included in the paper and that to me is the biggest weakness of the paper. Brain data is much more complex and heterogenous and the noise model, nonlinearity, dynamical regimes, and other factors make it harder to build a robust estimator that generalizes to test trials/test time points. I would assume that various loss functions have different properties that make them more suitable to specific datasets and it's hard for me to believe that a single loss can improve loss on all datasets. Unless results on more complex datasets and simulations are shown it's hard to decide whether the presented framework is preferred to the traditional ones.

Questions

* How are the $d_t$'s initialized to be close to the true ones? * Since the Hessian is not the exact Hessian, does the optimization still guaranteed to find the (local) minimum? Or is it biased? Can the authors use debiasing strategies to account for the Hessian mismatch? > 128 $\mathcal{L}_{\text{CoRNN}} = \sum_i \mathcal{L}_i(\hat{\theta}_i)$. * Is this a trivial fact? Is $\hat{\theta}_{:,i}$ a specific row/column of the weight matrices? This basically means the optimization problem is separable over different rows/columns. This intuitively sounds unrealistic to me unless again I'm missing something important here. > 111 [...] This turns the potentially infinite time problem into a single time-step one. * How is this done? The parameters of the model are still $\theta$. If the loss sums over all $t,i$ then the gradients with respect to $\theta$ are still computed in a similar fashion to before unless I'm missing something important here. > 122 $c_{t,i}=[1-d_{t,i}^2]^{-1}$. * How is this chosen? This means that some neurons/time points are contributing more to the loss and they are more important to be captured properly, right? Why is this a good choice as opposed to treating all neurons/time points the same?

Rating

5: Borderline accept: Technically solid paper where reasons to accept outweigh reasons to reject, e.g., limited evaluation. Please use sparingly.

Confidence

3: You are fairly confident in your assessment. It is possible that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work. Math/other details were not carefully checked.

Soundness

3 good

Presentation

3 good

Contribution

2 fair

Limitations

See weaknesses section

Reviewer 1Kip8/10 · confidence 4/52023-07-07

Summary

The authors introduce a method to produce a digital twin of a biological neural network that can be inferred from measurements of neuronal activity. The major advantage of the model is that it can be trained in real time to gain the basic dynamics of neural population. In the future this could allow advance HRI applications, like linking brain activity to controlling prosthesis. The digital twin is trained using a randomised neural network that represents a neural population. It is used as a teacher network for student network that has a specific structure, designed in a way this is allows approximate convexification of the optimisation problem, enabling a ridiculously easy training of the network that can scale to large neural populations. The computational cost of performing the analysis of the biological neural network scales linearly with its size. The system is evaluated by a test, where a random neural network is initialised repeatedly with Gaussian random weights in a range that can produce also chaotic self-sustained signalling. The is assumed to provide a large enough variation for a neural signal generator

Strengths

The real time, fast learning capability of the suggested architecture. The convexificaiton, as a technology. has definitely uses and application potential beyond the domain of the paper. Excellent figures to clarify the process.

Weaknesses

The reasoning about the enforced use of CPU does not sound convincing to me. See the question part.

Questions

on line 81: Why would the GPU use of real time acquisition of thousands of cell signals would force the dRNN calculation to CPUs? As these are tasks that can be pipelined, the obvious answer is to use more GPUs . Also, on can expect that signal detection part will be moved to special purpose chips tuned for inference as the signal dimension grows. There has been a recent article (https://doi.org/10.1038/s41598-022-25421-w, published Jan 2023 ) on data-driven modelling of C. elegans brain with different recurrent neural networks architectures that found that 4-hidden layer GRU is able to accurately reproduce the stimuli. As this is based on comparing measured data to artificial neural network behaviour like in the current manuscript, without the real time acceleration, but using back propagation training, it would be a very good test case for the advantages of using the CoRNN. Perhaps the Authors could add this to their submission.

Rating

8: Strong Accept: Technically strong paper, with novel ideas, excellent impact on at least one area, or high-to-excellent impact on multiple areas, with excellent evaluation, resources, and reproducibility, and no unaddressed ethical considerations.

Confidence

4: You are confident in your assessment, but not absolutely certain. It is unlikely, but not impossible, that you did not understand some parts of the submission or that you are unfamiliar with some pieces of related work.

Soundness

4 excellent

Presentation

3 good

Contribution

4 excellent

Limitations

NA

Reviewer mPZo2023-08-10

I appreciate the authors' thorough and thoughtful replies to all reviewers' comments. I believe this work will prove a valuable contribution to those performing model fitting under real-time constraints in neuroscience experiments.

Reviewer mPZo2023-08-14

I am satisfied with the authors' response to my technical queriers. I agree that the lack of application to a real dataset is a deficit, and I share Reviewer GD24's concerns about identifiability, but I am raising my score, as it seems likely this work will be of benefit to those interesting in real-time model fitting.

Authorsrebuttal2023-08-15

Response to the official comment

Thank you very much for your response and consideration. We truly appreciated your comments and suggestions. As for the remaining concerns, please see our final comments to the reviewer GD24. We hope that we were able to address both concerns substantially there.

Reviewer GD242023-08-12

I thank the authors for responding to some of my questions and incorporating some of my comments. For the ones you've already answered: - **Request for real data applications:** I still think that not including any experimental result is a big weakness of the paper. I read the global responses and replies to other reviewers. The main motivation of the paper is to develop these tools for fast real-time inference in experimental data. While I think the developed methods are quite interesting, I think the type of model mismatches, nonlinearities, dynamical regimes, and noise in real data is quite distinct from the ones considered in the experiments. That said, given that the machinery for developing the proposed tools is relatively elementary, without showing results on real biological datasets it's hard to recommend acceptance for this paper in NeurIPS. Given the availability of public neural datasets, I don't think it's a big request to report results on some of these existing datasets with simple APIs to access them. - **Clarification on CPU usage, Question on Eq. 1, Fig. 1 seems to be over-promising, Clarification on teacher forcing, Specific instantiation of the network, Fig. 4B results:** I thank the authors for clarifying these. - **Observational data vs synaptic connectivity:** I believe this question is similar to limitation 1 mentioned by review *mPZo*. While it's replied that the methods are trivially extensible to other cases I'd appreciate some math showcasing that in the discussion here. Here's a list of the questions that remain unanswered: **I'm again surprised that the network can account for the common inputs/unobserved nodes.** Although the experiments show that training models using CORNN allows for the recovery of the connectivity matrix I'm still having a hard time comprehending this result. There are so many non-identifiability results in the statistics and neuroscience literature showing that even with infinite observations and convex loss the true parameters are still not recoverable because they suffer from identifiability, meaning that there are classes of the parameters that produce the exact same observations. This is exacerbated by considering unobserved nodes and common inputs. It shouldn't be hard to come up with examples where the recovered matrices are arbitrarily far from the true ones while the loss is small because the generated signals are close to the true ones. There is very little discussion on this in the paper. I think a more thorough empirical assessment is needed to find the regimes in which the proposed model is not able to recover the true matrix. **Why is (5) convex with respect to? Is this a trivial fact that the authors leave unexplained?** **128: Loss is separable for different columns of $\theta$: Is this a trivial fact? Is _ a specific row/column of the weight matrices? This basically means the optimization problem is separable over different rows/columns. This intuitively sounds unrealistic to me unless again I'm missing something important here.** **Choice of $c_{t,i}$: How is this chosen? This means that some neurons/time points are contributing more to the loss and they are more important to be captured properly, right? Why is this a good choice as opposed to treating all neurons/time points the same?**

Authorsrebuttal2023-08-12

Response to technical questions

We thank the reviewer for their willingness to discuss further and provide valuable feedback. At this point, it seems natural to divide the topics of discussion into two: technical aspects regarding convex optimization and philosophical concerns regarding neuroscience applications. For a productive discussion, we will first answer the questions on the former. - Why is (5) convex with respect to theta? The convexity of the loss function comes from two facts: 1) Linear + sigmoid structure is well known to be convex under cross-entropy. The resulting Hessian for this particular case is $ H_{kl} = \sum_t (1-\hat d_t^2) x_{t,k} x_{t,l} + \lambda \delta_{kl}$, which is the Hessian of the logistic regression. We can prove that this Hessian is positive semi-definite by showing: $z^T H z = \sum_t (1-\hat d_t^2) (\sum_k x_{t,k} z_k)^2 + \lambda \sum z_k^2 \geq 0$ since $(1-\hat d_t^2)\geq 0$. 2) We take a non-negative weighted sum of this loss, and non-negative weighted sum of convex functions preserves convexity. - (...) I'd appreciate some math showcasing (application to leaky-current RNNs) in the discussion here. In the leaky-current RNNs, the dynamical system equations follow Eq. (S27). Specifically, we can write the teacher-forced estimator as: $\hat r(t) = \tanh\left[ (1-\alpha) \text{arctanh}(r(t-1)) + \alpha W_{\rm in} u(t) + \alpha W_{\rm rec} r(t-1) \right]$. Here, due to teacher-forcing, $r(t-1)$ and $u(t)$ are defined by the data. Hence, the estimator simply has the form: $\hat r(t) = \tanh( \theta x(t) )$, where $\theta$ is a set of concatenated weight matrices and a non-learnable bias term, which can be enforced as an equality constraint or just left untrainable, whereas $x(t)$ is concatenated input (u(t)), previous time activations (r(t-1)), and a vector of 1s that multiply the bias. Now, we simply can exploit the fact that r_{t,i} follows a linear + tanh structure, hence (1+r)/2 will be a linear + sigmoid, in the leaky-current RNNs and replace \hat d_{t,i} with \hat r_{t,i} wherever applicable in our original calculations. - 128: Seperability of loss The separability of the loss function was shown in Eq. (S1) in supplementary materials. With the choice of the loss function, and the teacher-forcing, the loss function becomes separable across the neurons and hence leads to independent problems across the columns of theta. To clarify, we updated the text after Eq. (S1) as follows: “We note that for a given $i$, the functions $\mathcal L_i$ depend only on $\hat \beta^{(i)}: = \hat \theta_{:,i}$, e.g. the $i$th column of the $\hat \theta$ matrix. In other words, the lack of cross-talk between the columns of the weight matrix in the loss function means each output can be regressed independently with respect to the corresponding part of the loss function, \emph{i.e.}, $\mathcal L_i(\hat \theta_i)$.” - Choice of c_t The main motivation driving the choice of c_t was to turn the Hessian into a pre-computable quantity that was aligned across all subproblems. This is our unique contribution and is explained right before Eq. (4). That being said, this particular choice was motivated from a theoretical point of view as well. We discussed this in the supplementary material Section S1.3. Please note that this choice of c_t does not mean that certain neurons are contributing more to the L2 error. In fact, in the low error limit, we showed in Section S1.3 that minimizing the CORNN loss is approximately equal to minimizing the L2 error on the currents (z(t)), where each data-point contributes equally to the loss. - “given that the machinery for developing the proposed tools is relatively elementary.” We believe the main misunderstanding between our view of our work and the reviewer’s is well summarized in this sentence by the reviewer. Please allow us to elaborate. The choice of c_t, and the subsequent alignment of subproblem Hessians, are both novel advancements that allow this rapid increase in the training speed. For example, see the traditional exact Hessian updates in Fig. 4. For networks with hundreds of neurons, they are 1 order of magnitude slower compared to CORNN. For larger networks in Fig. N2, it is not reasonable to compute Hessian multiple times at each optimization step. In this scenario, gradient on the convex loss (with ADAM) trains in roughly an hour (experiment ongoing) vs the seconds it takes for CORNN. Hence, the solver we are developing here is unique and novel even when looked through the lens of minimizing a large convex problem. Thank you for your time and please let us know if you have any additional questions on the convex optimization aspects. Once we are aligned in these aspects, we are confident that we will be able to reach a mutual agreement on the neuroscience aspects as well.

Reviewer GD242023-08-14

I thank the authors for addressing my technical questions. I wish to clarify that my following statement "given that the machinery for developing the proposed tools is relatively elementary" did not stem from misunderstanding the contributions. Rather, while it's clear what the proposed contributions are, my questions were mainly to ensure the validity of the claims. Indeed I do find the ideas attractive for the neuroscience community, however, I believe that in order to prove the applicability of these ideas to neuroscience experiments, at least some proof of concept results need to be accompanied. As I understand, the details of the developed method rely heavily on the form of the model equation. Therefore, the reparameterization and convexification must be re-instantiated for small changes in the underlying model. Given that, it is important to show that the current model with no changes works well on some neuroscientific datasets. While I still look forward to discussing the other points I brought up (1. identifiability and the recovery of the true matrix in the presence of unobserved nodes, and 2. results on real data) I encourage the authors to update the manuscript with the details included in response to my and other reviewers' questions (1. leaky-current RNN, 2. a clearer proof of convexity and separability, 3. the reasons behind the choice of $c_t$, etc.). Some of these points are already included in the paper, but it can be made clearer to improve the presentation of these ideas.

Authorsrebuttal2023-08-15

Response to remaining points - part I

Thank you for the quick response and continued feedback. We will be refining the presentation of our manuscript by keeping these three points in mind. Please find attached our detailed response to the neuroscience related concerns raised by the reviewer. - Request for real data applications The reviewer holds the position that if we take publicly available data and do a train-test split, we will be able to test the real-data applicability of CORNN. We disagree with this premise on following grounds: 1. Neural activities during trials are stereotypical. Hence, even when trials are split into train and test sets, there will be a significant leakage. The fact that the CORNN-fitted dRNN can provide a low error in the test set does not provide any real quantification of its ability as a generative model, but only shows that one can achieve low training error. 2. dRNNs have millions of parameters. In contrast, observed neural activities tend to lie on very low dimensional manifolds, as low as less than 10 (See Rumyantsev et al. 2020 and Valente et al. 2022). In this regime, almost any network can fit the observed neural activity and make reasonable predictions. Due to these reasons, we believe that simply showing a low test score in a neural dataset is not a true test of real-data applicability, nor should it be taken as such by the community. For example, what would it mean to have a low score? How low is good enough? There is simply no ground truth, and surrogate tests with observational data are, in our opinion, unreliable. The true test of dRNNs’ applicability to real-data would require interventional experiments. In this test, the network learned by the CORNN would be tested under novel perturbed conditions, behaviorally or neurally, and not through a training-test split. We emulated this in Figs. 7 and 8 on a synthetic benchmark, but an experimental counterpart is left as future work. In summary, applicability to real data should not be addressed with a simple figure created from a random publicly available data. For this reason we solely focused on synthetic benchmarks, where we know the ground truth and can test whether dRNNs can reproduce the underlying attractor structures. Please see the works we cited in line 55, i.e. [22-27], for previous application of similar networks to real-data. We will add a paragraph to the discussion explaining these aspects for any potential reader with similar concerns as the reviewer. - Questions on synaptic matrix recovery and non-identifiability issues We thank the reviewer for this comment, as it brings up an important point. As the reviewer points out, it is well known that in general, neural networks are non-identifiable, and that the input-output function a neural network implements is degenerate in the weights. Given this fact, to what extent should we expect our CORNN trained dRNNs to recapitulate the generator synaptic weights? Although the answer depends on the specifics of the setup, a full discussion of this issue is beyond the scope of our paper, and also besides the point. We did not mean to suggest that recovering the generator synaptic connectivity matrix is the gold standard of what CORNN aims to do. We state in the paper that “Despite observing only 500 out of 5000 neurons and experiencing an average 10% miss-match between $α_G$ and $α_I$ , the CoRNN-learned network successfully reproduced both the neural dynamics and the output.” In fact, in Figs. 7 and 8, we show that the correlation between generator and dRNN synaptic weight matrix is quite suboptimal (r=0.45, Fig. 7D), even in the best case with 100% observation of the generator dynamics. Despite this fact, CORNN is able to match the neural dynamics and the output in a novel perturbation trial, a finding that is quite in line with the fact that neural nets are non-identifiable. This suggests that, at least in the context of stereotypical trial activities, the state-space structure is captured by CORNN even though the synaptic connectivity is not. We note that the real test here was whether CORNN-fitted dRNNs could reproduce the neural activities under novel perturbations, a test we wouldn’t be able to perform with observational neural data.

Authorsrebuttal2023-08-15

Response part II

All that being said, it is clear that our writeup could be a lot more clear about this issue, and have added the following changes to the result section: “When we subsampled the generator networks by 10% and introduced jitter in time scales, we observed that the inference model reproduced the neural dynamics in the observed population in a novel perturbation trial (See Fig. 7C), even though the sub-connectivity matrix was not well reproduced (See Fig. 7D-E). This reinforces the findings of previous literature that the connectivity matrices learned by dRNNs should be interpreted as functional connections, accounting for the behavior of networks at the level of neural dynamics, and not synaptic connections [Perich et al 2021, Das et al 2020].” We have additionally added this paragraph to the discussion: “An important point in considering the use of CORNN in experimental settings comes from the fact that neural networks are, in general, non-identifiable [citation]. That is, for any given settings of the parameters, there are other settings which give the same input-output function. This means that CORNN should not be used to try to infer the true underlying synaptic connectivity matrix from a dataset. Instead, the main use of CORNN is to infer an RNN model which recapitulates the dynamical trajectories in a neural population. It is further possible that CORNN can capture the underlying attractor structure of a system. However, we caution that any claim having to do with attractor structures must be experimentally validated with perturbation experiments that directly test attractors. In our work, we simulated such experimental validation (Figs. 7 and 8), and found that in the setting tested, CORNN was indeed able to predict the dynamical effects of perturbations on the neural population.”

Reviewer GD242023-08-16

I thank the authors for further continuing the discussion. **Identifiability:** Indeed the low correlation in the partial observation regime (while attaining high accuracy in neural firing rate generation) is a signature of non-identifiability, even when the data is generated from the true model. The paper in its current form gives the impression that due to the convexity of the loss the method is able to recover the weights exactly, hence solving the identifiability issue, which cannot be true. Given the clarification, I would encourage the authors to include a short discussion in the revised manuscript and be upfront about what can or cannot be achieved by the method. **Experimental Data:** I respectfully tend to disagree with this argument for a few reasons: - There are many public datasets that are not trial-based. For the cases where the data is a continuous time series achieving a low test error (where the model that's trained using time points 1 to $T$ predicts time points $T+1$ to $T+T_{test}$) has been a fundamental challenge in computational neuroscience and I'm not aware of any methods with excellent performance. - Indeed a better test of the model is on interventional data, but many labs are still not able to build the experimental apparatus to incorporate such experiments, while still interested in applying these models to their observational data with less costly computational resources. - Regarding how low is good enough, there are statistical tests that can address this but just naively, one would expect to see comparable-if not better-results than the existing methods. Additionally, one can investigate further and establish neural or behavioral relevance of the fitted weights in a more exploratory setting (this is not well-thought, but just as an example, if the authors can show that CORNN's weights are closer to Dale's law as opposed to BPTT). - Although low-dimensional structures are prevalent in neuroscience experimental data, the dynamics are still complex and may require many parameters to be explained. In addition, the overparameterization of these models can help achieve a better test error. I'm going to increase my score due to the excellent discussion points and clarifications, but I still stand by my argument that the lack of results on experimental data is a weakness of the paper, and if accepted, I look forward to seeing future iterations of this work with applications in real experimental settings.

Reviewer GD242023-08-16

Also, please replace all instances of "miss-match" with "mismatch", I believe the former is wrong.

Authorsrebuttal2023-08-16

We thank the reviewer for their willingness to discuss further and for helping us improve our work. We will add the discussion on the non-identifiability and fix the typos with "mismatch." We appreciate your inputs regarding the real-data applications, which we will keep in mind moving forward. Thank you for your comments and questions throughout the entire review process. The manuscript has been made much better by them.

Reviewer Gp7K2023-08-14

Response to rebuttal

Thank you very much for your comments. For the added discussion, I am wondering why you did not opt to include processing time comparison as a result? For all other comments, I am quite satisfied with the answers and also with the current score.

Authorsrebuttal2023-08-14

Response to reviewer

Thank you for your kind response. When preparing the experiments to include in the results section, we mainly focused on how we could address applicability to a diverse range of attractor structures and model mismatches. In hindsight, it would have been a wonderful idea to add these as results. At the moment, we cannot commit to adding more results, due to the priority of ongoing experiments (Figs. N1-3), but we will try to add a figure on this if time and space permit.

Reviewer 1Kip2023-08-15

Than you for providing clarification and addressing my concerns. Having a form of the neural network that is convex and general enough to address complicated time series could also be valuable in building maintenance systems - to distinguish indicators for potential failures, or in situation that require fast reaction times like cyber attacks in communication networks. Of course, you have to adapt your idea accordingly.

Authorsrebuttal2023-08-16

Thank you for the comments and for your help on this manuscript! This line of research seems interesting, and though it is outside of our area of expertise we will look into it.

Program Chairsdecision2023-09-21

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC