Low Rank and Sparse Fourier Structure in Recurrent Networks Trained on Modular Addition

Akshay Rangamani
3/28/2025
cs.LGeess.SPstat.ML

No confident code implementation found for this paper.

Abstract

Modular addition tasks serve as a useful test bed for observing empirical phenomena in deep learning, including the phenomenon of \emph{grokking}. Prior work has shown that one-layer transformer architectures learn Fourier Multiplication circuits to solve modular addition tasks. In this paper, we show that Recurrent Neural Networks (RNNs) trained on modular addition tasks also use a Fourier Multiplication strategy. We identify low rank structures in the model weights, and attribute model components to specific Fourier frequencies, resulting in a sparse representation in the Fourier space. We also show empirically that the RNN is robust to removing individual frequencies, while the performance degrades drastically as more frequencies are ablated from the model.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{rangamani2025rank,
  title  = {Low Rank and Sparse Fourier Structure in Recurrent Networks Trained on Modular Addition},
  author = {Akshay Rangamani},
  year   = {2025},
  eprint = {2503.22059},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.22059v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.22059.svg)](https://codeofpaper.com/paper/2503.22059)

Discussion