Meta-memorization and memorization scaling laws in transformers
Alex Nguyen, Kenneth A. Norman, Gautam Reddy
NeurIPS 2026
TL;DR. We study memorization scaling laws in transformers, demonstrating that efficient memorization is due to a meta-memorization effect: models learn to memorize novel sequences more quickly.
Abstract. Larger transformers can memorize more data, with a capacity (in bits) that scales roughly linearly with parameter count. Counterintuitively, larger models also memorize faster, requiring fewer repetitions of a sequence during training before it is perfectly memorized. We reproduce both memorization scaling laws in transformers trained on unstructured sequences, demonstrating that efficient memorization is not due to a larger model's superior ability to learn structure in data. Rapid memorization is due to a meta-memorization effect, where models trained to memorize a large set of random sequences learn to memorize novel sequences more quickly. The rate at which models memorize grows with training time as a power-law with a fixed exponent but an increasing upper cutoff across model scales. In one-layer models, we trace the origin of meta-memorization to structured attention heads that convey length-invariant sequence information to MLPs where memorized sequences are stored. Meta-memorization is explained using a simplified model of a dense associative memory where retrieval is constrained by an attentional bottleneck. Put together, our results suggest transformers dynamically acquire reusable mechanisms that enable highly efficient storage and retrieval of memories.
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 paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:47 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
The authors study the emergence of memorization capacities in transformers over the course of training. They use random data to rule out effects of data structure and find significant increases in memorization abilities as both training time and model size increase.
Reviewers were concerned about the exact question being addressed by the submission, which the authors might want to state explicitly and succinctly for clarification.
There were also concerns that the described results may not be sufficiently novel against the existing literature.
The authors should clarify the exact framing of their contribution, and how their results differ from previously reported results.
Final justification
After discussion, reviewers have updated their score and all lean towards acceptance, though with varying enthusiasm. Exact memorization is an important topic in training large models and learning more about it is valuable. Overall I am recommending acceptance.
Read meta-review
Meta-review
The authors study the emergence of memorization capacities in transformers over the course of training. They use random data to rule out effects of data structure and find significant increases in memorization abilities as both training time and model size increase.
Reviewers were concerned about the exact question being addressed by the submission, which the authors might want to state explicitly and succinctly for clarification.
There were also concerns that the described results may not be sufficiently novel against the existing literature.
The authors should clarify the exact framing of their contribution, and how their results differ from previously reported results.
Final justification
After discussion, reviewers have updated their score and all lean towards acceptance, though with varying enthusiasm. Exact memorization is an important topic in training large models and learning more about it is valuable. Overall I am recommending acceptance.
- Rating
- 6/6
- Confidence
- 2/5
- Quality
- 4/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 4/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This work studies the phenomenon of memorization in transformers, such as their ability to regurgitate a book verbatim given a few words. The authors do this in a restricted setup where completely random, unstructured binary sequences are given to two types of transformer architectures, and the models must predict the n+1 bit. The lack of structure ensures that the model cannot inadvertently generalize. The authors find, consistent with prior work, that memorization scales linearly with the number of parameters. They go on to show that larger models tend to memorize rarer sequences faster as well as learn new sequences faster midway through training. The authors term this "meta-memorization" or learning how to memorize faster. In a series of ablations/experiments, the authors show that the MLPs act as memory stores for the sequences and that the attention layers provide context to the MLPs to retrieve the correct memory. They finally put this together in a simple model of transformer meta-memorization based on dense associative memories. They show that their model recapitulates the observed behavior in transformers.
Strengths and weaknesses
Quality: This work is rigorous in its experimental design and evaluations.
Clarity: The paper is extremely well-written, properly discusses prior work, and each set of experiments intuitively follows based on the text.
Significance: Understanding the ability for transformers to memorize is important for safety research. In particular, this work provides a model for understanding this phenomenon in isolation. In the future, incorporating abstraction and generalization, another ability of transformers, into this framework will be critical for safety researchers seeking to maintain performance without leaking exploitable information.
Originality: To the best of my knowledge, this work is the first to document and model the meta-memorization effect. The authors clearly discuss the prior work and how their work is positioned in the space.
Questions
- As I understand it, the DAM model explains meta-memorization as efficient coding for providing context to the key-value store. Did you examine the coding schemes learned by the model?
- Related to (1), how would you expect meta-memorization to change under a different data distribution (i.e. not binary sequence)?
Limitations
The authors discuss the limitations briefly in the conclusion, but I feel this can be done in more detail. Specifically, the limitations of the setup and the conclusions drawn from it are not sufficiently discussed.
Final justification
As I mention in my rebuttal comments, I did not find the other reviewers' points compelling enough to lower my score. In particular, since no one noted any correctness issues at the end of the discussion period, differences in scores appear to boil down to an assessment of interestingness/novelty. I still believe this work studies an interesting phenomenon and does a good job providing a useful abstraction for it. My overall assessment remains unchanged.
Formatting concerns
None.
2 comments
Thank you to the authors for addressing all my concerns and questions.
I also read through the other reviewers' responses and corresponding discussion. While I acknowledge their concerns, I disagree with their initial recommendations. To me, this work studies a very specific phenomenon in a well-controlled setting that is appropriate for the questions being asked. I do not think that the prior work suggested studies the same phenomenon in as controlled of a setting. I also believe there is great value in building abstract models as frameworks for hypothesis generation. In my opnion, we lack toy mechanistic models of LLM behavior, but we are rich in empirical studies and "laws." I believe the authors have done a sufficient job of addressing everyone's concerns, and at this time, it appears that the other reviewers (who have responded) agree.
Therefore, I will maintain my already high score.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
Large language models are able to memorize a large amount of data in their weights, sometimes verbatim. Some works report that larger models are able to memorize faster. This work aims at shedding lights into these mechanisms by studying how toy language models memorize random sequences of bits. Memorization scaling laws are derived in this regime, qualitatively matching what has been found at scale. The authors additionally replicate the meta-memorization effect, in which memorization gets easier as the model is more trained.
Strengths and weaknesses
S -- The overall setup is well designed. Studying how transformers memorize random sequences of bits is an interesting toy setup. There is no structure in the data, so it makes it a perfect candidate to study memorization. The scaling laws replicate what we are expecting from larger scale experiments, confirming that it is relevant.
W -- The analysis, to the best of my understanding, does not yield new insights compared to existing literature. When looking at the data (particularly of Section 3.2), my overall understanding is that initial learning is slow because both MLPs and attention needs to be learned. Meta memorization occurs later on because the attention patterns are already learned, which speeds up learning of MLPs. This is consistent with the analysis of Zucchet et al. 2025a, and would provide a concise explanation for what is observed here. Can the authors confirm whether this interpretation is correct? If so, replicating this in a toy setting is always interesting but reduces the novelty of the insights. n addition to that, the theory section (3.3) provides a theory for meta memorization but it is unclear what we learn from that theory that we could not understand from 3.2 and the argument above. This is mostly because the model barely simplifies the one layer Transformer of interest. It almost reads as doing theory for the sake of theory.
As a result, the paper requires significant rework before acceptance, hence my score. The investigation of structure mentioned in the discussion sounds like the most promising direction for future research. I encourage the authors to continue in that direction; there is a lot to understand that can only understood in toy setups.
Questions
Be my assessment correct, only a major rework would make me change my score. That said, I am happy to revise it if the authors points out to something incorrect in it.
I have minor technical clarification questions:
- in Figure 2, is there any reason to plot the largest rank memorized and not the capacity directly? the maximum rank sounds like a noisy metric
- in Figure 3, is the number of appearances in the y legend the quantity?
Limitations
yes
Final justification
The authors have addressed my concerns regarding the quality of the study. The synthetic setup is interesting enough and the corresponding analysis well executed, which makes me recommend acceptance now. However, I still believe that the theoretical model does not bring too much, see my message in the discussion for more details.
Formatting concerns
n/a
3 comments
Rebuttal
We thank the reviewer for their detailed comments. Here are our specific responses:
First, we would like to clarify our motivations for this work: We wanted to explain several empirical results in the literature regarding memorization in transformers. In particular, Tirumala et al. (2022) showed that larger language models memorized the same number of natural language sequences after fewer presentations compared to smaller models. Because their models were trained on natural language, this speedup could reflect an improving ability to exploit linguistic structure. On the other hand, Zucchet et al. (2025a) studied how transformers learned facts about random synthetic entities which are expressed in natural-language. However, their task retains generalizable structure across sequences: every biography tracks a limited number of entities, so the model can reuse information about a person’s name across sequences, or a set of attributes across sequences, etc. Furthermore, their sequences are phrased in natural language, and thus their inputs combine linguistic information with random entity generation.
Therefore, in our study, we focused on our primary question:
How do transformers become faster at memorizing new examples as training progresses and as model scale increases?
To do this, we use random binary sequences which share no structure, unlike both Tirumala et al. 2022 and Zucchet et al. 2025a. This ensures that we study memorization specifically rather than increased knowledge / generalization across sequences throughout training.
Our work makes the following contributions:
-
We reproduce the finding of Tirumala et al. (2022) that memorization rate increases as a function of model size on independent random sequences, showing that the effect does not stem from learning linguistic structure.
-
We show that in a single model that being trained to memorize random sequences reduces the number of presentations required to memorize any arbitrary new sequence. Furthermore, this ability increases as the number of model parameters increase.
-
We identify the reusable attention computation: attention outputs develop position-invariant, linearly separable information about sequence identity.
-
Through our ablation experiments, we show that dataset-specific memories are localized mostly to the MLP and show that attention mechanisms transfer across independent random datasets.
-
We build a conceptual model of the functional division suggested by our transformer experiments using our DAM. This model of functional division explains the pattern of results we observe in the transformer experiments.
We will revise the paper to make these contributions explicit.
“When looking at the data (particularly of Section 3.2), my overall understanding is that initial learning is slow because both MLPs and attention needs to be learned. Meta memorization occurs later on because the attention patterns are already learned, which speeds up learning of MLPs. This is consistent with the analysis of Zucchet et al. 2025a, and would provide a concise explanation for what is observed here. Can the authors confirm whether this interpretation is correct? This is consistent with the analysis of Zucchet et al. 2025a, and would provide a concise explanation for what is observed here.”
Broadly interpreted, this interpretation is part of our results. The fact that our work recapitulates Zucchet et al. 2025a is natural, since we wanted to study a synthetic setting that isolates memorization phenomena in transformers. However, other experiments in the paper and our DAM provide a more precise account of what is learned and where than the analysis of Zucchet et al. 2025a, in a clean memorization setting without any linguistic structure. Our experiments reveal not just the order of learning, but what is being learned, leading to a conceptual model of a functional division between transformer components during memorization (see below).
Our results go significantly beyond the analysis in Zucchet et al. 2025a.
First, Zucchet et al. study knowledge acquisition rather than pure memorization, given the generalizable structure across sequences due to persistent entities. Zucchet et al. 2025a found a plateau during which attention-based factual-recall circuits form, followed by the acquisition of person-specific associations in feedforward layers. On the other hand, we do not observe a plateau in our experiments (see Supplementary Figure 3), since we isolate memorization and eliminate all structure across sequences.
Second, Zucchet et al. 2025a do not characterize the representational coding scheme learned by the attention heads. We show that sequence identity is linearly decodable for arbitrary sequences (not just for the entities already learned). Zucchet et al. 2025a’s attention-patching experiments show that learned routing patterns accelerate MLP learning, where early layers identify the learned entity and later layers extract the attribute. On the other hand, we show that this functional division can emerge in transformers with a single layer. We also further show that different attention heads specialize to particular positions in the sequence, as evident in the vertical bands in the attention maps.
Third, Zucchet et al. 2025a do not study how these properties change as model size increases. They replicate their results only across 3 model sizes. In contrast, we study how meta-memorization phenomena change with parameter count. Furthermore, Zucchet et al. 2025a did not observe changes in the plateau period as a function of model size (their Figure C), indicating that scale did not improve memorization rate in their setting. This might reflect the fact that their inputs are natural language (only the entity generation is random), indicating that their models need a scale-independent initialization period to learn this linguistic structure before memorization can occur. We will discuss this relationship with prior work more deeply in our paper.
“In addition to that, the theory section (3.3) provides a theory for meta memorization but it is unclear what we learn from that theory that we could not understand from 3.2 and the argument above. This is mostly because the model barely simplifies the one layer Transformer of interest. It almost reads as doing theory for the sake of theory.”
The DAM replaces the transformer components with three components that play specific computational roles during learning:
-
an -dimensional attentional bottleneck (modeled by A matrix) that converts a partial sequence into a query;
-
an associative memory whose keys represent sequence identity (where the B matrix controls the key writing)
-
a decoder that combines the retrieved identity with position using Bayesian inference to predict the next bit.
In our formulation, the matrices and model the interaction between the attention heads and the associative memory: the attention heads learn to pass maximally informative cues to the associative memory about the identity of the sequence being cued. The InfoNCE variant of the DAM has a standard mutual-information interpretation: the retrieval objective maximizes the information about sequence identity that can be recovered through the -dimensional bottleneck. We argued that the DAM provides a conceptual model of the functional division suggested by our transformer experiments and clarifies exactly the role of each component:
-
attention heads construct a position-invariant code that identifies the sequence and feed the query into an associative memory
-
The MLP acts as an associative memory that combines sequence identity with position to predict the next token.
This model of functional division explains the pattern of results we observe in the transformer experiments: meta-memorization during data switch experiments, memorization rate increases with scale, and the hybrid model retains above average performance due to the dataset-agnostic mechanisms learned by the attention heads. All of these results are captured in Figure 6. Therefore, our conceptual model explains what is being learned in each transformer component and how they interact. Transformers are only trained on next token prediction, so understanding how this functional division emerges from this simple objective is informative.
Furthermore, our DAM explains that scale helps with mutual information maximization between the attention heads and the associative memory. Therefore, increasing the size of the model (via the parameter ) increases the "channel capacity" and therefore increases the MI between these two layers. Consistent with this interpretation, Figure 7 finds that the Pareto frontier in performance is . We will revise Section 3.3 to state these predictions and connections more explicitly.
“in Figure 2, is there any reason to plot the largest rank memorized and not the capacity directly? the maximum rank sounds like a noisy metric”
Under Zipfian sampling, sequences are memorized approximately in rank order. We therefore used the largest memorized rank as a proxy for the number of memorized sequences. We agree that measuring capacity directly would have been better. However, we evaluated test accuracy only on every 10 sequences to reduce computational time and space requirements, since we perform this evaluation every 1000 iterations (out of 80000 iterations). Thus, we do not store model capacity for every time point and report maximum rank as a proxy instead.
“in Figure 3, is the number of appearances in the y legend the quantity?”
In Figure 3, the y-axis refers to the number of appearances at , the iteration when it first crosses the 90% memorization threshold, rescaled by the constant A.
I appreciate the authors detailed answer that clarified a few points. In particular, I now understand why the DAM model captures something that Zucchet et al. and 3.2 does not capture: larger number of parameters means less competition between sequences so they are faster to learn. However, I do stand to the fact that the DAM model is overly complicated: a pure attention-based perspective explain the initial faster learning (this is the part explained by Zucchet et al.) and a pure MLP argument most likely explains why larger models memorize faster (less competition means less forgetting of a sequence between every time it is seen, so overall faster to learn).
To summarize my current position on the paper, it is a nice setup to study meta-memorization, explaining the results can be done with existing understanding but it is still a mildly interesting contribution to study it this precisely. As a result I am hesitating between accept and reject; I will wait for the end of the discussion period to update my score.
We thank the reviewer for their response. While we agree that the DAM model is complicated, we found it to be the minimal model that captures the specialization of attention heads. We note also that the DAM model is not our primary contribution -- we use the DAM primarily to clarify the conceptual picture by expressing it in mathematical terms.
We believe that explaining scaling laws ultimately requires us to isolate the effects of scaling on different factors. Our rationale for choosing a highly simplified task structure was to precisely isolate the effects of scale on pure memorization from semantics, syntax or other structure. One of our main contributions is the empirical finding that larger models can one-shot memorize a 100-bit random sequence (Figure S7, for example). It was not a priori obvious to us that this would be the case. Larger multilayer MLPs have "more space" (so they have larger capacity) but they also have more parameters to tune.
In experiments that we could not include in the paper due to space constraints, we find that larger MLPs trained to predict random labels of random sequences in fact forget at the same rate as smaller MLPs. Rather, the primary effect is that they reach higher accuracy with a single gradient update. Moreover, the rate at which MLPs memorize increases during training, and thus meta-memorization cannot be explained solely by attention heads. To our knowledge, it is not yet clear why larger multi-layer MLPs memorize faster, though there are certainly some intuitive hypotheses that one could consider. For example, it is possible that the tangent kernel organizes itself to create orthogonal "slots" for efficient memorization over the course of training, but it is not obvious that this is indeed the case, and why that would happen if it were true.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 4/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The authors construct a simplified model of generalization in transformers, both in terms of architecture (random binary sequences with Zipfian occurence statistics) as well as architecture (1 layer transformer + MLP, among a more general GPT variant). The paper finds that:
- larger models memorize new sequences more easily, reproducing scaling laws in a much sinmpler model and thereby ruling out that this depends on data structure
- later points in training memorize sequences more easily, even ones that have not been seen yet
- information largerly is stored in the MLP weights, per a patching intervention
- a simple Dense Associative Memory (DAM) model replicates this effect
Strengths and weaknesses
Strengths
- A minimal model to explain memorization effects is good
- The authors control for where parameter count is increased in the model, and find a universal collapse
Weaknesses
- I don't see how the paper explains the general ease that transformers have with memorization. This sets the stage for the introduction, so I would have expected some connection?
- It is unclear what exactly is gained from the DAM model. As far as I understand, the original Ramsauer et al. work sees a main value of the DAM in connecting it to an energy function, which seems not to be the relevant part here.
- Relatedly, I find it a bit too qualitative to qualify as a theory
- I suggest reconsidering "meta-memorization" as a term, which seems not very descriptive to me and also risks confusing with meta-learning, which, as far as I understand, is "learning to learn", via a specific algorithm or a meta-category of tasks. Perhaps "accelerated memorization"?
- I find it a bit hard to connect the memorization rate to Fig. 3
- I find it a bit hard to make out what question the paper exactly is trying to answer, I feel it is more of a related collection of interesting results, which is fine.
Minor
L59: "it" -> "the Zipf distribution"
Questions
- In Fig. 4, there seems to be a significant degradation in accuracy in the hybrid model. Is there an explanation for this?
- Which of the results would reproduce without the Zipf law, but a unifrm schedule?
- Can some more understanding be gained of what underlies the cutoff in Fig. 3?
Limitations
discussed
Final justification
I maintain my positive assessment of this work, mainly supported by the novelty and simplicity of the setup as a contribution to advancing the basic science of learning in transformers. I also still maintain that I see that the paper speaks a lot to how transformers memorize, but not much (say: normatively/via theory) to why transformers memorize in that way.
Formatting concerns
None
2 comments
Rebuttal
We thank the reviewer for their detailed comments. Here are our specific responses:
I find it a bit hard to make out what question the paper exactly is trying to answer, I feel it is more of a related collection of interesting results, which is fine.
Our main motivation for this work is that we wanted to explain several empirical results in the literature regarding memorization in transformers. In particular, Tirumala et al. (2022) showed that larger language models memorized the same number of natural language sequences after fewer presentations compared to smaller models.
Therefore, in our study, we focused on the question:
How do transformers become faster at memorizing new examples as training progresses and as model scale increases?
We use random binary sequences to hone in on memorization phenomena, so that the model cannot learn any generalizable linguistic structure across sequences. We show that larger models learn to memorize sequences faster and demonstrate a scaling law in memorization rate. To understand the mechanisms of this learning to memorize phenomenon, we run ablation experiments to identify a functional division of labor between attention and MLPs, and finally show this functional division is captured in a minimal associative-memory model. We identify the reusable attention computation: attention outputs develop position-invariant, linearly separable information about sequence identity. Through our ablation experiments, we show that dataset-specific memories are localized mostly to the MLP and show that attention mechanisms transfer across independent random datasets.
I don't see how the paper explains the general ease that transformers have with memorization. This sets the stage for the introduction, so I would have expected some connection?
Our experiments show that the following mechanisms support transformer memorization:
- First, learned attention maps develop vertical bands, indicating that heads specialize to particular positions across query locations.
- Second, this causes sequence identity to become more linearly decodable from attention heads for arbitrary sequences, indicating that the attention heads are learning a sequence-independent computation.
- Third, dataset-specific memories are stored in the MLP, which acts as an associative memory that combines the retrieved identity with position to predict the next token.
- Fourth, the DAM shows that mutual information maximization of this representation and sequence identity predicts how well the MLP can memorize sequences, explaining why more parameters increase the model’s memorization rate.
Together, these results suggest the following functional division in learned transformers that facilitate memorization: attention heads learn to construct position-invariant, linearly separable representations of sequence identity, while the MLP stores the sequence-specific memory which can be used to predict the next-token. The attention computation is therefore generally reusable across datasets, as demonstrated by our hybrid model. We will clarify this point in the discussion.
It is unclear what exactly is gained from the DAM model. As far as I understand, the original Ramsauer et al. work sees a main value of the DAM in connecting it to an energy function, which seems not to be the relevant part here.
We argued that the DAM provides a conceptual model of the functional division suggested by our transformer experiments and clarifies exactly the role of each component:
-
attention heads construct a position-invariant code that identifies the sequence and feed the query into an associative memory
-
The MLP acts as an associative memory that combines sequence identity with position to predict the next token.
This model of functional division explains the pattern of results we observe in the transformer experiments: meta-memorization during data switch experiments, memorization rate increases with scale, and the hybrid model retains above average performance due to the dataset-agnostic mechanisms learned by the attention heads. All of these results are captured in Figure 6. Therefore, our conceptual model explains what is being learned in each transformer component and how they interact.
Our DAM is best viewed from the perspective of mutual information maximization and shows that scale helps to increase mutual information between the attention heads and the associative memory. In our formulation, the matrices and model the interaction between the attention heads and the associative memory: the attention heads learn to pass maximally informative cues to the associative memory about the identity of the sequence being cued. The InfoNCE variant of the DAM has a standard mutual-information interpretation: the retrieval objective maximizes the information about sequence identity that can be recovered through the -dimensional bottleneck. Increasing the size of the model (via the parameter D=FH) increases the number of channels in this communication and therefore increases the MI between these two layers. Consistent with this interpretation, Figure 7 finds that the Pareto frontier in performance is . We will revise Section 3.3 to state these predictions and connections more explicitly.
I suggest reconsidering "meta-memorization" as a term, which seems not very descriptive to me and also risks confusing with meta-learning, which, as far as I understand, is "learning to learn", via a specific algorithm or a meta-category of tasks. Perhaps "accelerated memorization"?
We chose the term “meta-memorization” to highlight the connection of this effect to meta-learning. The model learns a reusable mechanism that makes a new instance of the same task easier, and therefore it has learned the meta-task of “memorizing” any arbitrary sequence. We will emphasize this connection more saliently in the paper.
I find it a bit hard to connect the memorization rate to Fig. 3 Figure 3 plots , the number of times sequence must be presented before it is memorized rescaled by A. Using figure 3, we can fit which is the scaling exponent vs. rank . Since we found (due to the learning to memorize effect) and assuming that the information memorized per presentation grows as
this leads us to conclude that where is the exponent of the rank-frequency distribution (which is 1 for the Zipf distribution). The main result is that is positive, showing that the memorization rate accelerates during training. We will clarify this in our paper.
In Fig. 4, there seems to be a significant degradation in accuracy in the hybrid model. Is there an explanation for this?
The hybrid model’s degradation suggests that attention weights continue to change after the dataset switch. Although pre- and post-switch attention heads perform similar computations, they need not express it in the same basis. e.g. A rotation of that basis would make the post-switch attention heads partially incompatible with the decoder learned by the pre-switch MLP. Therefore, the hybrid model recovers above-chance information about the original dataset without perfectly matching the pre-switch model.
Which of the results would reproduce without the Zipf law, but a uniform schedule?
We expect the main mechanistic findings to replicate:
-
We show capacity and accuracy scales with parameter count under uniform sampling (see supplementary figure S2).
-
Meta-memorization should reproduce through a dataset switch experiment or by introducing new sequences later in training. Indeed, the DAM dataset-switch experiments use uniform sampling.
-
Experiments showing the attention/MLP division of labor, above-chance hybrid performance, increasing linear decodability, and vertical-band attention structure should be replicable because these arise from the next-token task and the need for position-invariant sequence representations, rather than from data distribution.
What underlies the cutoff in Fig. 3?
In Supplementary Figure S7 we show number of appearances at saturation vs. sequence rank for two different large 1-layer models. We observe that there are two regimes characterized by two different slopes, the first segment consisting of high-rank sequences and the second segment consisting of low-rank sequences. We are not yet sure why this regime change occurs. One hypothesis is that competition for limited resources causes this regime change (see https://arxiv.org/pdf/2605.29548). Another hypothesis is that the model has reached its capacity.
Thank you for your clarifications! I maintain my positive assessment of this work, mainly supported by the novelty and simplicity of the setup as a contribution to advancing the basic science of learning in transformers. I also still maintain that I see that the paper speaks a lot to how transformers memorize, but not much (say: normatively/via theory) to why transformers memorize in that way.
Comments on the paper
1 comment
Comment to Area Chair
Dear Area Chair,
Thank you very much for your comments. We wanted to summarize the discussions with reviewers during the rebuttal period and the changes we will make to our manuscript given comments from our reviewers.
Clarification of our contributions:
We agree with reviewers zuQ6 and 6BJ7, who pointed out that we should clarify our contributions in more detail and the motivations for our simplified setting.
Therefore, in our introduction we will explicitly discuss our contributions in the manuscript:
- We find that memorization rate increases as a function of model size on independent random sequences, showing that the effect does not stem from learning linguistic structure.
- We show that simply being trained to memorize random sequences reduces the number of presentations required to memorize any arbitrary new sequence, an effect we call meta-memorization, in connection with meta-learning (where training on a task distribution improves model performance on other similar or in-distribution tasks). Furthermore, this ability increases as the number of model parameters increase.
- We identify the attention computation that supports meta-memorization: attention outputs develop position-invariant, linearly separable information about sequence identity. Through our ablation experiments, we show that dataset-specific memories are localized mostly to the MLP and show that attention mechanisms transfer across independent random datasets.
- We build a conceptual model of the functional division suggested by our transformer experiments using our DAM. This model of functional division explains the pattern of results we observe in the transformer experiments.
Clarification of the relationship of our work to prior work:
We agree with reviewer 6BJ7, who pointed out that we should clarify the relationship of our work to prior work in more detail. We will add a related work section to clarify this. In particular, while Tirumala et al. (2022) has shown that larger models memorize with fewer repetitions, we show that the effect does not stem from learning linguistic structure. We found that simply being trained to memorize random sequences induces the model to meta-memorize. Furthermore, while Zucchet et al. 2025a shows that to learn facts, models need to develop the right attention circuits before later MLP layers start learning entity-attribute mappings, we go further than that. We show that meta-memorization emerges from learning to memorize purely random sequences (rather than natural-language sequences about random entities) and that meta-memorization emerges with larger model sizes.
Clarification of the contribution of the DAM model:
We agree with reviewers zuQ6 and 6BJ7, who pointed out that we should clarify the contributions of our DAM model. We will add a section in our discussion to clarify the conceptual contribution of our DAM model. In summary, the DAM provides a conceptual model of the functional division suggested by our transformer experiments and clarifies exactly the role of each component in the transformer's ability to meta-memorize: the model is learning to retrieve sequence identity subject to an attentional bottleneck. Furthermore, by interpreting the InfoNCE loss from a mutual information perspective, the DAM shows that meta-memorization emerges at scale because a larger hidden layer increases the "channel capacity" and therefore increases the MI between the attention heads and the MLP.
Clarification of Figures 2 & 3:
We will clarify the captions of Figure 2 and 3 to address the questions raised by reviewers zuQ6 and 6BJ7.
Clarification limitations and future work:
We agree with reviewer umQe, who pointed out that we should discuss the limitations of our setup in more detail. We will further discuss the limitations of our pure memorization task, which ignores how transformers learn to generalize. We will also discuss the further questions that are raised by our work. In particular, what are the coding schemes learned by the and matrices in the DAM, and how will different input data distributions change our results?
Overall, we think this rebuttal phase has strengthened our manuscript by 1) clarifying the motivations for our study of pure memorization in transformers 2) better relating our work to the prior literature, and 3) improving the clarity and quality of our discussion throughout the manuscript. We sincerely thank you and the reviewers for your helpful suggestions.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
We thank the reviewer for their detailed comments and their appreciation of our work. Here are our specific responses:
As I understand it, the DAM model explains meta-memorization as efficient coding for providing context to the key-value store. Did you examine the coding schemes learned by the model?
Related to (1), how would you expect meta-memorization to change under a different data distribution (i.e. not binary sequence)?
The authors discuss the limitations briefly in the conclusion, but I feel this can be done in more detail. Specifically, the limitations of the setup and the conclusions drawn from it are not sufficiently discussed.