← Demos

Modular Addition Structure

Explore the table (a + b) mod p while a toy prediction field moves from memorized training cells toward the global modular rule.

A heatmap of modular addition predictions. Use the controls to explore training coverage and generalization; the accuracy values are shown alongside the chart.
Train accuracy
100%
Test accuracy
12%
Visible rule strength
0.18