跳到正文
研踪PaperTrail
← 研踪 PaperTrail

arXiv:2611.37934 · v1

A Quantum Duality for Grokking Transformers

首次提交 2026-11-28 02:56
版本更新 2026-11-28 02:56
雷达观测 2026-11-30 14:38
arXiv ↗PDF ↗

摘要

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 E‾\underline{E}qual-T‾\underline{T}ime-O‾\underline{O}rdered C‾\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 right before\textit{right before} Grokking and query-key changes right after\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.

作者备注:Code is at https://github.com/yuanchen2045/grokking_etoc

AI 论文解读

基于摘要 · 非全文审阅

此版本尚未生成 AI 解读。解读由后台任务生成并按论文版本保存,登录后共享已有结果。

版本差异

目前只收录了一个版本。收录下一版后,可以对照标题、作者、分类和摘要。

观测到的版本

相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。

v1 · 2026-11-28 02:56 · 最新观测版本

A Quantum Duality for Grokking Transformers

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 E‾\underline{E}qual-T‾\underline{T}ime-O‾\underline{O}rdered C‾\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 right before\textit{right before} Grokking and query-key changes right after\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.

查看此版本解读 →查看此版本原文 ↗