Algebraic Representability Explains Grokking's Limiting Behavior.

Chon-Fai Kam, Xavier Cadet, Miloud Bessafi, Frederic Cadet· July 16, 2026 View original

Key takeaways

  • Grokking behavior is linked to neural network capacity and expressibility.
  • Algebraic representability can define the limits of what a network can learn.
  • In extreme cases, grokking disappears, leading to binary success or failure.
  • Understanding these limits is crucial for designing predictable AI models.

Who benefits

AI ResearchSoftware DevelopmentEducationCybersecurity

Summary

This research explores grokking in neural networks trained on modular arithmetic, focusing on networks with holomorphic monomial activations. It demonstrates that when the network's expressible function class collapses to a finite-dimensional algebraic variety, grokking disappears, and outcomes become binary: instant success or outright failure based on algebraic representability.

The phenomenon of "grokking" in neural networks, where a delayed transition from memorization to generalization occurs, is known to depend on model capacity. This study investigates the extreme end of this spectrum by examining two-layer networks with a specific holomorphic monomial activation function, trained on modular arithmetic tasks. In this setup, the network's output is algebraically confined to a finite-dimensional subspace. The researchers found that a task is representable by such a network only if its discrete Fourier support meets a specific algebraic criterion. Crucially, if a target is not algebraically representable, the network cannot even memorize the training set, leading to a guaranteed positive lower bound on training loss. This results in a binary outcome: either instant success or complete failure, with no memorization phase or grokking observed. This suggests that when the expressible function class is severely constrained, the question shifts from *when* a network will grok to *whether* it can represent the target at all.

Why it matters

Understanding the fundamental limits of neural network expressibility and its connection to phenomena like grokking can inform the design of more robust and predictable AI models, especially in critical applications.

How to implement this in your domain

  1. 1Consider the implications of model capacity and architectural choices on generalization behavior in your AI systems.
  2. 2Investigate the algebraic properties of tasks and model architectures to predict representational limits.
  3. 3Design experiments to test for grokking or its absence in constrained neural network settings.
  4. 4Apply insights from representability theory to select appropriate model architectures for specific problem domains.

Original post by Chon-Fai Kam, Xavier Cadet, Miloud Bessafi, Frederic Cadet

"arXiv:2607.13749v1 Announce Type: new Abstract: Neural networks trained on modular arithmetic exhibit grokking, a delayed transition from memorisation to generalisation known to depend on model capacity: too little and the network memorises slowly or not at all, too much and it g…"

View on X

Originally posted by Chon-Fai Kam, Xavier Cadet, Miloud Bessafi, Frederic Cadet on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses