- Rating
- 3
- Clarity
- 3
- Confidence
- 4
- Originality
- 3
- Quality
- 3
- Significance
- 2
Read review
Summary
This paper studies how dataset size affects the timing of memorization and generalization in small Transformers trained on algorithmic tasks. The main empirical finding is that, for Needleman–Wunsch (NW) matrix generation, validation exact-match accuracy reaches high thresholds fastest at an intermediate dataset size rather than at the largest dataset size. The paper contrasts this behavior with addition and multiplication baselines, where the same post-threshold slowdown is not observed. The authors propose a two-pressure explanation: increasing data first helps the model learn reusable rule structure, but after this benefit saturates, additional examples increase the cost of strict exact fitting. A random-suffix probe is used to support the distinction between rule-mediated fitting and example-specific memorization.
Strengths and weaknesses
Strengths
- The paper identifies an interesting and somewhat counterintuitive empirical phenomenon: after validation generalization becomes possible, more data does not always minimize the number of optimizer updates needed to reach high validation exact-match accuracy.
- The experimental protocol is clean and controlled. Dataset size is swept systematically, and the paper clearly distinguishes update-based convergence from epoch-normalized/sample-efficiency interpretations.
- The multi-threshold analysis is useful. Lower thresholds help reveal the onset of partial validation competence, while high thresholds capture near-exact task completion.
- The observation that weak validation competence can emerge before strict training convergence is valuable, since it complicates a purely sequential “memorize first, generalize later” view of grokking.
- The random-suffix probe is a helpful diagnostic for separating structured, rule-mediated learning from example-specific fitting.
Weaknesses
- My main concern is the limited scope of the empirical evidence. The main phenomenon is demonstrated primarily on one synthetic structured-output task, Needleman–Wunsch matrix generation. Addition and multiplication are useful controls, but they do not establish that the phenomenon generalizes to broader algorithmic-learning or structured-output settings.
- The explanation of why NW differs from multiplication remains somewhat underdeveloped. The paper attributes the difference partly to NW’s longer structured output, but output length is confounded with dynamic-programming dependency structure, serialization order, exact-match evaluation, and model/task difficulty.
- Some abstract-level phrasing is confusing. In particular, “the regime where partial validation competence first appears” is not clearly contrasted with the previous claim about post-sweet-spot high validation convergence. It is unclear from the abstract alone whether “first appears” refers to dataset size or training time, and the sentence switches from validation convergence to training convergence.
- Figure 4 would be easier to interpret if it showed the raw and curves in addition to their difference . Showing only the gap can obscure whether the diagnostic is driven by increasing structured training accuracy, lagging suffix accuracy, or both.
Questions
Questions
-
Could the authors clarify the abstract sentence about “partial validation competence first appears”? I think the intended meaning is that, near the dataset-size regime where low validation thresholds first become reachable, increasing can reduce the updates needed for high training accuracy. Stating this explicitly would avoid confusion with the later post-sweet-spot slowdown in high validation convergence.
-
Can the authors provide stronger evidence that the NW/multiplication difference is due to long dependent structured outputs rather than only output length or task difficulty? For example, it would be useful to test partial NW matrices, longer arithmetic outputs, alternative serialization orders, or another dynamic-programming table-generation task.
-
In Figure 4, could the authors include the raw and trajectories, perhaps as faint curves or a companion panel? This would make the train-random gap diagnostic more transparent.
-
How sensitive is the sweet spot to model capacity and optimization choices? The depth sweep is helpful, but it would be useful to know whether the phenomenon persists under larger models, different batch sizes, or different learning-rate schedules.
-
The paper interprets residual exact fitting as a memorization-like burden. Could the authors clarify whether they view this as literal example lookup, local associative/copying mechanisms, or simply remaining optimization difficulty under exact-match evaluation?
Limitations
Yes
Paper formatting concerns
No
We sincerely thank the reviewer for the careful and highly constructive review.
W1. Limited empirical scope
We agree that evidence beyond NW is important. We therefore evaluated two additional structured tasks. All tables report threshold-crossing iterations at τ=0.98, averaged over five seeds; “–” indicates that the validation threshold was not reached within the training budget.
Edit-distance matrix generation (ED) is a controlled NW variant with the same three-predecessor DP structure and sequential output, but a nonnegative min-cost recurrence (zero-cost matches; insertion/deletion/substitution penalties) in place of NW's signed max-score recurrence.
Elementary cellular automata (CA) provide a structurally different iterative task. Each cell updates in parallel every step from its own value and its two neighbors, following a Boolean rule identified by a rule number. We use a 20-bit circular state and train the model to generate the full 8-step rollout. Rule 90, which sets each cell to the XOR of its neighbors, again exhibits a clear intermediate dataset-size optimum.
These experiments reproduce the phenomenon beyond NW in two complementary settings. Edit distance changes the scoring convention and output-value distribution while preserving the DP dependency structure. Rule 90 extends the result beyond matrix generation to repeated application of a local transition rule. The phenomenon is not universal across all CA rules. We discuss the contrasting Rules 30 and 110 below.
W2&Q2 Why does NW differ from multiplication?
We agree that our original explanation placed too much emphasis on the long output of NW, while dependency structure, evaluation, and task difficulty are intertwined.
First, the sweet spot persists even with partial outputs. Instead of the full matrix, we trained the model to predict only 2-row/2-column targets. A clear sweet spot was still observed with a shorter output.
Second, we observed larger-N slowdown with scratchpad multiplication. The scratchpad target contains sequential, intermediate steps (products and their addition). Although this does not reproduce the full sweet spot, increasing the dataset size induces a clear slowdown in convergence.
Thus, multiplication can also exhibit the post-threshold pressure when the target requires explicit intermediate computation, although our current sweep does not show a full interior optimum.
Third, the CA experiments show the learnability of the local rule matters. Rules 90, 30, and 110 are identical except for the local Boolean transition rule. Rule 90, a linear XOR rule, exhibits a clear sweet spot, whereas Rules 30 and 110 do not under the same setup. This matched comparison suggests that the learnability of the repeated operation is also important.
These results suggest that the effect is not explained by output length, sequentiality, or task difficulty alone. This is consistent with the two-pressure interpretation: the phenomenon appears most clearly when a nontrivial but learnable operation is repeatedly applied over a structured output. In this regime, more data can initially speed reusable rule learning, but its growing exact-fitting burden may later dominate.
NW differs from multiplication not by task type or output length, but because its reusable local recurrence can be learned early and keep reducing fitting costs beyond generalization, while multiplication lacks such a recurrence.
We also verified that this is not an artifact of the strict exact-match. Average cell accuracy shows the sweet spot persists.
W3&Q1. Ambiguous abstract wording
The reviewer's interpretation is exactly correct. "First appears" refers to the dataset-size regime, not training time. Our intended meaning is:
We will revise the abstract to clearly distinguish training from validation convergence.
W4&Q3. Figure 4 and the raw AT,AR trajectories
We agree that the raw curves are needed to show what drives the gap. We will add AT and AR from Appendix E to Figure 4 alongside AV and G(t). They show that the widening gap is driven mainly by AR lagging as N grows. Here, G=AT−AR>0 indicates better fitting of rule-supported targets (AT) than rule-independent suffixes (AR). Structured targets benefit from the shared rule, whereas random suffixes must be fit independently, so their fitting burden grows with the number of examples.
Q4. Sensitivity to model capacity and optimization choices
As the reviewer suggested, we report additional experiments. We conducted an 8-layer model, weight decay and batch size sweep.
8-layer models runs are averaged over 3 seeds.
Batch size denotes the effective batch size (micro-batch size × gradient-accumulation steps).
Weight decay addresses the optimization choices. Because it is closely linked to grokking-style memorization/generalization dynamics, we consider it a particularly important robustness test for our effect.
The results consistently preserve the sweet spot behavior across model capacity, effective batch size, and weight decay. Notably, the sweet spot remains clearly visible even when weight decay is set to zero, showing that explicit weight-decay regularization is not required for the effect to emerge in our setting. This indicates that the phenomenon is not an artifact of a particular hyperparameter choice.
Q5. Residual Exact Fitting
By "memorization-like", we refer to the behavioral burden of fitting individual training cases, not literal example lookup or a specific associative/copying mechanism.
As noted in W4&Q3, AR reflects fitting that cannot benefit from a shared rule. Around the onset of generalization, we observe AT−AR≈AV. The train-random gap estimates the training performance attributable to the NW rule, closely tracking AV during this transition (though this may not persist later in training).
Accordingly, "residual exact fitting" denotes the optimization still needed for training cases not yet captured by the model's current reusable rule. Since NW is fully rule-generated, these cases are not intrinsically outside the rule; the learned rule may simply be incomplete. Such training-specific fitting and further rule refinement can therefore coexist, with no fixed ordering implied. This is consistent with [1,2], where dependence on specific examples can coexist with, and sometimes aid, generalization.
Our experiments do not identify whether this fitting arises via literal lookup, local associative mechanisms, or otherwise. Doing so would require direct counterfactual or influence-based analysis. We will revise the paper to use the term in this operational sense.
[1] Feldman, “Does Learning Require Memorization? …” STOC 2020.
[2] Feldman & Zhang, “What Neural Networks Memorize and Why: ...,” NeurIPS 2020.