{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2602-16967","title":"Early-Warning Signals of Grokking via Loss-Landscape Geometry","arxiv_id":"2602.16967","date":"2026-02-19","proceeding":null,"authors":["Yongzhong Xu"],"abstract":"Grokking -- the abrupt transition from memorization to generalization after prolonged training -- has been linked to confinement on low-dimensional execution manifolds in modular arithmetic. Whether this mechanism extends beyond arithmetic remains open. We study two sequence-learning benchmarks: SCAN compositional generalization and Dyck-1 depth prediction. Across both tasks and a wide range of learning rates, the commutator defect -- a curvature measure derived from non-commuting gradient updates -- rises well before generalization, with lead times following a superlinear power law (alpha approximately 1.18 for SCAN, approximately 1.13 for Dyck), consistent with prior results on modular arithmetic. Weight-space PCA reveals that spectral concentration is not a universal precursor; the commutator defect is. Causal interventions demonstrate a mechanistic role: amplifying non-commutativity accelerates grokking (roughly 32% on SCAN, roughly 50% on Dyck), while suppressing orthogonal gradient flow delays or prevents it. The three task families form a spectrum of causal sensitivity -- modular arithmetic is rigid, Dyck is responsive, SCAN is intermediate -- yet suppression delays or prevents grokking in all cases, establishing necessity as a universal finding. These results identify the commutator defect as a robust, architecture-agnostic, causally implicated early-warning signal for delayed generalization in transformers.","url_abs":"https://arxiv.org/abs/2602.16967","url_pdf":"https://arxiv.org/pdf/2602.16967","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2602.16967","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2602.16967"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/skydancerosel/dyck_scan","reach":null}],"summary":{"unverified":23},"by_repo_kind":{"found_in_text":{"samples":23,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":23,"samples":[{"code_sha256_prefix":"0cd72a2a0e2529fa","entry":"build_depth_dataset","repo":"skydancerosel/dyck_scan","repo_kind":"found_in_text","path":"dyck/grok_sweep.py","file_url":"https://github.com/skydancerosel/dyck_scan/blob/HEAD/dyck/grok_sweep.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0cd72a2a0e2529fa"}},{"code_sha256_prefix":"b3aabda01158983a","entry":"collect_trajectory","repo":"skydancerosel/dyck_scan","repo_kind":"found_in_text","path":"dyck/pca_analysis.py","file_url":"https://github.com/skydancerosel/dyck_scan/blob/HEAD/dyck/pca_analysis.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b3aabda01158983a"}},{"code_sha256_prefix":"f448b03c46a5f7fc","entry":"compute_pc1_from_logs","repo":"skydancerosel/dyck_scan","repo_kind":"found_in_text","path":"dyck/pc1_lr_experiment.py","file_url":"https://github.com/skydancerosel/dyck_scan/blob/HEAD/dyck/pc1_lr_experiment.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f448b03c46a5f7fc"}},{"code_sha256_prefix":"7e7d4efe85773c5e","entry":"compute_per_head","repo":"skydancerosel/dyck_scan","repo_kind":"found_in_text","path":"dyck/spectral_geometry.py","file_url":"https://github.com/skydancerosel/dyck_scan/blob/HEAD/dyck/spectral_geometry.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7e7d4efe85773c5e"}},{"code_sha256_prefix":"93069a8857f32dc6","entry":"compute_spectral_quantities","repo":"skydancerosel/dyck_scan","repo_kind":"found_in_text","path":"dyck/spectral_geometry.py","file_url":"https://github.com/skydancerosel/dyck_scan/blob/HEAD/dyck/spectral_geometry.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"93069a8857f32dc6"}},{"code_sha256_prefix":"a5887c67a2377bf7","entry":"expanding_window_pca","repo":"skydancerosel/dyck_scan","repo_kind":"found_in_text","path":"dyck/pca_analysis.py","file_url":"https://github.com/skydancerosel/dyck_scan/blob/HEAD/dyck/pca_analysis.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a5887c67a2377bf7"}},{"code_sha256_prefix":"a2fe12212641c856","entry":"find_grok_step_acc","repo":"skydancerosel/dyck_scan","repo_kind":"found_in_text","path":"dyck/pc1_lr_experiment.py","file_url":"https://github.com/skydancerosel/dyck_scan/blob/HEAD/dyck/pc1_lr_experiment.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a2fe12212641c856"}},{"code_sha256_prefix":"708363eac58b21bf","entry":"find_grok_step_from_records","repo":"skydancerosel/dyck_scan","repo_kind":"found_in_text","path":"dyck/generalization_dynamics.py","file_url":"https://github.com/skydancerosel/dyck_scan/blob/HEAD/dyck/generalization_dynamics.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"708363eac58b21bf"}},{"code_sha256_prefix":"27051bfcfcc000e5","entry":"find_grok_step_from_records_acc","repo":"skydancerosel/dyck_scan","repo_kind":"found_in_text","path":"dyck/lr_sweep.py","file_url":"https://github.com/skydancerosel/dyck_scan/blob/HEAD/dyck/lr_sweep.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"27051bfcfcc000e5"}},{"code_sha256_prefix":"034de846e74b7ffb","entry":"find_spike_step","repo":"skydancerosel/dyck_scan","repo_kind":"found_in_text","path":"dyck/generalization_dynamics.py","file_url":"https://github.com/skydancerosel/dyck_scan/blob/HEAD/dyck/generalization_dynamics.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"034de846e74b7ffb"}},{"code_sha256_prefix":"96450b853d7a4eb3","entry":"first_acc_cross_step","repo":"skydancerosel/dyck_scan","repo_kind":"found_in_text","path":"dyck/intervention.py","file_url":"https://github.com/skydancerosel/dyck_scan/blob/HEAD/dyck/intervention.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"96450b853d7a4eb3"}},{"code_sha256_prefix":"cb70cee49ace8904","entry":"gen_balanced_parentheses","repo":"skydancerosel/dyck_scan","repo_kind":"found_in_text","path":"dyck/grok_sweep.py","file_url":"https://github.com/skydancerosel/dyck_scan/blob/HEAD/dyck/grok_sweep.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cb70cee49ace8904"}},{"code_sha256_prefix":"69efb69bbccec2f6","entry":"gen_balanced_parentheses","repo":"skydancerosel/dyck_scan","repo_kind":"found_in_text","path":"dyck/lm_pilot.py","file_url":"https://github.com/skydancerosel/dyck_scan/blob/HEAD/dyck/lm_pilot.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"69efb69bbccec2f6"}},{"code_sha256_prefix":"a83d84e87be0a2dd","entry":"hparams_key","repo":"skydancerosel/dyck_scan","repo_kind":"found_in_text","path":"dyck/intervention.py","file_url":"https://github.com/skydancerosel/dyck_scan/blob/HEAD/dyck/intervention.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a83d84e87be0a2dd"}},{"code_sha256_prefix":"8e8adf55588d8b99","entry":"load_run","repo":"skydancerosel/dyck_scan","repo_kind":"found_in_text","path":"dyck/spectral_geometry.py","file_url":"https://github.com/skydancerosel/dyck_scan/blob/HEAD/dyck/spectral_geometry.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8e8adf55588d8b99"}},{"code_sha256_prefix":"d2e721359d2c66f3","entry":"make_batch","repo":"skydancerosel/dyck_scan","repo_kind":"found_in_text","path":"dyck/lm_pilot.py","file_url":"https://github.com/skydancerosel/dyck_scan/blob/HEAD/dyck/lm_pilot.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d2e721359d2c66f3"}},{"code_sha256_prefix":"026c96222776f842","entry":"masked_ce_loss","repo":"skydancerosel/dyck_scan","repo_kind":"found_in_text","path":"dyck/lm_pilot.py","file_url":"https://github.com/skydancerosel/dyck_scan/blob/HEAD/dyck/lm_pilot.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"026c96222776f842"}},{"code_sha256_prefix":"86bf8bb38dae733f","entry":"pca_on_trajectory","repo":"skydancerosel/dyck_scan","repo_kind":"found_in_text","path":"dyck/pca_analysis.py","file_url":"https://github.com/skydancerosel/dyck_scan/blob/HEAD/dyck/pca_analysis.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"86bf8bb38dae733f"}},{"code_sha256_prefix":"7fec25438ea4345b","entry":"projected_commutator","repo":"skydancerosel/dyck_scan","repo_kind":"found_in_text","path":"dyck/commutator_analysis.py","file_url":"https://github.com/skydancerosel/dyck_scan/blob/HEAD/dyck/commutator_analysis.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7fec25438ea4345b"}},{"code_sha256_prefix":"14c07ce05347d233","entry":"random_projection_norm","repo":"skydancerosel/dyck_scan","repo_kind":"found_in_text","path":"dyck/commutator_analysis.py","file_url":"https://github.com/skydancerosel/dyck_scan/blob/HEAD/dyck/commutator_analysis.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"14c07ce05347d233"}},{"code_sha256_prefix":"afca75c828f1fb23","entry":"split_dataset","repo":"skydancerosel/dyck_scan","repo_kind":"found_in_text","path":"dyck/grok_sweep.py","file_url":"https://github.com/skydancerosel/dyck_scan/blob/HEAD/dyck/grok_sweep.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"afca75c828f1fb23"}},{"code_sha256_prefix":"5c1a373f6061288c","entry":"strict_grok_step","repo":"skydancerosel/dyck_scan","repo_kind":"found_in_text","path":"dyck/intervention.py","file_url":"https://github.com/skydancerosel/dyck_scan/blob/HEAD/dyck/intervention.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5c1a373f6061288c"}},{"code_sha256_prefix":"0d1db1b7d3cd9c9d","entry":"strict_grok_step","repo":"skydancerosel/dyck_scan","repo_kind":"found_in_text","path":"dyck/lr_sweep.py","file_url":"https://github.com/skydancerosel/dyck_scan/blob/HEAD/dyck/lr_sweep.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0d1db1b7d3cd9c9d"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":{"kind":"leaderboard_placements","source":"Syntology's leaderboard-shaped extractor over the paper's own arXiv-HTML tables: a model pointed at a cell, the number was read from that cell and checked against the board's metric, dataset, split and scale, and an independent check accepted the entry; not reviewed by the paper's authors or the archive's editors","extractor_model":"global.anthropic.claude-sonnet-4-5-20250929-v1:0","verifier_model":null,"prompt_sha":"fa63d4bb9d755694","coverage":{"sentence":"Syntology has checked 6,264 of the 9,581 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9581,"papers_checked":6264},"entries":[],"not_placed":{"boards":0,"rejected_by_independent_check":0,"refused_by_a_rule":0,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}