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

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
1. Verfasser: Rangamani, Akshay
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866913763567861760
author Rangamani, Akshay
author_facet Rangamani, Akshay
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2503_22059
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Low Rank and Sparse Fourier Structure in Recurrent Networks Trained on Modular Addition
Rangamani, Akshay
Machine Learning
Signal Processing
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.
title Low Rank and Sparse Fourier Structure in Recurrent Networks Trained on Modular Addition
topic Machine Learning
Signal Processing
url https://arxiv.org/abs/2503.22059