SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2602.16967 · 2026

Early-Warning Signals of Grokking via Loss-Landscape Geometry

Yongzhong Xu

arXiv · PDF · Open in the Atlas

Code that ran

17 of 23 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 11 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 6 failures of our instrument; 6 no recorded run), measured 2026-11-22; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2602.16967.json · badge: /api/ran/2602.16967.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
skydancerosel/dyck_scan canonical (classifier label)
classifier basis: census
17 ran · 6 no recorded run
FunctionStatusWhere it lives
build_depth_dataset Ran
ran, honoured the contract we drafted
skydancerosel/dyck_scan/dyck/grok_sweep.py
pointer only (licence: NONE) · get_code("0cd72a2a0e2529fa")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, skydancerosel/dyck_scan when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compute_pc1_from_logs Ran
ran; our contract draft was wrong, not the code
skydancerosel/dyck_scan/dyck/pc1_lr_experiment.py
pointer only (licence: NONE) · get_code("f448b03c46a5f7fc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, skydancerosel/dyck_scan when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

find_grok_step_acc Ran
ran, honoured the contract we drafted
skydancerosel/dyck_scan/dyck/pc1_lr_experiment.py
pointer only (licence: NONE) · get_code("a2fe12212641c856")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, skydancerosel/dyck_scan when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

find_grok_step_from_records Ran
ran, honoured the contract we drafted
skydancerosel/dyck_scan/dyck/generalization_dynamics.py
pointer only (licence: NONE) · get_code("708363eac58b21bf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, skydancerosel/dyck_scan when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

find_grok_step_from_records_acc Ran
ran, honoured the contract we drafted
skydancerosel/dyck_scan/dyck/lr_sweep.py
pointer only (licence: NONE) · get_code("27051bfcfcc000e5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, skydancerosel/dyck_scan when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

find_spike_step Ran
ran, honoured the contract we drafted
skydancerosel/dyck_scan/dyck/generalization_dynamics.py
pointer only (licence: NONE) · get_code("034de846e74b7ffb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, skydancerosel/dyck_scan when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

first_acc_cross_step Ran
ran, honoured the contract we drafted
skydancerosel/dyck_scan/dyck/intervention.py
pointer only (licence: NONE) · get_code("96450b853d7a4eb3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, skydancerosel/dyck_scan when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

gen_balanced_parentheses Ran
ran, honoured the contract we drafted
skydancerosel/dyck_scan/dyck/grok_sweep.py
pointer only (licence: NONE) · get_code("cb70cee49ace8904")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, skydancerosel/dyck_scan when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

gen_balanced_parentheses Ran
ran, honoured the contract we drafted
skydancerosel/dyck_scan/dyck/lm_pilot.py
pointer only (licence: NONE) · get_code("69efb69bbccec2f6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, skydancerosel/dyck_scan when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

hparams_key Ran
ran; our contract draft was wrong, not the code
skydancerosel/dyck_scan/dyck/intervention.py
pointer only (licence: NONE) · get_code("a83d84e87be0a2dd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, skydancerosel/dyck_scan when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

make_batch Ran
ran, honoured the contract we drafted
skydancerosel/dyck_scan/dyck/lm_pilot.py
pointer only (licence: NONE) · get_code("d2e721359d2c66f3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, skydancerosel/dyck_scan when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

masked_ce_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
skydancerosel/dyck_scan/dyck/lm_pilot.py
pointer only (licence: NONE) · get_code("026c96222776f842")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, skydancerosel/dyck_scan when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

projected_commutator Ran
ran; our contract draft was wrong, not the code
skydancerosel/dyck_scan/dyck/commutator_analysis.py
pointer only (licence: NONE) · get_code("7fec25438ea4345b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, skydancerosel/dyck_scan when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

random_projection_norm Ran
ran; our contract draft was wrong, not the code
skydancerosel/dyck_scan/dyck/commutator_analysis.py
pointer only (licence: NONE) · get_code("14c07ce05347d233")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, skydancerosel/dyck_scan when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

split_dataset Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
skydancerosel/dyck_scan/dyck/grok_sweep.py
pointer only (licence: NONE) · get_code("afca75c828f1fb23")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, skydancerosel/dyck_scan when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

strict_grok_step Ran
ran, honoured the contract we drafted
skydancerosel/dyck_scan/dyck/intervention.py
pointer only (licence: NONE) · get_code("5c1a373f6061288c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, skydancerosel/dyck_scan when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

strict_grok_step Ran
ran, honoured the contract we drafted
skydancerosel/dyck_scan/dyck/lr_sweep.py
pointer only (licence: NONE) · get_code("0d1db1b7d3cd9c9d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, skydancerosel/dyck_scan when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

collect_trajectory Not yet run
unverified (harvested, no recorded run)
skydancerosel/dyck_scan/dyck/pca_analysis.py
pointer only (licence: NONE) · get_code("b3aabda01158983a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, skydancerosel/dyck_scan when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

compute_per_head Not yet run
unverified (harvested, no recorded run)
skydancerosel/dyck_scan/dyck/spectral_geometry.py
pointer only (licence: NONE) · get_code("7e7d4efe85773c5e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, skydancerosel/dyck_scan when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

compute_spectral_quantities Not yet run
unverified (harvested, no recorded run)
skydancerosel/dyck_scan/dyck/spectral_geometry.py
pointer only (licence: NONE) · get_code("93069a8857f32dc6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, skydancerosel/dyck_scan when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

expanding_window_pca Not yet run
unverified (harvested, no recorded run)
skydancerosel/dyck_scan/dyck/pca_analysis.py
pointer only (licence: NONE) · get_code("a5887c67a2377bf7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, skydancerosel/dyck_scan when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_run Not yet run
unverified (harvested, no recorded run)
skydancerosel/dyck_scan/dyck/spectral_geometry.py
pointer only (licence: NONE) · get_code("8e8adf55588d8b99")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, skydancerosel/dyck_scan when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

pca_on_trajectory Not yet run
unverified (harvested, no recorded run)
skydancerosel/dyck_scan/dyck/pca_analysis.py
pointer only (licence: NONE) · get_code("86bf8bb38dae733f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, skydancerosel/dyck_scan when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 23 samples lifted from this paper's linked repositories, 23 carry a function identity and 0 do not. Of the 21 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 21 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Grokking refers to the phenomenon in which neural networks abruptly transition from memorization to generalization after extended training. Recent work on modular arithmetic has linked grokking to prolonged confinement on low-dimensional execution manifolds in weight space, followed by a sudden escape into a generalizing solution. A central open question is whether this geometric mechanism extends beyond arithmetic tasks. We investigate this question on two structurally distinct sequence-learning problems: the SCAN compositional generalization benchmark and Dyck-1 language depth prediction. Across both tasks and a wide range of learning rates, we find that the commutator defect-a measure of loss-landscape curvature derived from the non-commutativity of successive gradient updatesreliably rises well before the onset of generalization. The lead time between defect onset and grokking follows a power-law relationship with the grokking timescale, with exponents α ≈ 1.18 for SCAN (R 2 = 0.990, n = 11) and α ≈ 1.13 for Dyck (R 2 = 0.908, n = 14). Combined with prior results on modular arithmetic, all three task families exhibit superlinear scaling (α > 1), yielding advance warning windows of 90-97% at slow learning rates. Weight-space principal component analysis reveals task-dependent spectral dynamics: PC1 de-concentration precedes grokking in Dyck and modular arithmetic but follows it in SCAN, indicating that spectral concentration is not a universal precursor. In contrast, the commutator defect consistently anticipates generalization across all settings. A three-basis integrability decomposition shows that defect spikes reflect structured non-commutativity within the learning subspace, characteristic of the grokking regime. Finally, causal interventions on both SCAN and Dyck demonstrate a mechanistic role for the defect: perturbations that amplify non-commutativity accelerate grokking (by ∼32% on SCAN and ∼50% on Dyck), whereas suppressing orthogonal gradient flow delays or prevents generalization. The three task families form a spectrum of causal sensitivity: modular arithmetic is rigid (boosting has no effect), Dyck is responsive (both mild and aggressive boosting accelerate), and SCAN is intermediate (mild boosting accelerates but aggressive boosting destabilizes). Across all tasks, suppression delays or prevents grokking, establishing necessity as a universal finding. Together with prior results, our findings establish the commutator defect as a robust, architecture-agnostic, and causally implicated early-warning signal for grokking in transformer-based models.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2602.16967")
get_code_for_paper("2602.16967")
have("2602.16967")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2602.16967.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2602.16967.svg)](https://syntology.ai/paper/2602.16967)

Connect an agent — have() is free.