PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
February 26, 20241 citationsOpen Access

Interpreting Grokked Transformers in Complex Modular Arithmetic

View Full Paper
HFHiroki FurutaGMGouki MinegishiYIYusuke Iwasawa

Key Points

  • Grokked models display notable dynamics in complex modular arithmetic, particularly regarding subtraction and multiplication intricacies.
  • Notable metrics like Fourier Frequency Sparsity highlight late generalization and elucidate internal representations within grokked transformers.
  • Using reverse engineering, the study explores how grokked algorithms manifest in modular operations beyond simple addition or subtraction dynamics—that include higher-degree issues, too. Moreover, it pinpoints the differences in model behaviors across various arithmetic operations embedded in complex formulas, revealing deeper insights into modular operations.

Abstract

Grokking has been actively explored to reveal the mystery of delayed generalization. Identifying interpretable algorithms inside the grokked models is a suggestive hint to understanding its mechanism. In this work, beyond the simplest and well-studied modular addition, we observe the internal circuits learned through grokking in complex modular arithmetic via interpretable reverse engineering, which highlights the significant difference in their dynamics: subtraction poses a strong asymmetry on Transformer; multiplication requires cosine-biased components at all the frequencies in a Fourier domain; polynomials often result in the superposition of the patterns from elementary arithmetic, but clear patterns do not emerge in challenging cases; grokking can easily occur even in higher-degree formulas with basic symmetric and alternating expressions. We also introduce the novel progress measure for modular arithmetic; Fourier Frequency Sparsity and Fourier Coefficient Ratio, which not only indicate the late generalization but also characterize distinctive internal representations of grokked models per modular operation. Our empirical analysis emphasizes the importance of holistic evaluation among various combinations.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Furuta et al. (2024) studied this question.

synapsesocial.com/papers/68e778e0b6db6435876edeb6https://doi.org/10.48550/arxiv.2402.16726
Ask AI
Helpful
Bookmark
Share
View Full Paper