- Rating
- 5
- Clarity
- 3
- Confidence
- 4
- Originality
- 3
- Quality
- 4
- Significance
- 3
Read review
Summary
This paper proposes a model for learning the ordinal positions of items in hierarchical sequences. They investigate the representation of the model with a focus on geometry. The authors claim to show that the geometry is two-dimensional and that the ordinal information for the first level of the hierarchy is encoded orthogonally to the ordinal information of the second level.
Though my list of weaknesses and questions is long, I think that the main issues with the work are with framing and proper contextualization and comparison with controls rather than with the core results themselves. As such I think that after addressing these (or successfully refuting my points) the work would solidly merit acceptance.
Many of my comments could probably be leveraged toward the already published Fan et al. 2024 paper that inspired this current work, but I think that since that work was published in a less mathematical venue than NeurIPS it is still appropriate for me to raise these points here.
Strengths and weaknesses
Strengths
-
The model is interesting and to my knowledge novel. Combining on-the-fly associative map building with gradient-based learning feels like an approach that has utility that goes well beyond the scope of the current work.
-
The experimental results of the experimental study "Two-dimensional neural geometry underpins hierarchical organization of sequence in human working memory" published in Nature Human Behaviour by Fan et al. 2024 are elucidated by the model. I think it is a strength of both papers that they focus on their respective domains (experiment and modeling), rather than attempt to combine both in a single paper.
Weaknesses
- Some of the results seem to not support the conclusions, or the arguments are insufficient to support the conclusions. This negatively impacts the quality of the paper. Here are the specific examples I have in mind:
1a. Figure 3D seems to contradict the claim that the geometry is 2D -- it looks more like 2.5 or 3 dimensional at least. Figure 3C is claimed by the authors to show that the geometry is 2D, but a nonlinear dimensionality reduction method like (some variants of) MDS will transform the data quite strongly to make it fit onto a 2D sheet, so I do not feel like this plot necessarily shows that the true data is 2D. If the authors want to make the case that the underlying manifold is (nonlinearly) 2D, such as a 2D sheet that may be curved, they should use nonlinear measures of dimensionality such as box-counting dimension, while also comparing with appropriate null models. If the authors want to focus on linear dimensionality, then I believe PCA is the right tool and MDS can be omitted.
1b. There aren't clear criteria for what it means for the data to be (linearly) 2D. For instance, is 80% variance explained in the top-two principal components significant? How much variance would be expected in subsampled white noise data? I think there is a lack of controls and null models for establishing the authors' claim.
1c. There isn't clear criteria for what it means for the ordinal encodings to be orthogonal. Since random data in high-dimensional spaces is nearly orthogonal with high probability, I don't know if it is enough to simply show angles close to 90 degrees. I think there needs to be a meaningful null hypothesis to compare against, or at the very least a discussion of why showing near 90 degrees is sufficient even though the neural space is high-dimensional. A related point is that the 109 degrees shown in human data may be surprisingly non-orthogonal compared to appropriate null models, and the difference between the model and data might be quite large compared to appropriate controls. Note that since the readouts are linear, I believe that you could skew the representation while performing a counter-acting skew to the readouts which would break orthogonality and not change the output of the model at all, which would suggest that orthogonality is an epiphenomenon.
- I think the framing of the significance of the results is lacking in three main ways which impact clarity and significance. These are:
2a. The alternative "1D embedding" hypothesis feels like a bit of a strawman to me. Since the outputs of the network are linear, I don't think it would be possible to encode ordinal information on a 1D line and succeed at the task, so the model is directly enforcing that the representation be >1D. In general a 1D encoding of this information seems strange to me since it would require a highly nonlinear readout to resolve. I believe there are much more compelling alternative hypotheses, such as a sparse encoding of the ordinal information in the neural population.
2b. Since the network is directly asked to report ordinal information, it is not very surprising to me to see this information dominating the (variance of the) representation of the network near the readout time, and is consistent with many other works. As with other works, the degree to which the input information is compressed out so that only output-relevant information remains is probably dependent on many details of the model such as optimizer used, amount of weight regularization, etc (see "From lazy to rich to exclusive task representations in neural networks and neural codes" by Farrell et al. for a review).
2c. In the final paragraph, I don't understand the connection made to transformers. I think you can provide whatever form of "positional" encoding you would like in the inputs to the model, including hierarchical. In any case, in this work the ordinal information is never provided directly so the point feels somewhat moot.
- A small issue with clarity is that the text in Fig 1A is too small to read comfortably. Maybe the authors can use the extra page allowed for the revised paper to increase it.
Questions
Questions for the Authors
-
Can the authors clarify the MDS algorithm used in Figure 3C and elsewhere? I was under the impression that "standard" (Euclidean?) MDS and (mean-centered) PCA produce the same outputs (Nonlinear Dimensionality Reduction by Lee and Verleysen, page 75), so that Figures 3C and 3D would be plotting the same information. If the authors are not using Euclidean distance, but rather a distance metric with local support to capture local rather than global geometry, then I believe MDS is more free to move points around (as long as these local distances are preserved), so Figure 3C would need to be interpreted carefully.
-
Can the authors clarify their criteria for saying that the representation is X-dimensional? Can the authors ensure that these criteria are properly contextualized, i.e. by providing meaningful null hypotheses such as random data?
-
(similar to 2) Can the authors clarify their criteria for saying that the representations of different variables are orthogonal? Can the authors ensure that these criteria are properly contextualized, i.e. by providing meaningful null hypotheses such as random data?
-
Can the authors provide more interesting/reasonable alternative hypotheses for the representation to compare against than a 1D encoding of ordinal information (or explain the flaws in my argument above that a 1D representation is not a strong potential hypothesis)? For example, a sparse encoding of the ordinal variables could be interesting to compare against.
-
Can the authors situate their findings related to the network representation in the context of other studies that show that task-relevant information becomes (or doesn't become) dominant near the network's output window? A survey that covers a slice of these studies is "From lazy to rich to exclusive task representations in neural networks and neural codes" by Farrell et al.
-
It may be outside the scope of this work to make an exhaustive study of which hyperparameters yield the results shown here, but can the authors anyway provide a discussion of how model choices such as optimizer, network size, network scaling, and other hyperparameters has been shown to have a strong impact on the representations of trained networks, and how that is or is not relevant to the current study? Farrell et al. could again be a useful place to look for this information.
-
Given their deep connection with Hopfield networks ("Hopfield Networks is All You Need" by Ramsauer et al.), I'm a bit surprised that the transformer is not able to solve this task as well as the Hebbian-RNN. Can the authors clarify the way that the inputs are provided to the transformer model and give some intuition for why it does not succeed?
Limitations
While the authors do perform some sweeps over hyperparameters, there are many others such as optimizer used (for the gradient learning), regularization strength alpha, weight initialization scheme, network size/architecture, etc. I don't think the authors need to perform such a systematic analysis here, but this limitation should be noted.
Paper formatting concerns
No concerns
Final justification
My main concerns regarding the characterization of "2d" geometry and orthogonality appear to be fully addressed. The reviewers have also demonstrated that they will take more care with comparing with alternative coding schemes. Filling out the experiments with the transformer model also appears to have resulted in much better insight and the new results match my intuition more closely.
I have remaining reservations about the generality of their results to alternative optimizers and other hyperparameters, but this anyway does not challenge the main thrust of their work which is more about demonstrating a solution that matches the brain and that neural networks are naturally capable of doing. The authors have stated their intention to look into this, and since it is relatively straightforward to do I have reasonable confidence that the authors will be able to do this and report on what they find in the revision. Again, a "negative" result (their findings vanish with a different optimizer such as standard SGD) wouldn't threaten their main findings and would enrich the work by adding nuance, so I encourage the authors to report on it, whatever they find.
Given that my concerns were addressed, and since I feel that the positive attributes of the paper are substantial, I am raising my score to 5 (accept).
We thank the reviewer for their detailed and insightful feedback. We address each point below in turn.
On Weaknesses:
W1a:
Figure 3C was generated by applying MDS to an RDM constructed from pairwise Euclidean distances, aiming to enable direct comparison with Fan et al.'s experimental findings. We additionally performed a PCA visualization, which reveals a qualitatively similar global - local organization; this will be included in the revised version.
In both Fan et al. and our present work, the "2D geometry" emphasizes that the 1D sequential items are orderly organized by two approximately orthogonal and factorized representational axes indexing global and local rank. Figures 3D and 3E provide qualitative and quantitative support for this organization: the planes defined across different local ranks are approximately parallel to one another, as are the planes defined across different global ranks, whereas the dominant global- and local-rank directions are approximately orthogonal.
We acknowledge that Fig. 3D shows slight deviations from a strictly planar geometry. This is an interesting point. Similar curved geometries have recently been widely observed in representational geometry in the prefrontal cortex [1,2], which may support the linear separation and readout of task-relevant variables. In our model, such slight deviations may similarly facilitate the linear readout of global and local rank. We will discuss this in the revised version.
W1b: We constructed two matched Gaussian null models: (1) a standard null that preserves the numbers of conditions and neural units, and (2) a trial-variance-matched null that additionally preserves heterogeneous per-unit trial-level variability.
For each of 10,000 independent null realizations per model seed, we computed the cumulative variance explained by the first two PCs. The observed value was 80%, substantially exceeding both null means - 30.7% for the standard Gaussian null (95% CI: [30.2%, 31.2%]) and 38.8% for the trial-variance-matched null (95% CI: [37.3%, 40.3%]) - with empirical p < 10⁻⁴ in both cases, confirming that the low-dimensional variance concentration is not an artifact of undersampling.
W1c: Orthogonality essentially means that memory representations are reorganized into a factorized geometry, with the two axes encoding global rank and local rank, respectively (Fig. 3C-E, Fig. 4). We note that a near‑90° angle is merely one reflection of the underlying metric; random high‑dimensional vectors may also exhibit near‑orthogonality, yet they would not be expected to produce the ordered, factorized, and globally consistent rank geometry demonstrated in Fig. 3C.
To this end, we performed trial-label permutation analyses across independently trained models. For each model, we represented hidden activity as H∈RT×R×N, with T, R, and N denoting trials per condition, joint rank conditions, and hidden units, respectively. Randomly permuting joint-rank labels across the TR trials disrupted the correspondence between population activity and hierarchical-rank labels, while preserving original activity patterns, trial variability, neural dimensionality, and covariance structure.
As shown in Table, we quantified the within- and between-factor angles of the global- and local-rank planes (Fig. 3E). Compared with the permutation null, planes within each rank factor were substantially more parallel, whereas global- and local-rank planes were more factorized. All three effects were significant, supporting an orthogonal coding scheme in which the two axes encode global and local rank, respectively.
W2a: We would like to clarify that our primary aim is not to establish a generic distinction between 1D and 2D hypotheses, but rather to explain the experimentally observed 2D memory organization reported by Fan et al., both representationally and computationally.
We believe that sparse coding of the different rank combinations is an intriguing hypothesis. If the nine global–local rank pairs are encoded as high-dimensional sparse patterns, one way to ensure linear readout arbitrary rank would be to adopt a regular simplex geometry, with nine equally separated states spanning an eight-dimensional subspace and no factorized structure. In contrast, our trained networks exhibit a factorized organization, using local- and global-rank axes to structure memory.
W2b: We thank the reviewer for bringing this important work to our attention. We discuss it in Q5,Q6. We will cite Farrell et al. and discuss this issue in the revised manuscript accordingly.
W2c: : Neuroscientific evidence suggests that the brain uses orthogonal codes to represent positional information at multiple scales, both within and across chunks. Our work suggests that we can employ a recurrent network that integrates chunk-level inputs with local item positions to form a dynamic, multi-scale positional encoding for the Transformer - rather than a static embedding - while self-attention acts in the role of fast-Hebbian weights. Additionally, chunk information may be derived from the Transformer's own prediction errors, enabling dynamic temporal segmentation and geometric memory organization.
W3: We sincerely thank the reviewer for this suggestion. We will improve it in the revised version.
On Questions:
Q1: We indeed used standard MDS with Euclidean distance (see W1a).
Q2: First, the first two PCs explain 80% of the variance, significantly exceeding matched undersampled Gaussian null models (see W1b for detail).
Q3: Consistent with Fan et al., we use the term "orthogonal representation" to refer to a factorized geometric organization dominated by two rank-related dimensions. Thus, our criterion is not merely that two rank vectors form an angle close to 90°, but also that the representation exhibits significantly greater within-factor parallelism and between-factor separation than a covariance-preserving label-permutation null (see W1c).
Q4: Distinguishing between 1D and 2D coding hypotheses is not the primary goal of our work. We agree that sparse coding provides a meaningful alternative. As detailed in W2a, a regular simplex (such as for 9 ranks here) spanning an eight-dimensional subspace can be sparse and meet the task requirement of allowing linear decoding of all nine conditions, but it would contain no factorized global- and local-rank axes. In contrast, our trained networks organize the nine states along two factorized rank dimensions - a key feature of Fan et al's findings.
Q5: We thank the reviewer for this suggestion. Consistent with the framework discussed by Farrell et al., the corresponding approximately two-dimensional, task-related geometry indeed becomes dominant in the post-cue output window (Fig. 3). Interestingly, unlike in conventional RNNs where task-aligned geometry is often most apparent near readout, related structure is also evident during encoding (Fig. 4) and in the Hebbian weight matrix itself (Fig. 5B). How this factorized geometry emerges through the interaction of recurrent dynamics, Hebbian plasticity, and readout constraints therefore remains an important open question. A key direction for future work will be to track its emergence over training and across different stages of the task.
We will cite the paper and include a detailed discussion in the revised version.
Q6:Within the framework of Farrell et al., our model is better characterized as a rich feature-learning solution, because its hidden representations reflect the latent structure of the task rather than preserving a generic high-dimensional code. Across different Hebbian update rules (Fig. S5) and fast-weight learning rates η (Table S1), networks that successfully learned the task consistently developed a two-dimensional factorized geometry.
We hypothesize that, unlike standard classification, the rank recall task requires computing hierarchical ranks, binding items to them, and retrieving the correct item after a cue - operations resembling an algorithm (Sec. 3.3). While a lazy or high-dimensional representation may encode rank information, it likely falls short for these compositional operations without substantial internal learning.
Q7:In the Transformer baseline, the chunk signal, stimulus vector, and control-channel input at each time step were concatenated into a single vector and combined with standard positional encodings.
Additional experiments show that the Transformer (with the same model and task as in Fig. 2C, measured by test accuracy) can solve the task when trained with more data and for more epochs.
Thus, the difference largely reflects sample and learning efficiency. Under the current setting, the Transformer requires approximately 3.3× more training data and approximately 3× more training epochs to match the Hebb-RNN’s performance (100.0% ± 0.0% after 50 epochs with 3,000 training sequences). We will include these results in the revised manuscript.
References:
[1] Kriegeskorte et al., Nature reviews neuroscience, 2021.
[2] Bernardi et al., Cell, 2020.