- Rating
- 5
- Clarity
- 3
- Confidence
- 4
- Originality
- 3
- Quality
- 4
- Significance
- 4
Read review
Summary
This manuscript considers gradient descent learning in recurrent neural networks whose recurrent weights are constrained to be low-rank, focusing mostly on the rank-1 case. The authors present two main results: an exact analysis of gradient flow in rank-1 linear RNNs, and a mean-field analysis of nonlinear rank-1 RNNs in the limit . Conceptually, the main result is that the loss dynamics can be reduced into a low-dimensional flow on the overlaps between the parameter vectors. Some of those overlaps are "loss-invisible" in the sense that the loss does not have explicit functional dependence on them, but those loss-invisible overlaps are necessary for predicting the learning dynamics.
Strengths and weaknesses
I found this to be an interesting paper, and am in favor of its acceptance. It unifies two prominent lines of ongoing research on RNNs: studies of the dynamics of low rank networks with fixed weights, and studies of learning dynamics. Though the authors focus on simple cases (namely, rank-1 linear and non-linear RNNs), I think they've chosen the right minimal model settings given their overall goals. The analysis of the linear rank-1 model is in particular a strong point, as it is intuitive and exact. While I think it's not surprising (at the level of the paper's title) that learning dynamics can reveal information about a system that would be invisible by considering its function at a single moment in time (to state the obvious, transformations of weights that leave the output and thus the loss invariant are sometimes identifiable from measurements of dynamics), the manuscript does much more than that.
With all of that in mind, I do have questions and concerns on several fronts. If the authors can address these, I think the paper would be further strengthened. To avoid repeating myself, I will list these concerns under Questions.
Questions
First, I have several comments which, if addressed, might lead me to further raise my score:
-
The authors present their analysis of the Gaussian nonlinear case very prominently, claiming that they have provided "the first analytical description of learning in nonlinear task-trained RNNs". While the authors are upfront about the fact that the assumption that training preserves parameter Gaussianity is required, and the fact that this assumption can be broken at large learning rates or under learning rules like Adam, I think it would be useful to dwell more on this issue. As it stands, the authors offer very little discussion of what they think the general domain of validity of this assumption is, and of how small departures therefrom would affect their results. It would be useful to provide more systematic experimental or theoretical probes of when parameter Gaussianity breaks down.
-
I think the authors could provide stronger experimental support for the claim that "memory is encoded in the invisible overlaps" in the nonlinear case. In particular, provided that I haven't missed something (if I have, I apologize), the authors' test of this claim is based on simulating the reduced dynamics rather than a full non-linear network (Lines 229-231). It would be useful to complement this probe with a simulation of the full, -dimensional RNN before the reduction. This is related to the question of parameter non-Gaussianity, as noted above.
-
In the list of contributions, the authors state that the boundary between loss-visible and loss-invisible overlaps is determined by the activation function. This seems like an oversimplification, as in general all components of the input-output map and task could influence which overlaps are visible. I think it's important to be very precise in the taxonomy of overlaps.
-
In my opinion, the authors overstate somewhat the potential biological implications of their study (in Lines 295-305). First, I would be surprised to find an experimental neuroscientist that would not already believe that "observing how a system learns can reveal structural differences that remain hidden in static recordings of behavior". I would encourage the authors to moderate slightly the claim that this idea is novel. Second, the authors do not address the challenges of long-term longitudinal recordings. While photostimulation can be expensive and technically challenging, reliably tracking and recording the same set of neurons in a given area over the full time period of learning is also no mean feat. It's also not clear how partial observation across both neurons and time would limit an experimentalist's ability to identify circuit structure from changes over learning. Finally, as the literature on representational drift illustrates, there is ample possibility for changes in circuit structure and activity that are not driven by an explicit task but are potentially relevant for function, which can complicate the interpretation of any such experiment.
-
I have two quibbles with how the authors present the relationship of their findings to previous works. First, I do not think it is entirely fair to say that "Moreover, we do not rely on idealized initialization scales"; the authors replace this assumption with the assumption that the connectivity is purely low-rank with no random bulk. Second, in the setting of Bayesian inference (which is of course much easier to study at a mean-field level because it does not require tracking weight dynamics), recent works from Bauer et al. and Clark et al. have provided some, though limited, insights into learning in nonlinear RNNs. It might be useful to discuss the relative advantages and disadvantages of this orthogonal simplification, relative to the authors' rank-1 Gaussian closure assumptions.
-
I think it would be useful for the authors to clarify which aspects of the phenomenology they study are specific to low-rank RNNs, and which would extend to a more general class of overparameterized optimization problems, of which linear low-rank RNNs are a specific example. They hint at this connection around eq. (12), but I think they could make more of it.
Concretely, consider an abstract optimization problem parameterized by a matrix-valued variable with , where the loss function depends on only through the Gram matrix . Then, as , gradient flow will induce a flow on the cone of PSD symmetric matrices, where the preconditioner is a linear operator that (provided I've not mixed up the matrix calculus) acts on a generic test matrix via .
For a problem of this form, even if the loss depends only on a subset of the elements of , the preconditioner will in general mix together all of the elements, introducing mixing between visible and invisible overlaps of the same type the authors discuss here. Therefore, one could imagine studying similar memory effects through optimization in other problems that have this visible/invisible dichotomy, like a symmetric matrix completion problem , where is the target matrix and defines the set of visible indices.
In addition to providing some context for the generality of the phenomenon, I think this approach would also allow a more compact derivation of the preconditioner for linear low-rank RNNs with arbitrary rank , in particular one that is more compact than the derivation the authors present in Appendix D. Indeed, if I've counted correctly, for a rank- network this gives total overlaps, of which are visible and are invisible. Though this count is clearly smaller than the total parameters, it still grows rapidly with . This helps clarify the scalability of the analysis with rank.
I also have some points of curiosity, which could be interesting to explore but are tangential to the main claims:
- In light of point 6 above, I think the authors could make more of the properties of the preconditioner from an optimization perspective. First, it would be interesting to study in more depth the properties of the preconditioning matrix in the rank-1 case: what geometry does it induce, and how does that change over training for the tasks of interest? Second, with the authors' discussion of learning rule modifications from Section 4.2 in mind, I wonder if they could more explicitly map out how alternative preconditioned gradient flows in the overlap space would map back to preconditioned flows in the high-dimensional parameter space. It could be interesting to try to systematically design preconditioners based on insights from the reduced model.
Finally, I have a few minor comments, at the level of typos:
-
Unless I'm missing something, Appendix A.2 uses a different convention for factors of than elsewhere, since the overlaps should carry normalizing factors of .
-
and do not seem to be used consistently to denote only visible and invisible overlaps, respectively.
Limitations
Up to the issues noted under Questions, particularly regarding the nonlinear RNN analysis, I think the authors adequately discuss the limitations of their work.
Paper formatting concerns
I have no formatting concerns.
Final justification
I recommended acceptance from the start, and the authors' detailed replies promise to further improve what is already a strong paper. I maintain my score of accept.
We thank the reviewer for their careful reading of our work and for their relevant and sharp questions. Please find below our responses to your questions.
A1: We appreciate that our direct statement of the assumptions was clear. Thanks for the suggestion of dwelling more on this issue. There are many possible extensions of our work that relate to it. For instance, Adam can be thought of as a second-order version of gradient flow, which would induce not only a Jacobian-like Gram matrix but also a Hessian-like object. In the appendix (B.4.1), we showed numerically how Adam, large learning rates, and more complex tasks all tend to break Gaussianity. As to your question on the scope of validity, we think there are two important points. First, in the examples we showed, despite the departure, we could compute the overlaps from the final high-D networks and see that the actual output was captured fairly well by our approximation (Fig. 8 in the appendix). Second, we performed new simulations in which we took the same task that broke Gaussianity and retrained it with higher rank (3-5). We found that all parameters (except the output weights, which converged to a bimodal Gaussian) remained Gaussian in this setting. This suggests that it is possible to trade off rank for multiple populations, increasing the scope of validity of our work. Finally, the work of Beiran et al., 2021, Neural Comp provides a framework for handling the typical violations of Gaussianity we observed, and offers an interesting direction for extending our work.
A2: The reviewer is correct that this is related to the Gaussianity assumption underlying the theory. By training directly in overlap space, we enforce this assumption by construction. That said, we did run additional experiments simulating the full N-dimensional network directly on the A/B→C protocol. As expected, we find that the Gaussian assumption is not exactly preserved at some points during training, which limits the extent to which the overlaps alone can be interpreted as sufficient statistics of the network function. That said, we can still apply the same classification analysis to the overlaps computed from this full N-dimensional simulation. While the results are not as clean as those reported in the paper, we still find that some of the loss-invisible overlaps, in particular the norm ∥∣z∥∣2, remain a better decoder of training history compared to the other overlaps. Note that in this case, ∥∣z∥∣2 can no longer be strictly interpreted as loss-invisible in the original sense, given the breakdown of the Gaussian assumption.
A3: We agree that this statement, at the stage it appears early in the manuscript (line 57), needs to be more precise, and we will revise it accordingly. What we meant there, in the context of our chosen architecture (rank-1 RNN), is that switching between linear and nonlinear activation changes which overlaps enter the loss gradient and which do not, thereby shifting the visible/invisible boundary, as depicted in Fig. 11 in the appendix.
A4: We generally agree with these comments and will be more careful in discussing this part in the final version of the manuscript. We would like to note that we share the reviewer's interest in applying these ideas to neuroscience. Since submission, we have been actively working/talking to several experimentalists in an effort to translate these ideas into concrete neuroscience learning experiments. We agree that several technical and theoretical steps are still needed to fully test these ideas in practice. That said, we intended our framework more broadly, as a general lens that can be applied to many settings in biology where two levels of description exist, a microscopic one and a macroscopic one, for example genotype and phenotype, or synaptic connectivity and motor action. In this view, we interpret G as a way to map between these two levels, translating microscopic changes (the level at which plasticity takes place) into their macroscopic consequences (the level more associated with function).
A5: We agree with the first point, and will revise the statement to more precisely reflect that we replace the idealized-scale assumption with one of pure low-rank connectivity and no random bulk. We also thank the reviewer for pointing us to these two recent preprints, which take an interesting alternative approach. We will read them carefully and discuss them in the appropriate place in the revised manuscript.
A6: Thank you for this excellent suggestion. Our vector σˉ is precisely a vectorized representation of the upper-triangular part of your matrix Q, and writing the dynamics directly in matrix form is indeed more elegant. Furthermore, because both Q and M (which we take to be the gradient matrix) are symmetric, things simplify a bit more. In the linear case, the matrix M also has a block structure when written in the order m,u,v,z, which makes viewing the dependencies between visible and invisible overlaps simple. In particular, consider Q and M written as 2×2 blocks:
\qquad \boldsymbol{M} = \begin{bmatrix} 0 & D \\\\ D^{\top} & 0 \end{bmatrix} \quad\text{where}\quad A=\begin{bmatrix} ||\boldsymbol m||^2&\sigma_{mu}\\\\ \sigma_{mu}&||\boldsymbol u||^2 \end{bmatrix}, \quad B=\begin{bmatrix} \sigma_{vm}&\sigma_{zm}\\\\ \sigma_{vu}&\sigma_{zu}\end{bmatrix}, \quad C= \begin{bmatrix}||\boldsymbol v||^2&\sigma_{zv}\\\\ \sigma_{zv}&||\boldsymbol z||^2 \end{bmatrix}, \quad D= \begin{bmatrix}\nabla_{vm}&\nabla_{zm}\\\\ \nabla_{vu}&\nabla_{zu} \end{bmatrix}$$ Then we get $$\dot{\boldsymbol{Q}} = \left(\boldsymbol{Q}\boldsymbol{M} + \boldsymbol{M}\boldsymbol{Q}\right) = \begin{bmatrix} BD^\top + DB^\top & AD + DC \\\\ CD^\top + D^\top A & B^\top D + D^\top B \end{bmatrix}$$ As you point out, this also opens the door to other optimization problems. We feel that, while more elegant, this derivation might be harder to follow within the narrative of the rank-1 case presented in the main text. As you note, for higher rank, the elegance becomes much more dramatic. Indeed, when considering a rank-$r$ case, and ordering the vectors as $[\boldsymbol{m}, \boldsymbol{u}_1, \boldsymbol{u}_2, \ldots, \boldsymbol{u}_r, \boldsymbol{v}_1, \boldsymbol{v}_2, \ldots, \boldsymbol{v}_r, \boldsymbol{z}]$, we get a block matrix in the gradients with $(r+1)\times(r+1)$ off-diagonal blocks that are non-zero and zero diagonal blocks. We will therefore switch our rank-2 derivation in the appendix (App. D) to this version, along with an acknowledgment to an anonymous reviewer. Thanks again. **A7:** We share the reviewer's enthusiasm for studying the role of the preconditioning matrix more systematically. Regarding the first point, on how much $\boldsymbol{G}$ changes over the course of training, we find an intuitive connection to the rich-lazy regimes of neural network training. When the parameters are initialized with large norms (lazy regime), $\boldsymbol{G}$ barely changes during training and learning converges quickly, whereas small initializations lead to substantial changes in $\boldsymbol{G}$ and much slower convergence. Regarding the second point, generalizing our formulation to other learning rules (such as Adam) is also of great interest to us, and we are actively exploring this direction (also see Q1). Finally, from a neuroscience perspective, we think of this preconditioning matrix and its relation to subsequent learning as a possible way to study shaping and curriculum effects. Networks with different preconditioning matrices would exhibit different learning trajectories and different adaptation times to a subsequent task, which we hope could be leveraged to design and study more effective training curricula. **A8:** Thank you for catching this, we will fix the normalizing factors in the revised manuscript. **A9:** You are right. We occasionally use $\boldsymbol{\sigma}$ both for the loss-visible overlaps and, with some abuse of notation, for overlap space in general throughout the text and figures. This is also unclear in the nonlinear case, where the visible–invisible partition changes. We will be more precise throughout the revised manuscript.