PulseAugur
EN
LIVE 21:22:20

Transformer model learns trigonometry to solve math problems after grokking

A small, single-layer transformer model was trained on a modular arithmetic task, initially appearing to memorize the training data while failing on new examples. After thousands of additional training steps, the model's accuracy on unseen data dramatically improved, a phenomenon known as grokking. Analysis of the model's weights revealed it learned to perform trigonometry, specifically using angle-sum identities to compute the modular addition, rather than a simple lookup table. AI

IMPACT Demonstrates that even small transformer models can learn complex mathematical functions beyond simple memorization, offering insights into emergent capabilities.

RANK_REASON The item describes a research finding about a transformer model's learning process, specifically the phenomenon of grokking and the underlying mathematical operations learned. [lever_c_demoted from research: ic=1 ai=1.0]

Read on Towards AI →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

Transformer model learns trigonometry to solve math problems after grokking

COVERAGE [1]

  1. Towards AI TIER_1 English(EN) · Abdul M. ·

    My Transformer Memorised the Answers, Then Taught Itself Trigonometry

    <h4><em>A one-layer transformer on my laptop got every training example right in 150 steps and stayed near chance on new ones for 4,000 more. Its weights show it was building a cosine circuit the whole time.</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/10…