Back to AI News
arxiv

Quantum Duality Framework Analyzes Grokking in Transformers

Researchers present a quantum duality linking Transformer kernel formulations to coherent-state representations of bosonic quantum systems. They apply this framework to study grokking and introduce an Equal-Time-Ordered Correlator to characterize memorization-to-generalization transitions. The paper reports that ETOC signals can locate grokking during training, with numerical support from modular addition and multiplication tasks.

AI Brief

It offers a new theoretical diagnostic for understanding when and how transformers shift from memorization to generalization.

arXiv:2611.37934v1 Announce Type: cross 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.
Be the first to rate this article.

Comments & Questions (0)

Captcha
Please be respectful — let's keep the conversation friendly.

No comments yet

Be the first to comment!