{"id":"arxiv:2611.37934","source":"arxiv","external_id":"2611.37934","doi":"10.48550/arXiv.2611.37934","title":"A Quantum Duality for Grokking Transformers","abstract":"We present a quantum duality for Transformers, and use it to study Grokking. This duality originates from the exact correspondence between the kernel formulation of Transformers and coherent-state representation of bosonic quantum dynamical systems. We highlight its usefulness through a quantum-chaos-style analysis of Grokking in Transformer training dynamics. In particular, we introduce $\\underline{E}$qual-$\\underline{T}$ime-$\\underline{O}$rdered $\\underline{C}$orrelator (ETOC) to characterize the memorization-generalization transitions in Grokking. Our key insight is - ETOC predicts and locates Grokking during training, with key-key changes $\\textit{right before}$ Grokking and query-key changes $\\textit{right after}$ Grokking. This provides precise characterizations and effective detections of Grokking in real time. Numerical results on modular addition and multiplication tasks corroborate with our theory.","primary_category":"cs.LG","domain":"physics","license_url":"http://creativecommons.org/licenses/by-nc-sa/4.0/","license_short":"CC BY-NC/ND (Link-Out)","can_host_fulltext":false,"pdf_url":"https://arxiv.org/pdf/2611.37934","canonical_url":"https://arxiv.org/abs/2611.37934","source_repo_url":"https://github.com/yuanchen2045/grokking_etoc","proof_system":"Executable Code","tcb_grade":"TCB-2","track":"verified","tcb_notes":"Seeded with linked Executable Code artifact (https://github.com/yuanchen2045/grokking_etoc); eligible for sandboxed TCB-0/TCB-1 promotion.","merkle_root":"01ea5d58fe61235fcd8faeda12636c2eef0e64b2d9d480f5e8ce06c463364344","published_at":"2026-11-27","ingested_at":"2026-11-30T13:55:04+00:00","version":1,"doi_url":"https://doi.org/10.48550/arXiv.2611.37934","authors":["Yu-An Chen","Henry Liao","Jerry Yao-Chieh Hu"],"categories":["cs.LG","cond-mat.dis-nn","cs.AI","hep-th","quant-ph"],"ai_provenance":{"disclosed":false,"models":["Indexed via arXiv CC0 OAI-PMH"],"human_role":"Original arXiv authors","verification_notes":"Code is at https://github.com/yuanchen2045/grokking_etoc"},"audit_report":{"passed":true,"source":"arxiv-oai-pmh","findings":[]},"tcb_meta":{"code":"TCB-2","label":"Reproducible Compute","track":"verified","rank":2,"icon":"●","summary":"Backed by executable verification code, simulation scripts, or hybrid formal+tested artifacts with SHA-256 integrity hash."},"claims":[],"citations":[],"upgrades":[],"verification_jobs":[],"versions":[],"reviews":[],"latest_review":null}