The two clocks and the innovation window: When and how generative models learn rules

Binxu Wang, Emma Lucia Byrnes Finn, Bingbin Liu

TL;DR

Generative models face a fundamental tension between learning abstract rules and memorizing training data. This paper reveals that these two behaviors are governed by separate training timescales ("clocks"): a rule-learning clock ($\tau_{\text{rule}}$) driven by rule complexity, and a memorization clock ($\tau_{\text{mem}}$) driven by dataset size. The gap between them forms an "innovation window" where models generate truly novel, rule-abiding samples.

What Problem Does This Paper Address?

When a diffusion model or an autoregressive LLM generates a realistic image or a coherent paragraph, is it applying abstract rules it has discovered, or is it just cleverly stitching together pieces of its training data? Because standard generative objectives (like next-token prediction or score matching) naturally minimize error by converging toward the empirical training distribution, models face an inherent pressure to memorize.

Answering whether a model has truly learned a latent rule is incredibly difficult with natural data. To address this, the authors design controlled, synthetic environments where rule satisfaction, novelty, and exact memorization can be precisely tracked over training time. Their goal is to understand the exact mechanics and timescales that dictate when a model generalizes versus when it overfits.

Methods

The authors track training dynamics across two prominent generative architectures:

  1. Diffusion Transformers (DiT): Trained using the continuous-time EDM framework.
  2. Autoregressive Transformers (GPT-style): Trained using standard next-token prediction cross-entropy loss.

To capture the tension between generalization and memorization, they define two operational milestones:

  • $\tau_{\text{rule}}$: The training step where the model's generated samples reliably achieve $\ge 90\%$ rule accuracy.
  • $\tau_{\text{mem}}$: The training step where the fraction of memorized training samples in the generated output crosses $10\%$.

The interval between these two points, $[\tau_{\text{rule}}, \tau_{\text{mem}}]$, is defined as the innovation window. To understand why these transitions happen, the authors dissect the optimization landscapes of DiT models by evaluating denoising losses across individual noise scales ($\sigma$) and visualizing the learned vector fields on 2D slices of the Boolean hypercube.

Datasets

The paper utilizes several synthetic datasets governed by strict latent rules:

  • Group-Level Parity on Binary Images (Main Testbed): 36-bit binary images are divided into groups of size $G$. Each group must satisfy an even-parity constraint (the product of the bits must equal 1). Adjusting $G$ provides a direct knob for rule complexity.
  • Count-Based Binary Rules: exact-K (exactly $K$ bits are positive across the entire sample) and row-K (each row in a grid has exactly $K$ positive bits).
  • Categorical Puzzles: $n \times n$ Latin Squares and $6 \times 6$ Sudoku puzzles, which introduce nested uniqueness constraints on multi-valued inputs.

Key Insights and Ideas

  • The Two Clocks Scale Independently: The most striking finding is that the two clocks are controlled by entirely different variables. $\tau_{\text{rule}}$ is heavily delayed by rule complexity ($G$) but is largely indifferent to dataset size ($N$). Conversely, $\tau_{\text{mem}}$ is invariant to the rule type but scales nearly linearly with dataset size $N$.
  • The Closing Window: Because the clocks scale independently, increasing rule complexity pushes $\tau_{\text{rule}}$ later into training. If a rule is too complex or the dataset is too small, $\tau_{\text{rule}}$ can overtake $\tau_{\text{mem}}$. When this happens, the innovation window vanishes, and the model can only output rule-valid samples by directly copying training examples.
  • Combinatorial Creativity: For moderately complex rules, models rarely generate completely novel sub-components (e.g., new valid parity groups). Instead, they innovate by recombining memorized, valid sub-components into entirely unseen global configurations.
  • Attractor Landscape Evolution: Mechanistically, training reshapes the model's denoising vector field in stages. Early on, the model learns to project noisy inputs onto the corners of the Boolean cube. Around $\tau_{\text{rule}}$, the basins of attraction for rule-valid states expand, suppressing rule-violating states. Around $\tau_{\text{mem}}$, the specific basins for individual training samples expand further, eventually devouring nearby valid, unseen regions.

