gemini-2.5-flash-preview-09-2025| input-price: 0.3 output-price: 2.5 max-context-length: 128_000 (cost: $0.01) Β· Anfrage: 2025-12-22T08:04:52.390935

Generated by rs-summarizer Version unbekannt

The most suitable audience for reviewing this material are Machine Learning Researchers, AI Theorists, and Specialists in Mechanistic Interpretability.

Abstract

This analysis details the phenomenon of "grokking" within transformer models, focusing on a single-layer transformer trained on modular arithmetic. Grokking is defined as sudden generalization that occurs long after a model has achieved perfect memorization (overfitting) of its training data. Mechanistic interpretability techniques, notably Fourier analysis and linear probing, reveal that this generalization phase corresponds to the model abandoning rote memorization and robustly implementing the modular addition operation via trigonometric identities. The model learns to encode inputs as sine and cosine components within its embedding space, leverages the identity $\cos(x)\cos(y) - \sin(x)\sin(y) = \cos(x+y)$ within its Multi-Layer Perceptron (MLP) block, and develops geometric structures (diagonal symmetries) to compute the required sum. A specialized metric, "excluded loss," confirms that structural learning progresses actively during the period where conventional accuracy plateaus. This work serves as a cornerstone for understanding core circuit mechanisms in transformers, paralleled by recent findings demonstrating 6-dimensional manifolds used for arithmetic in large-scale models like Claude Haiku.

Grokking Modular Arithmetic: A Mechanistic Interpretability Analysis

Summary Rating: No ratings yet
Article Rating: No ratings yet

Source