Mapping the Solution-Set Structure of Grokking on Latin Squares
Organizations: Institute of Information Engineering, Chinese Academy of Sciences · School of Cyber Security, University of Chinese Academy of Sciences · Alibaba Group · Shanghai Jiaotong University
Abstract
Grokking is a delayed transition from memorisation to generalisation. A network first fits observed examples while remaining near chance on held-out inputs, then generalises abruptly. Prior work has focused mainly on this delay, finding that the network's main loss becomes weight decay after the fitting phase. We name the solution to this optimization problem as the minimum-norm endpoint, and study which tasks make all minimum-norm endpoints generalise from partial observations. Specifically, we model pairwise input tasks as edge colourings of , with Latin colourings as our structured family, and classify each observed instance as all-good, mixed, or no-good by its endpoint set. Furthermore, we prove two contrasting results: (1) Finite-abelian-group families are asymptotically all-good from partial observations; (2) Under a uniform random Latin square, all-good tasks become asymptotically rare for observation-based learners, leaving mixed or no-good behaviour. Moreover, experiments show that relabellings of addition generalise despite their dense polynomial representations. Finally, on tasks of composite order, finite-training results suggest that predictors learn a coarse part of the output before the full label.
Figures & tables
| final outcome over runs | |||
| Latin family | trans. | med. acc. | |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Symbol | Meaning |
| Task order, symbol set , its symmetric group, cell grid , and . | |
| A colouring, all pairwise colourings, Latin colourings, and modular addition. | |
| A finite abelian group of order and its group table, after identifying its elements with . | |
| Observed cells, held-out cells, mask law, coverage, and mask size. | |
| Observed triples . | |
| Score map, network parameters, and minimum-norm endpoint set. |
| order | ||||
| grid cells | ||||
| observed cells |
| representation | tasks | nonzero coefficients | total degree | |
| visible addition | 1 | |||
| hidden addition | 10 | – | ||
| sequential Latin | 8 | – |
| family | seed | nonzero | support (%) | degrees | total | file |
| visible addition | 0 | 2 | 0.021 | 1 | visible_addition_task_000.csv | |
| hidden addition | 0 | 9118 | 96.907 | 190 | hidden_addition_task_000.csv | |
| hidden addition | 1 | 9133 | 97.067 | 190 | hidden_addition_task_001.csv | |
| hidden addition | 2 | 9121 | 96.939 | 190 | hidden_addition_task_002.csv | |
| hidden addition | 3 | 9109 | 96.812 | 190 | hidden_addition_task_003.csv | |
| hidden addition | 4 | 9134 | 97.077 | 190 | hidden_addition_task_004.csv |
| family | exact accuracy | prespecified binary factor quotient |
| — |
| family | resolution | |||
| binary factor quotient | ||||
| -way factor quotient | ||||
| -way factor quotient | ||||
| exact | ||||
| binary factor quotient | ||||
| -way factor quotient |
| excision | parameter | U-Acc (%) | GO-Epoch |
| square | |||
| strip | |||
Grokking
Grokking is delayed generalization in which neural networks memorize training data before abruptly learning a rule that works on unseen examples.
See all 81 papers