Key Results

  • Complexity Barrier: For group parity, each unit increase in group size $G$ delays $\tau_{\text{rule}}$ by roughly an order of magnitude (e.g., $\sim 10^3$ steps for $G=2$ vs. $\sim 10^5$ steps for $G=4$). For high-complexity rules ($G \ge 9$), models fail to learn the rule entirely within $10^6$ steps.
  • Linear Memorization Scaling: Across all rules, the memorization onset follows a clean power-law relationship relative to dataset size: $\tau_{\text{mem}} \approx 35 N^{1.14}$ for the DiT-mini model.
Figure 2: Two clocks τrule and τmem scale differently with rule, data, and model. A. Schematic: rule complexity G delays τrule, dataset size N scales τmem near-linearly, model size (L, H) modulates both. The interval [τrule, τmem] is the innovation window of valid novel generation. B. Single-run learning dynamics (DiT-mini, N=4096, G=3): rule accuracy (blue), memorization ratio (orange dashed), and NaN/quantization error ratio with ϵ=0.1 (green); EMA over raw traces. Vertical dotted lines: τrule (first step rule-acc > 0.9) and τmem (first step mem-ratio > 0.1). Shaded phases: value quantization, innovation window, memorization onset. C. τrule (blue) and τmem (orange dashed) vs. G at N=4096 for three model sizes (B, mini, nano); τrule shown only for learnable G, i.e., G ≤6. D. (i) τrule vs. N for G ∈{2, 3, 4, 6}. (ii) τmem vs. N across all G, with power-law fit τmem ≈35 N 1.14 (R2=0.94, n=34). E,F. Rule accuracy and memorization ratio vs. step (DiT-mini, N=4096), one curve per G. G,H. Rule accuracy vs. step and memorization ratio vs. steps-per-sample (i.e. step × batch size / N), one curve per N (DiT-mini, G=3).
  • Architecture Differences: Both GPT and DiT models exhibit the two-clock structure, but GPT models learn and memorize significantly faster than DiT models of matching capacity. GPT models feature a narrower innovation window, and their transition into total memorization is much more abrupt.

Limitations and Future Work

While this work provides a beautifully clean, predictive framework for generative training dynamics, its primary limitation is its reliance on synthetic, low-dimensional binary and categorical spaces. How these distinct clocks manifest in high-dimensional, continuous natural data (like real-world images or text) remains an open question.

Additionally, the authors note that scaling model depth alone cannot overcome the complexity barrier for high-interaction-order rules (like high-$G$ parity). They suggest that future work should explore architectural modifications—such as global memory units or dedicated register tokens—and training strategies like curriculum learning to artificially widen the innovation window for complex tasks.

Summary updated

Abstract

Generative models trained on finite data face a fundamental tension: their score-matching or next-token objective converges to the empirical training distribution rather than the population distribution we seek to learn. Using rule-valid synthetic tasks, we trace this tension across two training timescales: $τ_{\mathrm{rule}}$, the step at which generations first become rule-valid, and $τ_{\mathrm{mem}}$, the step at which models begin reproducing training samples. Focusing on parity and extending to other binary rules and combinatorial puzzles, we characterize how these two clocks, $τ_{\mathrm{rule}}$ and $τ_{\mathrm{mem}}$, depend on key aspects of the learning setup. Specifically, we show that $τ_{\mathrm{rule}}$ increases with rule complexity and decreases with model capacity, while $τ_{\mathrm{mem}}$ is approximately invariant to the rule and scales nearly linearly with dataset size $N$. We define the \emph{innovation window} as the interval $[τ_{\mathrm{rule}}, τ_{\mathrm{mem}}]$. This window widens with increasing $N$ and narrows with rule complexity, and may vanish entirely when $τ_{\mathrm{rule}} \geq τ_{\mathrm{mem}}$. The same two-clock structure arises in both diffusion (DiT) and autoregressive (GPT) models, with architecture-dependent offsets. Dissecting the learned score of DiT models reveals a corresponding evolution of the optimization landscapes, where rule-valid samples' basins expand substantially around $τ_{\mathrm{rule}}$, while training samples' basins begin to dominate around $τ_{\mathrm{mem}}$. Together, these results yield a unified and predictive account of when and how generative models exhibit genuine innovation.
BibTeX
@inproceedings{wang2026two,
  author = {Binxu Wang and Emma Lucia Byrnes Finn and Bingbin Liu},
  title = {{The two clocks and the innovation window: When and how generative models learn rules}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=8WJCdo8rks},
}
Figure