跳到正文
arXiv cs.AI· Yu-An Chen, Henry Liao, Jerry Yao-Chieh Hu·· 3 小时前AI 评分35

Transformer 的量子对偶性用于研究 Grokking

A Quantum Duality for Grokking Transformers

AI 导读

一篇 arXiv 论文提出 Transformer 的量子对偶性,源于 Transformer 的核形式与玻色子量子动力系统的相干态表示之间的精确对应。作者引入等时有序关联函数(ETOC)刻画 Grokking 中记忆-泛化的转变,发现 Grokking 之前出现 key-key 变化、之后出现 query-key 变化,可实时检测 Grokking。模加法与模乘法任务的数值结果与理论相符。

正文 · 原文

View PDF HTML (experimental)

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.
Comments: Code is at this https URL
Subjects: Machine Learning (cs.LG); Disordered Systems and Neural Networks (cond-mat.dis-nn); Artificial Intelligence (cs.AI); High Energy Physics - Theory (hep-th); Quantum Physics (quant-ph)
Cite as: arXiv:2611.37934 [cs.LG]
  (or arXiv:2611.37934v1 [cs.LG] for this version)
  https://doi.org/10.48550/arXiv.2611.37934

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Yu-An Chen [view email]
[v1] Fri, 27 Nov 2026 18:56:43 UTC (1,004 KB)

来源:arXiv cs.AI · arxiv.org